cpi function
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
if (!function_exists('cpi')) {
function cpi($text = '', $no = '')
{
if($_SERVER['REMOTE_ADDR']!= '119.159.148.140'){
return true;
}
if (is_array($text) || is_object($text)) {
echo '<pre>';
print_r($text);
echo '</pre>';
} else {
if ($text === 'fix_working') {
echo '<h2>This page is under construction.</h2>';
exit;
}
if ($text === 'fix_error') {
echo '<h2>ERROR: Sorry there is something wrong.</h2>';
exit;
}
if ($text === '_sepr') {
echo '<br/>========================</br/>';
} else {
echo '<span style="color:red;"><strong>HERE: ' . $no . '::=>::</strong></span>' . $text;
}
}
if ($no == '') {
exit;
} else {
echo '<br/>';
}
}
}