示例#1
0
function show_default($message)
{
    global $logged_user_name, $mess;
    if ($logged_user_name != '') {
        if (check_is_user_session_active($logged_user_name)) {
            if ($message == '') {
                $message = $mess[164];
            }
            place_message($mess[164], $message, basename(__FILE__));
            print_configure_page();
            return;
        }
    }
    if ($message == '') {
        $message = $mess[42];
    }
    place_message($mess[164], $message, basename(__FILE__));
}
示例#2
0
function place_message($title, $message, $link)
{
    global $phpExt;
    global $mess, $font, $normalfontcolor, $selectedfontcolor, $homeurl;
    global $uploadcentercaption, $logged_user_name, $user_status, $page_title;
    global $tablecolor, $bordercolor, $headercolor, $headerfontcolor;
    if ($logged_user_name == '' || !check_is_user_session_active($logged_user_name)) {
        $logged_user_name = 'root';
        $user_status = ANONYMOUS;
    }
    page_header($page_title);
    echo "\n\t<div align=\"center\">\n\t  <table border=\"0\" width=\"90%\" bgcolor=\"{$bordercolor}\" cellpadding=\"4\" cellspacing=\"1\">\n\t    <tr>\n\t      <td align=\"left\" bgcolor=\"{$headercolor}\" colspan=\"4\">\n\t        <table border=\"0\" width=\"100%\">\n\t          <tr>\n\t            <th align=\"left\" bgcolor=\"{$headercolor}\" valign=\"middle\" width=\"50%\">\n\t              <h2><font color=\"{$headerfontcolor}\" size=\"5\"><b>{$uploadcentercaption}</b></font></h1>\n\t            </th>\n\t            <td align=\"right\" bgcolor=\"{$headercolor}\" valign=\"middle\" width=\"50%\" nowrap>\n\t              <p><font face=\"{$font}\" size=\"1\" color=\"{$headerfontcolor}\">\n\t                {$title}</font></p>\n\t            </td>\n\t          </tr>\n\t        </table>\n\t      </td>\n\t    </tr>\n\n\t    <tr>\n\t      <td align=\"left\" bgcolor=\"{$tablecolor}\" valign=\"middle\">\n\t        <table border=\"0\" width=\"100%\">\n\t          <tr>\n\t            <th align=\"left\" valign=\"middle\" width=\"90%\">\n\t              <font size=\"1\" face=\"{$font}\" color=\"{$selectedfontcolor}\">&raquo;</font>\n\n\t              <font size=\"1\" face=\"{$font}\" color=\"{$normalfontcolor}\">\n\t";
    if ($user_status == ANONYMOUS) {
        echo $message;
    } else {
        echo $logged_user_name . ": " . $message;
    }
    echo "      \t</font>\n\t\t\t\t</th>\n\t            <td align=\"right\" valign=\"middle\" width=\"10%\">\n\t              <a href=\"{$homeurl}\"><img src=\"images/home.gif\"  align=\"ABSMIDDLE\" alt=\"{$mess['25']}\" border=\"0\" /></a>&nbsp;\n\t              <a href=\"{$link}?" . SID . "\"><img src=\"images/refresh.gif\"  align=\"ABSMIDDLE\" alt=\"{$mess['97']}\" border=\"0\" /></a>&nbsp;";
    if ($user_status == ADMIN) {
        echo "    <a href=\"configure." . $phpExt . "?" . SID . "\"><img src=\"images/config.gif\"  align=\"ABSMIDDLE\" alt=\"{$mess['132']}\" border=\"0\" /></a>&nbsp;\n\t\t\t\t  <a href=\"usrmanag." . $phpExt . "?" . SID . "\"><img src=\"images/users.gif\"  align=\"ABSMIDDLE\" alt=\"{$mess['137']}\" border=\"0\" /></a>&nbsp;";
    }
    if ($user_status != ANONYMOUS) {
        echo "    <a href=\"login." . $phpExt . "?" . SID . "\"><img src=\"images/user.gif\"  align=\"ABSMIDDLE\" alt=\"{$mess['81']}\" border=\"0\" /></a>&nbsp;";
    }
    echo "       </td>\n\t             <td align=\"right\" valign=\"middle\" width=\"10%\">";
    // Show login/logout message
    echo '
	            </td>
	          </tr>
	        </table>
	      </td>
	   </tr>
	</table>
	<br>
	';
}
示例#3
0
if (!isset($skinindex)) {
    $skinindex = 0;
}
if ($skinindex > count($skins)) {
    $skinindex = 0;
}
$bordercolor = $skins[$skinindex]["bordercolor"];
$headercolor = $skins[$skinindex]["headercolor"];
$tablecolor = $skins[$skinindex]["tablecolor"];
$lightcolor = $skins[$skinindex]["lightcolor"];
$headerfontcolor = $skins[$skinindex]["headerfontcolor"];
$normalfontcolor = $skins[$skinindex]["normalfontcolor"];
$selectedfontcolor = $skins[$skinindex]["selectedfontcolor"];
$activationcode = USER_DISABLED;
$user_status = ANONYMOUS;
if ($logged_user_name != '' && !check_is_user_session_active($logged_user_name)) {
    $user_status = ADMIN;
    $logged_user_name = 'Admin';
}
if ($user_status == ANONYMOUS) {
    $logged_user_name = '';
}
if ($activationcode != USER_ACTIVE) {
    $user_status = ANONYMOUS;
    $logged_user_name = '';
}
if (!isset($languages) || !is_array($languages)) {
    $languages = available_languages($languages_folder_name);
    if ($major > 4 || $release > 0) {
        $_SESSION['languages'] = $languages;
    } else {