Example #1
0
/**
 * Gets the full path to the current PHP file (protocol + domain + paths/to/file).
 * @param   boolean  $fullURI  append the query string, if any (default: false)
 * @return  string             Full URL
 */
function url_get_current($fullURI = false)
{
    // quick check:
    $url = url_get_server();
    $url .= $_SERVER['SCRIPT_NAME'];
    if ($fullURI && $_SERVER['QUERY_STRING']) {
        $url .= '?' . $_SERVER['QUERY_STRING'];
    }
    return $url;
}
Example #2
0
     } else {
         if ($type == "bol") {
             $s = isset($_SESSION[$sn]) && $_SESSION[$sn] == "true" ? ' checked="checked"' : null;
             $field .= '<input type="checkbox" id="' . $name . '" name="' . $name . '" ' . $s . ' />';
         } else {
             if ($type == "int") {
                 $v = isset($_SESSION[$sn]) ? $_SESSION[$sn] : $value;
                 $field .= '<input id="' . $name . '" name="' . $name . '" value="' . $v . '" size="4" />';
             }
         }
     }
     return $field;
 }
 ?>
 <?php 
 echo form_field("str", "trackingServer", url_get_server());
 ?>
 <?php 
 echo form_field("int", "recTime", 3600);
 ?>
 <?php 
 echo form_field("int", "fps", 24);
 ?>
 <?php 
 echo form_field("int", "postInterval", 30);
 ?>
 <?php 
 echo form_field("int", "cookieDays", 365);
 ?>
 <?php 
 echo form_field("str", "layoutType", "liquid");