* @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.8.7 * * {@internal * created unknown * modified 2008-06-25, 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("","","left="+xwin+",top="+ywin+",width=" + defaultWidth + ",height=" + defaultHeight + "\""); zwin.moveTo(xwin,ywin); zcon = "\n\n<?php echo i18n("Click to close"); ?>\n\n"; zcon = "
"; zcon += '\n"'; zcon += "\"<?php\" title=\"\">\n"; zcon += "
\n"; zwin.document.open(); zwin.document.write(zcon); zwin.document.close(); } function submitrightsform(act,actarea) { actarea= actarea||0; if(actarea!=0&&actarea!='') document.forms.rightsform.actionarea.value=actarea; document.forms.rightsform.action.value=act; document.forms.rightsform.submit(); } function setRightsForAllAreas(){ // Fixed function to be use in ns/moz JL checked = document.forms["rightsform"].elements["checkall"].checked; var elements = document.getElementsByTagName("INPUT"); for (i=0; i