admin_cp_header(); } //Lets echo the top headers echo ' '.$title.' '; echo 'Left_menu'; // This is if we want to include any custom footer from any control panel. Eg: cPanel if(method_exists($softpanel, 'admin_cp_footer')){ $softpanel->admin_cp_footer(); } echo ''; } function error_handle($error, $table_width = '100%', $center = 1){ global $l, $theme; //on error call the form if(!empty($error)){ $str .= '
×

  '.$l['following_errors_occured'].' :

    '; foreach($error as $ek => $ev){ $str .= '
  • '.$ev.'
  • '; } $str .= '
'; if(empty($return)){ echo $str; }else{ return $str; } } } //This will just echo that everything went fine function success_message($message, $table_width = '100%', $center = false){ global $l; //on error call the form if(!empty($message)){ echo '
'.$l['welcome'].'
'; if($globals['lictype'] == '-2'){ echo '
Dev License: This installation of '.APP.' is running under a Development License and is not authorized to be used for production use.
Please report any cases of abuse to support@'.strtolower(APP).'.com
'; } } function softfooter(){ global $user, $conn, $dbtables, $logged_in, $globals, $l, $dmenus, $end_time, $start_time, $onload, $theme, $softpanel; if(optGET('jsnohf')){ return true; } $pageinfo = array(); if(!empty($globals['showntimetaken'])){ $pageinfo[] = $l['page_time'].':'.substr($end_time-$start_time,0,5); } if(!empty($theme['copyright'])){ echo unhtmlentities($theme['copyright']); } echo ''; echo '
'.(empty($pageinfo) ? '' : '').'
'.copyright().' '.implode('  |  ', $pageinfo).'
'.$l['following_message'].' :
    '; foreach($message as $mk => $mv){ echo '
  • '.$mv.'
  • '; } echo '
'.(($center) ? '' : '' ).'
'; } } function majorerror($title, $text, $heading = ''){ global $theme, $globals, $user, $l; softheader(((empty($title)) ? $l['fatal_error'] : $title), false); ?>





1){ // Show the Back Links if required if($pg != 1){ $_pages['<<'] = 1; $_pages['<'] = ($pg - 1); } for($i = ($pg - 4); $i < $pg; $i++){ if($i >= 1){ $_pages[$i] = $i; } } $_pages[$pg] = $pg; for($i = ($pg + 1); $i <= ($pg + 4); $i++){ if($i <= $pages){ $_pages[$i] = $i; } } if($pg != $pages){ $_pages['>'] = ($pg + 1); $_pages['>>'] = $pages; } } $name = 'pgjmp_'.generateRandStr(4); if(empty($js['menu'])){ echo ' '; $js['menu'] = true; } $links = '
'; foreach($_pages as $k => $lv){ $links .= ''; } $links .= ''; $links .= '
'.$k.'

'; echo $links; } ?>