Changeset 997783
- Timestamp:
- 09/27/2014 11:03:36 PM (12 years ago)
- Location:
- broken-link-manager/trunk
- Files:
-
- 10 edited
-
config/functions.php (modified) (1 diff)
-
css/style.css (modified) (1 diff)
-
js/dashboard.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
-
wblm-broken-url.php (modified) (1 diff)
-
wblm-dashboard.php (modified) (2 diffs)
-
wblm-redirect-url.php (modified) (1 diff)
-
wblm-url-add.php (modified) (1 diff)
-
wblm-url-log.php (modified) (2 diffs)
-
wblm.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
broken-link-manager/trunk/config/functions.php
r997315 r997783 47 47 }else{ 48 48 $wpdb->query("UPDATE " . TABLE_WBLM . " SET old_url = '$old_url', new_url = '$new_url' WHERE id = $url"); 49 $page = ' wblm-redirect';49 $page = 'page=wblm-redirect'; 50 50 } 51 51 -
broken-link-manager/trunk/css/style.css
r997531 r997783 374 374 min-width: 345px; 375 375 } 376 .toplevel_page_wblm-dashboard .dashicons-admin-generic :before{376 .toplevel_page_wblm-dashboard .dashicons-admin-generic { 377 377 content: "\f103"; 378 378 } -
broken-link-manager/trunk/js/dashboard.php
r997315 r997783 1 1 <?php 2 //Let's set the header straight3 2 header('Content-type: text/javascript'); 4 3 5 //Get the WP-specifics, so that we can use constants and what not6 4 $home_dir = preg_replace('^wp-content/plugins/[a-z0-9\-/]+^', '', getcwd()); 7 5 include($home_dir . 'wp-load.php'); … … 30 28 } 31 29 32 33 30 echo "], \n 34 31 xkey: 'period', … … 41 38 }); \n \n"; 42 39 43 44 45 46 40 $redirectUrlsCount = $wpdb->get_var("SELECT COUNT(id) FROM " . TABLE_WBLM . " where `active` = '1'" ); 47 41 $brokenlinkCount = $wpdb->get_var("SELECT COUNT(id) FROM " . TABLE_WBLM . " where `active` = '0'" ); 48 49 42 50 43 echo "Morris.Donut({ 51 44 element: 'morris-donut-chart', 52 45 data: [{ 53 label: 'Redirect (301)',54 value: $redirectUrlsCount55 }, {56 46 label: 'Broken (404)', 57 47 value: $brokenlinkCount 48 }, { 49 label: 'Redirected (301)', 50 value: $redirectUrlsCount 58 51 }], 59 52 resize: true -
broken-link-manager/trunk/readme.txt
r997531 r997783 4 4 Requires at least: 3.0 5 5 Tested up to: 4.0 6 Stable tag: 0.2. 76 Stable tag: 0.2.8 7 7 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8NYR3F4RVTBHS 8 8 … … 41 41 == Changelog == 42 42 43 = 2.0.8 = 44 * Added new visual features. 45 * Fixed plugin activation error 46 * coding optimization was 47 43 48 = 2.0.7 = 44 49 * Corrected error log entries … … 53 58 54 59 = 2.0.4 = 55 * Tables were optimized. Mail sending added. 60 * Tables were optimized. 61 * Mail sending added. 56 62 57 63 = 2.0.3 = … … 62 68 63 69 = 1.0.1 = 64 The First Release70 * The First Release -
broken-link-manager/trunk/wblm-broken-url.php
r997315 r997783 1 1 <?php 2 2 global $WblmListTable; 3 $WblmListTable->prepare_items($_REQUEST['s']); 3 $s = isset($_REQUEST['s']) ? $_REQUEST['s'] : null; 4 $WblmListTable->prepare_items($s); 4 5 ?> 5 6 <div id="wrapper" class="wblm_tables"> -
broken-link-manager/trunk/wblm-dashboard.php
r997315 r997783 16 16 <!-- /.navbar-header --> 17 17 </nav> 18 19 18 <div id="page-wrapper"> 20 19 <div class="row"> … … 172 171 <!-- /#page-wrapper --> 173 172 <?php include WBLM_CONFIG_PATH . 'footer.php'; ?> 174 175 173 </div> 176 174 <!-- /#wrapper --> -
broken-link-manager/trunk/wblm-redirect-url.php
r997315 r997783 1 1 <?php 2 2 global $WblmListTable; 3 $WblmListTable->prepare_items($_GET['s']); 3 $s = isset($_REQUEST['s']) ? $_REQUEST['s'] : null; 4 $WblmListTable->prepare_items($s); 4 5 ?> 5 6 <div id="wrapper" class="wblm_tables"> -
broken-link-manager/trunk/wblm-url-add.php
r997315 r997783 1 <?php2 $url = $_GET['url'];3 global $wpdb;4 $urlInfo = $wpdb->get_row("SELECT * FROM " . TABLE_WBLM . " where id = $url");5 ?>6 1 <div id="wrapper"> 7 2 <!-- Navigation --> -
broken-link-manager/trunk/wblm-url-log.php
r997315 r997783 1 1 <?php 2 2 global $WblmListTable; 3 $WblmListTable->prepare_items($_GET['url'],$_GET['s']); 3 $s = isset($_REQUEST['s']) ? $_REQUEST['s'] : null; 4 $url = isset($_REQUEST['url']) ? $_REQUEST['url'] : null; 5 $WblmListTable->prepare_items($url,$s); 4 6 ?> 5 7 <div id="wrapper" class="wblm_tables"> … … 28 30 <form method="get"> 29 31 <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /> 30 <input type="hidden" name="url" value="<?php echo $ _REQUEST['url']?>" />32 <input type="hidden" name="url" value="<?php echo $url; ?>" /> 31 33 <?php $WblmListTable->search_box( 'search', 'search_id' ); ?> 32 34 </form> -
broken-link-manager/trunk/wblm.php
r997531 r997783 4 4 Plugin URI: http://www.k78.de 5 5 Description: WBLM -> Wordpress Broken Link Manager. This plugin helps you check, organise and monitor your broken backlinks. 6 Version: 0.2. 76 Version: 0.2.8 7 7 Author: Hüseyin Kocak 8 8 Author URI: http://www.k-78.de … … 26 26 */ 27 27 if(!defined('WBLM_VERSION')) { 28 define( 'WBLM_VERSION', '0.2.7' ); 29 } 30 define( 'WP_DEBUG', true ); 31 define('SCRIPT_DEBUG', true); 32 define('WP_DEBUG_DISPLAY', false); 33 define('WP_DEBUG_LOG', true); 34 28 define( 'WBLM_VERSION', '0.2.8' ); 29 } 35 30 if(!defined('WBLM_PLUGIN_PATH')) { 36 31 define( 'WBLM_PLUGIN_PATH', trailingslashit( dirname( __FILE__ ) ) ); … … 61 56 define( 'MYSQL_VER', get_option('wblm_mysql_ver')); 62 57 } 63 $settingsSaveFunc = $_GET['settingsSave']; 64 $editURLFunc = $_GET['editURL']; 65 $addURLFunc = $_GET['addURL']; 66 $delURLFunc = $_GET['delURL']; 58 59 $settingsSaveFunc = isset($_GET['settingsSave']) ? $_GET['settingsSave'] : null; 60 $editURLFunc = isset($_GET['editURL']) ? $_GET['editURL'] : null; 61 $addURLFunc = isset($_GET['addURL']) ? $_GET['addURL'] : null; 62 $delURLFunc = isset($_GET['delURL']) ? $_GET['delURL'] : null; 63 67 64 include WBLM_CONFIG_PATH . 'functions.php'; 68 //add_action('wp_head', 'add_ob_start');69 //add_action('wp_footer', 'flush_ob_end');70 if ('wblm.php' == basename($_SERVER['SCRIPT_FILENAME']))71 die ('No direct access to this file!');72 73 register_activation_hook(__FILE__,'wblm_admin_actions');74 75 65 add_action('init', 'wblm_textdomain'); 76 66 function wblm_textdomain() { … … 293 283 if(REDIRECT_DEFAULT_URL){ 294 284 //No URL --> Redirected Default URL 295 //wp_redirect(DEFAULT_URL, 301 );296 //exit;285 wp_redirect(DEFAULT_URL, 301 ); 286 exit; 297 287 } 298 288 } … … 367 357 } 368 358 add_action("admin_menu", "createBaclinksMenu"); 369
Note: See TracChangeset
for help on using the changeset viewer.