Example #1
0
<?php

if (!defined('_BBS_FUNCS_PHP_')) {
    define('_BBS_FUNCS_PHP_', 1);
    if (!isset($topdir)) {
        $topdir = ".";
    }
    // NOTE: If you want to statically link kbs_bbs phpbbslib into php,
    //       you *MUST* set enable_dl variable to Off in php.ini file.
    if (!defined("BUILD_PHP_EXTENSION") || BUILD_PHP_EXTENSION == 0) {
        @dl("libphpbbslib.so");
    }
    if (!bbs_ext_initialized()) {
        bbs_init_ext();
    }
    chdir(BBS_HOME);
    global $SQUID_ACCL;
    global $BBS_PERM_POSTMASK;
    global $BBS_PERM_NOZAP;
    global $BBS_HOME;
    global $BBS_FULL_NAME;
    //$fromhost=$_SERVER["REMOTE_ADDR"];
    global $fromhost;
    global $fullfromhost;
    global $loginok;
    //global $currentuinfo;
    global $currentuinfo_num;
    //global $currentuser;
    global $currentuuser_num;
    global $cachemode;
    $cachemode = "";
Example #2
0
 /**
  * kbs init
  */
 protected function _kbsExtInstall()
 {
     if (BUILD_PHP_EXTENSION == 0) {
         @dl("libphpbbslib.so");
     }
     chdir(BBS_HOME);
     if (!bbs_ext_initialized()) {
         bbs_init_ext();
     }
 }