Recaptcha API settings */ echo ' To get Recaptcha private and public keys, go to <a href="https://www.google.com/recaptcha/admin">https://www.google.com/recaptcha/admin</a> '; if (!empty($_POST['recaptcha_private_key'])) { update_option('recaptcha_private_key', $_POST['recaptcha_private_key']); } $options = array(array("name" => "Recaptcha private key", "desc" => "Set Recaptcha private key", "id" => "recaptcha_private_key", "type" => "text", "value" => ""), array("name" => "Recaptcha public key", "desc" => "Set Recaptcha public key", "id" => "recaptcha_public_key", "type" => "text", "value" => ""), array("name" => "Show Recaptcha in signup page", "desc" => "Select whether you want to display recaptcha in signup page", "id" => "recaptcha_signup", "type" => "select", "value" => "", "default_text" => 'No', "default_value" => 'false', "options" => array('Yes' => 'true')), array("name" => "Show Recaptcha in \"submit new question\" page", "desc" => "Select whether you want to display recaptcha in \"submit new question\" page", "id" => "recaptcha_new_question", "type" => "select", "value" => "", "default_text" => 'No', "default_value" => 'false', "options" => array('Yes' => 'true'))); /* ------------ Do not edit below this line ----------- */ //Check if theme options set global $default_check; global $default_options; if (!$default_check) { foreach ($options as $option) { if ($option['type'] != 'image') { $default_options[$option['id']] = $option['value']; } else { $default_options[$option['id']] = $option['url']; } } $update_option = get_option('up_themes_' . UPTHEMES_SHORT_NAME); if (is_array($update_option)) { $update_option = array_merge($update_option, $default_options); update_option('up_themes_' . UPTHEMES_SHORT_NAME, $update_option); } else { update_option('up_themes_' . UPTHEMES_SHORT_NAME, $default_options); } } render_options($options);
$parts = pathinfo($name); if ($parts['extension'] == 'gz') { $myfile = $_FILES['date']; unlink("/tmp/update_done"); embeddedprog_upload($myfile); header("location: update.php"); exit; } } ?> <html> <head> <title>USBprog5.0 GUI</title> <?php echo render_options(); ?> <style type="text/css"> </style> <link rel="stylesheet" href="flexselect.css" type="text/css" media="screen" /> <script type="text/javascript" src="jquery.min.js"></script> <script src="liquidmetal.js" type="text/javascript"></script> <script src="jquery.flexselect.js" type="text/javascript"></script> <script type="text/javascript">
function admin_explore_tab($tab) { $sort = isset($_GET['sort']) ? $_GET['sort'] : ''; $tag = isset($_GET['tag']) ? $_GET['tag'] : ''; $color = isset($_GET['color']) ? $_GET['color'] : ''; $type = isset($_GET['type']) ? $_GET['type'] : 'all'; $text = isset($_GET['text']) ? $_GET['text'] : ''; ?> <div id="explore-list"> <form id="search-form" class="clearfix"> <div class="search-box"> <input name="text" type="text" placeholder="Search..." value="<?php echo $text; ?> "/> <button class="button" type="submit">Search Styles</button> </div> </form> <div id="filters" class="clearfix"> <select name="type"> <?php $options = array("all" => "All Styles", "my-styles" => "My Styles", "my-favorites" => "My Favorites"); render_options($options, $type); ?> </select> <select name="sort"> <option value="">Sort by...</option> <?php $options = array("popular" => "Popular", "recent" => "Recent", "name" => "Name"); render_options($options, $sort); ?> </select> <select name="tag"> <option value="">Filter by Tag</option> <?php $options = array("colorful" => "Colorful", "complex" => "Complex", "dark" => "Dark", "greyscale" => "Greyscale", "light" => "Light", "monochrome" => "Monochrome", "no-labels" => "No Labels", "simple" => "Simple", "two-tone" => "Dark", "dark" => "Two Tone"); render_options($options, $tag); ?> </select> <select name="color"> <option value="">Filter By Color</option> <?php $options = array("black" => "Black", "blue" => "Blue", "gray" => "Gray", "green" => "Green", "multi" => "Multi", "orange" => "Orange", "purple" => "Purple", "red" => "Red", "white" => "White", "yellow" => "Yellow"); render_options($options, $color); ?> </select> </div> <div class="tablenav top clearfix"> <div class="tablenav-pages"> <span class="displaying-num"># items</span> <span class="pagination-links"> <a class="first-page" title="Go to the first page" href="#">«</a> <a class="prev-page" title="Go to the previous page" href="#">‹</a> <span class="paging-input"> <label for="current-page-selector" class="screen-reader-text">Select Page</label> <input class="current-page" id="current-page-selector" title="Current page" type="text" name="paged" value="1" size="1"> of <span class="total-pages">#</span> </span> <a class="next-page" title="Go to the next page" href="#">›</a> <a class="last-page" title="Go to the last page" href="#">»</a> </span> </div> </div> <div class="results row"> </div> <div class="search-error nothing" style="display:none;"> <p>No styles were found matching your current filters. Try widening your search a bit!</p> </div> <div class="tablenav bottom clearfix"> <div class="tablenav-pages"> <span class="displaying-num"># items</span> <span class="pagination-links"> <a class="first-page" title="Go to the first page" href="#">«</a> <a class="prev-page" title="Go to the previous page" href="#">‹</a> <span class="paging-input"> <label for="current-page-selector" class="screen-reader-text">Select Page</label> <input class="current-page" id="current-page-selector" title="Current page" type="text" name="paged" value="1" size="1"> of <span class="total-pages">#</span> </span> <a class="next-page" title="Go to the next page" href="#">›</a> <a class="last-page" title="Go to the last page" href="#">»</a> </span> </div> </div> </div> <?php }