Changeset 1027191
- Timestamp:
- 11/17/2014 10:32:52 AM (11 years ago)
- Location:
- broken-link-manager/trunk
- Files:
-
- 7 edited
-
config/class/broken_url.php (modified) (4 diffs)
-
config/class/redirected_url.php (modified) (3 diffs)
-
config/functions.php (modified) (2 diffs)
-
css/style.css (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wblm-settings.php (modified) (1 diff)
-
wblm.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
broken-link-manager/trunk/config/class/broken_url.php
r1004916 r1027191 116 116 $actions = array( 117 117 'delete' => 'Delete URL (URLs and URLs LOG)', 118 'deleteLog' => 'Delete only URL LOG' 118 'deleteLog' => 'Delete only URL LOG', 119 'bulkEdit' => 'Bulk Edit' 119 120 ); 120 121 return $actions; … … 138 139 $wpdb->query("DELETE FROM " . TABLE_WBLM_LOG . " WHERE url = $url"); 139 140 } 141 }elseif( 'bulkEdit'===$this->current_action() ) { 142 get_bulkEdit('wblm-broken', 'Add'); 140 143 } 141 144 … … 147 150 } 148 151 152 $urlAddBulk = isset($_REQUEST['urlAddBulk']) ? $_REQUEST['urlAddBulk'] : null; 153 if($urlAddBulk){ 154 global $wpdb; 155 $new_url = isset($_REQUEST['new_url']) ? $_REQUEST['new_url'] : null; 156 foreach($_POST['urls'] as $url) { 157 $wpdb->query("UPDATE " . TABLE_WBLM . " SET `new_url` = '$new_url', `active` = '1' WHERE id = '$url'"); 158 } 159 } 149 160 150 161 … … 157 168 158 169 $table_name = $wpdb->prefix . 'wblm'; 159 $per_page = 20;170 $per_page = 50; 160 171 $columns = $this->get_columns(); 161 172 $hidden = array(); -
broken-link-manager/trunk/config/class/redirected_url.php
r1004916 r1027191 93 93 $actions = array( 94 94 'delete' => 'Delete URL (URLs and URLs LOG)', 95 'deleteLog' => 'Delete only URL LOG' 95 'deleteLog' => 'Delete only URL LOG', 96 'bulkEdit' => 'Bulk Edit' 96 97 ); 97 98 return $actions; … … 115 116 $wpdb->query("DELETE FROM " . TABLE_WBLM_LOG . " WHERE url = $url"); 116 117 } 117 } 118 }elseif( 'bulkEdit'===$this->current_action() ) { 119 get_bulkEdit('wblm-redirect', 'Edit'); 120 } 121 122 $urlAddBulk = isset($_REQUEST['urlAddBulk']) ? $_REQUEST['urlAddBulk'] : null; 123 if($urlAddBulk){ 124 global $wpdb; 125 $new_url = isset($_REQUEST['new_url']) ? $_REQUEST['new_url'] : null; 126 foreach($_POST['urls'] as $url) { 127 $wpdb->query("UPDATE " . TABLE_WBLM . " SET `new_url` = '$new_url', `active` = '1' WHERE id = '$url'"); 128 } 129 } 118 130 } 119 131 … … 123 135 124 136 $table_name = $wpdb->prefix . 'wblm'; 125 $per_page = 20;137 $per_page = 50; 126 138 $columns = $this->get_columns(); 127 139 $hidden = array(); -
broken-link-manager/trunk/config/functions.php
r1000579 r1027191 122 122 } 123 123 124 function get_bulkEdit($page, $buttonText){ 125 $bulkEdit = ' 126 <div class="alert alert-info alert-dismissable" id="bulkEditBox"> 127 <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> 128 <form action="admin.php?page=%s" method="post">'; 129 foreach($_POST['url'] as $url) { 130 $bulkEdit .= '<input type="hidden" name="urls[]" value="'.$url.'" />'; 131 } 132 $bulkEdit .= '<label> 133 <span class="title">URL</span> 134 <span><input type="text" class="wblm-table-add-field" value="" name="new_url" placeholder="http://"></span> 135 </label> 136 <button class="button-primary save alignright" type="submit" name="urlAddBulk" value="OK">%s</button> 137 </form></div>'; 138 printf($bulkEdit, $page, $buttonText); 139 } 140 141 function wpslEmptyLOG(){ 142 global $wpdb; 143 $wpdb->query("DELETE FROM " . TABLE_WBLM_LOG); 144 } 145 146 function wpslEmptyBrokenUrls($page, $buttonText){ 147 global $wpdb; 148 $wpdb->query("DELETE FROM " . TABLE_WBLM . " WHERE active = 0"); 149 } 150 151 152 124 153 125 154 if($settingsSaveFunc){ wpslSettingsSave(); } … … 127 156 if($addURLFunc){ wpslAddURL(); } 128 157 if($delURLFunc){ wpslDelURL(); } 158 if($emptyLOGFunc){ wpslEmptyLOG(); } 159 if($emptyBrokenUrlsFunc){ wpslEmptyBrokenUrls(); } 129 160 130 161 ?> -
broken-link-manager/trunk/css/style.css
r997783 r1027191 377 377 content: "\f103"; 378 378 } 379 #bulkEditBox{ 380 position: absolute; left: 350px; top: 230px; z-index: 480; width:500px; box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.9); 381 } -
broken-link-manager/trunk/readme.txt
r1004916 r1027191 1 1 === Broken Link Manager === 2 Contributors: K782 Contributors: flashcentury 3 3 Tags: Broken, Link, URL, 301, 404, Backlink, checker, SEO, Google, 404 page, Borken url, wordpress 404, Redirect 4 4 Requires at least: 3.0 5 5 Tested up to: 4.0 6 Stable tag: 0.3. 16 Stable tag: 0.3.2 7 7 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8NYR3F4RVTBHS 8 8 … … 40 40 41 41 == Changelog == 42 43 = 0.3.2 = 44 * Added Bulk Edit feature (Broken and Redirected URLs) 45 * Added Empty All Log feature 46 * Added Empty All Broken URLs feature 42 47 43 48 = 0.3.1 = -
broken-link-manager/trunk/wblm-settings.php
r1000579 r1027191 205 205 206 206 </form> 207 <br /><br /> 207 208 209 <br /><br /> 210 <!-- Empty --> 211 <div class="row"> 212 <div class="col-lg-12"> 213 <div class="panel panel-default"> 214 <!-- /.panel-heading --> 215 <div class="panel-body"> 216 <p class="bg-danger" style="padding:10px; margin-top:0; font-size:16px; font-weight: bold; "><?php _e('Empty', 'wblm') ?></p> 217 <div class="form-horizontal"> 218 <div class="form-group"> 219 <div class="col-sm-2"> 220 <a onclick="return confirm('Are you sure you want to empty all log?');" href="<?php echo admin_url("admin.php?page=wblm-settings&emptyLOG=on"); ?>"> 221 <button type="submit" class="btn btn-danger"> <?php _e('EMPTY ALL LOG', 'wblm') ?> </button> 222 </a> 223 </div> 224 <div class="col-sm-2"> 225 <a onclick="return confirm('Are you sure you want to empty all broken URLs?');" href="<?php echo admin_url("admin.php?page=wblm-settings&emptyBrokenUrls=on"); ?>"> 226 <button type="submit" class="btn btn-warning"> <?php _e('EMPTY ALL BROKEN URLs', 'wblm') ?> </button> 227 </a> 228 </div> 229 </div> 230 </div><!-- form-horizontal --> 231 </div><!-- /.panel-body --> 232 </div><!-- /.panel --> 233 </div><!-- /.col-lg-12 --> 234 </div> <!-- //Empty --> 235 236 237 <br /><br /> 208 238 209 239 </div> -
broken-link-manager/trunk/wblm.php
r1004916 r1027191 4 4 Plugin URI: https://wordpress.org/plugins/broken-link-manager 5 5 Description: WBLM -> Wordpress Broken Link Manager. This plugin helps you check, organise and monitor your broken backlinks. 6 Version: 0.3. 16 Version: 0.3.2 7 7 Author: Hüseyin Kocak 8 8 Author URI: http://k-78.de … … 68 68 $addURLFunc = isset($_GET['addURL']) ? $_GET['addURL'] : null; 69 69 $delURLFunc = isset($_GET['delURL']) ? $_GET['delURL'] : null; 70 $emptyLOGFunc = isset($_GET['emptyLOG']) ? $_GET['emptyLOG'] : null; 71 $emptyBrokenUrlsFunc = isset($_GET['emptyBrokenUrls']) ? $_GET['emptyBrokenUrls'] : null; 70 72 71 73 include WBLM_CONFIG_PATH . 'functions.php';
Note: See TracChangeset
for help on using the changeset viewer.