loadinsapps(); $disable_sysapps = $softpanel->is_sysapps_disable(); } $title = ((empty($title)) ? $globals['sn'] : $title); $got_cache_js = get_cache_time(); // Is there a Panel Header ? if(!empty($softpanel->pheader)){ echo $softpanel->pheader; } $custom_favicon = (!empty($globals['favicon_logo']) ? $globals['favicon_logo'] : $theme['images'].'/'.(asperapp('', 'webuzo/', 'ampps/')).'favicon.ico'); //Lets echo the top headers echo ' '.$title.' '. (file_exists($theme['path'].'/custom.css') ? '' : '') .' '; if(empty($_GET['billing_index_url'])){ echo ''; } echo ' '; // Show the EULA Notice in Interworx panel if(empty($user['eula_accept']) && $globals['softpanel'] == 'interworx'){ echo ''; } if(optGET('nohf')){ $globals['ind'] .= 'nohf=1&'; return true; } $navbar_top = array(); if(empty($globals['off_panel_link'])){ $navbar_top['goto_control_panel'] = '
  • '; } if(can_wordpress_manager()){ $navbar_top['goto_wp_manager'] = '
  • '; } if(webuzo() && (!$softpanel->is_sysapps_disable())){ $navbar_top['goto_webuzo_home'] = '
  • '; } if(webuzo()){ $navbar_top['goto_webuzo_cpanel'] = '
  • '; } if(aefer() && allow_adddomain()){ $navbar_top['add_domain'] = '
  • '; } if(webuzo()){ $navbar_top['webuzo_manage_domains'] = '
  • '; } if(empty($globals['off_demo_link'])){ $navbar_top['goto_demo'] = '
  • '; } if(empty($globals['off_rating_link'])){ $navbar_top['goto_rating'] = '
  • '; } $navbar_top['goto_installations'] = '
  • '; if(webuzo() && (!$softpanel->is_sysapps_disable())){ $navbar_top['webuzo_app_installations'] = '
  • '; } $navbar_top['goto_tasklist'] = '
  • '; $navbar_top['goto_settings'] = '
  • '; if(empty($globals['disable_backup_restore'])){ $navbar_top['goto_backups'] = '
  • '; } if(empty($globals['disable_template'])){ $navbar_top['goto_templates'] = '
  • '; } if(empty($globals['off_email_link'])){ $navbar_top['goto_email_settings'] = '
  • '; } if(empty($globals['off_sync_link'])){ $navbar_top['goto_sync'] = '
  • '; } if(!empty($globals['orig_is_free'])){ $navbar_top['goto_plans'] = '
  • '; } $navbar_top['goto_help'] = '
  • '; $navbar_top = apply_filters('navbar_links', $navbar_top); echo '
    Loading...
    '; echo '
     
      '; foreach($navbar_top as $n => $k){ echo $navbar_top[$n]; } echo '
    '; $temp_allcatwise = $allcatwise; // Classes are only avaialable to Premium License if(empty($globals['disable_classes']) && !empty($globals['lictype'])){ $temp_allcatwise['classes'] = 'Classes'; } // Webuzo has the APPs support if(webuzo()){ $disablesysapps = $softpanel->is_sysapps_disable(); if(empty($disablesysapps)){ $temp_allcatwise['apps'] = 'Apps'; $allcatwise['apps'] = $apps_catwise; }else if($globals['mode'] == 'apps'){ redirect(''); return false; } } echo '
      '.$l['go_home'].'   '. (!empty($globals['panel_hf']) && !empty($softpanel->can_shrink_nativeui) ? '' : ''); if(empty($globals['nolabels'])){ echo '  Scripts :   '.($globals['mode'] == 'js' ? 'JavaScripts' : ($globals['mode'] == 'classes' ? 'Classes' : ( asperapp(0,1,0) ? ($globals['mode'] == 'java' ? 'JAVA' : ($globals['mode'] == 'python' ? 'Python' : strtoupper($globals['mode']))) : strtoupper($globals['mode'])) )).''; foreach($temp_allcatwise as $k => $v){ echo (empty($temp_allcatwise[$k]) || $globals['mode'] == $k ? '' : '  '.($k == 'js' ? 'JavaScripts' : ($k == 'classes' ? 'Classes' : ($k == 'java' || $k == 'apps' || $k == 'python' ? ucfirst($k) : strtoupper($k)) )).''); } } echo ' '.(webuzo() && ($softpanel->getCurrentUser() == 'root') ? $l['root_login'] : '').'  '.$l['welcome'].' '.(empty($softpanel->user['displayname']) ? $softpanel->user['name'] : $softpanel->user['displayname']).' ['.$l['logout'].']      

    '; //The Menus of softwares if(!empty($leftbody)){ $theme['leftbody'] = $leftbody; echo '
    '; $ind = $globals['mode']; //This is done for the SLIDER $js_cat = array(); foreach($allcatwise[$ind] as $cat => $softs){ if(empty($softs)) continue; $js_cat[] = $cat; } echo '
    '; if($ind == 'classes' || optGET('act') == 'classes'){ echo ''; echo '
      '; ksort($classes_categories); foreach ($classes_categories as $key => $value){ echo '
    • '; } echo '
    '; }else{// end of $ind == 'classes' echo '
    '; $icat = 0; $str = ''; echo $str; echo '
    '; echo ''; } echo '
    '; } //Everything else will go here echo '
    '; 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

    '; } // Did you know div // Do not show the suggestions when user has submitted any form if(empty($_POST)){ if(empty($globals['lictype']) && softaculous_is_pro() && empty($globals['disable_softaculous_pro_plugin']) && empty($user['disable_softai_notice'])){ $softai_html = csrf_display(); $softai_html .= ' '; echo $softai_html; $print_style = 1; } $suggestions = load_suggestions($act); if(!empty($suggestions)){ shuffle($suggestions); $suggest_html = csrf_display(); $suggest_html .= '
    '; echo $suggest_html; $print_style = 1; } if(!empty($print_style)){ echo ' '; } } apply_filters('post_header'); } function softfooter(){ global $user, $conn, $dbtables, $logged_in, $globals, $l, $dmenus, $end_time, $start_time, $onload, $theme, $softpanel; if(optGET('jsnohf')){ return true; } echo '
    '; if(!empty($theme['leftbody'])){ echo '
    '; } $nohf = optGET('nohf'); // Show the footer HTML only if we do not need hf if(empty($nohf)){ echo '
    '; echo '
      '.$l['times_are'].' '.get_timezone_offset().'. '.$l['time_is'].' '.datify(time(), false).'. '.$l['back_to_top'].'  
    '; $pageinfo = array(); if(!empty($globals['showntimetaken'])){ $pageinfo[] = $l['page_time'].':'.substr($end_time-$start_time,0,5); } echo '
    '.(empty($pageinfo) ? '' : '').'
    '.copyright().''.implode('  |  ', $pageinfo).'

    '; if(!empty($theme['copyright'])){ echo unhtmlentities($theme['copyright']); } } // End of nohf IF echo ''; // Is there a Panel Footer ? if(!empty($softpanel->pfooter)){ echo $softpanel->pfooter; } echo ' '; } function error_handle($error, $table_width = '100%', $center = false, $return = false){ global $l; $str = ""; //on error call the form if(!empty($error)){ $error = apply_filters('error_handle', $error); $str .= '
    '.$l['following_errors_occured'].' :
      '; foreach($error as $ek => $ev){ if(empty($ev)){ soft_log(1, 'Empty error in error_handle. Backtrace: '.var_export(debug_backtrace(), true)); } $str .= '
    • '.$ev.'
    • '; } $str .= '
    '.(($center) ? '' : '' ).'
    '; 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['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); ?>