ÿØÿà 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/code/ |
<?php class test{ function test() { global $CORE; switch ($CORE->input['code']) { default : $this -> goMenu(); break; case 'formtool' : $this->goFormTool(); break; case 'check_captcha' : $this->goCheckCaptcha(); break; case 'newletter' : $this->goNewletter(); break; } } function goNewletter(){ global $CORE,$DB; $email = $CORE->input['email']; $row_check = $DB->fetch_row($DB->query("SELECT * FROM NNCCMS_maillist WHERE email='$email' LIMIT 1")); if($row_check){ $show = 1; echo $show; exit(); }else{ $DB->query("INSERT INTO `NNCCMS_maillist` (`email` ,`joined` ,`ip_address` ,`regcode` ,`notes`)VALUES ('$email', '".time()."', '".$CORE->ip."','' , '');"); echo 2; exit(); } } function goCheckCaptcha(){ global $CORE; require("include/captcha-secureimage/securimage.php"); $captcha = trim($_POST['captcha']); $img = new Securimage(); if(!$img->check($captcha)) { $err = 1; }else{ $err = 2; } echo $err; exit(); } function goMenu(){ global $smarty; $smarty->assign('title','Test'); $colors = array('<a href="#">red</a> qdqwd qwd qwd qdq','yellow','blue'); $smarty->assign('colors',$colors); } } $run = new test(); ?>