コード例 #1
0
ファイル: push_info.php プロジェクト: eyoom/eyoom_builder
}
$push_file = $push_path . '/push.' . $mb_id . '.php';
if (file_exists($push_file)) {
    include_once $push_file;
} else {
    exit;
}
// 푸시적용 항목
$push_item = array('respond', 'memo', 'following', 'unfollow', 'likes', 'guest', 'levelup');
foreach ($push_item as $val) {
    if ($push[$val]) {
        $item = $val;
        $push_tocken = true;
        break;
    }
}
// 푸시가 있다면 넘겨주기
if ($push_tocken) {
    include_once "../../classes/json.class.php";
    $json = new Services_JSON();
    $output = $json->encode($push);
    // 푸쉬알람 등록
    if (!$push[$item]['alarm']) {
        $push[$item]['alarm'] = true;
        include_once "../../classes/qfile.class.php";
        $qfile = new qfile();
        $qfile->save_file("push", $push_file, $push);
    }
    echo $output;
}
exit;
コード例 #2
0
ファイル: install.php プロジェクト: l2zeo/eyoom_builder-1
    $g5['connect_db'] = $connect_db;
    sql_query(" set names utf8 ");
    if (defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE) {
        sql_query("SET SESSION sql_mode = ''");
    }
    if (defined('G5_TIMEZONE')) {
        sql_query(" set time_zone = '" . G5_TIMEZONE . "'");
    }
}
?>
<div class="ins_inner">
    <h2>설치가 시작되었습니다.</h2>

    <ol>
<?php 
$qfile = new qfile();
$ins_theme = $_POST['ins_theme'];
switch ($ins_theme) {
    default:
    case 'b1':
        $theme_name = 'basic';
        break;
    case 'b2':
        $theme_name = 'basic2';
        break;
    case 'p1':
        $theme_name = 'pc_basic';
        break;
    case 'p2':
        $theme_name = 'pc_basic2';
        break;
コード例 #3
0
ファイル: theme.class.php プロジェクト: eyoom/eyoom_builder
 public function set_user_theme($arr)
 {
     global $g5, $member, $is_member;
     // 테마정보 가져오기
     $theme = sql_fetch("select * from {$g5['eyoom_theme']} where tm_name='{$arr['theme']}' || tm_alias='{$arr['theme']}'", false);
     // 지정한 사용자 테마가 없다면 디폴트 테마로
     if ($theme['tm_name'] && is_dir($this->theme_path . '/' . $theme['tm_name'])) {
         $arr['theme'] = $theme['tm_name'];
     } else {
         if ($arr['theme'] != 'basic' && $arr['theme'] != 'pc_basic') {
             $arr['theme'] = '';
         }
     }
     // 유니크 아이디 쿠키 생성
     if (get_cookie('unique_theme_id')) {
         $unique_theme_id = get_cookie('unique_theme_id');
     } else {
         $unique_theme_id = date('YmdHis', time()) . str_pad((int) (microtime() * 100), 2, "0", STR_PAD_LEFT);
         set_cookie('unique_theme_id', $unique_theme_id, 3600);
     }
     $file = $this->tmp_path . '/' . $_SERVER['REMOTE_ADDR'] . '.' . $unique_theme_id . '.php';
     if (file_exists($file)) {
         include_once $file;
         $_user_config = $arr + $user_config;
     } else {
         $_user_config = $arr;
     }
     //파일 생성 및 갱신
     parent::save_file('user_config', $file, $_user_config);
     // 특정시간이 지난 파일은 자동 삭제
     parent::del_timeover_file($this->tmp_path);
     // 사용자 테마가 없다면 파일삭제
     if (!$_user_config['theme']) {
         parent::del_file($file);
         return false;
     } else {
         return $_user_config;
     }
 }