Esempio n. 1
0
function libraryLoading()
{
    //Loading the Error Codes
    reqLib('errorCodes', 'loadCodes');
    //load pear library class
    reqLib('eyePear', 'loadPear');
}
Esempio n. 2
0
        $type = "";
    }
    //call to extern to throw the file
    //Only start session if we already have a session (keep in mind that extern doesn't have session)
    reqLib('eyeSessions', 'checkAndSstartSession');
    service('extern', 'getFile', array($myExtern, $type), 1);
} elseif (isset($_GET['api'])) {
    require_once EYE_ROOT . '/xml-rpc/server.eyecode';
    xmlrpc_parseRequest();
} else {
    //Loading eyeWidgets definitions
    reqLib('eyeWidgets', 'loadWidgets');
    //Starting a simple session
    reqLib('eyeSessions', 'startSession');
    //If widget table does not exist, create it
    reqLib('eyeWidgets', 'checkTable');
    //if a shorturl is present
    if (!empty($myInfo)) {
        //check if the shorturl exists, and get the msg and checknum associated to it
        if (is_array($_SESSION['shortUrls'][$myInfo])) {
            $msg = $_SESSION['shortUrls'][$myInfo]['msg'];
            $checknum = $_SESSION['shortUrls'][$myInfo]['checknum'];
            $_GET['msg'] = $msg;
            $_REQUEST['msg'] = $msg;
            $_GET['checknum'] = $checknum;
            $_REQUEST['checknum'] = $checknum;
        }
    }
    //Checking if checknum and message are set
    if (isset($_GET['checknum']) && !empty($_GET['checknum'])) {
        if (isset($_REQUEST['params']) && !empty($_REQUEST['params'])) {
Esempio n. 3
0
//Loading the service configuration from XML
loadServiceConfig();
define('IPHONE_PATH', '../iphone/');
//Hiding warnings and notices if Debug Mode is Off
if (EYEOS_DEBUG_MODE == 0) {
    error_reporting(0);
} elseif (EYEOS_DEBUG_MODE == 2) {
    error_reporting(E_ALL);
} else {
    error_reporting(E_ERROR);
    //TODO: SUPPORT E_ALL
}
//Loading the Error Codes
reqLib('errorCodes', 'loadCodes');
//load pear library class
reqLib('eyePear', 'loadPear');
//Setting the Running Log check var to 0
global $LOG_RUNNING;
$LOG_RUNNING = 0;
//Loading the Security Service (sec) if eyeOS Security is turned on (by default is On)
if (EYEOS_SECURITY == 1) {
    service('sec', 'start');
}
//set the default charset
ini_set('default_charset', DEFAULT_CHARSET);
session_start();
include_once IPHONE_PATH . 'lib/message.eyecode';
if (isset($_SESSION['auth']) && $_SESSION['auth'] == 1) {
    global $currentUser;
    $currentUser = $_SESSION['user'];
}