芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/mobile/index.php
= 1){ $moderationList = getArray('moderation_list','','moderation ASC'); foreach ($moderationList as $mod) { if($sm['user']['admin'] == 1){ $modPermission[$mod['moderation']] = 'Yes'; } else { $modVal = getData('moderators_permission','setting_val','WHERE setting = "'.$mod['moderation'].'" AND id = "'.$sm['user']['moderator'].'"'); $modPermission[$mod['moderation']] = $modVal; } } } $sm['moderator'] = $modPermission; $time = time(); $logged = true; $ip = getUserIpAddr(); if($sm['user']['ip'] != $ip){ $mysqli->query("UPDATE users set ip = '".$ip."' where id = '".$checkIp."'"); } if($sm['user']['last_access'] < $time || $sm['user']['last_access'] == 0){ $mysqli->query("UPDATE users set last_access = '".$time."' where id = '".$checkIp."'"); } } else { $rand = rand(0,1012451); $rand2 = rand(0,1012451); $rand3 = rand(0,1012451); $salt = base64_encode($rand); $pswd = crypt($sm['plugins']['autoRegister']['guestDefaultPswd'],$salt); $lang = getData('languages','id','WHERE id = '.$_SESSION['lang']); if($lang == 'noData'){ $lang = $sm['plugins']['settings']['defaultLang']; } $name = $sm['plugins']['autoRegister']['guestDefaultName'].' '.$rand; $username = $sm['plugins']['autoRegister']['guestDefaultName'].$rand.$rand2; $siteEmail = explode('@',$sm['plugins']['settings']['siteEmail']); $email = $username.'@'.$siteEmail[1]; $age = 29; $birthday = date('F', mktime(0, 0, 0, 06, 10)).' 15, 1990'; if($_GET['page'] == $sm['plugins']['autoRegister']['guestCustomOneUrl']){ $gender = $sm['plugins']['autoRegister']['guestCustomOneGender']; $looking = $sm['plugins']['autoRegister']['guestCustomOneLooking']; } else if($_GET['page'] == $sm['plugins']['autoRegister']['guestCustomTwoUrl']){ $gender = $sm['plugins']['autoRegister']['guestCustomTwoGender']; $looking = $sm['plugins']['autoRegister']['guestCustomTwoLooking']; } else { $gender = $sm['plugins']['autoRegister']['guestDefaultGender']; $looking = $sm['plugins']['autoRegister']['guestDefaultLooking']; } $ip = getUserIpAddr(); if(!empty($sm['plugins']['ipstack']['key'])){ $location = json_decode(file_get_contents('http://api.ipstack.com/'.$ip.'?access_key='.$sm['plugins']['ipstack']['key'])); $city = $location->city; $country = $location->country_name; $lat = $location->latitude; $lng = $location->longitude; } else { $city = 'Los Angeles'; $country = 'United States'; $lat = '-56.1250444'; $lng = '-34.8872424'; } $date = date('m/d/Y', time()); $dID = 0; $bio = $sm['lang'][322]['text']." ".$name.", ".$age." ".$sm['lang'][323]['text']." ".$city." ".$country; $query = "INSERT INTO users (name,email,pass,age,birthday,gender,city,country,lat,lng,looking,lang,join_date,bio,s_gender,s_age,credits,online_day,password,ip,last_access,username,join_date_time,app_id) VALUES ('".$name."', '".$email."','".$pswd."','".$age."','".$birthday."','".$gender."','".$city."','".$country."','".$lat."','".$lng."','".$looking."','".$lang."','".$date."','".$bio."','".$looking."','18,29,1',0,0,'".$sm['plugins']['autoRegister']['guestDefaultPswd']."','".$ip."','".time()."','".$username."','".time()."','".$dID."')"; if ($mysqli->query($query) === TRUE) { $last_id = $mysqli->insert_id; $mysqli->query("INSERT INTO users_videocall (u_id) VALUES ('".$last_id."')"); $free_premium = 0; $allG = count(siteGenders($lang)); $allG = $allG + 1; if($sm['plugins']['rewards']['freePremiumGender'] == $gender || $sm['plugins']['rewards']['freePremiumGender'] == $allG){ $free_premium = $sm['plugins']['rewards']['freePremium']; } $time = time(); $extra = 86400 * $free_premium; $premium = $time + $extra; $mysqli->query("INSERT INTO users_premium (uid,premium) VALUES ('".$last_id."','".$premium."')"); $mysqli->query("INSERT INTO users_notifications (uid) VALUES ('".$last_id."')"); $mysqli->query("INSERT INTO users_extended (uid,field1) VALUES ('".$last_id."','".$sm['lang'][224]['text']."')"); $_SESSION['user'] = $last_id; getUserInfo($last_id); checkUserPremium($_SESSION['user']); $sm['user_notifications'] = userNotifications($_SESSION['user']); $sm['lang'] = siteLang($sm['user']['lang']); $sm['alang'] = appLang($sm['user']['lang']); $sm['elang'] = emailLang($sm['user']['lang']); $sm['seoLang'] = seoLang($sm['user']['lang']); $sm['landingLang'] = landingLang($sm['user']['lang'],$landingTheme,$_SESSION['landingPreset']); $sm['genders'] = siteGenders($sm['user']['lang']); $modPermission = array(); if($sm['user']['admin'] >= 1){ $moderationList = getArray('moderation_list','','moderation ASC'); foreach ($moderationList as $mod) { if($sm['user']['admin'] == 1){ $modPermission[$mod['moderation']] = 'Yes'; } else { $modVal = getData('moderators_permission','setting_val','WHERE setting = "'.$mod['moderation'].'" AND id = "'.$sm['user']['moderator'].'"'); $modPermission[$mod['moderation']] = $modVal; } } } $sm['moderator'] = $modPermission; $time = time(); $logged = true; if($sm['user']['ip'] != $ip){ $mysqli->query("UPDATE users set ip = '".$ip."' where id = '".$_SESSION['user']."'"); } if($sm['user']['last_access'] < $time || $sm['user']['last_access'] == 0){ $mysqli->query("UPDATE users set last_access = '".$time."' where id = '".$_SESSION['user']."'"); } } } } ?>
'; } } } ?>
var mobile_theme = '. $mobile_theme . '; '; ?> = $sm['plugins']['customHtml']['mobile_header']; ?>
'; } } ?> = $sm['plugins']['customHtml']['mobile_footer']; ?>