Files
Chamilo/main/document/exit_pixlr.php
T
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

41 lines
1.3 KiB
PHP

<?php
/* For licensing terms, see /license.txt */
use ChamiloSession as Session;
/**
* This file allows creating new svg and png documents with an online editor.
*
* @package chamilo.document
*
* @author Juan Carlos Raa Trabado
*
* @since 30/january/2011
*/
require_once __DIR__.'/../inc/global.inc.php';
api_protect_course_script(true);
api_block_anonymous_users();
//delete temporal file
$fileToDelete = Session::read('temp_realpath_image');
if (file_exists($fileToDelete)) {
unlink($fileToDelete);
}
//Clean sessions and return to Chamilo file list
Session::erase('paint_dir');
Session::erase('paint_file');
Session::erase('temp_realpath_image');
$exit = Session::read('exit_pixlr');
if (empty($exit)) {
$location = api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq();
echo '<script>window.parent.location.href="'.$location.'"</script>';
api_not_allowed(true);
} else {
echo '<div align="center" style="padding-top:150; font-family:Arial, Helvetica, Sans-serif;font-size:25px;color:#aaa;font-weight:bold;">'.get_lang('PleaseStandBy').'</div>';
$location = api_get_path(WEB_CODE_PATH).'document/document.php?id='.Security::remove_XSS($exit).'&'.api_get_cidreq();
echo '<script>window.parent.location.href="'.$location.'"</script>';
Session::erase('exit_pixlr');
}