$albumfolder = $_zp_conf_vars['album_folder']; switch ($_zp_conf_vars['album_folder_class']) { case 'std': $albumfolder = dirname(dirname(__FILE__)) . $albumfolder; break; case 'in_webpath': $root = dirname(dirname(__FILE__)); if (!empty($const_webpath)) { $root = dirname($root); } $albumfolder = $root . $albumfolder; break; } } $good = folderCheck('albums', $albumfolder, $_zp_conf_vars['album_folder_class']) && $good; $good = folderCheck('cache', dirname(dirname(__FILE__)) . "/cache/", 'std') && $good; $good = checkmark(file_exists($en_US), '<em>locale</em> ' . gettext('folders'), ' [' . gettext('Are not complete') . ']', gettext('Be sure you have uploaded the complete Zenphoto package. You must have at least the <em>en_US</em> folder.')) && $good; if ($connection) { @mysql_close($connection); } if ($good) { $dbmsg = ""; } else { echo "<p>" . gettext("You need to address the problems indicated above then run <code>setup.php</code> again.") . "</p>"; if ($noxlate > 0) { echo "\n</div>"; echo "\n<div>\n"; echo '<form action="#' . '" method="post">' . "\n"; if ($debug) { echo '<input type="hidden" name="debug" />'; }
} $albumfolder = $root . $albumfolder; break; } $good = folderCheck('albums', $albumfolder, $_zp_conf_vars['album_folder_class'], NULL, true, $chmod | 0311, $updatechmod) && $good; } else { checkmark(-1, gettext('<em>albums</em> folder'), gettext('<em>albums</em> folder [The line <code>\\$conf[\'album_folder\']</code> is missing from your configuration file]'), sprintf(gettext('You should update your configuration file to conform to the current %1$s example file.'), CONFIGFILE)); } $good = folderCheck('cache', $serverpath . '/' . CACHEFOLDER . '/', 'std', NULL, true, $chmod | 0311, $updatechmod) && $good; $good = checkmark(file_exists($en_US), gettext('<em>locale</em> folders'), gettext('<em>locale</em> folders [Are not complete]'), gettext('Be sure you have uploaded the complete Zenphoto package. You must have at least the <em>en_US</em> folder.')) && $good; $good = folderCheck(gettext('uploaded'), $serverpath . '/' . UPLOAD_FOLDER . '/', 'std', NULL, false, $chmod | 0311, $updatechmod) && $good; $good = folderCheck(DATA_FOLDER, $serverpath . '/' . DATA_FOLDER . '/', 'std', NULL, false, $chmod | 0311, $updatechmod) && $good; @rmdir(SERVERPATH . '/' . DATA_FOLDER . '/mutex'); @mkdir(SERVERPATH . '/' . DATA_FOLDER . '/' . MUTEX_FOLDER, $chmod | 0311); $good = folderCheck(gettext('HTML cache'), $serverpath . '/' . STATIC_CACHE_FOLDER . '/', 'std', $Cache_html_subfolders, true, $chmod | 0311, $updatechmod) && $good; $good = folderCheck(gettext('Third party plugins'), $serverpath . '/' . USER_PLUGIN_FOLDER . '/', 'std', $plugin_subfolders, true, $chmod | 0311, $updatechmod) && $good; ?> </ul> <?php if ($good) { $dbmsg = ""; } else { if (setupUserAuthorized()) { ?> <div class="error"> <?php echo gettext("You need to address the problems indicated above then run <code>setup</code> again."); ?> </div> <p class='buttons'> <a href="?refresh" title="<?php
if (!empty($const_webpath)) { $root = str_replace('\\', '/', dirname($root)); } $albumfolder = $root . $albumfolder; break; } $good = folderCheck('albums', $albumfolder, $_zp_conf_vars['album_folder_class']) && $good; } else { checkmark(-1, gettext('<em>albums</em> folder'), gettext("<em>albums</em> folder [The line <code>\$conf['album_folder']</code> is missing from your zp-config.php file]"), gettext('You should update your zp-config.php file to conform to the current zp-config.php.example file.')); } $good = folderCheck('cache', dirname(dirname(__FILE__)) . "/cache/", 'std') && $good; $good = checkmark(file_exists($en_US), gettext('<em>locale</em> folders'), gettext('<em>locale</em> folders [Are not complete]'), gettext('Be sure you have uploaded the complete Zenphoto package. You must have at least the <em>en_US</em> folder.')) && $good; $good = folderCheck(gettext('uploaded'), dirname(dirname(__FILE__)) . "/uploaded/", 'std') && $good; $good = folderCheck(DATA_FOLDER, dirname(dirname(__FILE__)) . '/' . DATA_FOLDER . '/', 'std') && $good; $good = folderCheck(gettext('HTML cache'), dirname(dirname(__FILE__)) . '/cache_html/', 'std', true, $Cache_html_subfolders) && $good; $good = folderCheck(gettext('Third party plugins'), dirname(dirname(__FILE__)) . '/' . USER_PLUGIN_FOLDER . '/', 'std', false, $plugin_subfolders) && $good; ?> </ul> <?php if ($good) { $dbmsg = ""; } else { if (zp_loggedin(ADMIN_RIGHTS)) { ?> <div class="error"> <?php echo gettext("You need to address the problems indicated above then run <code>setup.php</code> again."); ?> </div> <p class='buttons'> <a href="?refresh" title="<?php