Ejemplo n.º 1
0
* Software Version: CmsEasy Live v 1.2.0
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn)
* Support, News, Updates at: http://www.cmseasy.cn
**
* This program is not free software; you can't may redistribute it and modify it under
**
* This file contains configuration settings that need to altered
* in order for CE Live to work, and other settings that
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$system = new celive();
$system->template();
$system->file();
$system->auth();
$system->celsysteminfo();
$system->department();
$system->auth();
if ($GLOBALS['auth']->admin()) {
    $GLOBALS['template']->assign('ifadmin', 1);
}
$GLOBALS['template']->assign('username', $_SESSION['cel_username']);
if (!$GLOBALS['auth']->admin()) {
    $GLOBALS['template']->assign('createcode', true);
    $GLOBALS['template']->assign('cel_departments', $GLOBALS['department']->listall('', 'all'));
    if (isset($_POST['departmentid'])) {
        $GLOBALS['template']->assign('departmentid', $_POST['departmentid']);
    } else {
Ejemplo n.º 2
0
* Software Version: CmsEasy Live v 1.2.0 					  				  		      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$right = new celive();
$right->template();
$right->auth();
if ($GLOBALS['auth']->admin()) {
    $GLOBALS['template']->assign('ifadmin', 1);
}
$phpv = PHP_VERSION;
$zendv = zend_version();
$ifmysql = function_exists(mysql_close) ? "Yes" : "No";
$mysqlallowp = @get_cfg_var("mysql.allow_persistent") ? "Yes" : "No";
$mysqlmaxlink = @get_cfg_var("mysql.max_links") == -1 ? "不限" : @get_cfg_var("mysql.max_links");
$sysos = PHP_OS;
$sysinf = $_SERVER['SERVER_SOFTWARE'];
$sysip = $_SERVER[SERVER_ADDR];
$upmax = get_cfg_var("upload_max_filesize") ? get_cfg_var("upload_max_filesize") : "不允许上传附件";
$maxetime = get_cfg_var("max_execution_time") . "秒";
$GLOBALS['template']->assign('poweredby', '<a href="http://www.cmseasy.cn" target="_blank">Powered by CmsEasy</a>');
Ejemplo n.º 3
0
<?php

/**
* CmsEasy Live http://www.cmseasy.cn 				  			 
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  		      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$left = new celive();
$left->template();
$left->auth();
if ($GLOBALS['auth']->admin()) {
    $GLOBALS['template']->assign('ifadmin', 1);
}
$GLOBALS['template']->assign('poweredby', 'Powered by CElive');
$GLOBALS['template']->assign('gotocmseasy', '../../index.php?case=guestbook&act=index');
$GLOBALS['template']->assign('version', $version);
$GLOBALS['template']->display('admin/left.htm');
Ejemplo n.º 4
0
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				        
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/

include('../include/config.inc.php');
include(CE_ROOT.'/include/celive.class.php');
$send = new celive();
$send->template();
$send->xajax_live();


$name = $_SESSION['name'];
$GLOBALS['template']->assign('name', $name);
$chatid = $_SESSION['chatid'];
$GLOBALS['template']->assign('chatid', $chatid);
$GLOBALS['template']->assign('ctrlenter', '<script type="text/javascript">
							 function isKeyTrigger(e,keyCode){
    var argv = isKeyTrigger.arguments;
    var argc = isKeyTrigger.arguments.length;
    var bCtrl = false;
    if(argc > 2){
        bCtrl = argv[2];
    }
Ejemplo n.º 5
0
* Software Version: CmsEasy Live v 1.2.0 					  				  	      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$chatlist = new celive();
$chatlist->template();
$chatlist->auth();
$cel_operatorid = $_SESSION['cel_operatorid'];
$operatorid = addslashes($_REQUEST['operatorid']);
$action = addslashes($_REQUEST['action']);
if ($action == 'delete') {
    if ($GLOBALS['auth']->admin()) {
        $chatid = addslashes($_REQUEST['chatid']);
        $sql = "DELETE FROM `chat` WHERE `id`='" . $chatid . "'";
        $db->query($sql);
        $sql = "DELETE FROM `detail` WHERE `chatid`='" . $chatid . "'";
        $db->query($sql);
    } else {
        echo "<script>alert('不能删除自己')</script>";
    }
}
Ejemplo n.º 6
0
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  	      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
$admin = new celive();
$admin->template();
$admin->auth();
if ($_GET['action'] == 'clearcache') {
    $db->clear_cache();
    $GLOBALS['template']->assign('clear_cache', '<font color=red>更新成功</font>');
}
if ($GLOBALS['auth']->admin()) {
    $GLOBALS['template']->assign('ifadmin', 1);
}
$GLOBALS['template']->assign('username', $_SESSION['cel_username']);
$GLOBALS['template']->assign('header', 'admin/header.htm');
$GLOBALS['template']->assign('gotocmseasy', '../../index.php?case=guestbook&act=index');
$GLOBALS['template']->assign('main', 'admin/main.htm');
$GLOBALS['template']->assign('footer', 'admin/footer.htm');
$GLOBALS['template']->display('admin/index.htm');
$admin->printjs();
Ejemplo n.º 7
0
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  	      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
$adminlive = new celive();
$adminlive->template();
$sessionid = addslashes($_GET['sessionid']);
$adminthislive = addslashes($_GET['thislive']);
if ($_SESSION['adminthislivetmp'] == $adminthislive) {
    $sql = "SELECT * FROM `sessions` WHERE `id`='" . $sessionid . "'";
    @($result = $db->query($sql));
    $name = $result[0]['name'];
    $email = $result[0]['email'];
    $phone = $result[0]['phone'];
    $departmentid = $result[0]['departmentid'];
    $operatorid = $_SESSION['cel_operatorid'];
    $timestamp = $result[0]['timestamp'];
    $ip = $result[0]['ip'];
    $status = 1;
    $sql = "INSERT INTO `chat` (`sessionid`,`name`,`email`,`phone`,`timestamp`,`ip`,`departmentid`,`operatorid`,`status`) VALUES('" . $sessionid . "','" . $name . "','" . $email . "','" . $phone . "','" . $timestamp . "','" . $ip . "','" . $departmentid . "','" . $operatorid . "','" . $status . "')";
    $db->query($sql);
Ejemplo n.º 8
0
<?php
/**
* CmsEasy Live http://www.cmseasy.cn 				  			 
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  		      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/

include('../include/config.inc.php');
include(CE_ROOT.'/include/celive.class.php');
$mainbox = new celive();
$mainbox->template();
$mainbox->xajax_live();


$operatorname = $_SESSION['operatorname'];
$dname = $_SESSION['dname'];
$chatid = $_SESSION['chatid'];
$GLOBALS['template']->assign('chatid',$chatid);
$GLOBALS['template']->assign('operatorname',$operatorname);
$GLOBALS['template']->assign('dname',$dname);
$GLOBALS['template']->assign('xajax_live',$xajax_live->getJavascript(''));
$GLOBALS['template']->display('mainbox.htm');
?>
Ejemplo n.º 9
0
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  		      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$response = new celive();
$response->template();
$response->admin_xajax_live();
$GLOBALS['template']->assign('poweredby', 'Powered by CElive');
$GLOBALS['template']->assign('version', $version);
$GLOBALS['template']->assign('admin_response', '<script type="text/javascript">
								 var CEL = function(){
									 xajax_AdminResponse(); 
									 setTimeout(CEL, ' . $config['tracker_refresh'] . ');
									 }
									 CEL();
									 </script>');
$GLOBALS['template']->assign('version', $version);
$GLOBALS['template']->assign('xajax_live', $admin_xajax_live->getJavascript(''));
$GLOBALS['template']->display('admin/response.htm');
Ejemplo n.º 10
0
<?php

/**
* CmsEasy Live http://www.cmseasy.cn 				  			 
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  	      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$status = new celive();
$status->template();
$status->admin_xajax_live();
$GLOBALS['template']->assign('poweredby', 'Powered by CElive');
$GLOBALS['template']->assign('version', $version);
$GLOBALS['template']->assign('xajax_live', $admin_xajax_live->getJavascript(''));
$GLOBALS['template']->display('admin/status.htm');
Ejemplo n.º 11
0
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  	      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
$admin_send = new celive();
$admin_send->template();
$admin_send->admin_xajax_live();
$chatid = addslashes($_GET['chatid']);
$name = $_SESSION['cel_username'];
$GLOBALS['template']->assign('name', $name);
$GLOBALS['template']->assign('chatid', $chatid);
$GLOBALS['template']->assign('ctrlenter', '<script type="text/javascript">
							 function isKeyTrigger(e,keyCode){
    var argv = isKeyTrigger.arguments;
    var argc = isKeyTrigger.arguments.length;
    var bCtrl = false;
    if(argc > 2){
        bCtrl = argv[2];
    }
    var bAlt = false;
    if(argc > 3){
Ejemplo n.º 12
0
/**
* CmsEasy Live http://www.cmseasy.cn 				  			 
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  		      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
session_start();
include '../include/config.inc.php';
include CE_ROOT . '/include/celive.class.php';
$login = new celive();
$login->auth();
$login->template();
if (isset($_POST['username']) && isset($_POST['password'])) {
    $GLOBALS['auth']->login(addslashes($_POST['username']), addslashes($_POST['password']));
}
if ($GLOBALS['auth']->check_login()) {
    header('Location: ' . CE_ROOT . '/admin/index.php');
} else {
    if (isset($_POST['username']) && isset($_POST['password'])) {
        $GLOBALS['template']->assign('login_text', $GLOBALS['lang']['login_failure']);
    }
    $GLOBALS['template']->assign('action', 'login.php');
    $GLOBALS['template']->display('admin/login.htm');
}
Ejemplo n.º 13
0
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				        
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/

include('../include/config.inc.php');
include(CE_ROOT.'/include/celive.class.php');
$header = new celive();
$header->template();
$header->xajax_live();

$GLOBALS['template']->assign('ifexit','<script type="text/javascript">
							 function chat_unload()
							 {
								 if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey) 
								 { 
								 xajax_EndChat();
								 } 
								 }
								 </script>');
$GLOBALS['template']->assign('xajax_live',$xajax_live->getJavascript(''));
$GLOBALS['template']->assign('operatorname',$_SESSION['operatorname']);
$GLOBALS['template']->assign('dname',$_SESSION['dname']);
$GLOBALS['template']->display('header.htm');
Ejemplo n.º 14
0
}elseif($ac=='0'){

	global $inc;
	$inc = new celive();
	$inc->template();

	$GLOBALS['template']->assign('action','?action=1&module=celive&thislive='.$_SESSION['thislive'].'&departmentid='.addslashes($_GET['departmentid']));
	$GLOBALS['template']->display('collect.htm');

	$inc->finished();

}elseif($ac=='2'){

	global $clive;
	$clive = new celive();
	$clive->template();

	$sessionid = $_SESSION['sessionid'];
	$timestamp = $_SESSION['timestamp'];

	$sql = "SELECT `id`,`operatorid` FROM `chat` WHERE `sessionid`='".$sessionid."' AND `timestamp`='".$timestamp."'";
	@$result = $db->query($sql);

	$chatid = $result[0]['id'];
	$_SESSION['chatid'] = $chatid;

	$operatorid = $result[0]['operatorid'];
	$sql = "SELECT departmentid,`username` FROM `operators` WHERE `id`='".$operatorid."'";
	@$result = $db->query($sql);
	$operatorname = $result[0]['username'];
	$sql = "SELECT name as dname FROM `departments` WHERE `id`='".$result[0]['departmentid']."'";
Ejemplo n.º 15
0
<?php

/**
* CmsEasy Live http://www.cmseasy.cn 				  			 
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  	      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$monitor = new celive();
$monitor->template();
$monitor->monitor();
$GLOBALS['template']->assign('poweredby', 'Powered by CElive');
$GLOBALS['template']->assign('version', $version);
$GLOBALS['template']->display('admin/monitor.htm');
Ejemplo n.º 16
0
/**
* CmsEasy Live http://www.cmseasy.cn
* by CmsEasy Live Team
**
* Software Version: CmsEasy Live v 1.2.0
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn)
* Support, News, Updates at: http://www.cmseasy.cn
**
* This program is not free software; you can't may redistribute it and modify it under
**
* This file contains configuration settings that need to altered
* in order for CE Live to work, and other settings that
**/
include '../../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
$admin_mainbox = new celive();
$admin_mainbox->template();
$admin_mainbox->admin_xajax_live();
$chatid = addslashes($_GET['chatid']);
$sql = "SELECT * FROM `chat` WHERE `id`='" . $chatid . "'";
@($result = $db->query($sql));
$name = addslashes($_GET['name']);
$GLOBALS['template']->assign('email', $result[0]['email']);
$GLOBALS['template']->assign('ip', $result[0]['ip']);
$GLOBALS['template']->assign('phone', $result[0]['phone']);
$GLOBALS['template']->assign('chatid', $chatid);
$GLOBALS['template']->assign('name', $name);
$GLOBALS['template']->assign('area', convertip($result[0]['ip']));
$GLOBALS['template']->assign('xajax_live', $admin_xajax_live->getJavascript('../'));
$GLOBALS['template']->display('admin/live/mainbox.htm');
Ejemplo n.º 17
0
**
* Software Version: CmsEasy Live v 1.2.0 					  				  		      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
header("Content-type: text/html; charset=utf-8");
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
$details = new celive();
$details->template();
$action = addslashes($_POST['action']);
$operatorid = $_SESSION['cel_operatorid'];
if ($operatorid == '1') {
    $GLOBALS['template']->assign('ifadmin', 1);
}
if ($action == '1') {
    $old_password = addslashes($_POST['old_password']);
    $new_password = addslashes($_POST['new_password']);
    $new_password_again = addslashes($_POST['new_password_again']);
    $realname = addslashes($_POST['realname']);
    if ($operatorid == '1') {
        if ($realname != '') {
            $sql = "UPDATE `operators` SET `firstname`='" . $realname . "' WHERE `id`='" . $operatorid . "'";
            $db->query($sql);
            echo "<script>alert('修改成功');</script>";
Ejemplo n.º 18
0
* by CmsEasy Live Team 							  						
**
* Software Version: CmsEasy Live v 1.2.0 					  				  		      
* Copyright 2009 by: CmsEasy, (http://www.cmseasy.cn) 	  
* Support, News, Updates at: http://www.cmseasy.cn 			  			  
**
* This program is not free software; you can't may redistribute it and modify it under	  
**
* This file contains configuration settings that need to altered                  
* in order for CE Live to work, and other settings that            
**/
include '../../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
$admin_header = new celive();
$admin_header->template();
$admin_header->admin_xajax_live();
$chatid = addslashes($_GET['chatid']);
$sql = "SELECT * FROM `chat` WHERE `id`='" . $chatid . "'";
@($result = $db->query($sql));
$ip = $result[0]['ip'];
$ip = convertip($ip);
$GLOBALS['template']->assign('chatid', $chatid);
$GLOBALS['template']->assign('name', $result[0]['name']);
$GLOBALS['template']->assign('email', $result[0]['email']);
$GLOBALS['template']->assign('phone', $result[0]['phone']);
$GLOBALS['template']->assign('ip', $result[0]['ip']);
$GLOBALS['template']->assign('area', $ip);
$GLOBALS['template']->assign('ifexit', '<script type="text/javascript">
							 function chat_unload()
							 {