Example #1
0
<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';
require $path . 'client/plugins.js';
Example #2
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 #3
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 #4
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 #5
0
}
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();
$no_of_messages = array();