예제 #1
0
 function BlocksList(&$db)
 {
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Blocks.php";
     $db->Query("SELECT * FROM Z_BlockedUsers WHERE status = '1' ORDER BY blockdate DESC");
     $NumRows = $db->NumRows();
     for ($i = 0; $i < $NumRows; $i++) {
         $Blocks[$i] = $db->GetRow();
     }
     $return = "<fieldset><legend>{$BlocksMessage07}</legend>\n\t\t<table class=\"BlockListTable\">\n        \t<tr>\n\t\t\t\t<th align=\"center\">{$BlocksMessage01}</th>\n            \t<th align=\"center\">{$BlocksMessage02}</th>\n            \t<th align=\"center\">{$BlocksMessage03}</th>\n            \t<th align=\"center\">{$BlocksMessage04}</th>\n            \t<th align=\"center\">{$BlocksMessage05}</th>\n            \t<th align=\"center\">{$BlocksMessage06}</th>\n            \t<th></th>\n          \t</tr>";
     $dateClass = new Date();
     $manClass = new Manager();
     for ($i = 0; $i < $NumRows; $i++) {
         $data = $Blocks[$i];
         $return .= "\n\t\t\t<tr>\n\t\t\t\t<td align=\"center\">" . $data['memb___id'] . "</td>\n            \t<td class=\"BlockListCause\">" . $data['cause'] . "</td>\n            \t<td align=\"center\">" . $dateClass->DateFormat($data['blockdate']) . "</td>\n            \t<td align=\"center\">" . $dateClass->DateFormat($data['unblockdate']) . "</td>\n            \t<td align=\"center\">" . $manClass->GetUserName($data['admin'], $db) . "</td>\n            \t<td align=\"center\">";
         if (strlen($data['image']) > 10) {
             $return .= "\n\t\t\t\t\t<a href=\"" . $data['image'] . "\" target=\"blank\">\n\t\t\t\t\t<div id=\"icon\" style=\"cursor:pointer;\" align=\"center\" class=\"ui-state-default ui-corner-all\"  title=\"{$BlocksMessage22}\">\n\t\t\t\t\t<span class=\"ui-widget ui-icon ui-icon-image\"></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t</a>";
         }
         $return .= "\n\t\t\t\t</td>\n            \t<td align=\"center\">\n\t\t\t\t\t";
         if ($_SESSION['ManagerId'] == $data['admin'] || $manClass->GetUserLevel($_SESSION['ManagerId'], $db) > $manClass->GetUserLevel($data['admin'], $db) || $manClass->GetUserLevel($data['admin'], $db) >= 9) {
             $return .= "\n\t\t\t\t\t\t<div id=\"icon\" style=\"cursor:pointer; float:left;\" align=\"center\" class=\"ui-state-default ui-corner-all\" onclick=\"UnBlock('" . $data['idx'] . "')\" title=\"{$BlocksMessage08}\">\n\t\t\t\t\t\t<span class=\"ui-widget ui-icon ui-icon-check\"></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"icon\" style=\"cursor:pointer; float:left;\" align=\"center\" class=\"ui-state-default ui-corner-all\" onclick=\"EditBlock('" . $data['idx'] . "')\" title=\"{$BlocksMessage09}\">\n\t\t\t\t\t\t<span class=\"ui-widget ui-icon ui-icon-pencil\"></span>\n\t\t\t\t\t\t</div>";
         }
         $return .= "\n\t\t\t\t</td>\n          \t</tr>";
     }
     $return .= "</table></fieldset>";
     $return .= "\n\t\t<script>\n\t\t\tfunction Go()\n\t\t\t{\n\t\t\t\t\$('.BlockListTable tbody tr:even').addClass('HelpDeskTicketRowEven');\n\t\t\t\t\$('.BlockListTable tbody tr:odd').addClass('HelpDeskTicketRowOdd');\n\t\t\t}\n\t\t\t\n\t\t\t\$(function()\n\t\t\t{\n\t\t\t\tsetTimeout(Go, 100);\n\t\t\t});\n\t\t</script>\n\t\t";
     return $return;
 }
예제 #2
0
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerCreditShopLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit($ManagerMessage01);
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/CreditShop.class.php";
$cs = new CreditShop();
switch ($_GET['action']) {
    default:
    case "new":
        echo $cs->NewPackForm($db);
        break;
    case "saveNew":
        echo $cs->NewPack($db, $_POST);
        break;
    case "manage":
예제 #3
0
파일: WebShop.php 프로젝트: BieeeLC/OpenWeb
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerWebShopLogLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit($ManagerMessage01);
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/WebShop.class.php";
$ws = new WebShop();
switch ($_GET['action']) {
    default:
    case "log":
        echo $ws->LogListForm($db);
        break;
    case "results":
        echo $ws->GetResults($db, $_POST);
        break;
    case "cancelPurchases":
예제 #4
0
 function ScheduledEvents(&$db)
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Date.class.php";
     $dateClass = new Date();
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Events.php";
     require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
     $mn = new Manager();
     $db->Query("SELECT * FROM Z_Currencies ORDER BY idx");
     $NumCurrencies = $db->NumRows();
     $Currencies = array();
     for ($i = 0; $i < $NumCurrencies; $i++) {
         $Currencies[$i + 1] = $db->GetRow();
     }
     $db->Query("SELECT idx,title FROM Z_Events");
     while ($data = $db->GetRow()) {
         $EventNames[$data[0]] = $data[1];
     }
     $return = "\n\t\t<table class=\"BlockListTable\">\n        \t<tr>\n\t\t\t\t<th align=\"center\">{$EventsMessage027}</th>\n            \t<th align=\"center\">{$EventsMessage028}</th>\n            \t<th align=\"center\">{$EventsMessage029}</th>\n\t\t\t\t<th align=\"center\">{$EventsMessage040}</th>\n\t\t\t\t<th align=\"center\">{$EventsMessage031}</th>\n            \t<th align=\"center\"></th>\n            \t<th></th>\n          \t</tr>";
     $db->Query("SELECT * FROM Z_EventsSchedule WHERE winner IS NULL ORDER BY date ASC");
     $numrows = $db->NumRows();
     for ($i = 0; $i < $numrows; $i++) {
         $ScheduledEvents[$i] = $db->GetRow();
     }
     if (is_array($ScheduledEvents)) {
         foreach ($ScheduledEvents as $k => $v) {
             $getColor = "";
             if ($v['date'] < date("Y-m-d H:i:s")) {
                 $getColor = "style=\"color:#F00\"";
             }
             $disabled = "";
             if ($_SESSION['ManagerId'] != $v['by']) {
                 if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) <= $mn->GetUserLevel($v['by'], $db)) {
                     $disabled = "disabled=\"disabled\"";
                 }
             }
             $Prizes = "";
             foreach ($Currencies as $Key => $Value) {
                 if ($v["currency" . $Key] > 0) {
                     $Prizes .= $v["currency" . $Key] . " " . $Value['name'] . "<br />";
                 }
             }
             $return .= "\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"center\">" . $EventNames[$v['event']] . "</td>\n\t\t\t\t\t<td align=\"center\">" . $mn->GetUserName($v['by'], $db) . "</td>\n\t\t\t\t\t<td align=\"center\" {$getColor}>" . $dateClass->DateFormat($v['date']) . " " . $dateClass->TimeFormat($v['date'], "h") . "</td>\n\t\t\t\t\t<td align=\"center\">{$Prizes}</td>\n\t\t\t\t\t<td align=\"center\">\n\t\t\t\t\t\t<input type=\"text\" name=\"winner_" . $v['idx'] . "\" id=\"winner_" . $v['idx'] . "\" size=\"10\" maxlength=\"10\" {$disabled} />\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t";
             if ($_SESSION['ManagerId'] == $v['by'] || $mn->GetUserLevel($_SESSION['ManagerId'], $db) > $mn->GetUserLevel($v['by'], $db)) {
                 $return .= "\n\t\t\t\t\t\t\t<div id=\"icon\" style=\"cursor:pointer; float:left;\" align=\"center\" class=\"ui-state-default ui-corner-all\" onclick=\"EventPrize('" . $v['idx'] . "')\" title=\"{$EventsMessage032}\">\n\t\t\t\t\t\t\t\t<span class=\"ui-widget ui-icon ui-icon-check\"></span>\n\t\t\t\t\t\t\t</div>\n\t\t\n\t\t\t\t\t\t\t<div id=\"icon\" style=\"cursor:pointer; float:left;\" align=\"center\" class=\"ui-state-default ui-corner-all\" onclick=\"CancelScheduled('" . $v['idx'] . "')\" title=\"{$EventsMessage033}\">\n\t\t\t\t\t\t\t\t<span class=\"ui-widget ui-icon ui-icon-closethick\"></span>\n\t\t\t\t\t\t\t</div>";
             }
             $return .= "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>";
         }
     }
     $return .= "</table>";
     return $return;
 }
예제 #5
0
파일: System.php 프로젝트: BieeeLC/OpenWeb
@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/System.class.php";
$sys = new System($db);
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < 9) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit($ManagerMessage01);
}
switch ($_GET['action']) {
    //User info
    default:
    case "status":
        echo $sys->Status();
        break;
    case "update":
        echo $sys->Update(1);
        break;
    case "updateNow":
        echo $sys->Update(2);
예제 #6
0
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/WebServices.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
if (!isset($WebServiceGeneralSwitch) || $WebServiceGeneralSwitch !== true || $mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerWebServicesLevel) {
    $db->Disconnect();
    die;
}
$db->Disconnect();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $WebServiceURL . $_POST['param']);
curl_exec($ch);
curl_close($ch);
예제 #7
0
파일: Config.php 프로젝트: BieeeLC/OpenWeb
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerConfigLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit("{$ManagerMessage01}");
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Config.class.php";
$cfg = new Config();
switch ($_GET['action']) {
    default:
        echo $cfg->ViewConfig($_GET['action']);
        break;
    case "saveConfig":
        echo $cfg->SaveConfig($_POST);
        break;
}
$db->Disconnect();
예제 #8
0
 function ManagersList(&$db)
 {
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Users.php";
     require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Language/{$MainLanguage}/GenericMessages.php";
     require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
     $mn = new Manager();
     if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) >= $ManagerManagerLevel) {
         $return = "";
         $return .= "\n\t\t\t<fieldset>\n\t\t\t<legend>{$UsersMessage048}</legend>\n\t\t\t<table class=\"UsersManagersListTable\">\n\t\t\t<tbody id=\"UsersManagersListTable\">\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"4\" align=\"left\">{$UsersMessage049}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>{$UsersMessage044}</th>\n\t\t\t\t<th>{$UsersMessage045}</th>\n\t\t\t\t<th>{$UsersMessage046}</th>\n\t\t\t\t<th>{$UsersMessage047}</th>\n\t\t\t</tr>";
         $db->Query("SELECT * FROM Z_Users ORDER BY id");
         $NumRows = $db->NumRows();
         for ($i = 0; $i < $NumRows; $i++) {
             $data = $db->GetRow();
             $return .= "\n\t\t\t\t<tr>\n\t\t\t\t\t<td><input type=\"text\" name=\"username\" id=\"username\" maxlength=\"20\" value=\"" . $data['username'] . "\" /></td>\n\t\t\t\t\t<td><input type=\"text\" name=\"password\" id=\"password\" maxlength=\"20\" value=\"" . $data['password'] . "\" /></td>\n\t\t\t\t\t<td><input type=\"text\" name=\"realname\" id=\"realname\" maxlength=\"50\" value=\"" . $data['realname'] . "\" /></td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<select name=\"userlevel\" id=\"userlevel\">";
             for ($j = 0; $j < 10; $j++) {
                 $data['userlevel'] == $j ? $selected = "selected=\"selected\"" : ($selected = "");
                 $return .= "\n\t\t\t\t\t\t\t<option value=\"{$j}\" {$selected}>{$j}</option>\n\t\t\t\t\t\t\t";
             }
             $return .= "\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>";
         }
         $return .= "\n\t\t\t\t</tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t<input type=\"button\" name=\"button\" id=\"button\" value=\"{$UsersMessage039}\" onclick=\"SaveManagers()\" />\n\t\t\t\t\t</td>\n\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t<input type=\"button\" name=\"button\" id=\"button\" value=\"{$UsersMessage050}\" onclick=\"AddManager()\" />\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t</fieldset>\n\t\t\t";
         return $return;
     } else {
         return $GenericMessage07;
     }
 }
예제 #9
0
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerResellerLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit("{$ManagerMessage01}");
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Reseller.class.php";
$rs = new Reseller();
switch ($_GET['action']) {
    default:
    case "manage":
        echo $rs->ManageResellers($db);
        break;
    case "new":
        echo $rs->NewResellerForm();
        break;
    case "saveNewReseller":
예제 #10
0
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerDonationLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit($ManagerMessage01);
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Donations.class.php";
$dn = new Donations();
switch ($_GET['action']) {
    default:
    case "confirmations":
        echo $dn->Confirmations($db);
        break;
    case "viewConfirmation":
        echo $dn->ViewConfirmation($db, $_GET['idx']);
        break;
    case "cancelConfirmation":
예제 #11
0
파일: Users.php 프로젝트: BieeeLC/OpenWeb
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerAccountViewLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit("{$ManagerMessage01}");
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Users.class.php";
$us = new Users($db);
switch ($_GET['action']) {
    //User info
    default:
    case "find":
        echo $us->FindUserForm();
        break;
    case "userInfo":
        echo $us->ViewUserInfo($db, $_GET['memb___id']);
        break;
예제 #12
0
파일: GuideDB.php 프로젝트: BieeeLC/OpenWeb
<?php

@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerGuidDBLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit($ManagerMessage01);
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/GuideDB.class.php";
$gdb = new GuideDB();
switch ($_GET['action']) {
    default:
    case "manage":
        echo $gdb->ManageForm($db);
        break;
    case "new":
        echo $gdb->NewGuideForm($db);
        break;
    case "saveNewGuide":
예제 #13
0
파일: News.php 프로젝트: BieeeLC/OpenWeb
@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/News.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerNewsLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit("{$ManagerMessage01}");
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/News.class.php";
$nw = new News($db);
switch ($_GET['action']) {
    case "new":
        echo $nw->AddNewForm();
        break;
    case "AddNew":
        echo $nw->AddNew($db, $_POST);
        break;
    case "EditNew":
        echo $nw->EditNewForm($_GET['id'], $db);
예제 #14
0
//		die("Dupe Finder not authorized.<br />Ask at www.leoferrarezi.com");
//	}
//}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/DupeFinder.class.php";
$it = new DupeFinder();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerDupeFinderLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit($ManagerMessage01);
}
switch ($_GET['action']) {
    default:
    case "DupeFinder":
        echo $it->DupeFinderStart();
        break;
    case "DupeFinderStep1":
        $it->DupeFinderStep1();
        break;
    case "DupeFinderStep1Frame":
        $it->DupeFinderStep1Frame($db);
        break;
예제 #15
0
@session_start();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/HelpDesk.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerHelpDeskLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit("{$ManagerMessage01}");
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/HelpDesk.class.php";
$hd = new HelpDesk($db);
switch ($_GET['action']) {
    //Pending tickets
    default:
    case "waiting":
        echo $hd->GetTicketsList(0, $db);
        break;
        //Waiting user
    //Waiting user
    case "answered":
예제 #16
0
//	}
//}
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Main.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/MailService.php";
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Manager.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Sanity.class.php";
$sanity = new Sanity();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/LoggedOnly.class.php";
new LoggedOnly();
require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/IniSets.class.php";
new IniSets();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Manager.class.php";
$mn = new Manager();
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php";
$db = new MuDatabase();
if ($mn->GetUserLevel($_SESSION['ManagerId'], $db) < $ManagerMailListLevel) {
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit("{$ManagerMessage01}");
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/MailList.class.php";
$ml = new MailList($db);
switch ($_GET['action']) {
    case "new":
        echo $ml->AddMessageForm();
        break;
    case "AddMessage":
        echo $ml->AddMessage($db, $_POST);
        break;
    case "EditMessage":
        echo $ml->EditMessageForm($_GET['idx'], $db);