本文整理汇总了PHP中xajax::decodeUTF8InputOn方法的典型用法代码示例。如果您正苦于以下问题:PHP xajax::decodeUTF8InputOn方法的具体用法?PHP xajax::decodeUTF8InputOn怎么用?PHP xajax::decodeUTF8InputOn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xajax
的用法示例。
在下文中一共展示了xajax::decodeUTF8InputOn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xajax
<?php
/**
* @author
*/
define(RU, "1");
//for windows-1251
require_once SERVER_PATH . '/lib/xajax/xajax.inc.php';
$xajax = new xajax();
//$xajax->debugOn();
if (RU == 1) {
$xajax->decodeUTF8InputOn();
}
$xajax->statusMessagesOn();
$xajax->errorHandlerOn();
//$xajax->setLogFile("../xajax/xajax_log/errors.log");
$xajax->registerFunction("process_form");
$xajax->registerFunction("process_browse_url");
$xajax->processRequests();
$sXajaxJavascript = $xajax->getJavascript('/lib/xajax');
示例2: dirname
function admin_xajax_live()
{
if (!$this->admin_xajax_live_flag) {
$this->admin_xajax_live_flag = true;
include_once dirname(__FILE__) . '/xajax.inc.php';
include_once dirname(__FILE__) . '/xajax.class.php';
global $admin_xajax_live;
$admin_xajax_live = new xajax();
$admin_xajax_live->setCharEncoding('utf-8');
$admin_xajax_live->decodeUTF8InputOn();
$admin_xajax_live->registerFunction('ChangeStatus');
$admin_xajax_live->registerFunction('AdminResponse');
$admin_xajax_live->registerFunction('AdminSound');
$admin_xajax_live->registerFunction('AdminDecline');
$admin_xajax_live->registerFunction('AdminChatHistory');
$admin_xajax_live->registerFunction('AdminPostdata');
$admin_xajax_live->registerFunction('EndChats');
$admin_xajax_live->registerFunction('GetEndChat');
$admin_xajax_live->registerFunction('AdminExit');
$admin_xajax_live->processRequests();
}
}