[content_band style=”color: #333;” bg_color=”#ffddea” border=”all” inner_container=”true”] [custom_headline style=”margin-top: 0;” level=”h3″ looks_like=”h3″]Control Panel[/custom_headline]
[/content_band]
[insert_php]
//
global $wpdb;
$current_user = wp_get_current_user();
$formid=$current_user->ID;
$meta = get_user_meta($formid);
$plus = $meta[‘googleplus’][0];
$moreplus = (string)$plus;
echo “Page view status:”.$moreplus.PHP_EOL;
if ($moreplus==”lock”){echo “Sorry, this page has been restricted by admin”.PHP_EOL;} else {echo “Unlocked”;
//
echo “
| “; //echo do_shortcode(‘[counter num_start=0 num_end=’.$credits.’ num_speed=1500 num_color=#272727 text_above=’.$above.’ text_below=Credits]’ ); //echo “ | “; //echo “A total of 1 credit is needed for each participant you want to add You may purchase new credits at any time.”; //echo “ |
“;
//echo “
“;
$current_user = wp_get_current_user();
$fordb=$current_user->user_login;
$blogusers = get_users( ‘blog_id=1&orderby=nicename&role=subscriber&description=$fordb’ );
$total = count($blogusers);
echo “[highlight]You are logged in as: ‘”.$fordb.”[/highlight]
“;
global $user;global $wpdb;
$get_admins = array(
‘role’ => ‘subscriber’,
);
$current_user = wp_get_current_user();
$formid=$current_user->description;
$fordb=$current_user->user_login;
//echo “
Participants for “.$fordb.”
“;
$blogusers = get_users($get_admins);
if (!empty($blogusers)){
echo “
| Full name | Email address | Login Link | Action“;
foreach ($blogusers as $user) { | ||
|---|---|---|---|---|---|
| “.$user->user_firstname.” “.$user->user_lastname; //echo “ | “.$user->user_login; echo “ | “.$user->user_email; echo “ | “; $to=$user->user_email; $userx = get_user_by( ’email’, $to ); $fnamex=$userx->user_login; $uidx=$userx->ID; $con2=”https://www.skillsaudit.co.uk/autologin?login=$fnamex&uid=$uidx”; echo $con2; echo “ | “; echo “ “; | “; $sql=”SELECT mcq FROM i2616969_wp1.wp_fsq_data WHERE (form_id = $formid AND email=’$user->user_email’)”; $myrows = $wpdb->get_var($sql); if (empty($myrows)){ echo “ “; “; “;} } “;echo ‘
You need to add participants to the audit before you can begin an audit‘;echo “ “;} |
“;
//[userlist role=”subscriber” meta_key=”last_name” orderby=”meta_value” order=”ASC”]
}
[/insert_php]