Subversion Repositories ALCASAR

Rev

Rev 3037 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3037 Rev 3287
Line 21... Line 21...
21
 
21
 
22
require_once PSI_APP_ROOT.'/includes/autoloader.inc.php';
22
require_once PSI_APP_ROOT.'/includes/autoloader.inc.php';
23
 
23
 
24
require_once PSI_APP_ROOT.'/read_config.php';
24
require_once PSI_APP_ROOT.'/read_config.php';
25
 
25
 
26
$file = isset($_GET['name']) ? basename(htmlspecialchars($_GET['name'])) : null;
26
$file = isset($_GET['name']) ? basename(htmlspecialchars(trim($_GET['name']))) : null;
27
$plugin = isset($_GET['plugin']) ? basename(htmlspecialchars($_GET['plugin'])) : null;
27
$plugin = isset($_GET['plugin']) ? basename(htmlspecialchars(trim($_GET['plugin']))) : null;
28
$script = null;
28
$script = null;
29
 
29
 
30
if ($file != null && $plugin == null) {
30
if ($file != null && $plugin == null) {
31
    if (strtolower(substr($file, 0, 6)) == 'jquery') {
31
    if (strtolower(substr($file, 0, 10)) == 'phpsysinfo') {
32
        $script = PSI_APP_ROOT.'/js/jQuery/'.$file;
32
        $script = PSI_APP_ROOT.'/js/'.$file;
-
 
33
    } elseif (strtolower($file) == 'jquery') {
-
 
34
        $script = PSI_APP_ROOT.'/js/common/jquery';
33
    } elseif (strtolower(substr($file, 0, 10)) == 'phpsysinfo') {
35
    } elseif (strtolower(substr($file, 0, 7)) == 'jquery.') {
34
        $script = PSI_APP_ROOT.'/js/phpSysInfo/'.$file;
36
        $script = PSI_APP_ROOT.'/js/dynamic/'.$file;
35
    } else {
37
    } else {
36
        $script = PSI_APP_ROOT.'/js/vendor/'.$file;
38
        $script = PSI_APP_ROOT.'/js/bootstrap/'.$file;
37
    }
39
    }
38
} elseif ($file == null && $plugin != null) {
40
} elseif ($file == null && $plugin != null) {
39
    $script = PSI_APP_ROOT.'/plugins/'.strtolower($plugin).'/js/'.strtolower($plugin);
41
    $script = PSI_APP_ROOT.'/plugins/'.strtolower($plugin).'/js/'.strtolower($plugin);
40
} elseif ($file != null && $plugin != null) {
42
} elseif ($file != null && $plugin != null) {
41
    $script = PSI_APP_ROOT.'/plugins/'.strtolower($plugin).'/js/'.strtolower($file);
43
    $script = PSI_APP_ROOT.'/plugins/'.strtolower($plugin).'/js/'.strtolower($file);