Plugin Directory

Changeset 997783


Ignore:
Timestamp:
09/27/2014 11:03:36 PM (12 years ago)
Author:
flashcentury
Message:

Ver. 0.2.8

Location:
broken-link-manager/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • broken-link-manager/trunk/config/functions.php

    r997315 r997783  
    4747}else{
    4848    $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';
    5050}
    5151
  • broken-link-manager/trunk/css/style.css

    r997531 r997783  
    374374min-width: 345px;   
    375375}
    376 .toplevel_page_wblm-dashboard .dashicons-admin-generic:before {
     376.toplevel_page_wblm-dashboard .dashicons-admin-generic {
    377377    content: "\f103";
    378378}
  • broken-link-manager/trunk/js/dashboard.php

    r997315 r997783  
    11<?php
    2    //Let's set the header straight
    32   header('Content-type: text/javascript');
    43
    5    //Get the WP-specifics, so that we can use constants and what not
    64   $home_dir = preg_replace('^wp-content/plugins/[a-z0-9\-/]+^', '', getcwd());
    75   include($home_dir . 'wp-load.php');
     
    3028}
    3129
    32 
    3330echo "], \n
    3431        xkey: 'period',
     
    4138    }); \n \n";
    4239
    43 
    44 
    45 
    4640$redirectUrlsCount = $wpdb->get_var("SELECT COUNT(id) FROM " . TABLE_WBLM . " where `active` = '1'" );
    4741$brokenlinkCount = $wpdb->get_var("SELECT COUNT(id) FROM " . TABLE_WBLM . " where `active` = '0'" );
    48 
    4942
    5043echo "Morris.Donut({
    5144        element: 'morris-donut-chart',
    5245        data: [{
    53             label: 'Redirect (301)',
    54             value: $redirectUrlsCount
    55         }, {
    5646            label: 'Broken (404)',
    5747            value: $brokenlinkCount
     48        }, {
     49            label: 'Redirected (301)',
     50            value: $redirectUrlsCount
    5851        }],
    5952        resize: true
  • broken-link-manager/trunk/readme.txt

    r997531 r997783  
    44Requires at least: 3.0
    55Tested up to: 4.0
    6 Stable tag: 0.2.7
     6Stable tag: 0.2.8
    77Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8NYR3F4RVTBHS
    88
     
    4141== Changelog ==
    4242
     43= 2.0.8 =
     44* Added new visual features.
     45* Fixed plugin activation error
     46* coding optimization was
     47
    4348= 2.0.7 =
    4449* Corrected error log entries
     
    5358
    5459= 2.0.4 =
    55 * Tables were optimized. Mail sending added.
     60* Tables were optimized.
     61* Mail sending added.
    5662
    5763= 2.0.3 =
     
    6268
    6369= 1.0.1 =
    64 The First Release
     70* The First Release
  • broken-link-manager/trunk/wblm-broken-url.php

    r997315 r997783  
    11<?php
    22global $WblmListTable;
    3 $WblmListTable->prepare_items($_REQUEST['s']);
     3$s  = isset($_REQUEST['s']) ? $_REQUEST['s'] : null;
     4$WblmListTable->prepare_items($s);
    45?>
    56<div id="wrapper" class="wblm_tables">
  • broken-link-manager/trunk/wblm-dashboard.php

    r997315 r997783  
    1616            <!-- /.navbar-header -->
    1717        </nav>
    18 
    1918        <div id="page-wrapper">
    2019            <div class="row">
     
    172171        <!-- /#page-wrapper -->
    173172        <?php include WBLM_CONFIG_PATH . 'footer.php'; ?>
    174 
    175173</div>
    176174<!-- /#wrapper -->
  • broken-link-manager/trunk/wblm-redirect-url.php

    r997315 r997783  
    11<?php
    22global $WblmListTable;
    3 $WblmListTable->prepare_items($_GET['s']);
     3$s  = isset($_REQUEST['s']) ? $_REQUEST['s'] : null;
     4$WblmListTable->prepare_items($s);
    45?>
    56<div id="wrapper" class="wblm_tables">
  • broken-link-manager/trunk/wblm-url-add.php

    r997315 r997783  
    1 <?php
    2 $url = $_GET['url'];
    3 global $wpdb;
    4 $urlInfo = $wpdb->get_row("SELECT * FROM " . TABLE_WBLM . " where id = $url");
    5 ?>
    61<div id="wrapper">
    72    <!-- Navigation -->
  • broken-link-manager/trunk/wblm-url-log.php

    r997315 r997783  
    11<?php
    22global $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);
    46?>
    57<div id="wrapper" class="wblm_tables">
     
    2830                        <form method="get">
    2931                        <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; ?>" />
    3133                        <?php $WblmListTable->search_box( 'search', 'search_id' ); ?>
    3234                        </form>
  • broken-link-manager/trunk/wblm.php

    r997531 r997783  
    44Plugin URI: http://www.k78.de
    55Description: WBLM -> Wordpress Broken Link Manager. This plugin helps you check, organise and monitor your broken backlinks.
    6 Version: 0.2.7
     6Version: 0.2.8
    77Author: Hüseyin Kocak
    88Author URI: http://www.k-78.de
     
    2626*/
    2727if(!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}
    3530if(!defined('WBLM_PLUGIN_PATH')) {
    3631    define( 'WBLM_PLUGIN_PATH', trailingslashit( dirname( __FILE__ ) ) );
     
    6156    define( 'MYSQL_VER', get_option('wblm_mysql_ver'));
    6257}
    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
    6764include 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 
    7565add_action('init', 'wblm_textdomain');
    7666function wblm_textdomain() {
     
    293283        if(REDIRECT_DEFAULT_URL){
    294284        //No URL --> Redirected Default URL
    295         //wp_redirect(DEFAULT_URL, 301 );
    296         //exit;
     285        wp_redirect(DEFAULT_URL, 301 );
     286        exit;
    297287        }
    298288    }
     
    367357}
    368358add_action("admin_menu", "createBaclinksMenu");
    369 
Note: See TracChangeset for help on using the changeset viewer.