Hi for some reason I can't access my admin page anymore for adm-index.php. I'm not sure if I did anything wrong. All I have done just created an album list.
Here the link:
http://www.khmerclub.org/gallery/adm-index.php
This is the error message I got:
t) $len = strlen($newpath)-1; if( $newpath[$len] == "/" ) { $newpath[$len] = " "; } $newpath = trim($newpath); if ( !is_writable($newpath) ) { @mkdir( $newpath ); @chmod( $newpath, 0777 ); if ( !is_writable($newpath) ) { diewell("Unable to create/write to $newpath! Check your data directory permissions before continuing.
When you have fixed your permissions Refresh this page to try again."); } // create a blank index.htm file $fd = fopen( "$newpath/index.htm", "w+" ); fclose($fd); } $newpath = "$newpath/"; // Create tree if needed $resultb = ppmysql_query("SELECT id,catname FROM {$pp_db_prefix}categories", $link); while ( list( $thecatid, $thecatname ) = mysql_fetch_row($resultb) ) { $newdir = $newpath."$thecatid/"; // First, lets see if we need to make it or change permissions if ( !is_writable($newdir) ) { mkppdir( $newdir, true ); } } ppmysql_query("UPDATE {$pp_db_prefix}settings SET setting='".addslashes($newpath)."' WHERE id=208", $link); ppmysql_query("UPDATE {$pp_db_prefix}settings SET setting='".addslashes($newurl)."' WHERE id=207", $link); // Tree created, now do we move images? $output .= << The new directory structure has been created for your original images at:
$newpath
If you have not already done so, you will need to copy the original images to this new location. This can take some time, so please give the script plenty of time to do its work if you have alot of images.
Your help is appreciated! Tim