// This will destory an existing cache file!
if ($this->ret == $this->statusDone) {
// Mark it as no longer readable
- unset($this->readable[$this->name]);
- unset($GLOBALS['file_readable'][$this->fqfn]);
+ $this->markCacheAsUnreadable();
// Create file
if ($this->isCacheReadable()) changeMode($this->fqfn, 0666);
}
}
+ // Mark the cache as unreadable
+ function markCacheAsUnreadable () {
+ unset($this->readable[$this->name]);
+ unset($GLOBALS['file_readable'][$this->fqfn]);
+ }
+
function addRow ($data) {
// Is the pointe rvalid?
if (is_resource($this->pointer)) {
} else {
// Cache file not found or not readable
addFatalMessage(__METHOD__, __LINE__, "(<font color=\"#0000aa\">".__LINE__."</font>): ".sprintf(getMessage('CACHE_CANNOT_LOAD'), $this->fqfn));
+
+ // Try to remove it
+ $this->removeCacheFile();
}
}
// Destroy an existing cache file
function removeCacheFile ($removeArray = false, $force = false) {
+ // Remove cached value of readable cache
+ $this->markCacheAsUnreadable();
+
// Debug message
/* DEBUG: */ logDebugMessage(__METHOD__, __LINE__, sprintf("%s should be removed.", $this->name));
// Remove cache file from system
removeFile($this->fqfn);
- // No longer readable!
- unset($this->readable[$this->name]);
-
// Shall we remove the array from memory?
if ($removeArray === true) {
// Debug message if allowed
return false;
} // END - if
+ // Set content type
+ setContentType('text/html');
+
// Load config here
loadIncludeOnce('inc/load_config.php');
'corr' => $CORR
);
+ // Load footer
+ loadIncludeOnce('inc/header.php');
+
// Load main template
loadTemplate('fatal_errors', false, $content);
// Init variables
$mysql = array();
-if ((isPostRequestElementSet('mysql')) && (is_array(postRequestElement('mysql')))) $mysql = postRequestElement('mysql');
+if ((isPostRequestElementSet('mysql')) && (is_array(postRequestElement('mysql')))) {
+ // Transfer 'mysql' array
+ $mysql = postRequestElement('mysql');
+} // END - if
// Check if both passwords from SMTP are matching
if ((isGetRequestElementSet('page') && (getRequestElement('page') == 5))) {
$content['email'] = postRequestElement('email');
// Load template
- addTemplateToInstallContent('install_page2', false, $content);
+ addTemplateToInstallContent('install_page2', $content);
break;
case '3':
$content['smtp_pass2'] = $smtpPass2;
// Load template
- addTemplateToInstallContent('install_page3', false, $content);
+ addTemplateToInstallContent('install_page3', $content);
break;
case '5': // Misc settings
$content['slogan'] = postRequestElement('slogan');
$content['email'] = postRequestElement('email');
- // MySQL settings
- $content['mysql_host'] = $mysql['host'];
- $content['mysql_dbase'] = $mysql['dbase'];
- $content['mysql_prefix'] = $mysql['prefix'];
- $content['mysql_login'] = $mysql['login'];
- $content['table_type'] = $mysql['type'];
-
// SMTP settings
$content['smtp_host'] = postRequestElement('smtp_host');
$content['smtp_user'] = postRequestElement('smtp_user');
$OUT = '';
foreach ($mysql as $key => $value) {
$OUT .= " <input type=\"hidden\" name=\"mysql[" . $key . "]\" value=\"" . $value . "\" />\n";
- }
+ } // END - foreach
$content['mysql_hidden'] = $OUT;
// Load template
- addTemplateToInstallContent('install_page5', false, $content);
+ addTemplateToInstallContent('install_page5', $content);
break;
case 'finalize': // Write captured data to files
$content['smtp_pass'] = postRequestElement('smtp_pass1');
// Load template
- addTemplateToInstallContent('install_fatal_errors', false, $content);
+ addTemplateToInstallContent('install_fatal_errors', $content);
} else {
// Installation is done!
redirectToUrl('install.php?page=finished');
// Language definitions
addMessages(array(
- 'CACHE_PROBLEMS_DETECTED' => "Probleme mit dem Cache-Subsystem erkannt!",
- 'CACHE_CANNOT_LOAD' => "Kann nicht Cache-Datei <strong><u>%s</u></strong> laden!",
- 'CACHE_CANNOT_INITIALIZE' => "Konnte das Caching-System nicht initialisieren. Bitte die Dokumentation <strong>DOCS/de/cache/README.txt</strong> lesen!",
- 'CACHE_CANNOT_UNLINK' => "Kann nicht die Cache-Datei <strong><u>%s</u></strong> vom Server entfernen!",
-
// Administrative settings
'ADMIN_CACHE_STATS_TITLE' => "Statistiken des Caching-Systems",
'ADMIN_CACHE_DB_HITS' => "Zugriffe auf die Datenbank",
// Missing menu whats
'MENU_WHAT_404' => "Menü deaktiviert, da keine Scriptdatei auf dem Server gefunden wurde.",
+
+// Cache messages
+ 'CACHE_PROBLEMS_DETECTED' => "Probleme mit dem Cache-Subsystem erkannt!",
+ 'CACHE_CANNOT_LOAD' => "Kann nicht Cache-Datei <strong><u>%s</u></strong> laden!",
+ 'CACHE_CANNOT_INITIALIZE' => "Konnte das Caching-System nicht initialisieren. Bitte die Dokumentation <strong>DOCS/de/cache/README.txt</strong> lesen!",
+ 'CACHE_CANNOT_UNLINK' => "Kann nicht die Cache-Datei <strong><u>%s</u></strong> vom Server entfernen!",
));
// Description of all months
<td colspan="2" height="21" class="seperator"> </td>
</tr>
<tr>
- <td align="right" class="install">{--SERVER_PATH--} : </td>
- <td><input type="text" name="spath" size="20" value="{?PATH?}" class="install_normal" /></td>
+ <td align="right" class="install_right">{--SERVER_PATH--}:</td>
+ <td align="left"><input type="text" name="spath" size="20" value="{?PATH?}" class="install_normal" /></td>
</tr>
<tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td align="right" class="install">{--BASE_URL--} :
- ({--BASE_URL_NOTE--})</td>
- <td><input type="text" name="burl" size="20" value="{?URL?}" class="install_normal" /></td>
+ <td align="right" class="install_right">{--BASE_URL--} ({--BASE_URL_NOTE--}):</td>
+ <td align="left"><input type="text" name="burl" size="20" value="{?URL?}" class="install_normal" /></td>
</tr>
<tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td align="right" class="install">{--HP_TITLE--} : </td>
- <td><input type="text" name="title" size="20" maxlength="255" value="{?MAIN_TITLE?}" class="install_normal" /></td>
+ <td align="right" class="install_right">{--HP_TITLE--}:</td>
+ <td align="left"><input type="text" name="title" size="20" maxlength="255" value="{?MAIN_TITLE?}" class="install_normal" /></td>
</tr>
<tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td align="right" class="install">{--HP_SLOGAN--} : </td>
- <td><input type="text" name="slogan" size="30" maxlength="255" value="{?SLOGAN?}" class="install_normal" /></td>
+ <td align="right" class="install_right">{--HP_SLOGAN--}:</td>
+ <td align="left"><input type="text" name="slogan" size="30" maxlength="255" value="{?SLOGAN?}" class="install_normal" /></td>
</tr>
<tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td align="right" class="install">{--HP_EMAIL--} : </td>
- <td><input type="text" name="email" size="20" maxlength="255" value="{?WEBMASTER?}" class="install_normal" /></td>
+ <td align="right" class="install_right">{--HP_EMAIL--}:</td>
+ <td align="left"><input type="text" name="email" size="20" maxlength="255" value="{?WEBMASTER?}" class="install_normal" /></td>
</tr>
<tr>
<td colspan="3" height="21" class="seperator"> </td>
<td colspan="2" height="21" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--MYSQL_HOST--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--MYSQL_HOST--}:</td>
+ <td width="50%" align="left">
<input type="text" name="mysql[host]" size="25" value="$content[mysql_host]" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--MYSQL_DBASE--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--MYSQL_DBASE--}:</td>
+ <td width="50%" align="left">
<input type="text" name="mysql[dbase]" size="25" value="$content[mysql_dbase]" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--MYSQL_PREFIX--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--MYSQL_PREFIX--}:</td>
+ <td width="50%" align="left">
<input type="text" name="mysql[prefix]" size="25" value="$content[mysql_prefix]" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--MYSQL_TABLE_TYPE--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--MYSQL_TABLE_TYPE--}:</td>
+ <td width="50%" align="left">
<select name="mysql[type]" size="1">
<option value="MyISAM">{--TABLE_TYPE_MYISAM--}</option>
<option value="InnoDB">{--TABLE_TYPE_INNODB--}</option>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--MYSQL_LOGIN--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--MYSQL_LOGIN--}:</td>
+ <td width="50%" align="left">
<input type="text" name="mysql[login]" size="25" value="$content[mysql_login]" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--MYSQL_PASS1--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--MYSQL_PASS1--}:</td>
+ <td width="50%" align="left">
<input type="password" name="mysql[pass1]" size="25" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--MYSQL_PASS2--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--MYSQL_PASS2--}:</td>
+ <td width="50%" align="left">
<input type="password" name="mysql[pass2]" size="25" class="install_normal" />
</td>
</tr>
<td colspan="2" height="21" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--TEXT_SMTP_HOST--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--TEXT_SMTP_HOST--}:</td>
+ <td width="50%" align="left">
<input type="text" name="smtp_host" size="25" value="$content[smtp_host]" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--TEXT_SMTP_USER--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--TEXT_SMTP_USER--}:</td>
+ <td width="50%" align="left">
<input type="text" name="smtp_user" size="25" value="$content[smtp_user]" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--TEXT_SMTP_PASS1--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--TEXT_SMTP_PASS1--}:</td>
+ <td width="50%" align="left">
<input type="password" name="smtp_pass1" size="25" value="$content[smtp_pass1]" class="install_normal" />
</td>
</tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
<tr>
- <td width="50%" align="right" class="install">{--TEXT_SMTP_PASS2--} : </td>
- <td width="50%">
+ <td width="50%" align="right" class="install_right">{--TEXT_SMTP_PASS2--}:</td>
+ <td width="50%" align="left">
<input type="password" name="smtp_pass2" size="25" value="$content[smtp_pass2]" class="install_normal" />
</td>
</tr>
</tr>
<tr><td colspan="2" height="21" class="seperator"> </td></tr>
<tr>
- <td class="install" align="right">{--LANG_OUTPUT_MODE--}: </td>
- <td>
+ <td align="right" class="install_right">{--LANG_OUTPUT_MODE--}:</td>
+ <td align="left">
<select name="omode" size="1" class="install_select">
<option value="render">{--MODE_RENDER--}</option>
<option value="direct">{--MODE_DIRECT--}</option>
</tr>
<tr><td colspan="2" height="10" class="seperator"> </td></tr>
<tr>
- <td class="install" align="right">{--WARN_NO_PASSWORD--}: </td>
- <td>
+ <td align="right" class="install_right">{--WARN_NO_PASSWORD--}:</td>
+ <td align="left">
<select name="warn_no_pass" size="1" class="install_select">
<option value="Y">{--YES--}</option>
<option value="N">{--NO--}</option>
</tr>
<tr><td colspan="2" height="10" class="seperator"> </td></tr>
<tr>
- <td class="install" align="right">{--LANG_WRITE_FOOTER--}: </td>
- <td>
+ <td align="right" class="install_right">{--LANG_WRITE_FOOTER--}:</td>
+ <td align="left">
<select name="wfooter" size="1" class="install_select">
<option value="Y">{--YES--}</option>
<option value="N">{--NO--}</option>
</tr>
<tr><td colspan="2" height="10" class="seperator"> </td></tr>
<tr>
- <td class="install" align="right">{--INSTALL_ENABLE_BACKLINK--}: </td>
- <td>
+ <td align="right" class="install_right">{--INSTALL_ENABLE_BACKLINK--}:</td>
+ <td align="left">
<select name="blink" size="1" class="install_select">
<option value="Y">{--YES--}</option>
<option value="N">{--NO--}</option>
padding-top: 5px;
padding-bottom: 10px;
}
+
+.install_right {
+ text-align: right;
+ padding-right: 5px;
+}
.install_footer {
padding-bottom: 10px;
}
+
+.install_right {
+ text-align: right;
+ padding-right: 5px;
+}
.install_welcome {
padding-top: 5px;
padding-bottom: 10px;
-}
\ No newline at end of file
+}
+
+.install_right {
+ text-align: right;
+ padding-right: 5px;
+}