예제 #1
0
}

</style>
</head>

<body>
<?php 
include DIR_WS_INCLUDES . 'header.php';
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding:0 0 0 4px">

<?php 
error_log(print_r($result[0], 1));
while ($row = tep_db_fetch_array($result)) {
    if (!AdminPermission($row['dash_permission'])) {
        continue;
    }
    $table[$i] = $row['dash_table'];
    $table_file[$i] = DIR_FS_DASH_BOX . $table[$i] . ".php";
    $sort[$i] = $row['sort_order'];
    if (@is_file($table_file[$i])) {
        include $table_file[$i];
        $str[$i] = $table[$i];
        $obj[$i] = new $str[$i]();
        $t_cols[$i] = $obj[$i]->table_cols;
        $t_rows[$i] = $obj[$i]->table_rows;
        $i++;
    }
}
$j = 0;
예제 #2
0
require DIR_WS_CLASSES . 'currencies.php';
$currencies = new currencies();
$languages = tep_get_languages();
$languages_array = array();
$languages_selected = DEFAULT_LANGUAGE;
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
    $languages_array[] = array('id' => $languages[$i]['code'], 'text' => $languages[$i]['name']);
    if ($languages[$i]['directory'] == $language) {
        $languages_selected = $languages[$i]['code'];
    }
}
//  $AdminFiles=GetAdminFiles();
$dash_qry = tep_db_query("SELECT dash_name,dash_permission FROM admin_dash GROUP BY dash_name ORDER BY dash_name!='" . addslashes(getAdminOption('default_dash')) . "'");
$Dashboards = array();
while ($dash_row = tep_db_fetch_array($dash_qry)) {
    if (AdminPermission($dash_row['dash_permission'])) {
        $Dashboards[] = array(id => 'dashboard.php?dash=' . urlencode($dash_row['dash_name']), 'text' => $dash_row['dash_name']);
    }
}
if (isset($_COOKIE['iframe_src_myframe'])) {
    $FramePage = $_COOKIE['iframe_src_myframe'];
}
if (isset($FramePage)) {
    $FramePageFile = preg_replace('|.*/|', '', str_replace(' ', '+', $FramePage));
    foreach ($Dashboards as $dash) {
        if ($FramePageFile == $dash['id']) {
            $Dashboard = $FramePageFile;
        }
    }
}
if (!isset($Dashboard)) {