function fix_postback($post_array) { foreach ($post_array as $index => $value) { if (is_array($value)) { fix_postback($value); } else { $value = str_replace('"', """, $value); $value = str_replace("'", "'", $value); $post_array[$index] = $value; } } return $post_array; }
} else { if (function_exists('curl_version')) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($curl); curl_close($curl); } } // parse response $setting = json_decode($response, true); $setting["project_notifications"] = 'true'; } } else { // load postback variables $setting = fix_postback($_SESSION["postback"]); unset($_SESSION["postback"]); } require_once "resources/header.php"; $document['title'] = $text['title-notifications']; // show the content echo "<form method='post' name='frm' action=''>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n"; echo "\t<tr>\n"; echo "\t\t<td align='left' nowrap='nowrap'><b>" . $text['header-notifications'] . "</b><br><br></td>\n"; echo "\t\t<td align='right'>"; echo "\t\t\t<input type='submit' name='submit' class='btn' value='" . $text['button-save'] . "'>\n"; echo "\t\t\t<br><br>"; echo "\t\t</td>\n"; echo "\t</tr>\n"; echo "\t<tr>\n";