register() public method

Call this function to register request handlers, including functions, callable objects and events. New plugins can be added that support additional registration methods and request processors. Parameters: $sType - (string): Type of request handler being registered; standard options include: XAJAX_FUNCTION: a function declared at global scope. XAJAX_CALLABLE_OBJECT: an object who's methods are to be registered. XAJAX_EVENT: an event which will cause zero or more event handlers to be called. XAJAX_EVENT_HANDLER: register an event handler function. $sFunction || $objObject || $sEvent - (mixed): when registering a function, this is the name of the function when registering a callable object, this is the object being registered when registering an event or event handler, this is the name of the event $sIncludeFile || $aCallOptions || $sEventHandler when registering a function, this is the (optional) include file. when registering a callable object, this is an (optional) array of call options for the functions being registered. when registering an event handler, this is the name of the function.
public register ( $sType, $mArg )
Example #1
0
*/
/*==========================================================
  ARQUIVO : cursos/aplic/avaliacoes/notas.php
  ========================================================== */
$bibliotecas = "../bibliotecas/";
include $bibliotecas . "geral.inc";
include "avaliacoes.inc";
require_once "../xajax_0.5/xajax_core/xajax.inc.php";
//Estancia o objeto XAJAX
$objAjax = new xajax();
$objAjax->configure("characterEncoding", 'ISO-8859-1');
$objAjax->setFlag("decodeUTF8Input", true);
$objAjax->configure('javascript URI', "../xajax_0.5");
$objAjax->configure('errorHandler', true);
//Registre os nomes das fun?es em PHP que voc?quer chamar atrav? do xajax
$objAjax->register(XAJAX_FUNCTION, "MudarCompartilhamentoDinamic");
$objAjax->register(XAJAX_FUNCTION, "MostrarAvaliacoesDinamic");
$objAjax->register(XAJAX_FUNCTION, "ApagarAvalicaoDinamic");
$objAjax->register(XAJAX_FUNCTION, "MostrarParticipacoesDinamic");
$objAjax->register(XAJAX_FUNCTION, "GravarExpressaoDinamic");
// Registra fun��es para uso de menu_principal.php
$objAjax->register(XAJAX_FUNCTION, "DeslogaUsuarioCursoDinamic");
// Manda o xajax executar os pedidos acima.
$objAjax->processRequest();
$cod_ferramenta = 22;
$cod_ferramenta_ajuda = $cod_ferramenta;
$cod_pagina_ajuda = 4;
include "../topo_tela.php";
$usr_formador = EFormador($sock, $cod_curso, $cod_usuario);
$sock = MudarDB($sock, $cod_curso);
$media = RetornaInformacoesMedia($sock);
Example #2
0
<?php

define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/verify.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'addSubscribe');
}
<?
define("XAJAX_DEFAULT_CHAR_ENCODING","windows-1251");
require_once($_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/config.php");
$xajax = new xajax("/xajax/employers.server.php");
//$xajax->debugOn();
//$xajax->waitCursorOff(); // Для Fp нужен...
$xajax->configure('decodeUTF8Input',true);
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->register(XAJAX_FUNCTION, "ChangeCity");
$xajax->register(XAJAX_FUNCTION, "AddFav");
?>
Example #4
0
<?php

$rpath = $rpath ? $rpath : "../";
define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/config.php";
$xajax = new xajax("/xajax/nycomp07.server.php");
//$xajax->debugOn();
$xajax->configure('decodeUTF8Input', true);
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->register(XAJAX_FUNCTION, "UploadPic");
Example #5
0
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#$Id: addcontent.php 8510 2012-11-24 17:04:05Z calguy1000 $
$CMS_ADMIN_PAGE = 1;
require_once "../include.php";
$urlext = '?' . CMS_SECURE_PARAM_NAME . '=' . $_SESSION[CMS_USER_KEY];
check_login();
$userid = get_userid();
define('XAJAX_DEFAULT_CHAR_ENCODING', $config['admin_encoding']);
require_once dirname(dirname(__FILE__)) . '/lib/xajax/xajax_core/xajax.inc.php';
require_once dirname(__FILE__) . '/editcontent_extra.php';
$xajax = new xajax();
$xajax->register(XAJAX_FUNCTION, 'ajaxpreview');
$headtext = $xajax->getJavascript('../lib/xajax') . "\n";
if (isset($_POST["cancel"])) {
    redirect("listcontent.php" . $urlext);
}
require_once "header.php";
$tmpfname = '';
$error = FALSE;
$submit = false;
if (isset($_POST["submitbutton"])) {
    $submit = true;
}
$apply = false;
if (isset($_POST["applybutton"])) {
    $apply = true;
}
}
function testTextResponse()
{
    $objResponse = new xajaxCustomResponse('text/plain');
    $objResponse->append('text data');
    return $objResponse;
    // return text data directly to the custom response handler function
    return 'text data';
}
$xajax = new xajax();
$xajax->configure('debug', true);
$xajax->configure('useUncompressedScripts', true);
$xajax->configure('javascript URI', '../');
// Tell xajax to permit registered functions to return data other than xajaxResponse objects
$xajax->configure('allowAllResponseTypes', true);
$callXajaxResponse =& $xajax->register(XAJAX_FUNCTION, 'testXajaxResponse');
$callXmlResponse =& $xajax->register(XAJAX_FUNCTION, 'testXmlResponse', array('responseProcessor' => 'xmlResponse'));
$callTextResponse =& $xajax->register(XAJAX_FUNCTION, 'testTextResponse', array('mode' => '"synchronous"', 'responseProcessor' => 'textResponse'));
$xajax->processRequest();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>Non-xajaxResponse XML and Text Responses Test | xajax Tests</title>

        <?php 
$xajax->printJavascript();
?>
Example #7
0
<?php

define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/quickmas.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    //$xajax->setFlag('debug',true);
    $xajax->register(XAJAX_FUNCTION, 'quickMASCheckOrder');
    $xajax->register(XAJAX_FUNCTION, 'quickMASPayAccount');
    $xajax->register(XAJAX_FUNCTION, 'quickMASSetCats');
    $xajax->register(XAJAX_FUNCTION, 'quickMASGetYandexKassaLink');
}
Example #8
0
<?php

define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
global $xajax;
if (!$xajax) {
    $xajax = new xajax("/xajax/hh.server.php?rnd=" . mt_rand());
    $xajax->setFlag('decodeUTF8Input', true);
    //$xajax->setFlag('debug',true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'addHHSpecProf');
    $xajax->register(XAJAX_FUNCTION, 'delProf');
    $xajax->register(XAJAX_FUNCTION, 'delHHSpec');
}
Example #9
0
//
//$xajax = null;
//
//if (false == isset($_SESSION['xjxcore']))
//{
//	$xajax = new xajax();
//
//	$_SESSION['xjxcore'] = $xajax;
//}
//else
//{
//	$xajax = $_SESSION['xjxcore'];
//}
// -- end testing
$xajax = new xajax();
$xajax->register(XAJAX_FUNCTION, 'argumentDecode');
$xajax->register(XAJAX_FUNCTION, 'roundTrip');
$xajax->register(XAJAX_FUNCTION, 'compress');
$xajax->register(XAJAX_FUNCTION, 'compile');
$timer->setMarker('xajax constructed');
$trips = 500;
$timer->setMarker('begin process request');
$xajax->processRequest();
$xajax->configure('javascript URI', '../');
$timer->setMarker('after process request');
function argumentDecode($nTimes, $aArgs)
{
    global $timer;
    global $trips;
    $objResponse = new xajaxResponse();
    if ($nTimes < $trips) {
Example #10
0
 * el funcionamiento de Xajax.
 */
require_once './controlador/include/xajax/xajax_core/xajax.inc.php';
/**
 * Recuperamos la informacion de la sesion.
 */
session_start();
/**
 * Creamos el objeto Xajax.
 */
$xajax = new xajax('./controlador/motorxajax.php');
/**
 * Registramos las funciones con el objeto xajax creado anteriormente que vamos 
 * a llamar desde JavaScript o directamente desde el codigo PHP.
 */
$xajax->register(XAJAX_FUNCTION, "azulon");
$xajax->register(XAJAX_FUNCTION, "azuloff");
$xajax->register(XAJAX_FUNCTION, "verdeon");
$xajax->register(XAJAX_FUNCTION, "verdeoff");
$xajax->register(XAJAX_FUNCTION, "rojoon");
$xajax->register(XAJAX_FUNCTION, "rojooff");
$xajax->register(XAJAX_FUNCTION, "amarilloon");
$xajax->register(XAJAX_FUNCTION, "amarillooff");
$xajax->register(XAJAX_FUNCTION, "controlazul");
$xajax->register(XAJAX_FUNCTION, "controlverde");
$xajax->register(XAJAX_FUNCTION, "controlrojo");
$xajax->register(XAJAX_FUNCTION, "controlamarillo");
/**
 * Indicamos la ruta del componenete Javascript de Xajax.
 */
$xajax->configure('javascript URI', './controlador/include/xajax/');
Example #11
0
<?php

$rpath = $rpath ? $rpath : "../";
define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/config.php";
$xajax = new xajax("/xajax/bill.server.php");
//$xajax->setFlag('debug',true);
$xajax->configure('decodeUTF8Input', true);
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->register(XAJAX_FUNCTION, "ShowBillComms");
$xajax->register(XAJAX_FUNCTION, "ShowBillText");
//$xajax->register(XAJAX_FUNCTION, "CheckUserType");
//$xajax->register(XAJAX_FUNCTION, "CheckUser");
//$xajax->register(XAJAX_FUNCTION, "changeCalendarMonth");
//$xajax->register(XAJAX_FUNCTION, "BlockOperation");
//$xajax->register(XAJAX_FUNCTION, "UnBlockOperation");
//$xajax->register(XAJAX_FUNCTION, "PreparePaymentOD");
//$xajax->register(XAJAX_FUNCTION, "addService");
//$xajax->register(XAJAX_FUNCTION, "updateOrder");
//$xajax->register(XAJAX_FUNCTION, "removeOrder");
//$xajax->register(XAJAX_FUNCTION, "clearOrdersServices");
//$xajax->register(XAJAX_FUNCTION, "updateAutoProlong");
//$xajax->register(XAJAX_FUNCTION, "preparePaymentServices");
//$xajax->register(XAJAX_FUNCTION, "cancelReservedOrders");
$xajax->register(XAJAX_FUNCTION, "ShowReserveOrders");
$xajax->register(XAJAX_FUNCTION, "ShowReserveText");
//$xajax->register(XAJAX_FUNCTION, "walletActivate");
//$xajax->register(XAJAX_FUNCTION, "updateProAuto");
//$xajax->register(XAJAX_FUNCTION, "walletRevoke");
$xajax->register(XAJAX_FUNCTION, "removeBillInvoice");
Example #12
0
    $result = '';
    // xajax response
    $JSResponse = new xajaxResponse();
    // read template information
    @(include DOC_DIR . '/templates/' . $template . '/info.php');
    // call plugin
    @(include DOC_DIR . '/templates/' . $engine['name'] . '/' . $engine['plugin'] . '.php');
    $JSResponse->assign('plugin', 'innerHTML', $result);
    return $JSResponse;
}
/* Using AJAX for template plugins */
require LIB_DIR . '/xajax/xajax_core/xajax.inc.php';
$xajax = new xajax();
$xajax->configure('errorHandler', true);
$xajax->configure('javascript URI', 'img');
$xajax->register(XAJAX_FUNCTION, 'plugin');
$xajax->processRequest();
$SMARTY->assign('xajax', $xajax->getJavascript());
/* end AJAX plugin stuff */
$layout['pagetitle'] = trans('Documents Generator');
if (isset($_POST['document'])) {
    $document = $_POST['document'];
    $oldfromdate = $document['fromdate'];
    $oldtodate = $document['todate'];
    if (!$document['type']) {
        $error['type'] = trans('Document type is required!');
    }
    if (!$document['title']) {
        $error['title'] = trans('Document title is required!');
    }
    if ($document['number'] == '') {
Example #13
0
<?php

$rpath = $rpath ? $rpath : '../';
define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/admin_log.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'getComments');
    $xajax->register(XAJAX_FUNCTION, 'setPrjBlockForm');
    $xajax->register(XAJAX_FUNCTION, 'updatePrjBlock');
    $xajax->register(XAJAX_FUNCTION, 'getUserWarns');
    $xajax->register(XAJAX_FUNCTION, 'setOfferBlockForm');
    $xajax->register(XAJAX_FUNCTION, 'updateOfferBlock');
    $xajax->register(XAJAX_FUNCTION, 'getLastIps');
    $xajax->register(XAJAX_FUNCTION, 'getLastEmails');
    $xajax->register(XAJAX_FUNCTION, 'updateMoneyBlock');
    $xajax->register(XAJAX_FUNCTION, 'nullRating');
    $xajax->register(XAJAX_FUNCTION, 'activateUser');
    $xajax->register(XAJAX_FUNCTION, 'updateSafetyPhone');
    $xajax->register(XAJAX_FUNCTION, 'updateSafetyIp');
    $xajax->register(XAJAX_FUNCTION, 'updateEmail');
    $xajax->register(XAJAX_FUNCTION, 'updatePop');
    $xajax->register(XAJAX_FUNCTION, 'stopNotifications');
    $xajax->register(XAJAX_FUNCTION, 'setVerification');
    $xajax->register(XAJAX_FUNCTION, 'saveExcDate');
    $xajax->register(XAJAX_FUNCTION, 'getLoadExcDate');
    $xajax->register(XAJAX_FUNCTION, 'setReasonBold');
Example #14
0
<?php

define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
$xajax = new xajax("/xajax/tservices.server.php");
//$xajax->debugOn();
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->configure('decodeUTF8Input', true);
$xajax->register(XAJAX_FUNCTION, "more_feedbacks", array('callback' => 'xajax_callback_feedbacks'));
$xajax->register(XAJAX_FUNCTION, "tservices_order_auth", array());
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("setDelReasonForm", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("getAdminActionReasonTextDel", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("setDeleted", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("unBlocked", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("AddInTeam", $_SERVER['DOCUMENT_ROOT'] . "/xajax/team.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("DelInTeam", $_SERVER['DOCUMENT_ROOT'] . "/xajax/team.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("checkCode", $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPaymentProcess", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quick_payment.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("getUserPhoto", $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("checkPromoCode", $_SERVER['DOCUMENT_ROOT'] . "/xajax/promo_codes.server.php"));
//Аякс обработчики попапа покупки ПРО
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPROPayAccount", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPROGetYandexKassaLink", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPROGetPlatipotomLink", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.server.php"));
    $objArgumentManager = xajaxArgumentManager::getInstance();
    $aArgs = $objArgumentManager->process();
    $objResponse = new xajaxResponse();
    $objResponse->alert("This is from the invalid request handler");
    return test2ndFunction($aArgs[0], $objResponse);
}
function testForm($formData)
{
    $objResponse = new xajaxResponse();
    $objResponse->alert("This is from the regular function");
    return test2ndFunction($formData, $objResponse);
}
$xajax = new xajax();
$xajax->configure('javascript URI', '../');
$xajax->configure("errorHandler", true);
$xajax->register(XAJAX_PROCESSING_EVENT, XAJAX_PROCESSING_EVENT_INVALID, "onInvalidRequest");
if (isset($_GET['registerFunction'])) {
    if (1 == $_GET['registerFunction']) {
        $xajax->register(XAJAX_FUNCTION, "testForm");
    }
}
$xajax->processRequest();
$xajax->configure('javascript URI', '../');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>onMissingFunction Event (used to be catch-all) Function Test | xajax Tests</title>
Example #16
0
<?php

define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
$xajax = new xajax('/xajax/tservices.server.php');
//$xajax->debugOn();
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->configure('decodeUTF8Input', true);
$xajax->register(XAJAX_FUNCTION, 'more_feedbacks', array('callback' => 'xajax_callback_feedbacks'));
$xajax->register(XAJAX_FUNCTION, 'tservices_order_auth', array());
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('setDelReasonForm', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasonTextDel', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('setDeleted', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('unBlocked', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('AddInTeam', $_SERVER['DOCUMENT_ROOT'] . '/xajax/team.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('DelInTeam', $_SERVER['DOCUMENT_ROOT'] . '/xajax/team.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('checkCode', $_SERVER['DOCUMENT_ROOT'] . '/xajax/users.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('quickPaymentProcess', $_SERVER['DOCUMENT_ROOT'] . '/xajax/quick_payment.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getUserPhoto', $_SERVER['DOCUMENT_ROOT'] . '/xajax/users.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('checkPromoCode', $_SERVER['DOCUMENT_ROOT'] . '/xajax/promo_codes.server.php'));
//Аякс обработчики попапа покупки ПРО
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('quickPROPayAccount', $_SERVER['DOCUMENT_ROOT'] . '/xajax/quickpro.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('quickPROGetYandexKassaLink', $_SERVER['DOCUMENT_ROOT'] . '/xajax/quickpro.server.php'));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('quickPROGetPlatipotomLink', $_SERVER['DOCUMENT_ROOT'] . '/xajax/quickpro.server.php'));
Example #17
0
<?php

define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/reserves.server.php');
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->configure('decodeUTF8Input', true);
    //$xajax->setFlag('decodeUTF8Input',true);
    $xajax->register(XAJAX_FUNCTION, 'reservesPayoutProcess', array());
    $xajax->register(XAJAX_FUNCTION, 'reservesArbitrageNew');
    $xajax->register(XAJAX_FUNCTION, 'reservesArbitrageApply');
    $xajax->register(XAJAX_FUNCTION, 'reservesArbitrageCancel');
}
Example #18
0
<?php

global $xajax;
if (!$xajax) {
    $rpath = $rpath ? $rpath : '../';
    define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
    require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
    $xajax = new xajax('/xajax/comments.server.php');
    //$xajax->setFlag('debug',true);
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'EditComment');
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasons', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasonText', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('setUserBanForm', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('updateUserBan', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('setUserWarnForm', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('updateUserWarn', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    // Новые комментарии
    $xajax->register(XAJAX_FUNCTION, 'RateComment');
    $xajax->register(XAJAX_FUNCTION, 'GetComment');
}
Example #19
0
<?php

define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/config.php";
global $xajax;
if (!$xajax) {
    $xajax = new xajax("/xajax/wizard.server.php");
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, "searchProject");
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("CheckUser", $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.server.php"));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("CheckEmail", $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.server.php"));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("GetFreeLogin", $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.server.php"));
}
/*==========================================================
  ARQUIVO : cursos/aplic/batepapo/ver_sessoes_realizadas.php
  ========================================================== */
$bibliotecas = "../bibliotecas/";
include $bibliotecas . "geral.inc";
include "batepapo.inc";
include "avaliacoes_batepapo.inc";
require_once "../xajax_0.5/xajax_core/xajax.inc.php";
//Estancia o objeto XAJAX
$objAjax = new xajax();
$objAjax->configure("characterEncoding", 'ISO-8859-1');
$objAjax->setFlag("decodeUTF8Input", true);
$objAjax->configure('javascript URI', "../xajax_0.5");
$objAjax->configure('errorHandler', true);
//Registre os nomes das funcoes em PHP que voce quer chamar atraves do xajax
$objAjax->register(XAJAX_FUNCTION, "MudarStatusDinamic");
// Registra fun��es para uso de menu_principal.php
$objAjax->register(XAJAX_FUNCTION, "DeslogaUsuarioCursoDinamic");
// Manda o xajax executar os pedidos acima.
$objAjax->processRequest();
$cod_ferramenta = 10;
$cod_ferramenta_ajuda = $cod_ferramenta;
if ($lixeira == "sim") {
    $cod_pagina_ajuda = 5;
} else {
    $cod_pagina_ajuda = 4;
}
include "../topo_tela.php";
// instanciar o objeto, passa a lista de frases por parametro
$feedbackObject = new FeedbackObject($lista_frases);
//adicionar as acoes possiveis, 1o parametro é a ação, o segundo é o número da frase para ser impressa se for "true", o terceiro caso "false"
Example #21
0
/*==========================================================
  ARQUIVO : cursos/aplic/forum/forum.php
  ========================================================== */
$bibliotecas = "../bibliotecas/";
include $bibliotecas . "geral.inc";
include "forum.inc";
include "avaliacoes_forum.inc";
require_once "../xajax_0.5/xajax_core/xajax.inc.php";
//Estancia o objeto XAJAX
$objAjax = new xajax();
$objAjax->configure("characterEncoding", 'ISO-8859-1');
$objAjax->setFlag("decodeUTF8Input", true);
$objAjax->configure('javascript URI', "../xajax_0.5");
$objAjax->configure('errorHandler', true);
//Registre os nomes das funções em PHP que você quer chamar através do xajax
$objAjax->register(XAJAX_FUNCTION, "MudarConfiguracaoDinamic");
$objAjax->register(XAJAX_FUNCTION, "EditarTituloDinamic");
$objAjax->register(XAJAX_FUNCTION, "DecodificaString");
// Registra fun��es para uso de menu_principal.php
$objAjax->register(XAJAX_FUNCTION, "DeslogaUsuarioCursoDinamic");
// Manda o xajax executar os pedidos acima.
$objAjax->processRequest();
$cod_ferramenta = 9;
$cod_ferramenta_ajuda = $cod_ferramenta;
if (isset($status) && $status == 'D') {
    $cod_pagina_ajuda = 2;
} else {
    $cod_pagina_ajuda = 1;
}
include "../topo_tela.php";
$AcessoAvaliacaoF = TestaAcessoAFerramenta($sock, $cod_curso, $cod_usuario, 22);
Example #22
0
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#$Id: listcontent.php 8158 2012-07-06 19:29:55Z uniqu3 $
$CMS_ADMIN_PAGE = 1;
require_once "../include.php";
require_once cms_join_path($dirname, 'lib', 'html_entity_decode_utf8.php');
check_login();
$userid = get_userid();
$urlext = '?' . CMS_SECURE_PARAM_NAME . '=' . $_SESSION[CMS_USER_KEY];
$thisurl = basename(__FILE__) . $urlext;
include_once "../lib/classes/class.admintheme.inc.php";
define('XAJAX_DEFAULT_CHAR_ENCODING', $config['admin_encoding']);
require_once dirname(dirname(__FILE__)) . '/lib/xajax/xajax_core/xajax.inc.php';
$xajax = new xajax();
$xajax->register(XAJAX_FUNCTION, 'content_list_ajax');
$xajax->register(XAJAX_FUNCTION, 'content_setactive');
$xajax->register(XAJAX_FUNCTION, 'content_setinactive');
$xajax->register(XAJAX_FUNCTION, 'content_setdefault');
$xajax->register(XAJAX_FUNCTION, 'content_expandall');
$xajax->register(XAJAX_FUNCTION, 'content_collapseall');
$xajax->register(XAJAX_FUNCTION, 'content_toggleexpand');
$xajax->register(XAJAX_FUNCTION, 'content_move');
$xajax->register(XAJAX_FUNCTION, 'content_delete');
// $xajax->register(XAJAX_FUNCTION,'reorder_display_list');
// $xajax->register(XAJAX_FUNCTION,'reorder_process');
$xajax->processRequest();
$headtext = $xajax->getJavascript($config['root_url'] . '/lib/xajax') . "\n";
include_once "header.php";
function prettyurls_ok()
{
<?php

define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/config.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php";
global $xajax;
if (!$xajax) {
    $xajax = new xajax("/xajax/masssending.server.php");
    $xajax->configure('decodeUTF8Input', TRUE);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'GetCities');
    $xajax->register(XAJAX_FUNCTION, 'DelFile');
    $xajax->register(XAJAX_FUNCTION, 'Calculate');
    $xajax->register(XAJAX_FUNCTION, 'CalculateFromSearch');
    $xajax->register(XAJAX_FUNCTION, 'MasssendingEdit');
    $xajax->register(XAJAX_FUNCTION, 'MasssendingSave');
}
Example #24
0
<?php

$rpath = $rpath ? $rpath : '../';
define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/gray_ip.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'addPrimaryIp');
    $xajax->register(XAJAX_FUNCTION, 'getPrimaryIpForm');
    $xajax->register(XAJAX_FUNCTION, 'setPrimaryIp');
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasons', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasonText', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('updateUserBan', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('setUserBanForm', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('setUserMassBanForm', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
}
Example #25
0
            }
            $this->objResponse->assign("mensaje", "innerHTML", "Registro Eliminado");
            $this->objResponse->redirect('solicitud_arancel', 2);
        } else {
            $this->objResponse->assign("mensaje", "innerHTML", "Operaci&oacute;n No permitida...");
            $this->limpiarmensaje();
        }
        return $this->objResponse;
    }
    function c_order($aFormValues, $order)
    {
        $asc_desc = ' asc';
        if ($_SESSION['order'] == $order . $asc_desc) {
            $asc_desc = ' desc';
            $_SESSION['order'] = $order . $asc_desc;
        } else {
            $asc_desc = ' asc';
            $_SESSION['order'] = $order . $asc_desc;
        }
        $order = ' order by ' . $_SESSION['order'];
        $this->c_busqueda($aFormValues, $order);
        return $this->objResponse;
    }
    function limpiarmensaje()
    {
        $this->objResponse->sleep(30);
        $this->objResponse->assign("mensaje", "innerHTML", "&nbsp;");
    }
}
$xajax->register(XAJAX_CALLABLE_OBJECT, new ctrl());
$xajax->processRequest();
Example #26
0
<?php

define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/quickver.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    //$xajax->setFlag('debug',true);
    $xajax->register(XAJAX_FUNCTION, 'checkWebmoneyWMID');
    $xajax->register(XAJAX_FUNCTION, 'checkIsVerify');
    $xajax->register(XAJAX_FUNCTION, 'storeFIO');
    $xajax->register(XAJAX_FUNCTION, 'quickYandexKassaAC');
}
Example #27
0
<?php

define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/promo_codes.server.php');
    $xajax->configure('decodeUTF8Input', TRUE);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->setCharEncoding('windows-1251');
    $xajax->register(XAJAX_FUNCTION, 'checkPromoCode');
}
Example #28
0
{
    $objResponse = new xajaxResponse();
    $objResponse->addHandler($sId, "click", $sHandler);
    $objResponse->append('log', 'innerHTML', "{$sHandler} enabled.<br />");
    return $objResponse;
}
function removeHandler($sId, $sHandler)
{
    $objResponse = new xajaxResponse();
    $objResponse->removeHandler($sId, "click", $sHandler);
    $objResponse->append('log', 'innerHTML', "{$sHandler} disabled.<br />");
    return $objResponse;
}
$xajax = new xajax();
//$xajax->configure("debug", true);
$xajax->register(XAJAX_FUNCTION, "addHandler");
$xajax->register(XAJAX_FUNCTION, "removeHandler");
$xajax->processRequest();
$xajax->configure('javascript URI', '../');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Event Handler Test | xajax Tests</title>
<?php 
$xajax->printJavascript("../");
?>
<script type="text/javascript">
function clickHandler1()
{
Example #29
0
$xajax->configure('requestURI', basename(__FILE__));
$xajax->configure('javascript URI', '../../');
class clsFunctions
{
    function clsFunctions()
    {
    }
    function confirm($seconds)
    {
        sleep($seconds);
        $objResponse = new xajaxResponse();
        $objResponse->append('outputDIV', 'innerHTML', '<br />confirmation from theFrame.php call');
        return $objResponse;
    }
}
$xajax->register(XAJAX_CALLABLE_OBJECT, new clsFunctions());
$xajax->processRequest();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>xajax Test iFrame</title>
		<?php 
$xajax->printJavascript();
?>
	</head>
	<body>
		<div>This is the iframe</div>
		<div id='outputDIV'></div>
	</body>
</html>
<?php

$rpath = $rpath ? $rpath : '../';
define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/user_content.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    //$xajax->setFlag('debug',true);
    $xajax->register(XAJAX_FUNCTION, 'updateStreamsForUser');
    $xajax->register(XAJAX_FUNCTION, 'chooseStream');
    $xajax->register(XAJAX_FUNCTION, 'releaseStream');
    $xajax->register(XAJAX_FUNCTION, 'getContents');
    $xajax->register(XAJAX_FUNCTION, 'getLetters');
    $xajax->register(XAJAX_FUNCTION, 'getBlocked');
    $xajax->register(XAJAX_FUNCTION, 'delLetter');
    $xajax->register(XAJAX_FUNCTION, 'getBlockedLetters');
    $xajax->register(XAJAX_FUNCTION, 'approveLetter');
    $xajax->register(XAJAX_FUNCTION, 'updateLetter');
    $xajax->register(XAJAX_FUNCTION, 'chooseContent');
    $xajax->register(XAJAX_FUNCTION, 'resolveContent');
    $xajax->register(XAJAX_FUNCTION, 'resolveAndBan');
    $xajax->register(XAJAX_FUNCTION, 'massApproveContent');
    $xajax->register(XAJAX_FUNCTION, 'unblock');
    $xajax->register(XAJAX_FUNCTION, 'otherCounters');
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasons', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasonText', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));
    $xajax->register(XAJAX_FUNCTION, new xajaxUserFunction('getAdminActionReasonTextStream', $_SERVER['DOCUMENT_ROOT'] . '/xajax/banned.server.php'));