Gallery Install.php:
<?
$root = './';
include_once($root."core/core.php");
include_once($root."config.ini.php");
if($config['demo']!=0){
echo '<h1>Update disabled with a demo</h1>';
return;
}
$db = new DB_sql($config["db_host"], $config["db_user"], $config["db_pass"], $config["db_name"], $config["db_type"], 1);
$db->usedump('sql/gallery.'.$config["db_type"].'.sql');
$filelist = array();
$folder_content=opendir("rwx_gallery/");
$count=0;
while($item=readdir($folder_content))
if($item != "." && $item != "..")
{
//if($config['demo'] == 0)
unlink("rwx_gallery/$item");
}
?>
<h3>
Do not forget to chmod 777 for "rwx" folder<br>
</h3>
<a href="admin/gallery.php">Run admin back-end>></a>
<br>
<a href="gallery.php">Run gallery front-end>></a>
Other Content Management Scripts: