if (function_exists('thefrosty_network_feed')) { thefrosty_network_feed('http://extendd.com/feed/?post_type=plugin', '3'); } ?> <?php if (function_exists('thefrosty_network_feed')) { thefrosty_network_feed('http://frosty.media/feed', '4'); } ?> </div> </div> <?php if (is_version('3.0')) { } else { ?> <div id="uninstall" class="postbox open"> <h3><?php _e('Uninstaller <span><abbr title="Click here to show the box below">Don’t do it!</abbr></span><span class="watchingyou">:O You did it...</span>', 'cvr'); ?> </h3> <div class="inside"> <p style="text-align:justify;"><?php _e('If you really have to, use this <a href="../wp-content/plugins/comment-validation-reloaded/uninstall.php" title="Uninstall the Comment Validation Reloaded plugin with this script">script</a> to uninstall the plugin and completely remove all options from your WordPress database. <strong>Note:</strong> Will not work in WordPress 3.0+, simply deactivating the plugin will do :).', 'cvr'); ?> </p>
function atbar_options() { $version_option = get_option('atbar_version'); $marketplace_toolbar_option = get_option('atbar_marketplace_toolbar'); $persistent_option = get_option('atbar_persistent'); $exclude_option = get_option('atbar_exclude'); $exclude_pages_option = get_option('atbar_exclude_pages'); $exclude_option = get_option('atbar_launcher_exclude'); $exclude_launcher_pages_option = get_option('atbar_launcher_exclude_pages'); $atbar_launcher_image_option = get_option('atbar_launcher_image'); $atbar_shortcode_align_option = get_option('atbar_shortcode_align_option'); ?> <div class="wrap"> <div id="icon-options-general" class="icon32"><br /></div> <h2>Atbar Options</h2> <form method="post" action="options.php"> <? settings_fields("atbar_options"); ?> <p><b>For instructions on this plugin view the <a href="http://www.atbar.org/wordpress-plugin-guide">ATbar Wordpress Plugin Guide</a>.</b></p> <p>The ATbar sidebar widget can be added in Appearance, Widgets then adding ATbar to your active Widgets.</p> <table class="form-table"> <!-- select version to use --> <tr style="border-top: 1px solid #DFDFDF;"> <td><h3>Version</h3></td> <td>Select which language version or if you want your own customised Marketplace toolbar. Create your own toolbar at <a href="http://marketplace.atbar.org">http://marketplace.atbar.org</a> or use one of the pre-made toolbars.</td> </tr> <tr> <th scope="row">Select version:</th> <td> <select name="atbar_version"> <option value="en" <? echo is_version("en"); ?>>English</option> <option value="ar" <? echo is_version("ar"); ?>>Arabic</option> <option value="marketplace" <? echo is_version("marketplace"); ?>>Toolbar from ATbar Marketplace</option> </select> </td> </tr> <th>Toolbar from ATbar Marketplace:</th> <td> <input type="text" name="atbar_marketplace_toolbar" value="<? echo $marketplace_toolbar_option ?>" style="width:350px;"> <p>Copy the install button link in the text box (the full javascript string)</p> <p>For further instructions view the <a href="http://www.atbar.org/wordpress-plugin-guide">guide</a>.</p> </td> </tr> <!-- load atbar launcher --> <tr style="border-top: 1px solid #DFDFDF;"> <td><h3>ATbar Launcher</h3></td> <td>The ATbar launcher is the default button/image at the top of the page and is the standard way of loading ATbar. If you have chosen to use the ATbar Widget or Shortcode else where you are unlikely to want this option on.</td> </tr> <tr> <th scope="row">Load ATbar launcher at the top of the page?</th> <td> <select name="atbar_launcher_image"> <option value="No" <? echo is_banner_show("No"); ?>>No</option> <option value="Yes" <? echo is_banner_show("Yes"); ?>>Yes</option> </select> </td> </tr> <!-- exclude pages for laucher --> <tr> <th scope="row">Exclude pages for ATbar launcher?</th> <td><input type="checkbox" name="atbar_launcher_exclude" lable="exclude pages for launcher" <? is_exclude('atbar_launcher_exclude'); ?>> Exclude pages for ATbar launcher</td> </tr> <tr> <td></td> <td> <input type="text" name="atbar_launcher_exclude_pages" value="<? echo $exclude_launcher_pages_option; ?>" style="width:346px;"> <p>Enter a comma-separated list of page IDs or name to exclude, e.g. 1,2,3 etc.</p> </td> </tr> <!-- auto load atbar --> <tr style="border-top: 1px solid #DFDFDF;"> <td><h3>Auto Load ATbar?</h3></td> <td>These settings will allows ATbar to be loaded on all pages automatically. Any number of pages can be excluded.</td> </tr> <tr> <th scope="row">Auto load ATbar on all pages? (user doesn't have to select to load each time)</th> <td> <select name="atbar_persistent"> <option value="No" <? echo is_persistent("No"); ?>>No</option> <option value="Yes" <? echo is_persistent("Yes"); ?>>Yes</option> </select> </td> </tr> <!-- exclude pages for auto loader --> <tr> <th scope="row">Exclude pages for auto load?</th> <td><input type="checkbox" name="atbar_exclude" lable="exclude pages for auto loader" <? is_exclude('atbar_exclude'); ?>> Exclude pages for auto load</td> </tr> <tr> <td></td> <td> <input type="text" name="atbar_exclude_pages" value="<? echo $exclude_pages_option; ?>" style="width:346px;"> <p>Enter a comma-separated list of page IDs or name to exclude, e.g. 1,2,3 etc.</p> </td> </tr> <!-- shortcode options --> <tr style="border-top: 1px solid #DFDFDF;"> <td><h3>Shortcode</h3></td> <td>Shortcodes are a short piece of text to place in a post or page to run a command. In ATbar's case it will add the ATbar launcher image whereever you place <i>[atbar]</i></td> </tr> <tr> <th scope="row">Align position</th> <td> <select name="atbar_shortcode_align_option"> <option value="left" <? echo is_sc_align("left"); ?>>Left</option> <option value="center" <? echo is_sc_align("center"); ?>>Center</option> <option value="right" <? echo is_sc_align("right"); ?>>Right</option> </select> </td> </tr> <!-- save form --> <tr valign="top"> <th scope="row"> <p class="submit"> <input type="submit" class="button-primary" style="float:left" value="Save Changes" /> </p> </th> </tr> </form> <form method="post" action="options.php"> <? settings_fields('atbar_options'); ?> <input type="hidden" name="atbar_persistent" value="<? get_option('atbar_persistent') ?>" /> </form> </table> <? }
/** * Displays the general meta box. * * @since 0.8 */ function custom_login_general_meta_box() { ?> <table class="form-table"> <?php if (!is_version('3.0')) { //If it's less than version 3 ?> <tr> <th> <label for="html_border_top_color"><?php _e('html border-top color:', 'custom-login'); ?> </label> </th> <td> <input class="color {hash:true,required:false,adjust:false}" id="html_border_top_color" name="html_border_top_color" value="<?php echo custom_login_get_setting('html_border_top_color'); ?> " size="10" maxlength="21" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Use HEX color <strong>with</strong> “#” <strong>or</strong> RGB/A format.<br /> <strong>This is the top 15px border color section</strong><br /> Example: ¹<code>#121212</code> ²<code>rgba(255,255,255,0.4)</code>', 'custom-login'); ?> </span> </td> </tr> <?php } elseif (!is_version('3.3')) { //If it's greater than version 3 ?> <tr> <th> <label for="html_border_top_background"><?php _e('html border-top background:', 'custom-login'); ?> </label> </th> <td> <input class="upload_image" id="html_border_top_background" name="html_border_top_background" value="<?php echo custom_login_get_setting('html_border_top_background'); ?> " size="40" /> <input class="upload_image_button" type="button" value="Upload" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('This can replace the new background image at the top of the login screen. Upload an image and put the full path here.<br /> Suggested size: <code>1px X 31px</code> (for a repeating background).', 'custom-login'); ?> </span> </td> </tr> <?php } ?> <th> <label for="html_background_color"><?php _e('html background color:', 'custom-login'); ?> </label> </th> <td> <input class="color {hash:true,required:false,adjust:false}" id="html_background_color" name="html_background_color" value="<?php echo custom_login_get_setting('html_background_color'); ?> " size="10" maxlength="21" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Use HEX color <strong>with</strong> “#” <strong>or</strong> RGB/A format.<br /> Example: ¹<code>#121212</code> ²<code>rgba(255,255,255,0.4)</code>', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="html_background_url"><?php _e('html background url:', 'custom-login'); ?> </label> </th> <td> <input class="upload_image" id="html_background_url" name="html_background_url" value="<?php echo custom_login_get_setting('html_background_url'); ?> " size="40" /> <input class="upload_image_button" type="button" value="Upload" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Upload an image and put the full path here.<br /> Suggested size: <code>10px X 500px</code> (for a repeating background) or<br /> Full size image with a 100% stretched to fit window image.', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="html_background_repeat"><?php _e('html background repeat:', 'custom-login'); ?> </label> </th> <td> <input id="html_background_repeat" name="html_background_repeat" value="<?php echo custom_login_get_setting('html_background_repeat'); ?> " size="40" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Use <code>no-repeat</code>, <code>repeat</code>, <code>repeat-x</code> or <code>repeat.</code>', 'custom-login'); ?> </span> </td> </tr> <!-- Break --> <tr style="border-top: 1px solid #eee;"> <th> <label for="login_form_logo"><?php _e('Logo:', 'custom-login'); ?> </label> </th> <td> <input class="upload_image" id="login_form_logo" name="login_form_logo" value="<?php echo custom_login_get_setting('login_form_logo'); ?> " size="40" /> <input class="upload_image_button" type="button" value="Upload" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Upload an image and put the full path here.<br /> Suggested size: <code>310px X 70px</code>, which will replace WordPress logo. Be sure to leave blank if not in use. NOTE: Will go <strong>above</strong> the form and it′s border.', 'custom-login'); ?> </span> </td> </tr> <!-- Break --> <tr style="border-top: 1px solid #eee;"> <th> <label for="login_form_background_color"><?php _e('login form background color:', 'custom-login'); ?> </label> </th> <td> <input class="color {hash:true,required:false,adjust:false}" id="login_form_background_color" name="login_form_background_color" value="<?php echo custom_login_get_setting('login_form_background_color'); ?> " size="10" maxlength="21" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Use HEX color <strong>with</strong> “#” or RGB/A format.<br /> Example: ¹<code>#121212</code> ²<code>rgba(255,255,255,0.4)</code>', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="login_form_background"><?php _e('login form background url:', 'custom-login'); ?> </label> </th> <td> <input class="upload_image" id="login_form_background" name="login_form_background" value="<?php echo custom_login_get_setting('login_form_background'); ?> " size="40" /> <input class="upload_image_button" type="button" value="Upload" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Upload an image and put the full path here. Suggested size: <code>308px X 108px</code><br /> My suggestion: use a transparent .png or .gif. <a href="' . CUSTOM_LOGIN_URL . 'library/psd/custom-login.psd">Download included .psd file</a>.', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="login_form_border_radius"><?php _e('login form border radius:', 'custom-login'); ?> </label> </th> <td> <input id="login_form_border_radius" name="login_form_border_radius" value="<?php echo custom_login_get_setting('login_form_border_radius'); ?> " size="3" maxlength="2" />px <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Choose your border radius, ie <code>8</code> or <code>12</code>. Do not put “<strong>px</strong>”!', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="login_form_border"><?php _e('login form border thickness:', 'custom-login'); ?> </label> </th> <td> <input id="login_form_border" name="login_form_border" value="<?php echo custom_login_get_setting('login_form_border'); ?> " size="2" maxlength="2" />px <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Choose your border thickness, i.e. <code>1</code> or <code>2</code>. Do not put “<strong>px</strong>”!', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="login_form_border_color"><?php _e('login form border color:', 'custom-login'); ?> </label> </th> <td> <input class="color {hash:true,required:false,adjust:false}" id="login_form_border_color" name="login_form_border_color" value="<?php echo custom_login_get_setting('login_form_border_color'); ?> " size="10" maxlength="21" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Use HEX color <strong>with</strong> “#” or RGB/A format.<br /> Example: ¹<code>#121212</code> ²<code>rgba(255,255,255,0.4)</code>', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="login_form_box_shadow_1"><?php _e('login form box shadow:', 'custom-login'); ?> </label> </th> <td> <input id="login_form_box_shadow_1" name="login_form_box_shadow_1" value="<?php echo custom_login_get_setting('login_form_box_shadow_1'); ?> " size="2" maxlength="2" />px <input id="login_form_box_shadow_2" name="login_form_box_shadow_2" value="<?php echo custom_login_get_setting('login_form_box_shadow_2'); ?> " size="2" maxlength="2" />px <input id="login_form_box_shadow_3" name="login_form_box_shadow_3" value="<?php echo custom_login_get_setting('login_form_box_shadow_3'); ?> " size="2" maxlength="2" />px <input class="color {hash:true,required:false,adjust:false}" id="login_form_box_shadow_4" name="login_form_box_shadow_4" value="<?php echo custom_login_get_setting('login_form_box_shadow_4'); ?> " size="10" maxlength="21" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Choose your box shadow settings, i.e. <code>5px 5px 18px #464646</code> <em>example code - <code>offset, offset, blur, color</code></em>.', 'custom-login'); ?> </span> </td> </tr> <tr> <th> <label for="login_form_padding_top"><?php _e('login form padding fix:', 'custom-login'); ?> </label> </th> <td> <input id="login_form_padding_top" name="login_form_padding_top" type="checkbox" <?php checked(custom_login_get_setting('login_form_padding_top'), true); ?> value="true" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Select the box if you would like the padding of the form to fit better.', 'custom-login'); ?> </span> </td> </tr> <!-- Break --> <tr style="border-top: 1px solid #eee;"> <th> <label for="label_color"><?php _e('label font color:', 'custom-login'); ?> </label> </th> <td> <input class="color {hash:true,required:false,adjust:false}" id="label_color" name="label_color" value="<?php echo custom_login_get_setting('label_color'); ?> " size="10" maxlength="21" /> <a class="question" title="Help & Examples">[?]</a><br /> <span class="hide"><?php _e('Use HEX color <strong>with</strong> “#” or RGB/A format.<br /> Example: ¹<code>#121212</code> ²<code>rgba(255,255,255,0.4)</code>', 'custom-login'); ?> </span> </td> </tr> </table><!-- .form-table --><?php }
<?php if (custom_login_get_setting('html_border_top_color') != '' && !is_version('3.0')) { ?> body.login { border-top-color: <?php echo custom_login_get_setting('html_border_top_color'); ?> ; } <?php } ?> <?php if (custom_login_get_setting('html_border_top_background') != '' && !is_version('3.0')) { ?> body.login { background: transparent url( '<?php echo custom_login_get_setting('html_border_top_background'); ?> ' ) left top repeat-x !important; } <?php } ?> /* Diplays the custom graphics for the login screen*/ #login form { <?php if (custom_login_get_setting('login_form_background_color') != '') {
} } return false; } return true; } // Вывод заголовка; header('Content-type: text/plain; charset=utf-8'); // Проверка версии (iOS); if (is_version('IOS', 1, 6, 3)) { // Вывод данных; //echo json_encode(array('application_lock' => 'Версия приложения устарела')); //die(); } // Проверка версии (Android); if (is_version('ANDROID', 2, 4, 12)) { // Вывод данных; //echo json_encode(array('application_lock' => 'Версия приложения устарела')); //die(); } // Обработка параметров; list($file, $type) = explode(".", basename($_SERVER['REQUEST_URI']) . '.api'); // Подключение настроек; include $_SERVER['DOCUMENT_ROOT'] . '/config.php'; // Подключение MySQL; include $_SERVER['DOCUMENT_ROOT'] . '/systems/mysql.php'; // Подключение основных функций; include $_SERVER['DOCUMENT_ROOT'] . '/systems/functions.php'; // Создание объекта MySQL; $db = new MySql(); $db->connect($db_host, $db_name, $db_user, $db_password);