Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: anycontent.php  (Read 3514 times)

0 Members and 1 Guest are viewing this topic.

outpatient

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • My Family Album
anycontent.php
« on: January 15, 2005, 06:15:25 am »

I apologize in advance if this question doesnt belong here... I just couldnt find anywhere else to put it!

I have screwed up my anycontent.php file and didn't save a backup.  I know. Could someone please upload it or email it to me? Or better yet, copy the code here?

Pretty please?

I really appreciate it.  Thank you in advance!
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: anycontent.php
« Reply #1 on: January 15, 2005, 06:26:02 am »

Please give proper name to the topics you post.

Anyways just download a fresh copy of cpg (your version), untar or unzip it and copy anycontent.php from the unzipped folder to your current installation folder.
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: anycontent.php
« Reply #2 on: January 16, 2005, 05:11:54 am »

Of course Abbas is right; in the case of anycontent.php, this is all you need:
Code: [Select]
<?php
// your content here
?>
The "original" looks like this (and has - compared to above version - only the copyright header and a start and end of a coppermine table:
Code: [Select]
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.2                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: anycontent.php,v 1.5 2004/07/24 15:03:52 gaugau Exp $
// ------------------------------------------------------------------------- //

starttable("100%""Welcome");

?>

<tr><td class="tableb" >
This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
</td></tr>
<?php
endtable
();

?>


For future reference: you can get the most recent version of every coppermine file from the web cvs (stable branch): http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/ - for anycontent, this would be the link: http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/anycontent.php
We never do support by email, as it would defeat the point of a forum.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 21 queries.