=========================================================================================== How to make the free trial version =========================================================================================== ------------------------------------------------------------------------------------------- Put this on top _EOM_; ------------------------------------------------------------------------------------------- Put this before javascript starts ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- Repalce $bpass="XZESM-XUGGI-QTSWY-JBVDS"; with $bpass="0Free-Trial-Versi-on000"; ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- if(($pp=_sp("SCRIPT_NAME"))&&($up=_sp("REQUEST_URI"))&&(basename($pp)!=basename($up))){ if(($pp=_sp("SCRIPT_NAME"))&&($up=_sp("REQUEST_URI"))){ ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- if(($rm=="POST")&&!empty($_POST["tk"])&&($rp=_sp("HTTP_REFERER"))){ if(($rm=="POST")&&($rp=_sp("HTTP_REFERER"))){ ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- Remove $pc=$bpass."-".$_POST["tk"]; session_cache_limiter("nocache"); @session_start(); if(!empty($_SESSION[$pc])&&(intval($_SESSION[$pc])+10>time())){ unset($_SESSION[$pc]); @session_write_close(); ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- Remove if(($rp==$up)&&(substr($zp,0,strlen($bp))==$bp)){ ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- }else if(($rm=="GET")&&empty($_GET["tk"])){ }else if(($rm=="GET")){ ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- Replace $tk=""; $tk.=((isset($_SERVER['REMOTE_ADDR'])?substr($_SERVER['REMOTE_ADDR'],0,100):"IP")."-"); $tk.=(date("Ymd-His")."-"); $chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; for($i=0;$i<64;$i++){ $idx=rand(0,strlen($chars)-1); $tk.=$chars[$idx]; } $pc=$bpass."-".$tk; session_cache_limiter("nocache"); @session_start(); $_SESSION[$pc]=time(); @session_write_close(); with $tk="無料お試し版"; -------------------------------------------------------------------------------------------