'], 'js'); /*For native UI support*/ if(!empty($softpanel->pheader)){ if(is_cp_theme('paper_lantern')){ echo ' '; }else{ echo ' '; } } if($globals['softpanel'] == 'plesk' && $globals['panel_hf'] == 1){ echo ''; } echo ''; // top 10 scripts based on the rating formula foreach($scripts as $k => $v){ if(empty($iscripts[$k]) || (!empty($scripts[$k]['parent']) && !empty($iscripts[$scripts[$k]['parent']]))){ continue; } $top[$k] = $v['ratings']*$v['votes']; } if(is_array($top)){ arsort($top); } if(file_exists($globals['path'].'/conf/top_scripts.php') && !empty($globals['lictype'])){ $top = unserialize(file_get_contents($globals['path'].'/conf/top_scripts.php')); } //r_print($globals); if(!empty($globals['show_cscript_in_top'])){ //r_print($top_custom_list); foreach($cscripts as $ck => $cv){ if(array_key_exists($ck, $iscripts)){ $top_custom[$ck] = $ck; } } $tmp_top = $top; // Do we need to add any other default scripts ? if(!empty($top_custom)){ $top = $top_custom; } if(!empty($tmp_top)){ $top += $tmp_top; } } foreach($scripts as $k => $v){ // We have to remove the scripts which are not enabled AND yet coming from top_scripts.php (i.e. Admin have saved it from top scripts) if(!array_key_exists($k, $iscripts) && !empty($top[$k])){ unset($top[$k]); } if(empty($iscripts[$k]) || (!empty($scripts[$k]['parent']) && !empty($iscripts[$scripts[$k]['parent']]))){ continue; } if(!empty($globals['append_apps'])){ $top[$k] = $v['ratings']*$v['votes']; } } echo '
'.(strlen($iscripts[$k]['desc']) > 110 ? substr($iscripts[$k]['desc'], 0, 100).' ['.$l['more'].']' : $iscripts[$k]['desc']).'
![]() |
'.$l['efficient'].'
'.$l['efficient_exp'].' |
'.$l['convenient'].'
'.$l['convenient_exp'].' |
![]() |
![]() |
'.$l['play_demos'].'
'.$l['play_demos_exp'].' |
'.$l['powerful'].'
'.$l['powerful_exp'].' |
![]() |
![]() |
'.$l['portable'].'
'.$l['portable_exp'].' |
![]() |
'.$l['glimpse_python'].'
'.$l['python_exp'].' |
'.$l['interpreter'].'
'.$l['interpreter_exp'].' |
![]() |
![]() |
'.$l['play_demos'].'
'.$l['play_demos_exp'].' |
![]() |
'.$l['efficient'].'
'.$l['efficient_exp'].' |
'.$l['convenient'].'
'.$l['convenient_exp'].' |
![]() |
![]() |
'.$l['play_demos'].'
'.$l['play_demos_exp'].' |
'.$l['powerful'].'
'.$l['powerful_exp'].' |
![]() |
![]() |
'.$l['portable'].'
'.$l['portable_exp'].' |