|
|
include('configuration/cms.php'); function readini($file,$title,$item) { $source = file($file); $t_match = "/^\[".$title."\]/i"; $s_title = "no"; foreach ($source as $temp) { if (preg_match("/^\[".$title."\]/i",$temp)) { $s_title = "yes"; } elseif (preg_match("/^\[.+\]/",$temp) && $s_title = "yes") { $s_title = "no"; } elseif (preg_match("/^".$item."=/i",$temp) && $s_title == "yes") { $result = explode("=",$temp); return $result[1]; } } } function writeini($file,$title,$item,$data) { if (file_exists($file)) { $t_match=readini("$file","$title","$item"); $t_contents=file_get_contents($file); $t_result=str_replace("$item=$t_match", "$item=$data ", "$t_contents"); { $filename = "$file"; } $somecontent = "$t_result"; if (!$handle = fopen($filename, 'w')) { exit; } if (fwrite($handle, $somecontent) === FALSE) { exit; } fclose($handle); } } ?> include('status.php'); $file = "web-gallery/sessions/$session_secure.sll"; if (file_exists($file)) { }else{ echo '/>'; exit; } ?>/> $session_tags=str_replace("<", "", $session_tags); ?>
|
|