ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/thietkewebvumi.com/ |
<?php require ROOT_PATH."xajax2/xajax_core/xajax.inc.php"; $xajax = new xajax(); //require_once('ajax2.php');//ajax2 for CV //require_once('ajax3.php');//ajax2 for banner function changeLang($langtype){ global $CORE; $objResponse = new xajaxResponse(); $_SESSION['language'] = $langtype; $objResponse->script("setTimeout(\"window.location.reload()\",500);"); return $objResponse; } function addMail($email){ global $CORE,$DB,$func; $objResponse = new xajaxResponse(); $email = trim($email); if($func->checkEmail($email)=='' or $email=='') { $objResponse->alert('Email không đúng định dạng, xin thá» lại!...'); return $objResponse; } $query=$DB->query("SELECT id FROM NNCCMS_maillist WHERE email LIKE '%".$email."%'"); if($DB->get_num_rows($query)>0){ $objResponse->alert('Email nà y đã được đăng ký trÆ°á»›c đây! Cảm Æ¡n bạn ...'); return $objResponse; }else{ $DB->query("INSERT INTO `NNCCMS_maillist`(`id`,`email`,`joined`,`ip_address`,`regcode`,`notes`) VALUES('','".$email."','".$CORE->time."','".$CORE->ip."','','');"); $objResponse->alert('Wooree Việt Nam đã nháºn được email của bạn, xin cảm Æ¡n ...'); } //$objResponse->alert($form['email']); return $objResponse; } /** function testfacebox($m){ global $CORE,$DB,$func,$homeurl; $objResponse = new xajaxResponse(); $objResponse->script("$.facebox('something cool');"); return $objResponse; } **/ // Specify the PHP functions to wrap. The JavaScript wrappers will be named xajax_functionname //new $xajax->registerFunction("changeLang"); $xajax->registerFunction("addMail"); //$xajax->registerFunction("testfacebox"); // Process any requests. Because our requestURI is the same as our html page, // this must be called before any headers or HTML output have been sent $xajax->processRequest(); /* xajax js scripts header*/ //echo $xajax->getJavascript('xajax2/'); $TBS->MergeField ('xajax_js',$xajax->getJavascript($homeurl.'xajax2/')); //$xajax_files = array(); //$xajax_files[] = array("xajax2/xajax_js/xajax_core.js", "xajax"); // $xajax_files[] = array("xajax_js/xajax_debug.js", "xajax.debug"); //$xajax->getJavascript("xajax2/", $xajax_files); // End ajax pagination ===================================================================================== /** all call show respose $objResponse->assign("myInput1","value",$DataFromDatabase); $objResponse->assign("myInput1","style.color","red"); $objResponse->append("myDiv1","innerHTML",$DataFromDatabase2); $objResponse->prepend("myDiv2","innerHTML",$DataFromDatabase3); $objResponse->replace("myDiv3","innerHTML","xajax","<strong>xajax</strong>"); $objResponse->script("var x = prompt(\"Enter Your Name\");"); **/ ?>