initial check-in

This commit is contained in:
Robert Gaggl 2002-06-26 17:29:29 +00:00
parent 6770403ff6
commit ec576ebc31
2 changed files with 214 additions and 0 deletions

205
code/Root/sysmgr_macros.js Normal file
View file

@ -0,0 +1,205 @@
/**
* macro rendering title
*/
function sys_title_macro(param) {
if (param.as == "editor") {
param["type"] = "text";
renderInputText(this.createInputParam("sys_title",param));
} else
res.write(this.sys_title);
return;
}
/**
* macro rendering siteurl
*/
function sys_url_macro(param) {
if (param.as == "editor") {
param["type"] = "text";
renderInputText(this.createInputParam("sys_url",param));
} else
res.write(this.sys_url);
return;
}
/**
* macro rendering address used for sending mails
*/
function sys_email_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
param["type"] = "text";
renderInputText(this.createInputParam("sys_email",param));
} else
res.write(this.sys_email);
return;
}
/**
* macro rendering allowFiles-flag
*/
function sys_allowFiles_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputCheckbox(this.createInputParam("sys_allowFiles",param));
} else
res.write(this.sys_allowFiles ? "yes" : "no");
return;
}
/**
* macro rendering a dropdown for limiting the creation of new sites
*/
function sys_limitNewSites_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
var options = new Array("unlimited","only trusted users","system administrators");
renderDropDownBox("sys_limitNewSites",options,this.sys_limitNewSites);
} else
res.write(this.sys_limitNewSites);
return;
}
/**
* macro rendering autocleanup-flag
*/
function sys_enableAutoCleanup_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputCheckbox(this.createInputParam("sys_enableAutoCleanup",param));
} else
res.write(this.sys_enableAutoCleanup ? "yes" : "no");
return;
}
/**
* macro rendering hour when automatic cleanup starts
*/
function sys_startAtHour_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
var options = new Array();
for (var i=0;i<24;i++)
options[i] = (i < 10 ? "0" + i : i);
renderDropDownBox("sys_startAtHour",options,this.sys_startAtHour);
} else
res.write(this.sys_startAtHour);
return;
}
/**
* macro rendering blockPrivateSites-flag
*/
function sys_blockPrivateSites_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputCheckbox(this.createInputParam("sys_blockPrivateSites",param));
} else
res.write(this.sys_blockPrivateSites ? "yes" : "no");
return;
}
/**
* macro rendering Number of days before sending blockwarning-mail
*/
function sys_blockWarningAfter_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputText(this.createInputParam("sys_blockWarningAfter",param));
} else
res.write(this.sys_blockWarningAfter);
return;
}
/**
* macro rendering Number of days to wait before blocking private site
*/
function sys_blockAfterWarning_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputText(this.createInputParam("sys_blockAfterWarning",param));
} else
res.write(this.sys_blockAfterWarning);
return;
}
/**
* macro rendering deleteInactiveSites-flag
*/
function sys_deleteInactiveSites_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputCheckbox(this.createInputParam("sys_deleteInactiveSites",param));
} else
res.write(this.sys_deleteInactiveSites ? "yes" : "no");
return;
}
/**
* macro rendering Number of days before sending deletewarning-mail
*/
function sys_deleteWarningAfter_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputText(this.createInputParam("sys_deleteWarningAfter",param));
} else
res.write(this.sys_deleteWarningAfter);
return;
}
/**
* macro rendering Number of days to wait before deleting inactive site
*/
function sys_deleteAfterWarning_macro(param) {
// this macro is allowed just for sysadmins
if (!isUserSysAdmin())
return;
if (param.as == "editor") {
renderInputText(this.createInputParam("sys_deleteAfterWarning",param));
} else
res.write(this.sys_deleteAfterWarning);
return;
}
/**
* macro rendering a dropdown containing all
*/
function localechooser_macro(param) {
renderLocaleChooser(this.getLocale());
return;
}

9
code/Root/welcome.skin Normal file
View file

@ -0,0 +1,9 @@
<p class="pageTitle">Welcome to Antville!</p>
<p>You successfully installed Antville! Just two small steps are left before you can start to use this weblog-hosting system:
<ul>
<li>First you must <% root.link to="members/register" text="register yourself" %>. Doing so will grant you system administration privileges (of course you can grant these rights to other users later).</li>
<li>Second you should <% root.link to="manage/setup" text="configure Antville" %> (eg. define the standard language or who is allowed to create weblogs here).</li>
</ul>
After you have completed these two steps your Antville will be up and running.</p>
<p>Have fun!</p>