Added rich editor user preferences.
This commit is contained in:
parent
e0f5ef792d
commit
a7bcc52fc9
3 changed files with 63 additions and 44 deletions
|
|
@ -139,6 +139,34 @@ delete from international where languageId=2 and namespace='WebGUI' and internat
|
|||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (613,2,'WebGUI','Benutzer sind die Konten, die Berechtigungen zu verschiedenen Bereichen in WebGUI \r\nhaben. Es gibt 2 Standard-Benutzer: Admin und Visitor. \r\n<P></P>\r\n<P><I><B>Admin</B><BR>Unter Admin versteht man genau das, was man unter diesem \r\nBegriff erwartet. Dies ist ein Benutzer mit unbegrenzten Berechtigungen in der \r\nWebGUI Umgebung. </I></P>\r\n<P><I><B>Visitor</B><BR>Der Visitor(Besucher) ist das genaue Gegenteil des Admins. \r\nDer Visitor hat keine Rechte und ein Besucher, der nicht eingeloggt ist, wird \r\nvom System als Visitor erkannt</I></P>\r\n<P><I><B>Neuen Benutzer hinzufügen.</B><BR>Klicken Sie hier, um zur "Benutzer \r\nhinzufügen" Seite zu kommen. \r\n</I></P>\r\n<P><I><B>Suchen</B><BR>Sie können nach Benutzernamen und Emailadressen suchen. \r\nDie Suche kann hier auch eingeschränkt werden, z. B. auf die Suche nach aktivierten \r\nBenutzern.</I></P>', 1044375306);
|
||||
delete from international where languageId=2 and namespace='WebGUI' and internationalId=606;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (606,2,'WebGUI','Stellen Sie sich Seiten als Behälter für Inhalte vor. Wenn Sie z. B. einen Brief \r\nan den Herausgeber Ihres Lieblingsmagazins schreiben möchten, starten Sie eine \r\nTextverarbeitung und schreiben Ihre Gedanken nieder. Genauso verhält es sich \r\nmit WebGUI. Erstellen Sie eine Seite und füllen sie mit Inhalt.. \r\n<P><B>Titel</B><BR>Der Seitentitel. <P><B>Menü Titel</B><BR>Ein kürzerer oder \r\nabgeänderter Titel, der in der Navigation erscheinen soll. Wenn Sie hier nichts \r\neingeben, wird die Eingabe verwendet, die Sie bei \'Titel\' eingegeben haben. \r\n<P> <B>URL der Seite</B><BR>Wenn Sie eine Seite erstellen wird normalerweise \r\ndie URL aufgrund des Seitentitels erstellt. Wenn Sie damit nicht zufrieden sind, \r\nkönnen Sie es hier ändern. \r\n<P><B>Sprache</B><BR>Wählen Sie die Standardsprache für diese Seite. Alle mittels \r\nWebGUI generierten Texte erscheinen in dieser Sprache und das Charakterset wird \r\nentsprechend der ausgewählten Sprache übernommen (z.B. ä, ö, ü im Deutschen). \r\n<P><B>Weiterleitungs URL</B><BR>Der Besucher der Seite wird zu der Seite weitergeleitet, \r\ndie Sie hier angegeben haben. Wenn Sie dann in Zukunft diese weitergeleitete \r\nSeite wieder ändern möchten, müssen Sie dies in den Admininstrativen Funktionen im \r\nBereich "Verwalten-Baumstruktur" vornehmen. \r\n<P><B>Template</B><BR>Standardmässig hat WebGUI einen grossen Inhaltsbereich, \r\num Wobjects zu platzieren. Dennoch können Sie Ihren Content durch Auswahl eines \r\nanderen Templates in verschiedene Bereiche aufteilen. \r\n<P><B>Zusammenfassung</B><BR>Eine kurze Zusammenfassung der Seite. Dieser Bereich \r\nwird sowohl zum Veröffentlichen von beschreibenden MetaTags als auch als Beschreibungstext \r\nin der Sitemap verwendet. \r\n<P><B>Meta Tags</B><BR>Hier können Sie beliebige Meta Tags definieren. Die Seite <A \r\nhref=\"http://www.metatagbuilder.com/\">Meta Tag Builder</A> gibt Ihnen hierzu \r\neinige Tipps.<P><I>Erfahrene Anwender:</I> Sie können hier auch andere Dinge, \r\nwie z. B. JavaScript, einfügen. \r\n<P><B>Standard Meta Tags benutzen?</B><BR>Sollten Sie keine eigenen MetaTags \r\ndefinieren wollen, kann WebGUI diese basierend auf dem Seitentitel und Ihrem \r\nFirmennamen erzeugen. Aktivieren Sie diese Checkbox um die WebGUI-generierten \r\nMetaTags einzuschalten. \r\n<P><B>Style</B><BR>Standardmässig erbt eine Seite, die Sie erstellen, ihre Merkmale \r\nvon der übergeordneten Seite. Eines dieser Merkmale ist der Style. Wählen Sie \r\nhier einen Style aus der Liste aus, den Sie für diese Seite verwenden möchten. \r\nWeitere Details finden Sie unter <I>Style hinzufügen</I>. \r\n<P>Wenn Sie "Ja" unterhalb des Style-Auswahlmenus aktivieren, wird \r\nder Style für alle Seiten unterhalb dieser Seite übernommen. \r\n<P><B>Anfangsdatum</B><BR>Das Datum, ab dem die Seite sichtbar sein soll. Vor \r\ndiesem Datum sehen nur Contentmanager mit der Berechtigung zur Bearbeitung diese \r\nSeite. \r\n<P><B>Enddatum</B><BR>Das Datum, bis dem die Seite sichtbar sein soll. Nach \r\ndiesem Datum sehen nur Contentmanager mit der Berechtigung zur Bearbeitung diese \r\nSeite. \r\n \r\n<P><B>Besitzer</B><BR>Der Besitzer der Seite ist gewöhnlich die Person, die \r\ndie Seite erstellt hat. \r\n<P><B>Besitzer kann anschauen?</B><BR>Kann der Besitzer die Seite anschauen \r\noder nicht? \r\n<P><B>Besitzer kann bearbeiten?</B><BR>Kann der Besitzer die Seite bearbeiten \r\noder nicht? Seien Sie hier vorsichtig: wenn Sie hier festlegen, dass der Besitzer \r\ndie Seite nicht mehr bearbeiten kann und Sie selber nicht in zu der selben Gruppe \r\ngehören, verlieren Sie die Möglichkeit zur Bearbeitung dieser Seite. \r\n<P><B>Gruppe</B><BR>Eine Gruppe wird einer Seite zugeordnet, um erweiterte Möglichkeiten \r\nzur Berechtigungsvergabe zu haben. . \r\n<P><B>Gruppe kann anschauen?</B><BR>Können die Mitglieder dieser Gruppe diese \r\n Seite anschauen? \r\n<P><B>Gruppe kann bearbeiten?</B><BR>Dürfen Mitglieder dieser Gruppe die Seite \r\nbearbeiten? \r\n<P><B>Jeder kann anschauen?</B><BR>Darf ein Besucher oder Mitglied ungeachtet \r\neiner Gruppenzughörigkeit oder Besitzer diese Seite anschauen? \r\n<P><B>Jeder kann bearbeiten?</B><BR>Darf ein gewähnlicher Besucher diese Seite \r\nbearbeiten? \r\n<P>Sie können diese Berechtigungen an alle Seiten unterhalb dieser Seite vergeben. \r\n<P><B>Als nächstes?</B><BR>Hier können Sie gleich zu Ihrer neuen Seite gelangen \r\noder zu der vorherigen zurückkehren.</P>', 1044374485);
|
||||
delete from settings where name='richEditor';
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=884;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (884,1,'WebGUI','Pop Up', 1044705337);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=883;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (883,1,'WebGUI','Inline (when supported)', 1044705322);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=882;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (882,1,'WebGUI','Editor Mode', 1044705246);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=881;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (881,1,'WebGUI','None', 1044705162);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=880;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (880,1,'WebGUI','Last Resort Editor', 1044705137);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=879;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (879,1,'WebGUI','Classic Editor (Internet Explorer 5+)', 1044705103);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=494;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (494,1,'WebGUI','RealObjects edit-on Pro 2.x', 1044704984);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=495;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (495,1,'WebGUI','htmlArea (Internet Explorer 5.5+)', 1044704928);
|
||||
INSERT INTO userProfileField VALUES ('richEditor','WebGUI::International::get(496)',1,0,'select','{\r\nhtmlArea=>WebGUI::International::get(495),\r\n#editOnPro2=>WebGUI::International::get(494),\r\nclassic=>WebGUI::International::get(879),\r\nlastResort=>WebGUI::International::get(880),\r\nnone=>WebGUI::International::get(881)\r\n}','[\'htmlArea\']',11,4,0);
|
||||
INSERT INTO userProfileField VALUES ('richEditorMode','WebGUI::International::get(882)',1,0,'select','{\r\ninline=>WebGUI::International::get(883),\r\npopup=>WebGUI::International::get(884)\r\n}','[\'inline\']',12,4,0);
|
||||
delete from international where internationalId=306 and namespace='WebGUI';
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=618;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (618,1,'WebGUI','<b>SMTP Server</b><br>\r\nThis is the address of your local mail server. It is needed for all features that use the Internet email system (such as password recovery).\r\n<p>\r\nOptionally, if you are running a sendmail server on the same machine as WebGUI, you can also specify a path to your sendmail executable. On most Linux systems this can be found at "/usr/lib/sendmail".\r\n\r\n<p>\r\n<b>Email Footer</b><br/>\r\nThis footer will be processed for macros and attached to every email sent from this WebGUI instance.\r\n<p/>\r\n\r\n<b>Alert on new user?</b><br>\r\nShould someone be alerted when a new user registers anonymously?\r\n<p>\r\n\r\n<b>Group To Alert On New User</b><br>\r\nWhat group should be alerted when a new user registers?\r\n<p>\r\n\r\n', 1044709143);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=885;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (885,1,'WebGUI','Allow users to deactivate their account?', 1044708760);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=607;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (607,1,'WebGUI','<b>Anonymous Registration</b><br>\r\nDo you wish visitors to your site to be able to register themselves?\r\n<br><br>\r\n\r\n<b>Run On Registration</b><br>\r\nIf there is a command line specified here, it will be executed each time a user registers anonymously.\r\n<p>\r\n\r\n<b>Enable Karma?</b><br>\r\nShould karma be enabled?\r\n<p>\r\n\r\n<b>Karma Per Login</b><br>\r\nThe amount of karma a user should be given when they log in. This only takes affect if karma is enabled.\r\n<p>\r\n\r\n<b>Session Timeout</b><br>\r\nThe amount of time that a user session remains active (before needing to log in again). This timeout is reset each time a user views a page. Therefore if you set the timeout for 8 hours, a user would have to log in again if s/he hadn\'t visited the site for 8 hours.\r\n<p>\r\n\r\n<b>Allow users to deactivate their account?</b><br>\r\nDo you wish to provide your users with a means to deactivate their account without your intervention?\r\n<p>\r\n\r\n<b>Authentication Method (default)</b><br>\r\nWhat should the default authentication method be for new accounts that are created? The two available options are WebGUI and LDAP. WebGUI authentication means that the users will authenticate against the username and password stored in the WebGUI database. LDAP authentication means that users will authenticate against an external LDAP server.\r\n<br><br>\r\n\r\n<i>NOTE:</i> Authentication settings can be customized on a per user basis.\r\n\r\n\r\n\r\n<p>\r\n<b>NOTE:</b> Depending upon what authentication modules you have installed in your system you\'ll see any number of options after this point. The following are the options for the two defaultly installed authentication methods.\r\n<p>\r\n\r\n<h2>WebGUI Authentication Options</h2>\r\n\r\n<b>Send welcome message?</b><br>\r\nDo you wish WebGUI to automatically send users a welcome message when they register for your site? \r\n<p>\r\n<b>NOTE:</b> In addition to the message you specify below, the user\'s account information will be included in the message.\r\n<p>\r\n\r\n<b>Welcome Message</b> <br>\r\nType the message that you\'d like to be sent to users upon registration.\r\n<p>\r\n\r\n<b>Recover Password Message</b><br>\r\nType a message that will be sent to your users if they try to recover their WebGUI password.\r\n<p>\r\n\r\n<h2>LDAP Authentication Options</h2>\r\n\r\n<b>LDAP URL (default)</b><br>\r\nThe default url to your LDAP server. The LDAP URL takes the form of <b>ldap://[server]:[port]/[base DN]</b>. Example: ldap://ldap.mycompany.com:389/o=MyCompany.\r\n<br><br>\r\n\r\n\r\n\r\n\r\n<b>LDAP Identity</b><br>\r\nThe LDAP Identity is the unique identifier in the LDAP server that the user will be identified against. Often this field is <b>shortname</b>, which takes the form of first initial + last name. Example: jdoe. Therefore if you specify the LDAP identity to be <i>shortname</i> then Jon Doe would enter <i>jdoe</i> during the registration process.\r\n<br><br>\r\n\r\n<b>LDAP Identity Name</b><br>\r\nThe label used to describe the LDAP Identity to the user. For instance, some companies use an LDAP server for their proxy server users to authenticate against. In the documentation or training already provided to their users, the LDAP identity is known as their <i>Web Username</i></b><i>. So you could enter that label here for consitency.\r\n<br><br>\r\n\r\n<b>LDAP Password Name</b><br>\r\nJust as the LDAP Identity Name is a label, so is the LDAP Password Name. Use this label as you would LDAP Identity Name.\r\n<p>\r\n\r\n', 1044708602);
|
||||
delete from international where languageId=1 and namespace='WebGUI' and internationalId=634;
|
||||
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (634,1,'WebGUI','<b>Default Home Page</b><br>\r\nSome really small sites don\'t have a home page, but instead like to use one of their internal pages like "About Us" or "Company Information" as their home page. For that reason, you can set the default page of your site to any page in the site. That page will be the one people go to if they type in just your URL http://www.mywebguisite.com, or if they click on the Home link generated by the ^H; macro.\r\n<p>\r\n\r\n<b>Not Found Page</b><br>\r\nIf a page that a user requests is not found in the system, the user can be redirected to the home page or to an error page where they can attempt to find what they were looking for. You decide which is better for your users.\r\n<p>\r\n\r\n<b>Document Type Declaration</b><br>\r\nThese days it is very common to have a wide array of browsers accessing your site, including automated browsers like search engine spiders. Many of those browsers want to know what kind of content you are serving. The doctype tag allows you to specify that. By default WebGUI generates HTML 4.0 compliant content.\r\n<p>\r\n\r\n<b>Add edit stamp to posts?</b><br>\r\nTypically if a user edits a post on a discussion, a stamp is added to that post to identify who made the edit, and at what time. On some sites that information is not necessary, therefore you can turn it off here.\r\n<p>\r\n\r\n<b>Filter Contributed HTML</b><br>\r\nEspecially when running a public site where anybody can post to your message boards or user submission systems, it is often a good idea to filter their content for malicious code that can harm the viewing experience of your visitors; And in some circumstances, it can even cause security problems. Use this setting to select the level of filtering you wish to apply.\r\n<p>\r\n\r\n<b>Maximum Attachment Size</b><br>\r\nThe size (in kilobytes) of the maximum allowable attachment to be uploaded to your system.\r\n<p>\r\n\r\n<b>Max Image Size</b><br>\r\nIf images are uploaded to your system that are bigger than the max image size, then they will be resized to the max image size. The max image size is measured in pixels and will use the size of the longest side of the image to determine if the limit has been reached.\r\n<p>\r\n\r\n<b>Thumbnail Size</b><br>\r\nWhen images are uploaded to your system, they will automatically have thumbnails generated at the size specified here (unless overridden on a case-by-case basis). Thumbnail size is measured in pixels.\r\n<p>\r\n\r\n<b>Snippet Preview Length</b><br/>\r\nHow many characters of a snippet should be displayed in the collateral management system main listing.\r\n<p/>\r\n\r\n<b>Text Area Rows</b><br>\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how many rows of characters will be displayed in textareas on the site.\r\n<p>\r\n\r\n<b>Text Area Columns</b><br>\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how many columns of characters will be displayed in textareas on the site.\r\n<p>\r\n\r\n<b>Text Box Size</b><br>\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how characters can be displayed at once in text boxes on the site.\r\n<p>\r\n\r\n', 1044709274);
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -653,52 +653,47 @@ NOTE: WebGUI uses a great variety of rich editors. Not all of them are capable o
|
|||
|
||||
sub HTMLArea {
|
||||
my ($output, $rows, $columns, $htmlArea);
|
||||
my $browser = HTTP::BrowserDetect->new($session{env}{HTTP_USER_AGENT});
|
||||
my $button = '<input type="button" onClick="openEditWindow(this.form.'.$_[0]->{name}.')" value="'
|
||||
.WebGUI::International::get(171).'" style="font-size: 8pt;"><br>';
|
||||
$output = '<script language="JavaScript">function fixChars(element) {element.value = element.value.replace(/~V/mg,"-");}</script>';
|
||||
if ($session{setting}{richEditor} eq "edit-on-pro") {
|
||||
if ($session{user}{richEditor} eq "editOnPro2") {
|
||||
$output .= '<script language="JavaScript">
|
||||
var formObj;
|
||||
function openEditWindow(obj) {
|
||||
formObj = obj;
|
||||
window.open("'.$session{config}{extrasURL}.'/eopro.html","editWindow","width=720,height=450,resizable=1");
|
||||
}
|
||||
</script>';
|
||||
} else {
|
||||
my $browser = HTTP::BrowserDetect->new($session{env}{HTTP_USER_AGENT});
|
||||
if ($browser->ie && $browser->version >= 5.5) {
|
||||
if ($_[0]->{popupToggle}) {
|
||||
$output .= '<script language="JavaScript">
|
||||
var formObj;
|
||||
var extrasDir="'.$session{config}{extrasURL}.'";
|
||||
function openEditWindow(obj) {
|
||||
formObj = obj;
|
||||
window.open("'.$session{config}{extrasURL}.'/htmlArea/editor.html","editWindow","width=490,height=400,resizable=1"); }
|
||||
function setContent(content) {
|
||||
formObj.value = content;
|
||||
} </script>';
|
||||
$output .= $button;
|
||||
} else {
|
||||
$output .= '<script language="Javascript1.2" src="'.$session{config}{extrasURL}
|
||||
.'/htmlArea/editor.js"></script>'."\n";
|
||||
$output .= '<script>'."\n";
|
||||
$output .= '_editor_url = "'.$session{config}{extrasURL}.'/htmlArea/";'."\n";
|
||||
$output .= '</script>'."\n";
|
||||
$htmlArea = 1;
|
||||
}
|
||||
} elsif ($browser->ie && $browser->version >= 5) {
|
||||
} </script>';
|
||||
} elsif ($session{user}{richEditor} eq "htmlArea" && $browser->ie && $browser->version >= 5.5) {
|
||||
if ($session{user}{richEditorMode} eq "popup" || $_[0]->{popupToggle}) {
|
||||
$output .= '<script language="JavaScript">
|
||||
var formObj;
|
||||
var extrasDir="'.$session{config}{extrasURL}.'";
|
||||
function openEditWindow(obj) {
|
||||
formObj = obj;
|
||||
window.open("'.$session{config}{extrasURL}.'/ie5edit.html","editWindow","width=490,height=400,resizable=1"); }
|
||||
function setContent(content) {
|
||||
formObj.value = content;
|
||||
} </script>';
|
||||
var formObj;
|
||||
var extrasDir="'.$session{config}{extrasURL}.'";
|
||||
function openEditWindow(obj) {
|
||||
formObj = obj;
|
||||
window.open("'.$session{config}{extrasURL}.'/htmlArea/editor.html","editWindow","width=490,height=400,resizable=1"); }
|
||||
function setContent(content) {
|
||||
formObj.value = content;
|
||||
} </script>';
|
||||
$output .= $button;
|
||||
} else {
|
||||
$output .= '<script language="Javascript1.2" src="'.$session{config}{extrasURL}
|
||||
.'/htmlArea/editor.js"></script>'."\n";
|
||||
$output .= '<script>'."\n";
|
||||
$output .= '_editor_url = "'.$session{config}{extrasURL}.'/htmlArea/";'."\n";
|
||||
$output .= '</script>'."\n";
|
||||
$htmlArea = 1;
|
||||
}
|
||||
} elsif ($session{user}{richEditor} eq "classic" && $browser->ie && $browser->version >= 5) {
|
||||
$output .= '<script language="JavaScript">
|
||||
var formObj; var extrasDir="'.$session{config}{extrasURL}.'";
|
||||
function openEditWindow(obj) {
|
||||
formObj = obj;
|
||||
window.open("'.$session{config}{extrasURL}.'/ie5edit.html","editWindow","width=490,height=400,resizable=1"); }
|
||||
function setContent(content) { formObj.value = content; } </script>';
|
||||
$output .= $button;
|
||||
### UNCOMMENT THIS WHEN MOZILLA 1.3 COMES OUT
|
||||
# } elsif ($browser->gecko && $browser->version >= 1.3) {
|
||||
# } elsif ($session{user}{richEditor} eq "wendedit" && $browser->gecko && $browser->version >= 1.3) {
|
||||
# $output .= '<script language="JavaScript">
|
||||
# var formObj;
|
||||
## var extrasDir="'.$session{config}{extrasURL}.'";
|
||||
|
|
@ -709,8 +704,8 @@ sub HTMLArea {
|
|||
# formObj.value = content;
|
||||
# } </script>';
|
||||
# $output .= $button;
|
||||
} else {
|
||||
$output .= '<script language="JavaScript">
|
||||
} elsif ($session{user}{richEditor} eq "lastResort") {
|
||||
$output .= '<script language="JavaScript">
|
||||
var formObj;
|
||||
var extrasDir="'.$session{config}{extrasURL}.'";
|
||||
function openEditWindow(obj) {
|
||||
|
|
@ -720,8 +715,7 @@ sub HTMLArea {
|
|||
function setContent(content) {
|
||||
formObj.value = content;
|
||||
} </script>';
|
||||
$output .= $button;
|
||||
}
|
||||
$output .= $button;
|
||||
}
|
||||
$rows = $_[0]->{rows} || ($session{setting}{textAreaRows}+7);
|
||||
$columns = $_[0]->{columns} || ($session{setting}{textAreaCols}+5);
|
||||
|
|
|
|||
|
|
@ -49,8 +49,7 @@ sub www_editUserSettings {
|
|||
$f->yesNo("useKarma",WebGUI::International::get(539),$session{setting}{useKarma});
|
||||
$f->integer("karmaPerLogin",WebGUI::International::get(540),$session{setting}{karmaPerLogin});
|
||||
$f->interval("sessionTimeout",WebGUI::International::get(142),WebGUI::DateTime::secondsToInterval($session{setting}{sessionTimeout}));
|
||||
#$f->yesNo("usernameBinding",WebGUI::International::get(306),$session{setting}{usernameBinding});
|
||||
$f->yesNo("selfDeactivation","Allow users to deactivate their account",$session{setting}{selfDeactivation});
|
||||
$f->yesNo("selfDeactivation",WebGUI::International::get(885),$session{setting}{selfDeactivation});
|
||||
$f->select("authMethod",$session{authentication},WebGUI::International::get(119),[$session{setting}{authMethod}]);
|
||||
foreach (keys %{$session{authentication}}) {
|
||||
$f->raw(WebGUI::Authentication::settingsForm($_));
|
||||
|
|
@ -79,11 +78,10 @@ sub www_editCompanyInformation {
|
|||
#-------------------------------------------------------------------
|
||||
sub www_editContentSettings {
|
||||
WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
||||
my ($output, %htmlFilter, %editor, $f, $pages);
|
||||
my ($output, %htmlFilter, $f, $pages);
|
||||
$pages = WebGUI::SQL->buildHashRef("select pageId,menuTitle from page order by menuTitle");
|
||||
%htmlFilter = ('none'=>WebGUI::International::get(420), 'most'=>WebGUI::International::get(421),
|
||||
'javascript'=>WebGUI::International::get(526), 'all'=>WebGUI::International::get(419));
|
||||
%editor = ('built-in'=>WebGUI::International::get(495), 'edit-on-pro'=>WebGUI::International::get(494));
|
||||
$output .= helpIcon(29);
|
||||
$output .= '<h1>'.WebGUI::International::get(525).'</h1>';
|
||||
$f = WebGUI::HTMLForm->new;
|
||||
|
|
@ -100,7 +98,6 @@ sub www_editContentSettings {
|
|||
$f->integer("textAreaRows",WebGUI::International::get(463),$session{setting}{textAreaRows});
|
||||
$f->integer("textAreaCols",WebGUI::International::get(464),$session{setting}{textAreaCols});
|
||||
$f->integer("textBoxSize",WebGUI::International::get(465),$session{setting}{textBoxSize});
|
||||
$f->select("richEditor",\%editor,WebGUI::International::get(496),[$session{setting}{richEditor}]);
|
||||
$f->submit;
|
||||
$output .= $f->print;
|
||||
return _submenu($output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue