?> <h1 class="sheet-name"><?php echo $content['pageTitle']; ?> </h1> <input id="search-sheet" placeholder="Type to filter sheet"> <div class="sheet-index"> <h3>Index</h3> <ol class="sheet-index_list"> <?php foreach ($content['sections'] as $key => $value) { echo '<li><a href="#' . stripChars($value['sectionTitle']) . '">' . $value['sectionTitle'] . '</a></li>'; } ?> </ol> </div> <?php foreach ($content['sections'] as $key => $value) { echo '<h2 id="' . stripChars($value['sectionTitle']) . '">' . $value['sectionTitle'] . '</h2>'; echo '<ul class="command-list">'; foreach ($value['shortcuts'] as $key => $shortcut) { echo '<li><p>'; echo $shortcut['shortcut']; echo '</p><p>'; echo $shortcut['details']; echo '</p></li>'; } echo '</ul>'; } ?> </main>
include "config/string_variables.php"; $str_url = ""; $html = ""; $download_time = date("Y-m-d H:i:s"); $eightylegs_key = "vk9wi2xcg1hsozjyfv84klfur4c8u2o5"; $crawl_names = retrieveCrawlNames($eightylegs_key); $crawl_name_array = explode(",", $crawl_names); $crawl_name = ""; $crawl_status = ""; //l6pe7j005p38b5wst3r3zcr2vtvh8ud2 //bl vk9wi2xcg1hsozjyfv84klfur4c8u2o5 //Retrieve crawl names foreach ($crawl_name_array as $crawl_split) { $split_arr_2 = explode(":", $crawl_split); $identifier = stripChars($split_arr_2[0]); $field_value = stripChars($split_arr_2[1]); switch ($identifier) { case "name": $crawl_name = $field_value; break; case "status": $crawl_status = $field_value; break; } if ($crawl_name != "" && $crawl_status != "") { $html .= "<form method = 'POST' action='index.php'>"; $html .= "<label style='width:400px;float:left; clear:left; padding:3px;'>" . $crawl_name . " - " . $crawl_status . "</label>"; $html .= "<input style='width:200px; float:left; background:#eee; border:none; border-radius:4px; padding:3px; ' type='submit' value='Check Files'/>"; $html .= "<input type='hidden' value='" . $crawl_name . "' name='site_url_name' />"; $html .= "</form>"; //Check DB for this crawl name
require_once $include_path . "/admin/config.inc.php"; function stripChars($imgFile) { $illegalChars = array("?" => "", "\\" => "", ":" => "", "*" => "", "\"" => "", "<" => "", ">" => "", "|" => "", "../" => "", "./" => "", "\n" => "", "\r" => "", "\t" => ""); return trim(strtr($imgFile, $illegalChars)); } $border = 18; $size = array(); $picture = ""; if (isset($_GET['img'])) { $imgFile = stripChars($_GET['img']); if (!empty($imgFile) && is_file("{$include_path}/{$GB_TMP}/{$imgFile}")) { $size = GetImageSize("{$include_path}/{$GB_TMP}/{$imgFile}"); $picture = "{$GB_PG['base_url']}/{$GB_TMP}/{$_GET['img']}"; } else { $imgFile = stripChars($_GET['img']); if (!empty($imgFile) && is_file("{$include_path}/{$GB_UPLOAD}/{$imgFile}")) { if (eregi("(^t_)(img-[0-9]+.[a-z]{3})", $imgFile, $regs)) { $size = GetImageSize("{$include_path}/{$GB_UPLOAD}/{$regs['2']}"); $picture = "{$GB_PG['base_url']}/{$GB_UPLOAD}/{$regs['2']}"; } else { $size = GetImageSize("{$include_path}/{$GB_UPLOAD}/{$_GET['img']}"); $picture = "{$GB_PG['base_url']}/{$GB_UPLOAD}/{$imgFile}"; } } } } if (isset($size[1]) && $size[1] > 100) { $tbl_height = $size[1] + $border; $tbl_width = "100%"; } else {