Exemplo n.º 1
0
Arquivo: Grw.php Projeto: daolei/grw
 function __construct()
 {
     parent::__construct();
     $this->__initial('Grw');
     $this->PIC = "http://www.grw.name/upload/";
     $this->STATICS = "http://www.grw.name/statics/";
     //ini_set('memory_limit', '-1');
     $this->userid = $_SESSION['Fei_Userid'];
     $this->logs = FeiClass('FeiLog');
     if ($this->__is_ie()) {
         $this->isie = TRUE;
     } else {
         $this->isie = FALSE;
     }
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     $siteurl = "http://www.grw.name";
     $this->CSS_PATH = $siteurl . "/assets/css/";
     $this->JS_PATH = $siteurl . "/assets/js/";
     $this->FONT_PATH = $siteurl . "/assets/font/";
     $this->IMG_PATH = $siteurl . "/assets/img/";
     $this->SITEURL = $siteurl;
     $this->STATICS = $siteurl . "/themes/web3/";
     $this->ABOUTURL = $siteurl . "/index.php?c=content&a=about";
     $this->LOGINURL = $siteurl . "/index.php?c=content&a=login";
     $this->REGISTERURL = $siteurl . "/index.php?c=content&a=register";
     $this->SERVICESURL = $siteurl . "/index.php?c=content&a=services";
     $this->CONTACTURL = $siteurl . "/index.php?c=content&a=contact";
     $this->PROJECTURL = $siteurl . "/index.php?c=content&a=project";
     $this->BLOGURL = $siteurl . "/index.php?c=content&a=blog";
 }
Exemplo n.º 3
0
/**
 * T
 * 多语言实现,翻译函数
 * @param w    默认语言的词语
 */
function T($w)
{
    $method = $GLOBALS['G_Fei']["lang"][FeiController::getLang()];
    if (!isset($method) || 'default' == $method) {
        return $w;
    } elseif (function_exists($method)) {
        return ($tmp = call_user_func($method, $w)) ? $tmp : $w;
    } elseif (is_array($method)) {
        return ($tmp = FeiClass($method[0])->{$method[1]}($w)) ? $tmp : $w;
    } elseif (file_exists($method)) {
        $dict = (require $method);
        return isset($dict[$w]) ? $dict[$w] : $w;
    } else {
        return $w;
    }
}