| ( ! ) Notice: Undefined variable: pasaran in /home/angkapaito.net/w39.angkapaito.net/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(60) : eval()'d code on line 36 |
| Call Stack |
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 360640 | {main}( ) | .../index.php:0 |
| 2 | 0.0001 | 361016 | require( '/home/angkapaito.net/w39.angkapaito.net/wp-blog-header.php' ) | .../index.php:17 |
| 3 | 0.1989 | 10723616 | require_once( '/home/angkapaito.net/w39.angkapaito.net/wp-includes/template-loader.php' ) | .../wp-blog-header.php:19 |
| 4 | 0.2006 | 10759016 | include( '/home/angkapaito.net/w39.angkapaito.net/wp-content/themes/frontier/index.php' ) | .../template-loader.php:125 |
| 5 | 0.3682 | 11783752 | get_template_part( ) | .../index.php:31 |
| 6 | 0.3682 | 11784256 | locate_template( ) | .../general-template.php:206 |
| 7 | 0.3682 | 11784368 | load_template( ) | .../template.php:749 |
| 8 | 0.3683 | 11785152 | require( '/home/angkapaito.net/w39.angkapaito.net/wp-content/themes/frontier/loop-single.php' ) | .../template.php:816 |
| 9 | 0.4051 | 11907536 | the_content( ) | .../loop-single.php:77 |
| 10 | 0.4053 | 11907536 | apply_filters( ) | .../post-template.php:256 |
| 11 | 0.4053 | 11907944 | WP_Hook->apply_filters( ) | .../plugin.php:205 |
| 12 | 0.4065 | 11908808 | do_shortcode( ) | .../class-wp-hook.php:341 |
| 13 | 0.4065 | 11912744 | preg_replace_callback
( ) | .../shortcodes.php:273 |
| 14 | 0.4065 | 11913304 | do_shortcode_tag( ) | .../shortcodes.php:273 |
| 15 | 0.4066 | 11914096 | Wbcr_FactoryShortcodes335_ShortcodeManager->shortcode_WINP_SnippetShortcodePhp( ) | .../shortcodes.php:434 |
| 16 | 0.4066 | 11914248 | Wbcr_FactoryShortcodes335_ShortcodeManager->__call( ) | .../shortcodes.php:434 |
| 17 | 0.4066 | 11916224 | WINP_SnippetShortcodePhp->render( ) | .../shortcodes.php:98 |
| 18 | 0.4066 | 11932736 | WINP_SnippetShortcodePhp->html( ) | .../shortcode.class.php:289 |
| 19 | 0.4081 | 11977664 | eval( 'ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$timezone = "Asia/Jakarta";
$servername = 'localhost';
$username = 'angk_paito';
$password = 'sun4rcom';
$db = 'angk_paito';
// Create connection
$mysqli = new mysqli($servername, $username, $password, $db);
// Check connection
if ($mysqli -> connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
exit();
}
$out2 = '';
$out3 = '';
function cut($content,$start,$end){
if($content && $start && $end) {
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';
}
}
$url=get_permalink();
$url=cut($url,'/formula-','/');
if ($url=='sgp') $pasaran= 'singapore';
else if($url=='hkg') $pasaran= 'hongkong';
else if($url=='sdy') $pasaran= 'sydney';
$per = "SELECT * FROM results WHERE pasaran='$pasaran' order by tanggal asc";
if ($result=mysqli_query($mysqli,$per))
{ foreach($result as $result2){
$resultx = $result2['keluaran'];
$tgl = $result2['tanggal'];
$datax[] = array("keluaran" => $resultx);
}
$datax[] = array("keluaran" => "xxxx");
$getdata = array_merge($datax);
//$getdata = json_encode($getdata,true);
}
$count =1;
for($a1=0; $a1 < count($getdata); $a1++){
$shio="";
$a = substr($getdata[$a1]['keluaran'],0,1);
$b = substr($getdata[$a1]['keluaran'],1,1);
$c = substr($getdata[$a1]['keluaran'],2,1);
$d = substr($getdata[$a1]['keluaran'],3,1);
$ekor= "$c$d";
if($ekor>12 && $ekor<25) $sh = 12;
else if($ekor>24 && $ekor<37) $sh = 24;
else if($ekor>36 && $ekor<49) $sh = 36;
else if($ekor>48 && $ekor<61) $sh = 48;
else if($ekor>60 && $ekor<73) $sh = 60;
else if($ekor>72 && $ekor<85) $sh = 72;
else if($ekor>84 && $ekor<97) $sh = 84;
else if($ekor>96) $sh = 96;
else $sh=0;
$shio = (int)$ekor - (int)$shio;
$p=(int)$c + (int)$d;
$array = str_split($p); //Your string
//Counter for counting the number of iteration
if (count($array)>1){ //When more than 2 indexes in array
$s=$array[0]; $x=$array[1];
$e=$s+$x;
} else {
$jumlah=(int)$c+(int)$d;
if($jumlah==0) $e=1; else $e=(int)$c+(int)$d;
}
$tr2 = " |
";
if($pasaran=='singapore'){
if(($a1%5)==0){$tr1 = ""; $tr2 = "";} else {$tr1 = ""; $tr2 = "";}
$out2 .= $tr1."| $a$b$c$d |
$shio |
$e | ".$tr2;
}else {
if(($a1%7)==0){$tr1 = "
"; $tr2 = "";} else {$tr1 = ""; $tr2 = "";}
$out2 .= $tr1."| $a$b$c$d |
$shio |
$e | ".$tr2;
}
$count++;
}
echo $out2;
' ).../shortcode-php.php:60 |