示例#1
0
文件: common.php 项目: nstungxd/F2CA5
    $orgid = $curORGID;
    // $orgUsrObj->getiOrganizationID();
    // $reqVerification   = $opf[0]['eReqVerification'];
    /*$encInvoice = $opf[0]['eSecureImportExportInvoice'];
      if($encInvoice == 'Yes')
          $encInvoice='y';
      $encPO = $opf[0]['eSecureImportExportPO'];
      if ($encPO == 'Yes')
          $encPO='y';*/
    if ($usrtype == 'Admin') {
        $sess_usertype = 'orgadmin';
        $usersec = 'organization';
        $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] = 'OA';
    }
}
$staticarr_top = $stPageObj->getStaticPageDetail("*", "AND vFile = 'Top Welcome Text'");
//Prints($_SESSION['SET_URL']);exit;
if ($HAVE_HTACCESS == 'No') {
    if (isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . 'SET_URL']) && $_SESSION['SESS_' . PRJ_CONST_PREFIX . 'SET_URL'] != '') {
        $currentUrl = $_SESSION['SESS_' . PRJ_CONST_PREFIX . 'SET_URL'];
    } else {
        $currentUrl = SITE_URL_DUM . str_replace(SITE_FOLDER . 'index.php/', '', $_SERVER['REQUEST_URI']);
    }
    $currentUrl = SITE_URL_DUM . str_replace(SITE_FOLDER . 'index.php/', '', $_SERVER['REQUEST_URI']);
} else {
    if (isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . 'SET_URL']) && $_SESSION['SESS_' . PRJ_CONST_PREFIX . 'SET_URL'] != '') {
        $currentUrl = $_SESSION['SESS_' . PRJ_CONST_PREFIX . 'SET_URL'];
    } else {
        $currentUrl = SITE_URL_DUM . str_replace(SITE_FOLDER, '', $_SERVER['REQUEST_URI']);
    }
    $currentUrl = SITE_URL_DUM . str_replace(SITE_FOLDER, '', $_SERVER['REQUEST_URI']);
示例#2
0
 * @package		addstaticPages.inc.php
*/
if (!isset($stPageObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StaticPage.php";
    $stPageObj = new StaticPage();
}
$gdbobj->getRequestVars();
$view = GetVar("view");
$iSPageId = GetVar("iSPageId");
$actionfile = GetVar("file");
$arr = array();
if (count($_POST) > 0) {
    $arr[0] = $_POST;
} else {
    if ($view == 'edit') {
        $arr = $stPageObj->getStaticPageDetail("*", "AND iSPageId = '{$iSPageId}'");
        //prints($arr);exit;
    } else {
        $view = "add";
    }
}
$arr[0]['vFile'] = isset($arr[0]['vFile']) ? $arr[0]['vFile'] : '';
include_once CK_EDITOR_PATH . 'ckeditor.php';
include_once CK_EDITOR_PATH . 'ckfinder/ckfinder.php';
$ckeditor = new CKEditor();
$ckeditor->basePath = CK_EDITOR_URL;
$ckfinder = new CKFinder();
$ckfinder->BasePath = SITE_FOLDER . 'components/ckeditor/ckfinder/';
// Note: BasePath property in CKFinder class starts with capital letter
$ckfinderpath = SITE_FOLDER . 'components/ckeditor/ckfinder/';
//echo $ckfinder->BasePath;exit;