]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove debug statements.
authorThomas Tanghus <thomas@tanghus.net>
Thu, 14 Jun 2012 16:03:50 +0000 (18:03 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 14 Jun 2012 16:03:50 +0000 (18:03 +0200)
apps/contacts/ajax/savecrop.php
apps/contacts/ajax/uploadphoto.php

index 263361bafc1c384e15abc9d5a4a83bdba3fad30b..a5517c5d843abdb0860d4bc696a6f3e11b8c57a6 100644 (file)
@@ -27,25 +27,12 @@ function bailOut($msg) {
        OCP\Util::writeLog('contacts','ajax/savecrop.php: '.$msg, OCP\Util::DEBUG);
        exit();
 }
-function debug($msg) {
-       OCP\Util::writeLog('contacts','ajax/savecrop.php: '.$msg, OCP\Util::DEBUG);
-}
 
 // Check if we are a user
 OCP\JSON::checkLoggedIn();
 OCP\JSON::checkAppEnabled('contacts');
-foreach($_POST as $key=>$value) {
-       debug('POST: '.$key.'=>'.$value);
-}
-foreach($_GET as $key=>$value) {
-       debug('GET: '.$key.'=>'.$value);
-}
 OCP\JSON::callCheck();
 
-// foreach ($_POST as $key=>$element) {
-//     OCP\Util::writeLog('contacts','ajax/savecrop.php: '.$key.'=>'.$element, OCP\Util::DEBUG);
-// }
-
 // Firefox and Konqueror tries to download application/json for me.  --Arthur
 OCP\JSON::setContentTypeHeader('text/plain');
 
index 2dc93362a149bcf7aa8244a1f7be65818eacfee6..52e25e4a33553733a35b5c378de583e4393dfce1 100644 (file)
@@ -30,12 +30,6 @@ function debug($msg) {
 OCP\JSON::setContentTypeHeader('text/plain');
 OCP\JSON::checkLoggedIn();
 OCP\JSON::checkAppEnabled('contacts');
-foreach($_POST as $key=>$value) {
-       debug('POST: '.$key.'=>'.$value);
-}
-foreach($_GET as $key=>$value) {
-       debug('GET: '.$key.'=>'.$value);
-}
 OCP\JSON::callCheck();
 
 // If it is a Drag'n'Drop transfer it's handled here.
@@ -50,7 +44,6 @@ if ($fn) {
        $id = $_GET['id'];
        $tmpfname = tempnam(get_temp_dir(), 'occOrig');
        file_put_contents($tmpfname, file_get_contents('php://input'));
-       debug($tmpfname.' uploaded');
        $image = new OC_Image();
        if($image->loadFromFile($tmpfname)) {
                if($image->width() > 400 || $image->height() > 400) {