Jump to content

Parse error: syntax error, unexpected T_CASE in /home/adsclixe/public_html/admin/sources/members.php on line 103


shak1l

Recommended Posts

hello, if any one can help me solve this error. 

 

						case "unsuspend":
							$setupd = array("status" => "Active");
							$db->update("members", $setupd, "id=" . $mid);
							break;

							case "activate":
                                $setupd = array("status" => "Active");
							    $db->update("members", $setupd, "id=" . $mid);
							{
								if ($settings['referral_contest'] == 'yes') {
									$usr = $db->fetchRow( "SELECT ref1, status FROM members WHERE id=" . $mid );

									if (( $usr['status'] == 'Un-verified' && $usr['ref1'] != 0 )) {
										$referrer = $usr['ref1'];

										if ($referrer != 0) {
											$today_var = $settings['referral_reset'];
											$chk = $db->fetchOne( "SELECT COUNT(*) AS NUM FROM  referral_stats WHERE user_id=" . $referrer );

											if ($chk == 0) {
												$data = array( 'user_id' => $referrer, 'day' . $today_var => 1 );
												$db->insert( 'referral_stats', $data );
											} 
else {
												$db->query( "UPDATE referral_stats SET day" . $today_var . '=day' . $today_var . '+1 WHERE user_id=' . $referrer );
											}
										}
									}
								}
								
							
							break;

						case "delete":
							$userdata = $db->fetchRow("SELECT username, country, ref1 FROM members WHERE id=" . $mid);
							deletemember($mid);

							if ($userdata['username'] != "BOT") {
								$db->query("UPDATE country SET users=users-1 WHERE name=" . $userdata['country'] . "'");
							}


							if ($userdata['ref1'] != 0) {
								$db->query("UPDATE members SET referrals=referrals-1, myrefs1=myrefs1-1 WHERE id=" . $userdata['ref1']);
							}
							break;

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.