4618c883 by Kevin Burton

added user admin icons, updated Auth to remove old unregistered accounts in sign…

…ups table, also fixed the add user country, province dropdowns
1 parent 33725e22
Showing 1000 changed files with 22 additions and 1 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

...@@ -125,8 +125,19 @@ function logout() { ...@@ -125,8 +125,19 @@ function logout() {
125 * @see wpmu_signup_user 125 * @see wpmu_signup_user
126 */ 126 */
127 function register($username, $email, $password, $meta = Array()) { 127 function register($username, $email, $password, $meta = Array()) {
128 global $wpdb;
128 require_once(ABSPATH . WPINC . DIRECTORY_SEPARATOR . 'registration.php'); 129 require_once(ABSPATH . WPINC . DIRECTORY_SEPARATOR . 'registration.php');
129 130
131 /**
132 * Check the signups database to see if there are already
133 * records with that email address and are not active yet.
134 * if there are, delete those before putting this one in.
135 * Purpose: To clean the database in case they user or admin
136 * re-registers them because they had issues validating or
137 * for whatever reason.
138 */
139 $wpdb->query("DELETE FROM {$wpdb->signups} WHERE user_email='$email' AND active=0");
140
130 $user_data = Array( 141 $user_data = Array(
131 'username' => $username 142 'username' => $username
132 , 'password' => $password 143 , 'password' => $password
......
...@@ -23,7 +23,17 @@ class Actions { ...@@ -23,7 +23,17 @@ class Actions {
23 } 23 }
24 24
25 public static function admin_head() { 25 public static function admin_head() {
26 26 ?>
27 <style type="text/css" media="screen">
28 #toplevel_page_cbvreport .wp-menu-image a img { display:none; }
29 #toplevel_page_cbvreport .wp-menu-image {
30 background: url(<?php echo Tools\url('cpt-icons/table.png', __FILE__) ?>) no-repeat 6px -17px !important;
31 }
32 #toplevel_page_cbvreport:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image {
33 background-position:6px 7px!important;
34 }
35 </style>
36 <?php
27 37
28 38
29 /* 39 /*
......