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() {
* @see wpmu_signup_user
*/
function register($username, $email, $password, $meta = Array()) {
global $wpdb;
require_once(ABSPATH . WPINC . DIRECTORY_SEPARATOR . 'registration.php');
/**
* Check the signups database to see if there are already
* records with that email address and are not active yet.
* if there are, delete those before putting this one in.
* Purpose: To clean the database in case they user or admin
* re-registers them because they had issues validating or
* for whatever reason.
*/
$wpdb->query("DELETE FROM {$wpdb->signups} WHERE user_email='$email' AND active=0");
$user_data = Array(
'username' => $username
, 'password' => $password
......
......@@ -23,7 +23,17 @@ class Actions {
}
public static function admin_head() {
?>
<style type="text/css" media="screen">
#toplevel_page_cbvreport .wp-menu-image a img { display:none; }
#toplevel_page_cbvreport .wp-menu-image {
background: url(<?php echo Tools\url('cpt-icons/table.png', __FILE__) ?>) no-repeat 6px -17px !important;
}
#toplevel_page_cbvreport:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image {
background-position:6px 7px!important;
}
</style>
<?php
/*
......