Fix Error Class
This commit is contained in:
parent
2c946df157
commit
047ebb2185
2
public/include/pages/account/confirm.inc.php
Normal file → Executable file
2
public/include/pages/account/confirm.inc.php
Normal file → Executable file
@ -3,7 +3,7 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
|
||||
|
||||
// Confirm an account by token
|
||||
if (!isset($_GET['token']) || empty($_GET['token'])) {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Missing token', 'TYPE' => 'errormsg');
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Missing token', 'TYPE' => 'danger');
|
||||
} else if (!$aToken = $oToken->getToken($_GET['token'], 'confirm_email')) {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to activate your account. Invalid token.', 'TYPE' => 'alert alert-danger');
|
||||
} else {
|
||||
|
||||
2
public/include/pages/admin/templates.inc.php
Normal file → Executable file
2
public/include/pages/admin/templates.inc.php
Normal file → Executable file
@ -36,7 +36,7 @@ if (@$_REQUEST['do'] == 'save') {
|
||||
$oDatabaseTemplate = $template->getEntry($sTemplate);
|
||||
|
||||
if ( $oDatabaseTemplate === false ) {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Can\'t fetch template from Database. Have you created `templates` table? Run 005_create_templates_table.sql from sql folder', 'TYPE' => 'errormsg');
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Can\'t fetch template from Database. Have you created `templates` table? Run 005_create_templates_table.sql from sql folder', 'TYPE' => 'danger');
|
||||
}
|
||||
|
||||
$smarty->assign("TEMPLATES", $aTemplates);
|
||||
|
||||
4
public/include/version.inc.php
Normal file → Executable file
4
public/include/version.inc.php
Normal file → Executable file
@ -9,9 +9,9 @@ define('CONFIG_VERSION', '0.0.7');
|
||||
$db_version = $setting->getValue('DB_VERSION');
|
||||
if ($db_version != DB_VERSION) {
|
||||
// Notify admins via error popup
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Database version mismatch (Installed: ' . $db_version . ', Current: ' . DB_VERSION . '). Database update required, please import any new SQL files. Cronjobs have been halted.', 'TYPE' => 'errormsg');
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Database version mismatch (Installed: ' . $db_version . ', Current: ' . DB_VERSION . '). Database update required, please import any new SQL files. Cronjobs have been halted.', 'TYPE' => 'alert alert-danger');
|
||||
}
|
||||
if (@$config['version'] !== CONFIG_VERSION) {
|
||||
// Notify admins via error popup
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Configuration file version mismatch (Installed: ' . @$config['version'] . ', Current: ' . CONFIG_VERSION . '). Configuration update required, please check dist config for changes. Cronjobs have been halted.', 'TYPE' => 'errormsg');
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Configuration file version mismatch (Installed: ' . @$config['version'] . ', Current: ' . CONFIG_VERSION . '). Configuration update required, please check dist config for changes. Cronjobs have been halted.', 'TYPE' => 'alert alert-danger');
|
||||
}
|
||||
|
||||
@ -1,2 +1 @@
|
||||
Please ensure the webserver has access to this folder to write the
|
||||
compiled templates.
|
||||
Please ensure the webserver has access to this folder to write the compiled templates.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user