ARSIP HARIAN FEBRUARI
| ( ! ) Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in /home/angkapaito.net/w39.angkapaito.net/lomba/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(60) : eval()'d code on line 235 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 360672 | {main}( ) | .../index.php:0 |
| 2 | 0.0001 | 361048 | require( '/home/angkapaito.net/w39.angkapaito.net/lomba/wp-blog-header.php' ) | .../index.php:17 |
| 3 | 0.3113 | 9148536 | require_once( '/home/angkapaito.net/w39.angkapaito.net/lomba/wp-includes/template-loader.php' ) | .../wp-blog-header.php:19 |
| 4 | 0.3130 | 9174792 | include( '/home/angkapaito.net/w39.angkapaito.net/lomba/wp-content/themes/frontier/index.php' ) | .../template-loader.php:125 |
| 5 | 0.3704 | 10093024 | get_template_part( ) | .../index.php:31 |
| 6 | 0.3704 | 10093528 | locate_template( ) | .../general-template.php:206 |
| 7 | 0.3705 | 10093656 | load_template( ) | .../template.php:749 |
| 8 | 0.3705 | 10094456 | require( '/home/angkapaito.net/w39.angkapaito.net/lomba/wp-content/themes/frontier/loop-single.php' ) | .../template.php:816 |
| 9 | 0.3720 | 10098056 | the_content( ) | .../loop-single.php:77 |
| 10 | 0.3721 | 10098056 | apply_filters( ) | .../post-template.php:256 |
| 11 | 0.3721 | 10098464 | WP_Hook->apply_filters( ) | .../plugin.php:205 |
| 12 | 0.3732 | 10099328 | do_shortcode( ) | .../class-wp-hook.php:341 |
| 13 | 0.3732 | 10103904 | preg_replace_callback ( ) | .../shortcodes.php:273 |
| 14 | 0.3732 | 10104464 | do_shortcode_tag( ) | .../shortcodes.php:273 |
| 15 | 0.3732 | 10105256 | Wbcr_FactoryShortcodes335_ShortcodeManager->shortcode_WINP_SnippetShortcodePhp( ) | .../shortcodes.php:434 |
| 16 | 0.3732 | 10105408 | Wbcr_FactoryShortcodes335_ShortcodeManager->__call( ) | .../shortcodes.php:434 |
| 17 | 0.3733 | 10107384 | WINP_SnippetShortcodePhp->render( ) | .../shortcodes.php:98 |
| 18 | 0.3733 | 10123896 | WINP_SnippetShortcodePhp->html( ) | .../shortcode.class.php:289 |
| 19 | 0.3749 | 10206496 | eval( 'ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$timezone = "Asia/Jakarta";
if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone);
$servername = 'localhost';
$username = 'angk_lomba';
$password = 'sun4rcom';
$db = 'angk_lomba';
// 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();
}
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 '';
}
}
function closetags($html) {
preg_match_all('#<(?!meta|img|br|hr|input\b)\b([a-z]+)(?: .*)?(?#iU', $html, $result);
$openedtags = $result[1];
preg_match_all('#([a-z]+)>#iU', $html, $result);
$closedtags = $result[1];
$len_opened = count($openedtags);
if (count($closedtags) == $len_opened) {
return $html;
}
$openedtags = array_reverse($openedtags);
for ($i=0; $i < $len_opened; $i++) {
if (!in_array($openedtags[$i], $closedtags)) {
$html .= ''.$openedtags[$i].'>';
} else {
unset($closedtags[array_search($openedtags[$i], $closedtags)]);
}
}
return $html;
}
$pattern = array (
'Jan','Feb','Mar','Apr','May',
'Jun','Jul','Aug','Sep','Oct',
'Nov','Dec',
);
$replace = array ('/Januari/','/Februari/','/Maret/','/April/','/Mei/','/Juni/','/Juli/','/Agustus/','/September/',
'/Oktober/','/November/','/Desember/',
);
$bulan="";
$today = date('Y');
$user = wp_get_current_user();
$allowed_roles = array('administrator');
$url=$_SERVER['REQUEST_URI'];
$url1=cut($url,'/arsip/','/');
if (empty($url1)){
$pasaran="sgp";
$tahun1=$today;
}else {
$ipank=explode('-',$url1);
$pasaran=$ipank['0'];
$tahun1=$ipank['1'];
}
$bulans=cut($url,"/arsip/$pasaran-$tahun1/","/");
$page=cut($url,"/arsip/$pasaran-$tahun1/$bulan/","/");
$bulan = ucfirst($bulans);
$bulan1= preg_replace($replace, $pattern, $bulan);
$lomba="harian-$pasaran-15-lobang";
$tahun="$bulan1 $tahun1";
if(!empty($page))
$page = $page;
else
$page=1;
if($pasaran=="sgp")
$titles=str_replace('sgp','singapore',$pasaran);
else
$titles=str_replace('hkg','hongkong',$pasaran);
$title=strtoupper("$pasaran $tahun1");
if(empty($bulan)){
?>
ARSIPKLAIM LOMBA & HADIAH/klaimARSIP HARIAN
roles ) ) {
if (isset($_POST['tambah'])){
$content=$_POST['content'];
$sql1 = "INSERT INTO `$lomba` (`content`, `date`) VALUES ('$content','$tahun')";
if($result=mysqli_query($mysqli,$sql1))
echo ' Tambah sukses ';
}
}
$no=01;
$sql=mysqli_query($mysqli, "SELECT *
FROM `$lomba` WHERE `date` ='$tahun' ORDER BY `id` ASC");
while($data=mysqli_fetch_array($sql)){
?>
roles ) ) {
?>
roles ) ) {
?>
ROOM LOMBAKLAIM LOMBA & HADIAH | .../shortcode-php.php:60 |
| 20 | 0.3800 | 10525584 | mysqli_fetch_array ( ) | .../shortcode-php.php(60) : eval()'d code:235 |





3PRIZETOTO










ARSIP JANUARI