include './include/config.php'; include './include/nonMysqlFunctions.php'; $identifier = $_GET['newsid']; $action = "articlenew"; $r = rand(0, 152221); $url = "https://apiv3.alarab.com/api/" . $action . "/" . $identifier . "/1"; $response = getJson($url); $result = json_decode($response); $article = json_decode(json_encode($result->data), True); //print_r($article); if ($article['mStatus'] == 0) { header('Location: /'); } $pagetitle = $article[title]; $article_author = gen_Author($article['nWriter']); $picsby = $parsed = get_string_between($article[nWriter], '(', ')'); $picsby = str_replace("تصوير", '', $picsby); $picsby = str_replace(":", '', $picsby); if (!$picsby) $picsby = "كل العرب"; $image = $article[fullscreen]; $pdate = $article[pdate]; $udate = $article[udate]; if ($article['mCat'] == 7) { $paid = "