PHP version 4 package insertcode author Maxime Lardenois <*****@*****.**> copyright 2006 Maxime Lardenois version 1.0 modified 15/01/2006 - 19:09 *******************************************************************************/ // Include files require_once "rj_common.php"; // Extract parameters $codeType = getPostedValue('codeType'); $codeHeader = getPostedValue('codeHeader'); $codeContent = getPostedValue('codeContent'); $lineNumbers = getPostedValue('lineNumbers'); $startLine = getPostedValue('startLine'); $useClasses = getPostedValue('useClasses'); //=== // Note: The old InsertCode plugin did some extra adjustments to the strings here. // The equivalent code and my reasons for commenting it out are listed below. // // The code content had leading and trailing whitespace removed. I'm assuming that // if you entered whitespace you wanted to keep it // $codeContent = trim($codeContent); // // The header content had leading and trailing whitespace removed along with HTML // tags being stripped from it. Once again, I'm assuming you said information was // added for a reason. // $codeHeader = strip_tags(trim($codeHeader)); // // A manual tab replacement was done, but GeSHi contains logic to do tab processing // appropriate for the format parametersgiven to it.
/******************************************************************************* rj_cssgen.php Copyright (c) 2009 Ryan Juckett http://www.ryanjuckett.com/ This file allows the user to select a language and generate the appropriate CSS style sheet from it. The user can also generate a compiled style sheet of all languages. *******************************************************************************/ // Include files require_once "rj_common.php"; // Extract parameters $stage = getPostedValue('stage'); $selectedLang = getPostedValue('selectedLang'); $outputAll = getPostedValue('outputAll'); // Create a GeSHi instance. $geshi = new GeSHi(); // Set the base styles initGeshiStyles($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); }
<?php /******************************************************************************* rj_get_lang_select.php Copyright (c) 2009 Ryan Juckett http://www.ryanjuckett.com/ This file generation a <select> 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);
value="<?php echo getPostedValue('email'); ?> " > </div> </div> </div> <div class="row"> <div class="large-6 medium-6 columns"> <div class="row collapse"> <label>Password</label> <input type="password" placeholder="Password" name="password" id="password" value="<?php echo getPostedValue('pass'); ?> "/> </div> </div> </div> <div class="large-4 medium-4 columns"> <label> </label> <input type="button" id="logon" value="Log On" class="small round button"><br/> </div> <?php } else { if (preg_match("/canner/i", $_REQUEST['form'])) { header("location: ../CannerForm.php"); exit(1);