list from the languages supported by the GeSHi installation. This list is requested by the "rj_insertcode.js" file when the window is opened. *******************************************************************************/ // Include files require_once("rj_common.php"); // Extract parameters $selectedValue = getPostedValue('selectedValue'); // Create a GeSHi instance. $geshi = new GeSHi; // Build a list of all the language php files located in the language // directory $languages = array(); if ($handle = opendir($geshi->language_path)) { while (($file = readdir($handle)) !== false) { $pos = strpos($file, '.'); if ($pos > 0 && substr($file, $pos) == '.php') { $languages[] = substr($file, 0, $pos); } } closedir($handle); } // Sort the languages alphabetically sort($languages); // Output the start of the select block echo '' . "\n"; ?>