X7ROOT File Manager
PHP:
7.2.34
OS:
Linux
User:
cp648411
Root
/
home2
/
cp648411
/
public_html
/
kainumber.com
/
class_old
ðĪ Upload
ð New File
ð New Folder
Close
Editing: phone_Class_180561.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_cover($var)//in:1234567891 //out: 123-456-7891 { $phone = substr($var,0,3).'-'. substr($var,3,3).'-xxxx'; 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"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 0 && $var1 <= 0.5) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_11.png" class="star-img-responsive"> '; } if($var1 > 0.5 && $var1 <= 1) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 1 && $var1 <= 1.5) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_11.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 1.5 && $var1 <= 2) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 2 && $var1 <= 2.5) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_11.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 2.5 && $var1 <= 3) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 3 && $var1 <= 3.5) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_11.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 3.5 && $var1 <= 4) { $img = ' <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 4 && $var1 <= 4.5) { $img = ' <img src="../image/star_11.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } if($var1 > 4.5 && $var1 <= 5) { $img = ' <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> <img src="../image/star_07.png" class="star-img-responsive"> '; } 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"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 0 && $var1 <= 0.5) { $img = ' <img src="../image/star_12.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 0.5 && $var1 <= 1) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 1 && $var1 <= 1.5) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_12.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 1.5 && $var1 <= 2) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 2 && $var1 <= 2.5) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_12.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 2.5 && $var1 <= 3) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 3 && $var1 <= 3.5) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_12.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 3.5 && $var1 <= 4) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_03.png" class="star-img-responsive"> '; } if($var1 > 4 && $var1 <= 4.5) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_12.png" class="star-img-responsive"> '; } if($var1 > 4.5 && $var1 <= 5) { $img = ' <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> <img src="../image/star_08.png" class="star-img-responsive"> '; } 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 = 'āļāļ§āļēāļĄāļĢāļąāļāļĢāļāļāļāļąāļ§';}} 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('36',$pho_2); if($ch==1){ $num = 'āļ§āļīāļ§āļēāļŦāđāļŠāļĄāļŦāļ§āļąāļ';}} if($ch == ''){$ch = in_array('63',$pho_2); if($ch==1){ $num = 'āļ§āļīāļ§āļēāļŦāđāļŠāļĄāļŦāļ§āļąāļ';}} if($ch == ''){$ch = in_array('66',$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($id==8 || $id=='')//āļāļēāļĢāđāļĢāļĩāļĒāļ/āļāļēāļĢāļāļēāļ { //āļāļēāļĢāđāļĢāļĩāļĒāļ/āļāļēāļĢāļāļēāļ if($ch == ''){$ch = in_array('415',$pho_2); if($ch==1){ $num = 'āļāļŦāļđāļŠāļđāļāļĢ';}} if($ch == ''){$ch = in_array('451',$pho_2); if($ch==1){ $num = 'āđāļŦāļ§āļāļĢāļīāļāļāļąāļāđāļ§';}} if($ch == ''){$ch = in_array('514',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļĢāļēāļāļāđāđāļŦāđāļāļĒāļļāļ';}} if($ch == ''){$ch = in_array('541',$pho_2); if($ch==1){ $num = 'āļāļĢāļĄāļēāļāļēāļĢāļĒāđāļāļ§āļēāļĄāļĢāļđāđ';}} if($ch == ''){$ch = in_array('145',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļēāļŠāļĢāđāļēāļāļŠāļĢāļĢāļāđ';}} if($ch == ''){$ch = in_array('154',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļĢāļīāļĒāļ°āđāļĨāļīāļĻāļĨāđāļģ';}} 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 = 'āļāļđāđāļĢāļąāļāļāļ§āļēāļĄāļĒāļļāļāļīāļāļĢāļĢāļĄ';}} //āļāļŠāļąāļāļŦāļē āļ§āļīāļĻāļ§āļ° āļŦāļļāđāļ 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 = 'āļāļđāđāđāļŦāļāđāđāļĄāļāļāļē';}} if($ch == ''){$ch = in_array('15',$pho_2); if($ch==1){ $num = 'āļāļđāđāđāļŦāļāđāļŦāļāļļāļāļŦāļĨāļąāļ';}} if($ch == ''){$ch = in_array('51',$pho_2); if($ch==1){ $num = 'āļāļĢāļāļāļāļĢāļąāļ§āđāļāļ·āđāļāļŦāļāļļāļ';}} if($ch == ''){$ch = in_array('59',$pho_2); if($ch==1){ $num = 'āļāļļāļāļĢāļąāļāļĐāļē';}} if($ch == ''){$ch = in_array('95',$pho_2); if($ch==1){ $num = 'āļĄāļŦāļēāđāļĄāļāļāļē';}} } if($id==11 || $id=='')//āļāļēāļĢāđāļāļīāļ / āđāļāļāļĨāļēāļ { if($ch == ''){$ch = in_array('168',$pho_2); if($ch==1){ $num = 'āļāļąāļāļ§āļēāļāđāļāļāļāļēāļĢāđāļāļīāļ';}} if($ch == ''){$ch = in_array('186',$pho_2); if($ch==1){ $num = 'āļāļąāļāļ§āļēāļāđāļāļāļāļēāļĢāđāļāļīāļ';}} if($ch == ''){$ch = in_array('618',$pho_2); if($ch==1){ $num = 'āļāļąāļāļ§āļēāļāđāļāļāļāļēāļĢāđāļāļīāļ';}} if($ch == ''){$ch = in_array('681',$pho_2); if($ch==1){ $num = 'āļāļąāļāļ§āļēāļāđāļāļāļāļēāļĢāđāļāļīāļ';}} if($ch == ''){$ch = in_array('816',$pho_2); if($ch==1){ $num = 'āļāļąāļāļ§āļēāļāđāļāļāļāļēāļĢāđāļāļīāļ';}} if($ch == ''){$ch = in_array('861',$pho_2); if($ch==1){ $num = 'āļāļąāļāļ§āļēāļāđāļāļāļāļēāļĢāđāļāļīāļ';}} if($ch == ''){$ch = in_array('289',$pho_2); if($ch==1){ $num = 'āļāļēāļ§āļāļģāđāļāļ';}} if($ch == ''){$ch = in_array('298',$pho_2); if($ch==1){ $num = 'āļāļ§āļĩāļāļĢāļąāļāļĒāđ';}} if($ch == ''){$ch = in_array('829',$pho_2); if($ch==1){ $num = 'āđāļāļāđāļāđāļēāđāļŦāđāļāđāļāļāļĨāļēāļ ';}} if($ch == ''){$ch = in_array('892',$pho_2); if($ch==1){ $num = 'āļāļ§āļāļāļēāļĢāļ§āļĒ';}} if($ch == ''){$ch = in_array('928',$pho_2); if($ch==1){ $num = 'āđāļŠāļĩāđāļĒāļāđāļāļāļĄāļŦāļēāđāļŪāļ';}} //āļāļŠāļąāļāļŦāļē āļ§āļīāļĻāļ§āļ° āļŦāļļāđāļ 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($id==12 || $id=='')//āļāļĢāļāļāļāļĢāļąāļ§ { //āļāļ§āļēāļĄāļĢāļąāļ 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('36',$pho_2); if($ch==1){ $num = 'āļ§āļīāļ§āļēāļŦāđāļŠāļĄāļŦāļ§āļąāļ';}} if($ch == ''){$ch = in_array('63',$pho_2); if($ch==1){ $num = 'āļ§āļīāļ§āļēāļŦāđāļŠāļĄāļŦāļ§āļąāļ';}} if($ch == ''){$ch = in_array('66',$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('415',$pho_2); if($ch==1){ $num = 'āļāļŦāļđāļŠāļđāļāļĢ';}} if($ch == ''){$ch = in_array('451',$pho_2); if($ch==1){ $num = 'āđāļŦāļ§āļāļĢāļīāļāļāļąāļāđāļ§';}} if($ch == ''){$ch = in_array('514',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļĢāļēāļāļāđāđāļŦāđāļāļĒāļļāļ';}} if($ch == ''){$ch = in_array('541',$pho_2); if($ch==1){ $num = 'āļāļĢāļĄāļēāļāļēāļĢāļĒāđāļāļ§āļēāļĄāļĢāļđāđ';}} if($ch == ''){$ch = in_array('145',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļēāļŠāļĢāđāļēāļāļŠāļĢāļĢāļāđ';}} if($ch == ''){$ch = in_array('154',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļĢāļīāļĒāļ°āđāļĨāļīāļĻāļĨāđāļģ';}} 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 = 'āļāļđāđāļĢāļąāļāļāļ§āļēāļĄāļĒāļļāļāļīāļāļĢāļĢāļĄ';}} //āļāļļāļāļ āļąāļĄāļ āđ 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 = 'āļāļđāđāđāļŦāļāđāđāļĄāļāļāļē';}} if($ch == ''){$ch = in_array('15',$pho_2); if($ch==1){ $num = 'āļāļđāđāđāļŦāļāđāļŦāļāļļāļāļŦāļĨāļąāļ';}} if($ch == ''){$ch = in_array('51',$pho_2); if($ch==1){ $num = 'āļāļĢāļāļāļāļĢāļąāļ§āđāļāļ·āđāļāļŦāļāļļāļ';}} if($ch == ''){$ch = in_array('59',$pho_2); if($ch==1){ $num = 'āļāļļāļāļĢāļąāļāļĐāļē';}} if($ch == ''){$ch = in_array('95',$pho_2); if($ch==1){ $num = 'āļĄāļŦāļēāđāļĄāļāļāļē';}} } if($id==13 || $id=='')//āļĄāļīāļāļĢāļ āļēāļ/āļŠāļąāļāļāļĄ { if($ch == ''){$ch = in_array('64',$pho_2); if($ch==1){ $num = 'āļĄāļīāļāļĢāļŠāļŦāļēāļĒāļĢāļēāļĒāļĨāđāļāļĄ';}} if($ch == ''){$ch = in_array('46',$pho_2); if($ch==1){ $num = 'āļāļĢāļīāļ§āļēāļĢāļĄāļēāļāļĄāļēāļĒ';}} //āļāļļāļāļ āļąāļĄāļ āđ 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 = 'āļāļđāđāđāļŦāļāđāđāļĄāļāļāļē';}} if($ch == ''){$ch = in_array('15',$pho_2); if($ch==1){ $num = 'āļāļđāđāđāļŦāļāđāļŦāļāļļāļāļŦāļĨāļąāļ';}} if($ch == ''){$ch = in_array('51',$pho_2); if($ch==1){ $num = 'āļāļĢāļāļāļāļĢāļąāļ§āđāļāļ·āđāļāļŦāļāļļāļ';}} if($ch == ''){$ch = in_array('59',$pho_2); if($ch==1){ $num = 'āļāļļāļāļĢāļąāļāļĐāļē';}} if($ch == ''){$ch = in_array('95',$pho_2); if($ch==1){ $num = 'āļĄāļŦāļēāđāļĄāļāļāļē';}} //āļāļēāļĢāđāļĢāļĩāļĒāļ/āļāļēāļĢāļāļēāļ if($ch == ''){$ch = in_array('415',$pho_2); if($ch==1){ $num = 'āļāļŦāļđāļŠāļđāļāļĢ';}} if($ch == ''){$ch = in_array('451',$pho_2); if($ch==1){ $num = 'āđāļŦāļ§āļāļĢāļīāļāļāļąāļāđāļ§';}} if($ch == ''){$ch = in_array('514',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļĢāļēāļāļāđāđāļŦāđāļāļĒāļļāļ';}} if($ch == ''){$ch = in_array('541',$pho_2); if($ch==1){ $num = 'āļāļĢāļĄāļēāļāļēāļĢāļĒāđāļāļ§āļēāļĄāļĢāļđāđ';}} if($ch == ''){$ch = in_array('145',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļēāļŠāļĢāđāļēāļāļŠāļĢāļĢāļāđ';}} if($ch == ''){$ch = in_array('154',$pho_2); if($ch==1){ $num = 'āļāļąāļāļāļĢāļīāļĒāļ°āđāļĨāļīāļĻāļĨāđāļģ';}} 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 = 'āļāļđāđāļĢāļąāļāļāļ§āļēāļĄāļĒāļļāļāļīāļāļĢāļĢāļĄ';}} } if($id==16 || $id=='')//āļŠāļļāļāļ āļēāļ { if($ch == ''){$ch = in_array('38',$pho_2); if($ch==1){ $num = 'āļāļēāļĒāļļāļĒāļ·āļāļĒāļēāļ§';}} if($ch == ''){$ch = in_array('83',$pho_2); if($ch==1){ $num = 'āđāļĢāļāļ āļąāļĒāđāļāļĨāļŦāđāļēāļ';}} $arr = array('āđāļĢāđāļāļķāđāļāđāļĢāļāļ āļąāļĒ','āļāļĨāļąāļāļāļēāļāļĨāđāļāđāļŦāļĨāļ·āļ','āļāļĨāļēāļāļēāļĄāļąāļĒāļĒāļāļāđāļĒāļĩāđāļĒāļĄ'); if($id==16){if($ch == ''){ $num = array_rand($arr,1) ;$num = $arr[$num];}} } if($id==17 || $id=='')//āđāļāļĨāđāļ§āļāļĨāļēāļ { if($ch == ''){$ch = in_array('49',$pho_2); if($ch==1){ $num = 'āļ§āļēāļāļēāļĻāļąāļāļāļīāđāļŠāļīāļāļāđ';}} if($ch == ''){$ch = in_array('94',$pho_2); if($ch==1){ $num = 'āļāļēāļĢāļĄāļĩāļĨāđāļāđāļŦāļĨāļ·āļ';}} if($ch == ''){$ch = in_array('09',$pho_2); if($ch==1){ $num = 'āļŠāļąāļĄāļāļąāļŠāđāļŦāļāļ·āļāļāļĢāļĢāļĄāļāļēāļāļī';}} if($ch == ''){$ch = in_array('90',$pho_2); if($ch==1){ $num = 'āļāļđāđāļĄāļĩāļāļēāļāļĩāđāļŠāļēāļĄ';}} if($ch == ''){$ch = in_array('39',$pho_2); if($ch==1){ $num = '<span style="font-size:13px;">āļāļđāđāļāđāļ§āļĒāđāļŦāļĨāļ·āļāļāļĩāđāļĄāļāļāđāļĄāđāđāļŦāđāļ</span>';}} if($ch == ''){$ch = in_array('93',$pho_2); if($ch==1){ $num = 'āļāļļāļāļĢāļąāļāļĐāļē';}} if($ch == ''){$ch = in_array('99',$pho_2); if($ch==1){ $num = 'āļĢāđāļēāļāļāļĢāļāđāļŦāđāļāđāļāļ';}} } return $num; } public function list_number_3($num)//in:1234567891 //out: 123-456-7891 { $num_len = strlen($num); if($num_len == 10) { $list_num = substr($num,0,3).'-'. substr($num,3,3).'-'. substr($num,6,4); } else { $num_f = floor($num_len/3); $num_mod = $num_len % 3; $num_p = 0; for($i=1;$i<=$num_f;$i++) { $end_list = ''; if($i < $num_f) { $end_list = '-'; } $list_num = $list_num . substr($num,$num_p,3).$end_list; $num_p = $num_p + 3; } if($num_mod > 1) { $list_num = $list_num .'-'. substr($num,-$num_mod); } } return $list_num; } public function number_total($var)//in:0893353222 //out:37 { $num_len = strlen($var); for($i=1;$i<=$num_len;$i++) { $pos = substr($var, $i, 1); $total = $total + $pos; } return $total; } public function reading_num($num) { $num_len = strlen($num); $data = array(); $data['list-num'] = $this->list_number_3($num);; $data['sum'] = $this->number_total($num); $num_len_p2 = $num_len - 2; for($i=0;$i<=$num_len_p2;$i++) { $this->setconnect(); $data['p2']['num'][] = substr($num, $i, 2); $data['p2']['num'] = array_unique ($data['p2']['num']); $sql = 'SELECT score.scoretotal AS scoretotal FROM meaningnumber,score WHERE meaningnumber.id = score.meaning_id AND meaningnumber.number LIKE "%'.substr($num, $i, 2).'%" LIMIT 0 , 1'; $result = mysql_query($sql) or die('Query failed: ' . mysql_error()); $row = mysql_fetch_assoc($result); $data['p2']['score'][] = $row['scoretotal']; } $data['p2']['K-low'] = array_keys($data['p2']['score'], min($data['p2']['score'])); $data['p2']['low'] = min($data['p2']['score']); $num_len_p3 = $num_len - 3; for($i=0;$i<=$num_len_p3;$i++) { $this->setconnect(); $data['p3']['num'][] = substr($num, $i, 3); $data['p3']['num'] = array_unique ($data['p3']['num']); $sql = 'SELECT score.scoretotal AS scoretotal FROM meaningnumber,score WHERE meaningnumber.id = score.meaning_id AND meaningnumber.number LIKE "%'.substr($num, $i, 3).'%" LIMIT 0 , 1'; $result = mysql_query($sql) or die('Query failed: ' . mysql_error()); $row = mysql_fetch_assoc($result); $data['p3']['score'][] = $row['scoretotal']; } $data['p3']['K-low'] = array_keys($data['p3']['score'], min($data['p3']['score'])); $data['p3']['low'] = min($data['p3']['score']); return $data; } public function idcard($var)//in:123456789123 //out: 1-2345-67891-23-4 { $phone = substr($var,0,1).'-'. substr($var,1,4).'-'. substr($var,5,5).'-'. substr($var,10,2).'-'. substr($var,12,1); return $phone; } public function readingidcard($phonenumber) { $phonenumber_sub = substr($phonenumber,7); $phonenumber_len = strlen($phonenumber_sub); $phonenumber_len = $phonenumber_len - 1; for($i=0;$i<$phonenumber_len;$i++) { $arr[$i] = substr($phonenumber_sub,$i,2); } return $arr; } public function idcard_total($var)//in:0893353222 //out:37 { $var_len = strlen($var); for($i=0;$i<$var_len;$i++) { $sum = $sum + substr($var,$i,1); } return $sum; } } ?>
Save
Cancel