function remotelogin_action() { cookie::del('passinfo'); $this->view->loginfalse=cookie::get('loginfalse'.md5($_SERVER['REQUEST_URI'])); if (front::$args) { $user=new user(); $args = xxtea_decrypt(base64_decode(front::$args), config::get('cookie_password')); $user=$user->getrow(unserialize($args)); if (is_array($user)) { if ($user['groupid'] == '888') front::$isadmin=true; cookie::set('login_username',$user['username']); cookie::set('login_password',front::cookie_encode($user['password'])); session::set('username',$user['username']); require_once ROOT.'/celive/include/config.inc.php'; require_once ROOT.'/celive/include/celive.class.php'; $login=new celive(); $login->auth(); $GLOBALS['auth']->remotelogin($user['username'],$user['password']); $GLOBALS['auth']->check_login1(); front::$user=$user; }elseif (!is_array(front::$user) ||!isset(front::$isadmin)) { cookie::set('loginfalse'.md5($_SERVER['REQUEST_URI']),(int) cookie::get('loginfalse'.md5($_SERVER['REQUEST_URI'])) +1,time() +3600); event::log('loginfalse','失败 user='******'username']); front::flash('密码错误或不存在该管理员!'); front::refresh(url('admin/login',true)); } } $this->render(); }
function logout_action() { cookie::del('login_username'); cookie::del('login_password'); session::del('username'); session::del('roles'); require_once ROOT.'/celive/include/config.inc.php'; require_once ROOT.'/celive/include/celive.class.php'; $login=new celive(); $login->auth(); $GLOBALS['auth']->logout(); $GLOBALS['auth']->check_logout1(); front::redirect(url::create('index')); }
** * 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>"; }
* 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'); $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];
* 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'; $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 . "')";
<?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');
<?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');
* 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_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;
<?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'); ?>
/** * 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'); }
<?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');
* 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'); $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']);
}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'];
* 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 = 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');
** * 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") . "秒";
* 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');
* Software by: Aiens, UTA (http://www.aiens.cn) * 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 **/ if(isset($_GET['cmseasylive'])){ include('../include/config.inc.php'); include(CE_ROOT.'/include/celive.class.php'); $ifonline = new celive(); $ifonline->db(); $ip = $_SERVER["REMOTE_ADDR"]; $ip = convertip($ip); if(isset($_GET['qq'])) { $qq = explode(",", $_GET['qq']); $qqcode = ''; for($i=0;$i<count($qq);$i++) { $qqcode = $qqcode.'<li><a target=_blank href=tencent://message/?uin='.$qq[$i].'&Site='.$config[company].'&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:'.$qq[$i].':42 alt=点击这里给我发消息></a></li>'; } }
/** * 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');
** * 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']);
<?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 **/ require_once("include/config.inc.php"); require_once(CE_ROOT."/include/celive.class.php"); $celive = new celive(); $celive->detect_install(); $_SESSION['thislive'] = md5(time()); $_SESSION['thislivetmp'] = $_SESSION['thislive']; if ($config['customer_info']) { header('Location: '.$config['url'].'/live/?action=0&module=celive&thislive='.$_SESSION['thislive'].'&departmentid='.addslashes($_GET['departmentid'])); } else { header('Location: '.$config['url'].'/live/?action=1&module=celive&thislive='.$_SESSION['thislive'].'&departmentid='.addslashes($_GET['departmentid'])); } $celive->finished(); ?>
* 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 **/ 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);
* 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_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()