[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_files/shortcode/ -> admin_help.sc (source)

   1  if (ADMIN) {
   2      global $ns, $pref;
   3      if (!($handle=opendir(e_LANGUAGEDIR.e_LANGUAGE."/admin/help/"))) {
   4          $handle=opendir(e_LANGUAGEDIR."English/admin/help/");
   5      }
   6      ob_start();
   7      $text = "";
   8      while(false !== ($file = readdir($handle))) {
   9          if ($file != "." && $file != ".." && $file != "CVS") {
  10              if (strpos(e_SELF, $file) !== FALSE) {
  11                  if (is_readable(e_LANGUAGEDIR.e_LANGUAGE."/admin/help/".$file)) {
  12                      include_once(e_LANGUAGEDIR.e_LANGUAGE."/admin/help/".$file);
  13                  } else if (is_readable(e_LANGUAGEDIR."English/admin/help/".$file)) {
  14                      include_once(e_LANGUAGEDIR."English/admin/help/".$file);
  15                  }
  16              }
  17          }
  18      }
  19      closedir($handle);
  20     $plugpath = getcwd()."/help.php";
  21      if(file_exists($plugpath))
  22      {
  23          @require_once($plugpath);
  24      }
  25      $help_text = ob_get_contents();
  26      ob_end_clean();
  27      return $help_text;
  28  }
  29  
  30  


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7