* @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * @since file available since contenido release <= 4.6 * * {@internal * created unknown * modified 2008-06-16, H. Librenz, Hotfix: Added check for invalid calls * modified 2008-06-26, Frederic Schneider, add security fix * modified 2008-07-02, Frederic Schneider, include security_class * modified 2010-05-20, Murat Purc, standardized Contenido startup and security check invocations, see [#CON-307] * * $Id$: * }} * */ if (!defined("CON_FRAMEWORK")) { define("CON_FRAMEWORK", true); } // Contenido startup process include_once ('../includes/startup.php'); header("Content-Type: text/javascript"); page_open(array('sess' => 'Contenido_Session', 'auth' => 'Contenido_Challenge_Crypt_Auth', 'perm' => 'Contenido_Perm')); i18nInit($cfg["path"]["contenido"].$cfg["path"]["locale"], $belang); page_close(); ?> /** * Display an image in a pop-up window * * @param string image path * @author Jan Lengowski * @copyright four for business AG */ function iZoom(path) { var defaultWidth = 640; var defaultHeight = 480; var xwin = parseInt((screen.availWidth / 2) - (defaultWidth / 2)); var ywin = parseInt((screen.availHeight / 2) - (defaultHeight / 2)); zwin = window.open("","","menubar=no,status=no,resizable=no,toolbar=no,statusbar=no,scrollbars=no,left="+xwin+",top="+ywin+",width=" + defaultWidth + ",height=" + defaultHeight + "\""); zwin.moveTo(xwin,ywin); zcon = "\n\n<?php echo i18n("Click to close"); ?>\n\n"; zcon += ''+"\n"; zcon += "
"; zcon += "\"<?php\" title=\"\">\n"; zcon += "
\n"; zwin.document.open(); zwin.document.write(zcon); zwin.document.close(); }