anycontent.php anycontent.php
 

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]

Main Menu

anycontent.php

Started by outpatient, January 15, 2005, 06:15:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

outpatient

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!

Abbas Ali

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.
Chief Geek at Ranium Systems

Joachim Müller

Of course Abbas is right; in the case of anycontent.php, this is all you need:<?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:<?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