コード例 #1
0
ファイル: mainbox.php プロジェクト: jiangsuei8/public_php_shl
/**
* 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');
コード例 #2
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');
コード例 #3
0
ファイル: status.php プロジェクト: jiangsuei8/public_php_shl
<?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');
コード例 #4
0
ファイル: send.php プロジェクト: jiangsuei8/public_php_shl
**
* 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){
        bAlt = argv[3];
コード例 #5
0
ファイル: header.php プロジェクト: jiangsuei8/public_php_shl
**
* 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()
							 {
								 if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)