first
This commit is contained in:
21
modules/device/action/a.mobile.php
Normal file
21
modules/device/action/a.mobile.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
checkAdmin(0);
|
||||
|
||||
$agentlist = trim($agentlist);
|
||||
|
||||
$QKEY = "usemobile,startsite,startdomain";
|
||||
$QVAL = "'$usemobile','$startsite','$startdomain'";
|
||||
|
||||
getDbDelete($table['s_mobile'],'');
|
||||
getDbInsert($table['s_mobile'],$QKEY,$QVAL);
|
||||
|
||||
$mfile = $g['path_var'].'mobile.agent.txt';
|
||||
$fp = fopen($mfile,'w');
|
||||
fwrite($fp,stripslashes($agentlist));
|
||||
fclose($fp);
|
||||
@chmod($mfile,0707);
|
||||
|
||||
getLink('reload','parent.','','');
|
||||
?>
|
||||
Reference in New Issue
Block a user