1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

Remove debug statements.

This commit is contained in:
Thomas Tanghus 2012-06-14 18:03:50 +02:00
parent 160d641dc3
commit d575d12c24
2 changed files with 0 additions and 20 deletions

View 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');

View 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) {