sort included JS files
This commit is contained in:
parent
40008f9038
commit
06ccc05f6e
|
@ -70,8 +70,13 @@ echo $_SESSION['header'];
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
// set focus on password field
|
// set focus on password field
|
||||||
|
|
|
@ -135,8 +135,13 @@ echo ("<body onload=\"configLoginMethodChanged()\">\n");
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -112,8 +112,13 @@ echo "</head><body>\n";
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,8 +130,13 @@ echo "</head><body>\n";
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,8 +87,13 @@ echo $_SESSION['header'];
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -154,8 +154,13 @@ echo $_SESSION['header'];
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,8 +111,13 @@ echo "</head><body>\n";
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,8 +72,13 @@ echo $_SESSION['header'];
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/../lib';
|
$jsDirName = dirname(__FILE__) . '/../lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"../lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ function display_LoginPage($config_object) {
|
||||||
|
|
||||||
echo $_SESSION["header"];
|
echo $_SESSION["header"];
|
||||||
?>
|
?>
|
||||||
<title>LDAP Account Manager -Login-</title>
|
<title>LDAP Account Manager</title>
|
||||||
<link rel="stylesheet" type="text/css" href="../style/layout.css">
|
<link rel="stylesheet" type="text/css" href="../style/layout.css">
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="../graphics/favicon.ico">
|
<link rel="shortcut icon" type="image/x-icon" href="../graphics/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
|
@ -158,8 +158,13 @@ function display_LoginPage($config_object) {
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/lib';
|
$jsDirName = dirname(__FILE__) . '/lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,13 @@ echo "</head><body>\n";
|
||||||
// include all JavaScript files
|
// include all JavaScript files
|
||||||
$jsDirName = dirname(__FILE__) . '/lib';
|
$jsDirName = dirname(__FILE__) . '/lib';
|
||||||
$jsDir = dir($jsDirName);
|
$jsDir = dir($jsDirName);
|
||||||
|
$jsFiles = array();
|
||||||
while ($jsEntry = $jsDir->read()) {
|
while ($jsEntry = $jsDir->read()) {
|
||||||
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
|
||||||
|
$jsFiles[] = $jsEntry;
|
||||||
|
}
|
||||||
|
sort($jsFiles);
|
||||||
|
foreach ($jsFiles as $jsEntry) {
|
||||||
echo "<script type=\"text/javascript\" src=\"" . $headerPrefix . "lib/" . $jsEntry . "\"></script>\n";
|
echo "<script type=\"text/javascript\" src=\"" . $headerPrefix . "lib/" . $jsEntry . "\"></script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue