more code cleanup (last commit for now)

git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-20 14:37:54 +00:00
parent f87ed09e1b
commit 9a1bee1458
71 changed files with 296 additions and 293 deletions
+8 -8
View File
@@ -28,9 +28,9 @@ include("includes/functions.inc.php");
include("includes/authenticate.inc.php");
foreach($_GET as $key=>$get_var) {
if(strstr($key, "opt")) {
if (strstr($key, "opt")) {
list($name, $value) = explode("|", $get_var);
if(!isset($value)) { $value = "yes"; }
if (!isset($value)) { $value = "yes"; }
$vars[$name] = $value;
}
}
@@ -38,11 +38,11 @@ foreach($_GET as $key=>$get_var) {
$segments = explode('/', trim($_SERVER['PATH_INFO'], '/'));
foreach($segments as $pos => $segment) {
$segment = urldecode($segment);
if($pos == "0")
if ($pos == "0")
{
$vars['page'] = $segment;
} else {
if(TRUE) // do this to keep everything working whilst we fiddle
if (TRUE) // do this to keep everything working whilst we fiddle
{
if ($pos == "1")
{
@@ -70,7 +70,7 @@ foreach($segments as $pos => $segment) {
}
}
list($name, $value) = explode("=", $segment);
if($value == "" || !isset($value))
if ($value == "" || !isset($value))
{
$vars[$name] = yes;
} else {
@@ -81,7 +81,7 @@ foreach($segments as $pos => $segment) {
foreach($_POST as $name => $value)
{
# if($value == "" || !isset($value))
# if ($value == "" || !isset($value))
# {
# } else {
$vars[$name] = $value;
@@ -304,8 +304,8 @@ echo('</div>');
<script class="content_tooltips" type="text/javascript">
$(document).ready(function() { $('#content a[title]').qtip({ content: { text: false }, style: 'light' }); });
$('INPUT.auto-hint, TEXTAREA.auto-hint').focus(function(){
if($(this).val() == $(this).attr('title')){
$('INPUT.auto-hint, TEXTAREA.auto-hint').focus(function() {
if ($(this).val() == $(this).attr('title')) {
$(this).val('');
$(this).removeClass('auto-hint');
}