mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
Resolved Issue ID 0000474 (Step 2):
o Add .htaccess files
=>
* admin
- .htaccess = deny from all
* doc
- no .htaccess
* galleries
- .htaccess = Options -Indexes
* include
- .htaccess = deny from all
=> move 2 .js in template-common
* install
- .htaccess = deny from all
* language
- .htaccess = deny from all
* template
- .htaccess = Options -Indexes
* template-common
- .htaccess = Options -Indexes
* template-extension
- .htaccess = Options -Indexes
* tools
- no .htaccess
git-svn-id: http://piwigo.org/svn/trunk@1505 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
function SelectAll( formulaire )
|
||||
{
|
||||
len = formulaire.elements.length;
|
||||
var i=0;
|
||||
for( i = 0; i < len; i++)
|
||||
{
|
||||
if ( formulaire.elements[i].type=='checkbox'
|
||||
&& formulaire.elements[i].name != 'copie')
|
||||
{
|
||||
formulaire.elements[i].checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function DeselectAll( formulaire )
|
||||
{
|
||||
len = formulaire.elements.length;
|
||||
var i=0;
|
||||
for( i = 0; i < len; i++)
|
||||
{
|
||||
if ( formulaire.elements[i].type=='checkbox'
|
||||
&& formulaire.elements[i].name != 'copie')
|
||||
{
|
||||
formulaire.elements[i].checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Inverser( formulaire )
|
||||
{
|
||||
len = formulaire.elements.length;
|
||||
var i=0;
|
||||
for( i=0; i<len; i++)
|
||||
{
|
||||
if ( formulaire.elements[i].type=='checkbox'
|
||||
&& formulaire.elements[i].name != 'copie')
|
||||
{
|
||||
formulaire.elements[i].checked = !formulaire.elements[i].checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function verifieAndOpen()
|
||||
{
|
||||
var ok=1;
|
||||
if (!img.complete)
|
||||
{
|
||||
// sometime the image loading is not complete
|
||||
// especially with KHTML and Opera
|
||||
setTimeout("verifieAndOpen()",200)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* give more space for scrollbars (10 for FF, 40 for IE) */
|
||||
width=img.width +40;
|
||||
height=img.height +40;
|
||||
window.open(owURL,owName,owFeatures + ',width=' + width + ',height=' + height);
|
||||
}
|
||||
}
|
||||
|
||||
function phpWGOpenWindow(theURL,winName,features)
|
||||
{
|
||||
img = new Image()
|
||||
img.src = theURL;
|
||||
owURL=theURL;
|
||||
owName=winName;
|
||||
owFeatures=features;
|
||||
verifieAndOpen();
|
||||
}
|
||||
|
||||
function popuphelp(url)
|
||||
{
|
||||
window.open(
|
||||
url,
|
||||
'dc_popup',
|
||||
'alwaysRaised=yes,dependent=yes,toolbar=no,height=420,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user