Location: PHPKode > projects > MembersGear > membersgear/admin/admin_cronjob_list.php
<?php
  require_once "../config/config.php";
  require_once INCLUDE_DIR."/users_class.php";
  
  $loUserClass = new users_class();
  
  $dir = PHYSICAL_DIR."/cronjobs/";
  
    // Open a known directory, and proceed to read its contents
    if (is_dir($dir)) 
    {
        if ($dh = opendir($dir)) {
            $files = array();
            while (($file = readdir($dh)) !== false) {
                $exts = split("[/\\.]", $file) ;
                $n = count($exts)-1;
                $exts = $exts[$n]; 
                
                if ($file != "." && $file != ".." && $exts == "php") {
                    $files[] = "$file";
                }
            }
            closedir($dh);
        }
    }
           
           echo($smarty->fetch('admin_header.php'));
           
           echo "<div id=\"content\" class=\"setdiv\"> ";
           echo "<div id=\"full-contentdiv\">";
           echo "<div class=\"righttop\">";
           echo "<h2 align=\"center\">";
           echo "Cron Jobs List";
           echo "</h2>";
           echo "</div>";
            
            echo "<div class=\"whole-page clear\">";
            echo "<div class=\"contant formformat\">
                        <table id=\"tblCronJobList\" cellpadding=\"8\" cellspacing=\"0\" width=\"100%\">
            ";
            
            foreach($files as $key=>$value)
            {
                           echo "<tr>
                                    <td class=\"right-side-text\" valign=\"middle\">
                                            <img src=\"".ADMIN_IMAGE_DIR."/files.gif\" width=\"20\" height=\"26\" alt=\"File\" align=\"absmiddle\">&nbsp;&nbsp;&nbsp;<label>$value</label>
                                    </td>
                                 </tr>";   
            }
            
            echo "      </table>
            </div>";
            echo "</div>";
            
            echo "</div>";
            echo "</div>";
            
             
            //For display footer.php
            echo($smarty->fetch('admin_footer.php')); 
?>
Return current item: MembersGear