⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
extra.spread.com.ng
/
app
/
Models
/
View File Name :
Members.php
insert($data); } public static function updateData($token,$data){ DB::table('users') ->where('user_token', $token) ->update($data); } public static function editData($token){ $value = DB::table('users') ->where('user_token', $token) ->first(); return $value; } public static function getuserData() { $value=DB::table('users')->where('user_type','=','customer')->where('drop_status','=','no')->orderBy('id', 'desc')->get(); return $value; } public static function deleteData($token,$data){ $image = DB::table('users')->where('user_token', $token)->first(); $file= $image->user_photo; $filename = public_path().'/storage/users/'.$file; File::delete($filename); DB::table('users') ->where('user_token', $token) ->update($data); } public static function droPhoto($token) { $image = DB::table('users')->where('user_token', $token)->first(); $file= $image->user_photo; $filename = public_path().'/storage/users/'.$file; File::delete($filename); } public static function droBanner($token) { $image = DB::table('users')->where('user_token', $token)->first(); $file= $image->user_banner; $filename = public_path().'/storage/users/'.$file; File::delete($filename); } /* customer */ /* vendor */ public static function getvendorData() { $value=DB::table('users')->where('user_type','=','vendor')->where('drop_status','=','no')->orderBy('id', 'desc')->get(); return $value; } /* vendor */ /* edit profile */ public static function editprofileData($token){ $value = DB::table('users') ->where('id', 1) ->first(); return $value; } public static function editUser($slug){ $value = DB::table('users') ->where('username', $slug) ->first(); return $value; } public static function adminData(){ $value = DB::table('users') ->where('id', 1) ->first(); return $value; } public static function updateprofileData($token,$data){ DB::table('users') ->where('id', 1) ->update($data); } public static function droprofilePhoto($token) { $image = DB::table('users')->where('id', 1)->first(); $file= $image->user_photo; $filename = public_path().'/storage/users/'.$file; File::delete($filename); } /* edit profile */ /* verify user */ public static function verifyuserData($user_token,$data){ DB::table('users') ->where('user_token', $user_token) ->update($data); } /* verify user */ /* verify user available or not */ public static function verifycheckData($data){ $value=DB::table('users')->where('email', $data['email'])->where('drop_status', 'no')->get(); if($value->count() != 0){ return 1; }else{ return 0; } } public static function getemailData($email){ $value = DB::table('users') ->where('email', $email) ->where('drop_status', 'no') ->first(); return $value; } public static function verifytokenData($data){ $value=DB::table('users')->where('user_token', $data['user_token'])->where('drop_status', 'no')->get(); if($value->count() != 0){ return 1; }else{ return 0; } } public static function gettokenData($user_token){ $value = DB::table('users') ->where('user_token', $user_token) ->where('drop_status', 'no') ->first(); return $value; } public static function updatepasswordData($user_token, $record){ DB::table('users') ->where('user_token', $user_token) ->update($record); } public static function updateadminData($admin_token, $admin_record){ DB::table('users') ->where('user_token', $admin_token) ->update($admin_record); } /* verify user available or not */ /* single user get */ public static function singlevendorData($item_user_id){ $value = DB::table('users') ->where('id', $item_user_id) ->first(); return $value; } public static function singlebuyerData($user_id){ $value = DB::table('users') ->where('id', $user_id) ->first(); return $value; } public static function updatevendorRecord($vendor_token, $record_vendor){ DB::table('users') ->where('user_token', $vendor_token) ->update($record_vendor); } /* single user get */ /* total members */ public static function getmemberData() { $get=DB::table('users')->where('user_type','=','vendor')->where('drop_status','=','no')->orderBy('id', 'desc')->get(); $value = $get->count(); return $value; } /* total members */ public static function getcontactCount($from_email) { $get=DB::table('contact')->where('from_email','=',$from_email)->get(); $value = $get->count(); return $value; } public static function saveContact($record) { DB::table('contact')->insert($record); } }