loadinsapps(); $def_mysql = $softpanel->getConf('WU_DEFAULT_MYSQL'); $mysql = (!empty($def_mysql) ? $softpanel->get_app_record($def_mysql) : 16); $def_web_server = $softpanel->getConf('WU_DEFAULT_SERVER'); $web_server = (!empty($def_web_server) ? $softpanel->get_app_record($def_web_server) : 3); $disable_sysapps = $softpanel->is_sysapps_disable(); $def_tomcat = $softpanel->getConf('WU_TOMCAT'); $is_tomcat_ins = (!empty($def_tomcat) ? $def_tomcat : "not_installed"); } if(optGET('jsnohf')){ return true; } //r_print($user['color_theme']); $title = ((empty($title)) ? $globals['sn'] : $title); // 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.' '. (!empty($user['dark_theme']) ? ' ' : ''). (file_exists($theme['path'].'/custom.css') ? ' ' : '') .' '; $got_cache_js = get_cache_time(); echo ' '; if(empty($_GET['billing_index_url'])){ echo ''; } echo ''; 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; } $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; } } // Show the EULA Notice in Interworx panel if(empty($user['eula_accept']) && $globals['softpanel'] == 'interworx'){ echo ''; } //Search Function if(webuzo()){ $file_data = file_get_contents($globals['enduser'].'/webuzo_search.json'); $file_data = json_decode($file_data, true); foreach($file_data as $key => $value){ if($key == 'searchArray'){ $searchArray = json_encode($file_data['searchArray']); } } echo ' '; } //For native UI support if(!empty($softpanel->pheader)){ if(is_cp_theme('paper_lantern')){ echo ' '; } } if(optREQ('nohf')){ $globals['ind'] .= 'nohf=1&'; return true; } $navbar_top = array(); //Navigation Control Panel Link if(empty($globals['off_panel_link'])){ $navbar_top['goto_control_panel']['fullscreen'] = ''.((!empty($softpanel->goto_cp_logo) && empty($user['user_defined_color']) && empty($globals['default_hf_text'])) ? '' : '').''; $navbar_top['goto_control_panel']['responsive'] = '
  • '.((!empty($softpanel->goto_cp_logo) && empty($user['user_defined_color']) && empty($globals['default_hf_text'])) ? '' : '').'  '.$l['go_cpanel'].'

  • '; } //Top Search Bar if(webuzo()){ if(!empty($act)){ $navbar_top['search_bar']['fullscreen'] = '  '; } $navbar_top['logged_user']['fullscreen'] = ''.(($softpanel->getCurrentUser() == 'root') ? $l['root_login'] : '').'   '; } if(can_wordpress_manager()){ $navbar_top['goto_wp_manager']['fullscreen'] = ''; $navbar_top['goto_wp_manager']['responsive'] = '
  •   '.$l['go_wp_manager'].'

  • '; } //Navigation Webuzo Home if(webuzo()){ $navbar_top['goto_webuzo_home']['fullscreen'] = ''; $navbar_top['goto_webuzo_home']['responsive'] = '
  •   '.$l['go_home'].'

  • '; } //Navigation Webuzo Cpanel if(webuzo() && (!$softpanel->is_sysapps_disable())){ $navbar_top['goto_webuzo_cpanel']['fullscreen'] = ''; $navbar_top['goto_webuzo_cpanel']['responsive'] ='
  •   '.$l['go_cpanel'].'

  • '; } //We are hiding the icons for webuzo as we are showing those in hidden dropdown. if(!webuzo()){ //Navigation Add Domains if(aefer() && allow_adddomain()){ $navbar_top['add_domain']['fullscreen'] = ''; $navbar_top['add_domain']['responsive'] = '
  •   '.$l['go_domain'].'

  • '; } //Navigation Demo Link if(empty($globals['off_demo_link'])){ $navbar_top['goto_demo']['fullscreen'] = ''; $navbar_top['goto_demo']['responsive'] = '
  •   '.$l['go_demos'].'

  • '; } //Navigation Ratings if(empty($globals['off_rating_link'])){ $navbar_top['goto_rating']['fullscreen'] = ''; $navbar_top['goto_rating']['responsive'] = '
  •   '.$l['go_ratings'].'

  • '; } } //Navigation Installations $navbar_top['goto_installations']['fullscreen'] = ''; $navbar_top['goto_installations']['responsive'] = '
  •   '.$l['go_installations'].'

  • '; //Navigation Webuzo App Installations if(webuzo() && (!$softpanel->is_sysapps_disable())){ $navbar_top['webuzo_app_installations']['fullscreen'] = ''; $navbar_top['webuzo_app_installations']['responsive'] = '
  •   '.$l['go_apps_installations'].'

  • '; } //Tasklist Navigation $navbar_top['goto_tasklist']['fullscreen'] = ''; $navbar_top['goto_tasklist']['responsive'] = '
  •   '.$l['go_tasklist'].'

  • '; //We are hiding the icons for webuzo as we are showing those in hidden dropdown. if(!webuzo()){ //Settings Navigation $navbar_top['goto_settings']['fullscreen'] = ''; $navbar_top['goto_settings']['responsive'] = '
  •   '.$l['go_settings'].'

  • '; //Navigation Backup Restore Link if(empty($globals['disable_backup_restore'])){ $navbar_top['goto_backups']['fullscreen'] = ''; $navbar_top['goto_backups']['responsive'] = '
  •   '.$l['go_backups'].'

  • '; } //Navigation Templates Link if(empty($globals['disable_template'])){ $navbar_top['goto_templates']['fullscreen'] = ''; $navbar_top['goto_templates']['responsive'] = '
  •   '.$l['go_templates'].'

  • '; } //Navigation Email Link if(empty($globals['off_email_link'])){ $navbar_top['goto_email_settings']['fullscreen'] = ''; $navbar_top['goto_email_settings']['responsive'] = '
  •   '.$l['go_email_settings'].'

  • '; } //Navigation Sync if(empty($globals['off_sync_link']) && !aefer() && !ent()){ $navbar_top['goto_sync']['fullscreen'] = ''; $navbar_top['goto_sync']['responsive'] = '
  •   '.$l['go_sync'].'

  • '; } // Show the plans page if the original license is free if(!empty($globals['orig_is_free'])){ $navbar_top['goto_plans']['fullscreen'] = ''; $navbar_top['goto_plans']['responsive'] = '
  •   '.$l['go_plans'].'

  • '; } //Navigation Help $navbar_top['goto_help']['fullscreen'] = ''; $navbar_top['goto_help']['responsive'] = '
  •   '.$l['go_support'].'

  • '; //Navigation Logout $navbar_top['goto_logout']['fullscreen'] = ''; $navbar_top['goto_logout']['responsive'] = '
  •   '.$l['go_logout'].'

  • '; } if(webuzo()){ //Navigation Settings Dropdown $navbar_top['goto_userPreferences']['fullscreen'] = ' '; $navbar_top['goto_userPreferences']['responsive'] = ''; } $navbar_top = apply_filters('navbar_links', $navbar_top); $shrink_button = ''; // Do we have to show the expand and collapse native UI buttons if(!empty($globals['panel_hf']) && !empty($softpanel->can_shrink_nativeui)){ $nui_href = 'href="javascript:set_pheader();"'; // Is it the new iframe native UI ? if(method_exists($softpanel, 'header') && (empty($_COOKIE['pheader']) || $_COOKIE['pheader'] == 'yes')){ $nui_href = 'href="javascript:parent.set_pheader();"'; } $shrink_button = '  '; $shrink_button_responsive = '
  •   
  • '; } echo '
    '; $top_bar = $shrink_button; $pre_selected_ind = array('php', 'perl', 'java', 'python'); if(empty($globals['nolabels'])){ $top_bar .= ''; foreach($temp_allcatwise as $k => $v){ $top_bar .= (empty($temp_allcatwise[$k]) || $globals['mode'] == $k ? '' : ''); } } $top_bar .= ''; echo $top_bar; foreach($navbar_top as $n => $v){ echo $navbar_top[$n]['fullscreen']; } echo '
    pheader) ? 'height="40"' : '').'>  '.($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'])))).'  '.($k == 'js' ? 'JavaScripts' : ($k == 'classes' ? 'Classes' : ($k == 'java' || $k == 'apps' || $k == 'python' ? ucfirst($k) : strtoupper($k)))).' 
    Left_menu

    Loading...
    '; //width="'.(!empty($softpanel->leftpanel_resize) ? '192' : '220').'" echo 'Left_menu'; //Bottom Footer echo '
    '; if($ind != 'classes'){ echo '
    '; } if(!empty($leftbody)){ if($ind == 'classes' || optGET('act') == 'classes'){ if(!empty($softpanel->pheader)){ if(is_cp_theme('paper_lantern')){ echo ' '; }else{ echo ' '; } } echo ''; }// end of $ind == 'classes' $theme['leftbody'] = $leftbody; echo '
      '; // Only for classes menu if($ind=='classes'){ echo ''; }else{ $icat = 0; $str = ''; echo $str; }// End of ELSE (i.e for iscripts) echo '
    '; } echo '
    '; echo '
    '; //Everything else will go here if(!webuzo()){ echo '
    '.(webuzo() && ($softpanel->getCurrentUser() == 'root') ? $l['root_login'] : '').'  '.$l['welcome'].' '.(empty($softpanel->user['displayname']) ? $softpanel->user['name'] : $softpanel->user['displayname']).'
    '; } else{ 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($bottom = false){ global $user, $conn, $dbtables, $logged_in, $globals, $l, $dmenus, $end_time, $start_time, $onload, $theme, $softpanel; if(optGET('jsnohf')){ return true; } $nohf = optGET('nohf'); // Show the footer HTML only if we do not need hf if(empty($nohf)){ apply_filters('pre_footer_theme'); $pageinfo = array(); if(!empty($globals['showntimetaken'])){ $pageinfo[] = $l['page_time'].':'.substr($end_time-$start_time,0,5); } echo '
    '.(!empty($bottom) ? '
     
    ' : '').'
      '.$l['times_are'].' '.get_timezone_offset().'. '.$l['time_is'].' '.datify(time(), false).'.
     
      '.copyright().'
    '; 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 ''; echo ' '; } function error_handle($error, $table_width = '100%', $center = false, $return = false){ global $l; $str = ""; $table_width = preg_match('/%/is', $table_width) ? $table_width : $table_width.'px'; //on error call the form if(!empty($error)){ $error = apply_filters('error_handle', $error); $str .= ''; $str .= (($center) ? '
    ' : '').'
    ×
    '; $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); ?>
      

    if($("#error_handle_div")){ $("#error_handle_div").height($(document).height() - $(".footer").height()); } '; //We must return return true; } function message($title, $heading = '', $icon, $text){ global $theme, $globals, $user, $l; softheader(((empty($title)) ? $l['soft_message'] : $title), false); // Use the default icon if(empty($icon)){ $icon = 'fas fa-exclamation-triangle'; } ?>