| Server IP : 172.67.216.113 / Your IP : 104.23.243.32 [ 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/simded.com/themes/ |
Upload File : |
<?php
if($_POST['phonenumber'] <> '')
{
?>
<div align="center">
<p class="HeadText">แสดงผลทำนายเบอร์</p>
<?php
$phonenumber = $_POST['phonenumber'];
$pho_len = strlen($phonenumber);
if($_POST['type']== 'mobile')
{
if($pho_len == 10)
{
$position = $Phone_class->phonenumber($phonenumber);
}
}
if($_POST['type']== 'idcard')
{
if($pho_len == 13)
{
$position = $Phone_class->idcard($phonenumber);
}
}
if($_POST['type'] == 'homenumber' || $_POST['type']== 'licenseplate')
{
$position = $phonenumber;
}
?>
<p style="font-size:70px;" > <?php echo $position; ?></p>
<p style="margin-top:50px;font-size:20px;text-indent:25px;" align="left">
<?php
if($phonenumber <> '')
{
if($_POST['type']== 'mobile')
{
if($pho_len == 10)
{
$arrnum = $Phone_class->readingber($phonenumber);
}
}
if($_POST['type']== 'idcard')
{
if($pho_len == 13)
{
$arrnum = $Phone_class->readingidcard($phonenumber);
}
}
if($_POST['type'] == 'homenumber' || $_POST['type']== 'licenseplate')
{
$arrnum = $Phone_class->ck_numeric($phonenumber);
}
$Fullscore = 100 * count($arrnum);
// $Fullscore = count($arrnum);
$arrnum_un = array_unique ($arrnum);
foreach( $arrnum_un as $value )
{
$list = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$value.'%"');
$view = $view_db->view($list);
$row = $view_db->q($view);
$total_read = $total_read + $row['score'];
$detail = $detail . '<p style="text-indent: 40px;">'.$row['detail'].'</p>';
}
$sum = ($total_read*100)/$Fullscore;
?>
<div style="margin-top:50px;color:#F00;font-size:18px;">ค่าเฉลี่ยความเป็นมงคล</div>
<div style="font-size:70px;line-height:45px;padding-top:10px;"><?php echo number_format($sum); ?>%</div>
<br><br>
<div style="font-size:20px;text-align:left;font-family:Verdana, Geneva, sans-serif" > <?php echo $detail;?> </div><?php
}
?>
</p>
<p style="color:#F00;font-size:18px;">(เบอร์ดีหรือไม่ดีนั้น ส่วนหนึ่งอยู่ที่การนำไปใช้ กับงานที่เหมาะสมด้วย)</p>
</div>
<?php
}
?>