system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<?php
class Model_MIndex
{
function getSponsorName()
{
$sponsorname =$_SERVER['REQUEST_URI'];
$getsponsorname=explode("?",$sponsorname);
$finalsponsorname= ereg_replace("%20"," ",$getsponsorname[1]);
$_SESSION['intro_name'] = $finalsponsorname;
}
function getPromotionalSite()
{
$refererid =$_SERVER['REQUEST_URI'];
$getreferername=explode("?",$refererid);
$finalsponsorname= ereg_replace("%20"," ",$getreferername[1]);
if(stristr($finalsponsorname,'refid='))
{
include_once('classes/Controller/CPromotionalSite.php');
$obj = new Controller_CPromotionalSite;
$obj->getPromotionalSiteDetails();
exit();
}
}
function getContent()
{
$select="select * from popup_management where id='1'";
$obj=new Bin_Query();
$obj->executeQuery($select);
return $obj->records[0];
}
}
?>