Esempio n. 1
0
<?php

ini_set("display_errors", "true");
require_once "loader.inc.php";
require_once "./common/context.class.php";
require_once "./common/contextStorage.class.php";
$userLoginAppName = "userLogin";
$adminPortalName = "adminPortalPartner";
$partnerAppName = "partnerApp";
$textName = "texts";
$contextStorage = new ContextStorage();
$context = $contextStorage->loadContext($adminPortalName);
$mysql = load_mysql();
$texts = load_texts("lt", $textName, $mysql);
$userLoginApp = load_userLoginApp($userLoginAppName, $mysql, $texts);
$ctx = $contextStorage->loadContext($userLoginAppName);
$userLoginApp->setContext($ctx);
$ctx = $contextStorage->loadContext($textName);
$texts->setContext($ctx);
$texts->init();
$partnerApp = load_partnerApp($partnerAppName, $mysql, $texts);
$ctx = $contextStorage->loadContext($partnerAppName);
$partnerApp->setContext($ctx);
if ($partnerApp->chechProjectCruid()) {
    if (!$partnerApp->chechPartnerInfo()) {
        exit("Nenustatytas partneris");
    }
    if (!$partnerApp->getAllPartnerProjects()) {
        exit("Nenustatyti partnerio projectai");
    }
    include "./view/partnerPage.php";
Esempio n. 2
0
<?php

define('CONFIGFILE', str_replace('\\', '/', $_SERVER['DOCUMENT_ROOT']) . '/config.php');
if (!file_exists(CONFIGFILE)) {
    die('Config file not found');
}
require_once CONFIGFILE;
date_default_timezone_set('UTC');
global $mydb;
require_once 'errors.php';
require_once 'utils.php';
require_once 'db.php';
require_once 'spam.php';
require_once 'core.php';
load_mysql();