2012-09-07 14:32:45 +02:00
|
|
|
<?php
|
2012-02-06 07:32:57 +01:00
|
|
|
$id = $_['id'];
|
2012-06-05 20:30:22 +02:00
|
|
|
$tmpkey = $_['tmpkey'];
|
2012-06-14 12:48:09 +02:00
|
|
|
$requesttoken = $_['requesttoken'];
|
2012-02-06 07:32:57 +01:00
|
|
|
?>
|
2012-06-05 20:30:22 +02:00
|
|
|
<?php if(OC_Cache::hasKey($tmpkey)) { ?>
|
2013-02-28 18:26:55 +01:00
|
|
|
<img id="cropbox" src="<?php print_unescaped(OCP\Util::linkToAbsolute('contacts', 'tmpphoto.php')); ?>?tmpkey=<?php p($tmpkey); ?>" />
|
2012-02-06 07:32:57 +01:00
|
|
|
<form id="cropform"
|
|
|
|
class="coords"
|
|
|
|
method="post"
|
|
|
|
enctype="multipart/form-data"
|
|
|
|
target="crop_target"
|
2013-02-28 18:26:55 +01:00
|
|
|
action="<?php print_unescaped(OCP\Util::linkToAbsolute('contacts', 'ajax/savecrop.php')); ?>">
|
2012-02-06 07:32:57 +01:00
|
|
|
|
2013-02-28 18:26:55 +01:00
|
|
|
<input type="hidden" id="id" name="id" value="<?php p($id); ?>" />
|
|
|
|
<input type="hidden" name="requesttoken" value="<?php p($requesttoken); ?>">
|
|
|
|
<input type="hidden" id="tmpkey" name="tmpkey" value="<?php p($tmpkey); ?>" />
|
2012-02-06 07:32:57 +01:00
|
|
|
<fieldset id="coords">
|
|
|
|
<input type="hidden" id="x1" name="x1" value="" />
|
|
|
|
<input type="hidden" id="y1" name="y1" value="" />
|
|
|
|
<input type="hidden" id="x2" name="x2" value="" />
|
|
|
|
<input type="hidden" id="y2" name="y2" value="" />
|
|
|
|
<input type="hidden" id="w" name="w" value="" />
|
|
|
|
<input type="hidden" id="h" name="h" value="" />
|
|
|
|
</fieldset>
|
|
|
|
<iframe name="crop_target" id='crop_target' src=""></iframe>
|
|
|
|
</form>
|
2013-02-28 18:26:55 +01:00
|
|
|
<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('contacts/js', 'jcrop.js'));?>"></script>
|
2012-06-05 20:30:22 +02:00
|
|
|
<?php
|
2012-09-07 14:32:45 +02:00
|
|
|
} else {
|
2013-02-28 16:27:14 +01:00
|
|
|
p($l->t('The temporary image has been removed from cache.'));
|
2012-06-05 20:30:22 +02:00
|
|
|
}
|