function compliant()
{
    if ($condition) {
        firstActionInBlock();
        secondActionInBlock();
    }
    if ($condition) {
        action();
    }
    $outerAction;
    if ($condition) {
        firstActionInBlock();
        secondAction();
    } else {
        if ($condition) {
        } else {
            other();
        }
    }
    thirdAction();
    $str = null;
    for ($i = 0; $i < count($array); $i++) {
        $str = $array[$i];
        doTheThing($str);
    }
    if ($condition) {
        action();
    }
    $outerAction();
}
Example #2
0
<!DOCTYPE html>
<html>

<?php 
require_once '../model/connect.php';
require_once 'otherController.php';
if (isset($_POST['type']) && !empty($_POST['type'])) {
    other();
}
?>
    <head>
        <!-- Latest compiled and minified CSS -->
        <script src="jquery-2.1.4.min.js"></script>

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">

        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">

        <!-- Latest compiled and minified JavaScript -->
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

        <link rel = "stylesheet" href="stlye1.css">

        <title>Transportation : Borrow car from other place</title>
        <!-- Bootstrap Core CSS -->
        <link href="css/bootstrap.min.css" rel="stylesheet">

        <!-- Custom CSS -->
        <link href="css/business-frontpage.css" rel="stylesheet">
    </head>
	
	if(isset($_GET["http-safe-ports"])){http_safe_ports_popup();exit;}
	if(isset($_GET["http-safe-ports-list"])){http_safe_ports_list();exit;}
	if(isset($_GET["http-safe-ports-add"])){http_safe_ports_add();exit;}
	if(isset($_GET["http-safe-ports-del"])){http_safe_ports_del();exit;}
	
	
	if(isset($_GET["http-safe-ports-ssl"])){http_safe_ports_ssl_popup();exit;}
	if(isset($_GET["http-safe-ports-ssl-list"])){http_safe_ports_ssl_list();exit;}
	if(isset($_GET["http-safe-ports-ssl-add"])){http_safe_ports_ssl_add();exit;}
	if(isset($_GET["http-safe-ports-ssl-del"])){http_safe_ports_ssl_del();exit;}	
	
	if(isset($_GET["allow_squid_localhost"])){allow_squid_localhost_save();exit;}
	
	if(isset($_GET["request_header_max_size"])){sizelimit_save();exit;}
	if(isset($_GET["other"])){other();exit;}
	if(isset($_POST["SquidStoreLogLogging"])){SquidStoreLogLogging_save();exit;}

	
js();

function js(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$OnLyPorts=null;
	$title=$tpl->_ENGINE_parse_body("{squid_advanced_parameters}");
	if(isset($_GET["OnLyPorts"])){$OnLyPorts="&OnLyPorts=yes&t={$_GET["t"]}";}
	$html="
	function SquidAVParamStart(){
		YahooWin6('880','$page?popup=yes$OnLyPorts','$title');
Example #4
0
function _other($string)
{
    return !other($string);
}