diff --git a/admin/editAppFamily.php b/admin/editAppFamily.php index 8783467..eaa5854 100644 --- a/admin/editAppFamily.php +++ b/admin/editAppFamily.php @@ -117,7 +117,7 @@ if(isset($_REQUEST['submit'])) if (!empty($_REQUEST['url_desc']) && !empty($_REQUEST['url']) ) { // process added URL - if(debugging()) { echo "
{$_REQUEST['url']}: {$_REQUEST['url_desc']}
"; } + if($_SESSION['current']->showDebuggingInfos()) { echo "{$_REQUEST['url']}: {$_REQUEST['url_desc']}
"; } $aInsert = compile_insert_string( array( 'appId' => $_REQUEST['appId'], 'type' => 'url', @@ -126,7 +126,7 @@ if(isset($_REQUEST['submit'])) $sQuery = "INSERT INTO appData ({$aInsert['FIELDS']}) VALUES ({$aInsert['VALUES']})"; - if(debugging()) { echo "query: $sQuery
"; } + if($_SESSION['current']->showDebuggingInfos()) { echo "query: $sQuery
"; } if (query_appdb($sQuery)) { @@ -141,7 +141,7 @@ if(isset($_REQUEST['submit'])) for($i = 0; $i < $_REQUEST['rows']; $i++) { - if(debugging()) { echo "{$_REQUEST['adescription'][$i]}: {$_REQUEST['aURL'][$i]}: {$_REQUEST['adelete'][$i]} : {$_REQUEST['aId'][$i]} : .{$_REQUEST['aOldDesc'][$i]}. : {$_REQUEST['aOldURL'][$i]}
"; } + if($_SESSION['current']->showDebuggingInfos()) { echo "{$_REQUEST['adescription'][$i]}: {$_REQUEST['aURL'][$i]}: {$_REQUEST['adelete'][$i]} : {$_REQUEST['aId'][$i]} : .{$_REQUEST['aOldDesc'][$i]}. : {$_REQUEST['aOldURL'][$i]}
"; } if ($_REQUEST['adelete'][$i] == "on") { @@ -213,7 +213,7 @@ else $ob = mysql_fetch_object($result); - if(debugging()) { echo "appName: $ob->appName
"; } + if($_SESSION['current']->showDebuggingInfos()) { echo "appName: $ob->appName
"; } apidb_header("Edit Application Family");