Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1019 → Rev 1020

/trunk/TODO
1,11 → 1,3
OIDplus (OP org)
- in setup : let the user enter a canonical url for the base config ( preset it with the current canonical url )
 
Small things:
- when you copy something into the clipboard, please show a toast message
- Show metatag "canonical" only if "canonical url" was set in base config. Don't let this meta tag be filled with automatically detected URLs.
- Setup: "None" CAPTCHA plugin should be the first option
 
Ideas by Simon T.:
- System status plugin: Check if file owners are mixed
- a possibility to upload & assign custom icons to objects (both in the tree & in the page)
116,6 → 108,9
- Firefox: Sometimes, if you have an error page (e.g. DB Connection failed), then you see the error page as XML (i.e. the web browser shows the HTML code as XML tree). Observed by Daniel many times.
 
SMALL THINGS
- when you copy something into the clipboard, please show a toast message
- Setup: "None" CAPTCHA plugin should be the first option
- oobe.php leaks email address of administrator to spam bots
- Use DIRECTORY_SEPARATOR everywhere where local paths are used
- when you enter "guid:{0139d44e-6afe-49f2-8690-3dafcae6ffb8}" (which will be corrected in PHP prefilterQuery), JavaScript will not highlight "guid:0139d44e-6afe-49f2-8690-3dafcae6ffb8", because it searches for the brackets
- Let the user create shortcuts to any OIDplus-Goto-URLS (e.g. important OIDs) directly in the menu, without writing a plugin?
299,6 → 294,8
- Like in OOBE, plugins should give the possibility to add an individual UI in the "oidplus:edit_config" page
- Login area: The "administrator" node in the treeview could be clicked, leading to a page that contains a link to all sub pages (big icons ordered in a grid?)
- "Invisible/service" plugin type, like page plugins, but they have no gui() method. They can be used for a simple task like extending HTTP headers
- OAuth for admin login? (email of administrator)
- SAML 2.0 SSO auth plugin?
 
QUESTIONS
- should the collation be case sensitive or case insensitive? For Java package names, it should be case senstivie
/trunk/index.php
88,7 → 88,9
$head_elems[] = '<script src="oidplus.min.js.php"></script>';
$head_elems[] = '<link rel="stylesheet" href="oidplus.min.css.php">';
$head_elems[] = '<link rel="shortcut icon" type="image/x-icon" href="favicon.ico.php">';
if (OIDplus::baseConfig()->exists('CANONICAL_SYSTEM_URL')) {
$head_elems[] = '<link rel="canonical" href="'.htmlentities(OIDplus::canonicalURL()).'">';
}
 
$plugins = OIDplus::getPagePlugins();
foreach ($plugins as $plugin) {
/trunk/plugins/viathinksoft/language/dede/messages.xml
5334,6 → 5334,14
</message>
<message>
<source><![CDATA[
Public URL of this system (Canonical URL)
]]></source>
<target><![CDATA[
Öffentliche URL des Systems (Kanonische URL)
]]></target>
</message>
<message>
<source><![CDATA[
Public page plugins
]]></source>
<target><![CDATA[
/trunk/setup/includes/setup_base.js
106,6 → 106,7
$("#config")[0].innerHTML = '<b>&lt?php</b><br><br>' +
'<i>// To renew this file, please run setup/ in your browser.</i><br>' + // do not translate
'<i>// If you don\'t want to run setup again, you can also change most of the settings directly in this file.</i><br>' + // do not translate
'<i>// List of possible values: doc/config_values.txt</i><br>' + // do not translate
'<br>' +
'OIDplus::baseConfig()->setValue(\'CONFIG_VERSION\', 2.1);<br>' +
'<br>' +
140,6 → 141,12
'<br>' +
'OIDplus::baseConfig()->setValue(\'ENFORCE_SSL\', '+$("#enforce_ssl")[0].value+');<br>';
 
if ($("#canonical_url")[0].value.trim() != '') {
$("#config")[0].innerHTML = $("#config")[0].innerHTML +
'<br>' +
'OIDplus::baseConfig()->setValue(\'CANONICAL_SYSTEM_URL\', \''+$("#canonical_url")[0].value.trim()+'\');<br>';
}
 
$("#config")[0].innerHTML = $("#config")[0].innerHTML.replaceAll(' ', '&nbsp;');
}
 
/trunk/setup/index.php
118,7 → 118,7
 
OIDplus::registerAllPlugins('captcha', 'OIDplusCaptchaPlugin', array('OIDplus','registerCaptchaPlugin'));
foreach (OIDplus::getCaptchaPlugins() as $plugin) {
$selected = $plugin::id() === 'None' ? ' selected="true"' : '';
$selected = strtolower($plugin::id()) === strtolower('None') ? ' selected="true"' : ''; // select "None" by default
echo '<option value="'.htmlentities($plugin::id()).'"'.$selected.'>'.htmlentities($plugin::id()).'</option>';
}
 
139,9 → 139,6
 
echo '</div>';
 
// Commented out, because it might confuse people during the OOBE
//echo '<p>'._L('Note: In case you are already operating a system, the users need to reload the webpage in order to receive the new CAPTCHA settings.').'</p>';
 
// ----------------------------------------
 
$is_ssl = OIDplus::isSSL();
151,11 → 148,18
echo '<option value="OIDplus::ENFORCE_SSL_YES"'.($is_ssl ? ' selected' : '').'>'._L('Enforce SSL (always redirect)').'</option>';
echo '<option value="OIDplus::ENFORCE_SSL_AUTO"'.(!$is_ssl ? ' selected' : '').'>'._L('Intelligent SSL detection (redirect if port 443 is open)').'</option>';
echo '</select></p>';
 
// ----------------------------------------
 
echo '<h3>'._L('Public URL of this system (Canonical URL)').'</h3>';
 
echo '<p><input id="canonical_url" type="text" value="'.htmlentities(OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL)).'" onkeypress="rebuild()" onkeyup="rebuild()" style="width:550px"></p>';
 
// ----------------------------------------
 
echo '</form>';
echo '</div>';
 
// ----------------------------------------
 
echo '<div id="step2">';
echo '<h2>'._L('Step %1: Initialize database',2).'</h2>';
echo '<p><font color="red"><b>'._L('If you already have an OIDplus database and just want to rebuild the config file, please skip this step.').'</b></font></p>';