| Linux hosting5.siteguarding.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64 Path : /sg_dev_adv_whm/ |
| Current File : //sg_dev_adv_whm/functions.php |
<?php
function save_code(){
if(isset($_REQUEST['code']) && !empty($_REQUEST['code'])){
$fp = fopen("/usr/local/cpanel/base/frontend/paper_lantern/sg_dev_adv_cpanel/code","w");
fwrite($fp,trim($_REQUEST['code']));
fclose($fp);
}
}
function get_code(){
if(file_exists("/usr/local/cpanel/base/frontend/paper_lantern/sg_dev_adv_cpanel/code")){
$content = file_get_contents("/usr/local/cpanel/base/frontend/paper_lantern/sg_dev_adv_cpanel/code");
return ($content) ? $content : '' ;
}
}
?>