verzia 1.9, 2012/09/28 18:49:48 |
verzia 1.10, 2015/01/20 15:20:17 |
|
|
* http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
*/ |
*/ |
|
|
/* $Platon: Metafox/admin/_core.php,v 1.8 2012-05-14 17:56:52 igor Exp $ */ |
/* $Platon: Metafox/admin/_core.php,v 1.9 2012-09-28 18:49:48 nepto Exp $ */ |
|
|
/* MAINTAINANCE: This file is maintained in Metafox project and distributed |
/* MAINTAINANCE: This file is maintained in Metafox project and distributed |
across the particular projects accordingly. */ |
across the particular projects accordingly. */ |
Riadok 121 if (! $ezin_auth->getAuth()) { // not lo |
|
Riadok 121 if (! $ezin_auth->getAuth()) { // not lo |
|
} |
} |
if ($ok) { |
if ($ok) { |
echo '<strong><big>·</big></strong> '; |
echo '<strong><big>·</big></strong> '; |
echo '<a href="'.$ar['link'].'">'.$ar['caption'].'</a><br>'."\n"; |
echo '<a href="'.$ezin_cfg['url'].$ezin_sys['dir']['admin'].'/'.$ar['link'].'">'.$ar['caption'].'</a><br>'."\n"; |
} |
} |
} |
} |
|
|
Riadok 136 if (! $ezin_auth->getAuth()) { // not lo |
|
Riadok 136 if (! $ezin_auth->getAuth()) { // not lo |
|
*/ |
*/ |
case '': |
case '': |
require 'inc-html/welcome.html'; |
require 'inc-html/welcome.html'; |
|
$results = ezin_admin_db_check_run(); // Check after login |
|
foreach($results as $result) { |
|
switch($result['result']) { |
|
case 1: |
|
// TEST OK |
|
break; |
|
case 2: |
|
echo "Info: DB fix successful, Application: <b>$result[app]</b>, Check title: <b>$result[title]</b><br>"; |
|
break; |
|
default: |
|
echo "Error: DB fix failed, Application: <b>$result[app]</b>, Check title: <b>$result[title]</b>, Error code: <b>$result[result]</b><br>"; |
|
break; |
|
} |
|
} |
break; |
break; |
|
|
/* |
/* |
Riadok 143 if (! $ezin_auth->getAuth()) { // not lo |
|
Riadok 157 if (! $ezin_auth->getAuth()) { // not lo |
|
*/ |
*/ |
case 'file_management': |
case 'file_management': |
if (ezin_admin_check_list_privileges($ezin_user['role_file_management'])) { |
if (ezin_admin_check_list_privileges($ezin_user['role_file_management'])) { |
$ezin_admin_orig_dir = getcwd(); |
$ezin_admin_orig_dir = getcwd(); |
Platon::chdir_back($ezin_sys['dir']['admin']); |
Platon::chdir_back($ezin_sys['dir']['admin']); |
if (@file_exists($ezin_sys['dir']['upload'])) { |
if (@file_exists($ezin_sys['dir']['upload'])) { |
chdir('lib/phpWebFileManager/'); |
chdir('lib/phpWebFileManager/'); |
Riadok 159 if (! $ezin_auth->getAuth()) { // not lo |
|
Riadok 173 if (! $ezin_auth->getAuth()) { // not lo |
|
break; |
break; |
|
|
/* |
/* |
|
* Custom applications |
|
*/ |
|
case 'application': |
|
$parts = explode('/', $_GET['link']); |
|
if (count($parts) < 4) { |
|
require 'inc-html/app-noaction.html'; |
|
break; |
|
} |
|
$info = ezin_admin_menu_info($parts[2], $parts[3]); |
|
if ($info === false) { |
|
require 'inc-html/app-noinfo.html'; |
|
break; |
|
} |
|
$app_file_inc = $ezin_sys['dir']['root'].$ezin_sys['dir']['apps'].'/' |
|
.$info['app_dir'].'/'.$info['inc_file']; |
|
if (!file_exists($app_file_inc) |
|
|| !is_readable($app_file_inc)) |
|
{ |
|
require 'inc-html/app-notexistsfile.html'; |
|
break; |
|
} |
|
global $ezin_admin_app_action; |
|
$ezin_admin_app_action = $parts[3]; |
|
require $app_file_inc; |
|
break; |
|
|
|
/* |
* Database manipulation action |
* Database manipulation action |
*/ |
*/ |
default: |
default: |