Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->init_vars();
     require_once RDIR . '/server/drivers/' . $this->driver . '.php';
     $this->set_vars();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->init_vars();
     $this->get_js_config();
     $this->freichat_theme = $_SESSION[$this->uid . 'curr_theme'];
     $this->path = RDIR . '/client/themes/' . $this->freichat_theme . '/';
     //$this->js_variable = $_POST['variable_js'];
     $this->max_file_size = 10 * 1024 * 1024 * 1024;
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->init_vars();
     $this->get_js_config();
     $this->url = str_replace("upload_mobile.php", "", $this->url);
     $this->p_url = str_replace("plugins/upload/", "", $this->url);
     $this->uploaded = false;
     $this->error = 0;
     $this->filename = null;
     $this->path = 'upload/';
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->init_vars();
     $this->get_js_config();
     if (isset($_SERVER['HTTP_X_TYPE']) && $_SERVER['HTTP_X_TYPE'] == 'smileys') {
         $this->path = RDIR . '/client/themes/smileys/';
     } else {
         $this->path = RDIR . '/client/themes/' . $this->freichat_theme . '/';
     }
     $this->max_file_size = 10 * 1024 * 1024 * 1024;
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->init_vars();
     $this->get_js_config();
     $this->url = str_replace("upload.php", "", $this->url);
     $this->uploaded = false;
     $this->error = 0;
     $this->filename = null;
     $this->path = 'upload/';
     $this->is_chatroom = $_POST['mode'] == 'chatroom';
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->init_vars();
     require 'drivers/' . $this->driver . '.php';
     $this->mod = new $this->driver();
     $this->mod->db_prefix = $this->db_prefix;
     $this->mod->row_username = $this->row_username;
     $this->mod->row_userid = $this->row_userid;
     $this->mod->usertable = $this->usertable;
     $this->mod->db = $this->db;
     $this->mod->pdo_driver = $this->pdo_driver;
     $this->mod->set_db_data();
     // $this->connect_db();
 }
Example #7
0
 public function __construct($oot = '../')
 {
     parent::__construct();
     $this->init_vars();
     $this->one_or_three = $oot;
     if ($oot == '../../../') {
         require_once '../home/magic_gpc_unset.php';
     }
     if (!isset($_SESSION[$this->uid . 'curr_theme'])) {
         $_SESSION[$this->uid . 'curr_theme'] = 'basic';
     }
     $this->path = RDIR . '/client/themes/' . $_SESSION[$this->uid . 'curr_theme'];
     // var_dump($_SESSION);
     $this->freichat_theme = $_SESSION[$this->uid . 'curr_theme'];
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     $this->init_vars();
 }
Example #9
0
 public function __construct()
 {
     parent::__construct();
 }
Example #10
0
<link rel="stylesheet" type="text/css" href="../administrator/admin_files/theme_maker/lib/css/gradX.css" />

<link rel="stylesheet" type="text/css" href="../client/jquery/freichat_themes/freichatcss.php?do=theme&get_latest=true" />
<link rel="stylesheet" type="text/css" href="../administrator/admin_files/theme_maker/style.css" />
<link rel="stylesheet" type="text/css" href="../administrator/admin_files/theme_maker/lib/css/switches.css" />
<link rel="stylesheet" type="text/css" href="../administrator/admin_files/theme_maker/lib/colorpicker/css/colorpicker.css" />


<script type="text/javascript">
<?php 
//session_start();
//error_reporting(-1);
$path = '../';
//require $path . 'arg.php';
//$_SESSION[$uid . 'new_project'] = $chk->chk_project();
$thm = new FreiChat();
$thm->init_vars();
$thm->get_js_config();
$uid = $thm->uid;
$valid_exts = $thm->valid_exts;
$frei_trans = $thm->inc_lang();
$_SESSION[$uid . 'curr_theme'] = $_GET['theme_name'];
require $path . 'administrator/admin_files/theme_maker/lib/colorpicker/js/colorpicker.min.js';
require $path . 'administrator/admin_files/theme_maker/lib/js/gradX.js';
require $path . 'client/themes/' . $_SESSION[$uid . 'curr_theme'] . '/argument.php';
//require $path . 'client/jquery/js/jquery.1.7.1.js';
//require $path . 'client/jquery/js/jquery-ui.js';
require $path . 'administrator/admin_files/theme_maker/definitions.js';
require $path . 'administrator/admin_files/theme_maker/plugins.js';
require $path . 'administrator/admin_files/theme_maker/functions.js';
require $path . 'administrator/admin_files/theme_maker/lib/js/md5.js';
Example #11
0
<?php

if (!isset($_GET['id']) || !isset($_GET['xhash'])) {
    exit;
}
require '../arg.php';
$FC = new FreiChat();
$FC->init_vars();
$frei_trans = $FC->frei_trans;
$url = $FC->url;
if (isset($_SERVER['HTTP_REFERER'])) {
    $referer_url = $_SERVER['HTTP_REFERER'];
} else {
    $referer_url = $url;
}
if (strpos($referer_url, 'www.') == TRUE) {
    $url = str_replace('http://', 'http://www.', $url);
    $url = str_replace('https://', 'https://www.', $url);
} else {
    $url = str_replace('http://www.', 'http://', $url);
    $url = str_replace('https://www.', 'https://', $url);
}
if (strpos($url, 'www.www.') == TRUE) {
    $url = str_replace('http://www.www.', 'http://www.', $url);
    $url = str_replace('https://www.www.', 'https://www.', $url);
}
$id = strip_tags($_GET['id']);
$xhash = strip_tags($_GET['xhash']);
$url = str_replace("chat.php", "", $url);
?>
Example #12
0
<?php

session_start();
header("Content-Type: text/css");
require_once '../../../arg.php';
$config = new FreiChat();
$config->init_vars();
if (isset($_GET['do']) && $_GET['do'] == 'theme') {
    if (isset($_SESSION[$uid . 'curr_theme'])) {
        $config->freichat_theme = $_SESSION[$uid . 'curr_theme'];
    }
}
/*
  if (isset($_GET['get_latest'])) {
  $get_latest = "?l=" . time();
  header("Cache-Control: post-check=0, pre-check=0", false);
  header("Pragma: no-cache");
  header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  } else {
  $get_latest = '';
  } */
if (isset($_SESSION[$uid . 'rtl']) && $_SESSION[$uid . 'rtl'] == true) {
    ?>
		
    @import url("../../themes/<?php 
    echo $config->freichat_theme;
    ?>
/styles_rtl.css");
    <?php 
} else {
    ?>
Example #13
0
<?php

/* session_start();
  $exit = "false";
  if (!isset($_SESSION[$uid . 'FreiChatX_init'])){
  //$exit = "true";
  }
 */
require_once '../../../arg.php';
$cvs = new FreiChat();
$cvs->init_vars();
$frei_trans = $cvs->frei_trans;
$smileys = str_replace("'", "\\'", json_encode($cvs->get_smileys()));
$exit = "false";
if (isset($_GET['rid'])) {
    $rid = (int) $_GET['rid'];
} else {
    $exit = "true";
}
$no_get = !isset($_GET['id']) || !isset($_GET['xhash']);
if ($no_get) {
    $exit = "true";
}
$url = str_replace('client/plugins/videochat/voicechat.php', '', $cvs->url);
if (isset($_SERVER['HTTP_REFERER'])) {
    $referer_url = $_SERVER['HTTP_REFERER'];
} else {
    $referer_url = $url;
}
if (strpos($referer_url, 'www.') == TRUE) {
    $url = str_replace('http://', 'http://www.', $url);
Example #14
0
    $users_per_page = (int) $_POST['users_per_page'];
}
if (isset($_POST['user_search']) && $_POST['user_search'] != '') {
    $s = $_POST['user_search'];
    $search_users_string = $_POST['user_search'];
}
if (isset($_POST['show_what']) && $_POST['show_what'] != '') {
    $show_what = $_POST['show_what'];
}
if (isset($_POST['id_search']) && $_POST['id_search'] != '') {
    $id = $_POST['id_search'];
    //$search_users_string = $_POST['user_search'];
}
require_once '../arg.php';
require_once 'admin_files/moderate_users/drivers/' . $driver . '.php';
$conn = new FreiChat();
$conn->init_vars();
$mod = new $driver();
$mod->db_prefix = $db_prefix;
$mod->row_username = $row_username;
$mod->row_userid = $row_userid;
$mod->usertable = $usertable;
$mod->pdo_driver = $conn->pdo_driver;
$mod->db = $conn->db;
$mod->set_db_data();
$url = $conn->url;
$no_of_users = $mod->get_no_of_users($s, $id, $show_what);
$users = $mod->get_users(0, $users_per_page, $s, $id, $show_what);
//initial load
$no_of_ret_users = $mod->no_of_ret_users;
$usernames = array();