+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html>\r
-<head>\r
- <meta http-equiv="Refresh" content="5;url=createaccount.php" />\r
- <title>Create Member Account</title>\r
- <style type="text/css">@import url(nucleus/styles/manual.css);</style>\r
-</head>\r
-<body>\r
- <h1>Create Account</h1>\r
- <!-- This file is just for a backward compatibility. -->\r
- <p>Sorry, the URL of the Create Account Form has changed.</p>\r
- <p>If you are not redirected automatically please use this link: <a href="createaccount.php">Create Member Account</a>.</p>\r
- <p>Thank you. :-)</p>\r
- \r
-</body>\r
-</html>\r
<head>
<title>Nucleus Convert</title>
<style><!--
- @import url('../styles/manual.css');
+ @import url('../styles/documentation/manual.css');
--></style>
</head>
<body>
<head>
<title>Nucleus Convert</title>
<style><!--
- @import url('../styles/manual.css');
+ @import url('../styles/documentation/manual.css');
--></style>
</head>
<body>
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html>
-<head>
- <!-- $Id: forgotpassword.html 1489 2010-12-22 23:00:39Z ftruscot $ -->
- <meta http-equiv="Refresh" content="1;url=./forgottenpassword.php" />
- <title>Nucleus - Forgotten Passwords</title>
- <style type="text/css">@import url(nucleus/styles/manual.css);</style>
-</head>
-<body>
- <h1>Forgotten Passwords</h1>
- <!-- This file is just for a backward compatibility. -->
- <p>Sorry, the URL of the Forgotten Passwords Form has changed.</p>
- <p>If you are not redirected automatically please use this link: <a href="./forgotpassword.php">Forgotten Passwords</a>.</p>
- <p>Thank you. :-)</p>
-</body>
-</html>
+++ /dev/null
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * Some JavaScript code for the admin area
- *
- * $Id: admin.js 1388 2009-07-18 06:31:28Z shizuki $
- */
-
-function help(url) {
- popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0');
- if (popup.focus) popup.focus();
- if (popup.GetAttention) popup.GetAttention();
- return false;
-}
-
-var oldCellColor = "#000";
-function focusRow(row) {
- var cells = row.cells;
- if (!cells) return;
- oldCellColor = cells[0].style.backgroundColor;
- for (var i=0;i<cells.length;i++) {
- cells[i].style.backgroundColor='whitesmoke';
- }
-}
-function blurRow(row) {
- var cells = row.cells;
- if (!cells) return;
- for (var i=0;i<cells.length;i++) {
- cells[i].style.backgroundColor=oldCellColor;
- }
-}
-function batchSelectAll(what) {
- var i = 0;
- var el;
- while (el = document.getElementById('batch' + i)) {
- el.checked = what?'checked':'';
- i++;
- }
- return false;
-}
-function selectCanLogin(flag) {
- if (flag) {
- window.document.memberedit.canlogin[0].checked=true;
-
- // don't disable canlogin[0], otherwise the value won't be passed.
-// window.document.memberedit.canlogin[0].disabled=true;
- window.document.memberedit.canlogin[1].disabled=true;
- } else {
- window.document.memberedit.canlogin[0].disabled=false;
- window.document.memberedit.canlogin[1].disabled=false;
- }
-}
+++ /dev/null
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * Some JavaScript code for the bookmarklets
- *
- * $Id: bookmarklet.js 1388 2009-07-18 06:31:28Z shizuki $
- */
-
-/**
- * On browsers that have DOM support, the non-visible tabs of the bookmarklet are
- * initially hidden. This is not defined in the CSS stylesheet since this causes
- * problems with Opera (which does not seem to be sending form data for input
- * fields which are in a hidden block)
- */
-function initStyles() {
- hideBlock('more');
- hideBlock('options');
- hideBlock('preview');
-
- // in browsers that do not support DOM (like opera), the buttons used
- // to switch tabs are useless and can be hidden
- document.getElementById('switchbuttons').style.display = 'inline';
-}
-
-/**
- * To be called with id='body','more','options' or 'preview'
- * Hides all other tabs and makes the chosen one visible
- */
-function flipBlock(id) {
-
- showBlock(id);
-
- if (id != 'body')
- hideBlock('body');
- if (id != 'more')
- hideBlock('more');
- if (id != 'options')
- hideBlock('options');
- if (id != 'preview')
- hideBlock('preview');
-
-}
-
-/**
- * Hides one element (tab)
- */
-function hideBlock(id) {
- document.getElementById(id).style.display = "none";
-}
-
-/**
- * Makes an element (tab) visible
- */
-function showBlock(id) {
- document.getElementById(id).style.display = "block";
-}
-
-function help(url) {
- popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0');
- if (popup.focus) popup.focus();
- if (popup.GetAttention) popup.GetAttention();
- return false;
-}
+++ /dev/null
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * Javascript code to make sure that:
- * - javascript still works when sending pages as application/xhtml+xml
- * - this doesn't break functionality in IE
- *
- * How to use:
- * - Include this file
- * - Use createElement() instead of document.createElement()
- *
- * That's basically it :)
- *
- * $Id: compatibility.js 1388 2009-07-18 06:31:28Z shizuki $
- */
-
-// to get the script working when page is sent as application/xhtml+xml
-function createElement(element) {
- if (document.createElementNS) {
- return document.createElementNS('http://www.w3.org/1999/xhtml', element);
- }
- if (document.createElement) {
- return document.createElement(element);
- }
- return false;
-}
+++ /dev/null
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * This file contains functions to allow adding items from inside the weblog.
- * Also contains code to avoid submitting form data twice.
- *
- * $Id: edit.js 1388 2009-07-18 06:31:28Z shizuki $
- */
-
-var nucleusConvertBreaks = true;
-var nucleusMediaPopupURL = '';
-var nucleusMediaURL = 'media/';
-var nucleusAuthorId = 0;
-var scrollTop = -1;
-
-function setConvertBreaks(newval) { nucleusConvertBreaks = newval; }
-function setMediaUrl(url) { nucleusMediaURL = url; }
-function setAuthorId(id) { nucleusAuthorId = id; }
-
-function preview(id, value) {
- elem = document.getElementById(id);
- if (!elem) return;
-
- var preview = nucleusConvertBreaks ? str_replace("\n","<br />",value)+" " : value+" ";
-
- // expand the media commands (without explicit collection)
- preview = preview.replace(/\<\%image\(([^\/\|]*)\|([^\|]*)\|([^\|]*)\|([^)]*)\)\%\>/g,"<img src='"+nucleusMediaURL+nucleusAuthorId+"/$1' width='$2' height='$3' alt=\"$4\" />");
-
- // expand the media commands (with collection)
- preview = preview.replace(/\<\%image\(([^\|]*)\|([^\|]*)\|([^\|]*)\|([^)]*)\)\%\>/g,"<img src='"+nucleusMediaURL+"$1' width='$2' height='$3' alt=\"$4\" />");
- preview = preview.replace(/\<\%popup\(([^\|]*)\|([^\|]*)\|([^\|]*)\|([^)]*)\)\%\>/g,"<a href='' onclick='if (event && event.preventDefault) event.preventDefault(); alert(\"popup image\"); return false;' title='popup'>$4</a>");
- preview = preview.replace(/\<\%media\(([^\|]*)\|([^)]*)\)\%\>/g,"<a href='' title='media link'>$2</a>");
-
- elem.innerHTML = preview;
-}
-
-function showedit() {
- prevval = document.getElementById('edit').style.display;
- if (prevval == "block")
- newval = "none";
- else
- newval = "block";
- document.getElementById('edit').style.display = newval;
-
- if (newval == "block")
- updAllPreviews();
-}
-
-function updAllPreviews() {
- updPreview('title');
- updPreview('body');
- updPreview('more');
-}
-
-function isEditVisible() {
- var editform = document.getElementById('edit');
- if (!editform) return true;
- var prevval = editform.style.display;
- return (prevval == "none") ? false : true;
-}
-
-function updPreview(id) {
- // don't update when preview is hidden
- if (!isEditVisible()) return;
-
- var inputField = document.getElementById('input' + id);
- if (!inputField) return;
- preview('prev' + id, inputField.value);
-}
-
-// replace a in s by b (taken from milov.nl)
-function str_replace(a, b, s)
-{
- if (a == b || !s.length || !a.length) return s;
- if ((p=s.indexOf(a)) == -1) { return s; }
- else { ns = s.substring(0,p) + b + s.substring(p+a.length,s.length); }
- return (s.indexOf(a) != -1) ? str_replace(a, b, ns) : ns;
-}
-
-function shortCuts() {
- if (!event || (event.ctrlKey != true)) return;
-
- switch (event.keyCode) {
- case 1:
- ahrefThis(); break; // ctrl-shift-a
- case 2:
- boldThis(); break; // ctrl-shift-b
- case 9:
- italicThis(); break; // ctrl-shift-i
- case 13:
- addMedia(); break; // ctrl-shift-m
- default:
- return;
- }
- return;
-}
-
-function cutThis() { execAndUpdate('cut'); }
-function copyThis() { execAndUpdate('copy'); }
-function pasteThis() { execAndUpdate('paste'); }
-function boldThis() { insertAroundCaret('<b>','</b>'); }
-function italicThis() { insertAroundCaret('<i>','</i>'); }
-function leftThis() { insertAroundCaret('<div class="leftbox">','</div>'); }
-function rightThis() { insertAroundCaret('<div class="rightbox">','</div>'); }
-function alignleftThis() { insertAroundCaret('<div style="text-align: left">','</div>'); }
-function alignrightThis() { insertAroundCaret('<div style="text-align: right">','</div>'); }
-function aligncenterThis() { insertAroundCaret('<div style="text-align: center">','</div>'); }
-
-
-function ahrefThis() {
- if (document.selection)
- strSelection = document.selection.createRange().text;
- else
- strSelection = '';
-
- strHref = prompt("Create a link to:","http://");
- if (strHref == null) return;
-
- var textpre = "<a href=\"" + strHref.replace(/&/g,'&') + "\">";
- insertAroundCaret(textpre, "</a>");
-}
-
-function execAndUpdate(action) {
- lastSelected.caretPos.execCommand(action);
- updAllPreviews();
-}
-
-
-var nonie_FormType = 'body';
-
-// Add media to new item
-function addMedia() {
-
- var mediapopup = window.open(nucleusMediaPopupURL + 'media.php','name',
- 'status=yes,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=450,top=0,left=0');
-
- return;
-}
-
-
-function setMediaPopupURL(url) {
- nucleusMediaPopupURL = url;
-}
-
-function includeImage(collection, filename, type, width, height) {
- if (isCaretEmpty()) {
- text = prompt("Text to display ?",filename);
- } else {
- text = getCaretText();
- }
-
- // add collection name when not private collection (or editing a message that's not your)
- var fullName;
- if (isNaN(collection) || (nucleusAuthorId != collection)) {
- fullName = collection + '/' + filename;
- } else {
- fullName = filename;
- }
-
-
- var replaceBy;
- switch(type) {
- case 'popup':
- replaceBy = '<%popup(' + fullName + '|'+width+'|'+height+'|' + text +')%>';
- break;
- case 'inline':
- default:
- replaceBy = '<%image(' + fullName + '|'+width+'|'+height+'|' + text +')%>';
- }
-
- insertAtCaret(replaceBy);
- updAllPreviews();
-
-}
-
-
-function includeOtherMedia(collection, filename) {
- if (isCaretEmpty()) {
- text = prompt("Text to display ?",filename);
- } else {
- text = getCaretText();
- }
-
- // add collection name when not private collection (or editing a message that's not your)
- var fullName;
- if (isNaN(collection) || (nucleusAuthorId != collection)) {
- fullName = collection + '/' + filename;
- } else {
- fullName = filename;
- }
-
- var replaceBy = '<%media(' + fullName + '|' + text +')%>';
-
- insertAtCaret(replaceBy);
- updAllPreviews();
-}
-
-
-
-// function to prevent submitting form data twice
-var submitcount=0;
-function checkSubmit() {
- if (submitcount == 0) {
- submitcount++;
- return true;
- } else {
- return false;
- }
-}
-
-
-// code to store the caret (cursor) position of a text field/text area
-// taken from javascript.faqts and modified
-// http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130
-
-// stores the caret
-function storeCaret (textEl) {
-
- // store caret
- if (textEl.createTextRange)
- textEl.caretPos = document.selection.createRange().duplicate();
-
- // also store lastselectedelement
- lastSelected = textEl;
-
- nonie_FormType = textEl.name;
-
- scrollTop = textEl.scrollTop;
-}
-
-var lastSelected;
-
- // inserts text at caret (overwriting selection)
-function insertAtCaret (text) {
- var textEl = lastSelected;
- if (textEl && textEl.createTextRange && textEl.caretPos) {
- var caretPos = textEl.caretPos;
- caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
- } else if (!document.all && document.getElementById) {
- mozReplace(document.getElementById('input' + nonie_FormType), text);
- if(scrollTop>-1) {
- document.getElementById('input' + nonie_FormType).scrollTop = scrollTop;
- }
- } else if (textEl) {
- textEl.value += text;
- } else {
- document.getElementById('input' + nonie_FormType).value += text;
- if(scrollTop>-1) {
- document.getElementById('input' + nonie_FormType).scrollTop = scrollTop;
- }
- }
- updAllPreviews();
-}
-
- // inserts a tag around the selected text
-function insertAroundCaret (textpre, textpost) {
- var textEl = lastSelected;
-
- if (textEl && textEl.createTextRange && textEl.caretPos) {
- var caretPos = textEl.caretPos;
- caretPos.text = textpre + caretPos.text + textpost;
- } else if (!document.all && document.getElementById) {
- mozWrap(document.getElementById('input' + nonie_FormType), textpre, textpost);
- if(scrollTop>-1) {
- document.getElementById('input' + nonie_FormType).scrollTop = scrollTop;
- }
- } else {
- document.getElementById('input' + nonie_FormType).value += textpre + textpost;
- if(scrollTop>-1) {
- document.getElementById('input' + nonie_FormType).scrollTop = scrollTop;
- }
- }
-
- updAllPreviews();
-}
-
-/* some methods to get things working in Mozilla as well */
-function mozWrap(txtarea, lft, rgt) {
- var selLength = txtarea.textLength;
- var selStart = txtarea.selectionStart;
- var selEnd = txtarea.selectionEnd;
- if (selEnd==1 || selEnd==2) selEnd=selLength;
- var s1 = (txtarea.value).substring(0,selStart);
- var s2 = (txtarea.value).substring(selStart, selEnd)
- var s3 = (txtarea.value).substring(selEnd, selLength);
- txtarea.value = s1 + lft + s2 + rgt + s3;
-}
-function mozReplace(txtarea, newText) {
- var selLength = txtarea.textLength;
- var selStart = txtarea.selectionStart;
- var selEnd = txtarea.selectionEnd;
- if (selEnd==1 || selEnd==2) selEnd=selLength;
- var s1 = (txtarea.value).substring(0,selStart);
- var s2 = (txtarea.value).substring(selStart, selEnd)
- var s3 = (txtarea.value).substring(selEnd, selLength);
- txtarea.value = s1 + newText + s3;
-}
-function mozSelectedText() {
- var txtarea = document.getElementById('input' + nonie_FormType);
- var selLength = txtarea.textLength;
- var selStart = txtarea.selectionStart;
- var selEnd = txtarea.selectionEnd;
- if (selEnd==1 || selEnd==2) selEnd=selLength;
- return (txtarea.value).substring(selStart, selEnd);
-}
-
-function getCaretText() {
- if (!document.all && document.getElementById)
- return mozSelectedText();
- else
- return lastSelected.caretPos.text;
-}
-
-function isCaretEmpty() {
- if (lastSelected && lastSelected.createTextRange && lastSelected.caretPos)
- return (lastSelected.caretPos.text == '');
- else if (!document.all && document.getElementById)
- return (mozSelectedText() == '');
- else
- return true;
-}
-
-function BtnHighlight(el) {
- with(el.style){
- borderLeft="1px solid #e9e9e9";
- borderRight="1px solid gray";
- borderTop="1px solid #e9e9e9";
- borderBottom="1px solid gray";
- }
-}
-
-function BtnNormal(el) {
- with(el.style){
- border="1px solid #dddddd";
- }
-}
-
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Nothing Here</title>
-</head>
-<body>
-
-<h1>Nothing to see here</h1>
-
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * script the check (on the clientside) if a entered value
- * is a valid number and remove the invalid chars
- *
- * $Id: numbercheck.js 1388 2009-07-18 06:31:28Z shizuki $
- */
-
-function checkNumeric(f)
-{
- newval='';
- dot = false;
- for (i = 0; i < f.value.length; i++) {
- c = f.value.substring(i,i+1);
- if (isInteger(c) || ((c == '.')&&(dot == false)) || ((i == 0)&&(c == '-'))) {
- newval += c;
- if (c == '.') {
- dot = true;
- }
- }
- }
- f.value = newval;
-}
-
-function isInteger(value)
-{
- return (parseInt(value) == value);
-}
+++ /dev/null
-/*
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * $Id: opennew.js 1388 2009-07-18 06:31:28Z shizuki $
- *
- * JavaScript to open non-local links in a new window.
- *
- * How to use:
- * in the <head>...</head> section of your page, add the following line:
- *
- * <script type="text/javascript" src="nucleus/javascript/opennew.js"></script>
- *
- * Then, add the following to your <body> tag:
- *
- * <body ... onload="setOpenNewWindow(true);">
- *
- * And you're all done.
- *
- * Variables that can be overridden if necessary:
- * local = something to recognize local URLs (by default, if your page is something like
- * http://www.example.com/path/page.html, then local will be automatically set to
- * http://www.example.com/path/)
- * exception = something to recognize exceptions to the local check. You might need this
- * when you use a 'click-through' type of script (e.g. when
- * http://www.example.com/path/click.php?http://otherpage.com/ would
- * auto-redirect to otherpage.com and record a click in your logs)
- * In most of the cases, this variable is unneeded and can be left empty
- * destinationFrame = name of the destination frame (by default this is "_blank" to spawn a
- * new window for each link clicked)
- */
-
-
-var local = document.URL.substring(0,document.URL.lastIndexOf('/'));
-var exception = "";
-var destinationFrame = "_blank";
-
-function setOpenNewWindow(newWin) {
- if (newWin) {
- from = ""; to = destinationFrame;
- } else {
- from = destinationFrame; to = "";
- }
-
- for (var i=0; i<=(document.links.length-1); i++) {
- if (document.links[i].target == from) {
-
- var href = document.links[i].href;
- var isLocal = (href.indexOf(local) != -1);
- if (isLocal && ((exception=="") || (href.indexOf(exception) != -1)))
- isLocal = false;
- if (!isLocal)
- document.links[i].target = to;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * Javascript code to hide empty textareas when editing templates.
- *
- * @require compatibility.js
- *
- * $Id: templateEdit.js 1388 2009-07-18 06:31:28Z shizuki $
- */
-
-var amountOfFields = 1;
-var editText = 'empty field (click to edit)';
-
-function hideUnused() {
- while (document.getElementById('textarea' + amountOfFields))
- amountOfFields++;
- amountOfFields--;
-
- for (var i=1;i<=amountOfFields;i++) {
- var el = document.getElementById('textarea' + i);
-
- // hide textareas when empty, and add onclick event
- // to make them visible again
- if (el.value == '') {
- el.style.display = 'none';
- var tdEl = document.getElementById('td' + i);
-
- var aHref = createElement('a');
- aHref.href = '';
- aHref.className = "expandLink";
- aHref.id = "expandLink" + i;
- aHref.onclick = new Function("return makeVisible("+i+")");
- aHref.tabIndex = el.tabIndex;
- aHref.title = editText;
- aHref.appendChild(document.createTextNode(editText));
-
- tdEl.appendChild(aHref);
-
- }
- }
-
-}
-
-function setTemplateEditText(newText) {
- editText = newText;
-}
-
-function makeVisible(i) {
- var textareaEl = document.getElementById('textarea' + i);
- var expandEl = document.getElementById('expandLink' + i);
-
- textareaEl.style.display = 'block';
- expandEl.style.display = 'none';
-
- textareaEl.focus();
- return false;
-}
-
-window.onload = hideUnused;
\ No newline at end of file
+++ /dev/null
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2012 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- *
- *
- * This page contains xmlHTTPRequest functions for:
- * - AutoSaveDraft
- *
- *
- * Usage:
- * - Add in the page before the form open tag:
- * <script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
- * - Add in the page behind the form close tag:
- * var xmlhttprequest = new Array();
- * xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
- * xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
- * var seconds = now(); // Last AutoDraft time
- * var checks = 0; // Number of checks since last AutoDraft
- * var addform = document.getElementById('addform'); // The form id
- * var goal = document.getElementById('lastsaved'); // The html div id where 'Last saved: date time' must come
- * var goalurl = 'action.php'; // The PHP file where the content must be posted to (action.php)
- * var lastsavedtext = 'Last saved'; // The language variable for 'Last saved'
- * var formtype = 'add'; // Add or edit form
- * - Add to the form tag:
- * id="addform"
- * - Add to the textarea's and text fields:
- * onkeyup="doMonitor();"
- * - Add tot the selectboxes and radio buttons
- * onchange="doMonitor();"
- * - Add to the form:
- * <input type="hidden" name="draftid" value="0" />
- * - Optionally a autosave now button can be add:
- * <input type="button" name="autosavenow" value="AutoSave now" onclick="autoSaveDraft();" />
- *
- *
- * $Id: xmlhttprequest.js 1388 2009-07-18 06:31:28Z shizuki $
- */
-
-/**
- * Creates the xmlHTTPRequest handler
- */
-function createHTTPHandler() {
- var httphandler = false;
- /*@cc_on @*/
- /*@if (@_jscript_version >= 5)
- // JScript gives us Conditional compilation, we can cope with old IE versions.
- // and security blocked creation of the objects.
- try {
- httphandler = new ActiveXObject("Msxml2.XMLHTTP");
- }
- catch (e) {
- try {
- httphandler = new ActiveXObject("Microsoft.XMLHTTP");
- }
- catch (E) {
- httphandler = false;
- }
- }
- @end @*/
- if (!httphandler && typeof XMLHttpRequest != 'undefined') {
- httphandler = new XMLHttpRequest();
- }
- return httphandler;
-}
-
-/**
- * Auto saves as draft
- */
-function autoSaveDraft() {
- checks = 0;
- seconds = now();
-
- var title = encodeURIComponent(addform.title.value);
- var body = encodeURIComponent(addform.body.value);
- var catid = addform.catid.options[addform.catid.selectedIndex].value;
- var more = encodeURIComponent(addform.more.value);
- var closed = 0;
- if (addform.closed[0].checked) {
- closed = addform.closed[0].value;
- }
- else if (addform.closed[1].checked) {
- closed = addform.closed[1].value;
- }
- var ticket = addform.ticket.value;
-
- var querystring = 'action=autodraft';
- querystring += '&title=' + title;
- querystring += '&body=' + body;
- querystring += '&catid=' + catid;
- querystring += '&more=' + more;
- querystring += '&closed=' + closed;
- querystring += '&ticket=' + ticket;
- if (formtype == 'edit') {
- querystring += '&itemid=' + addform.itemid.value;
- querystring += '&type=edit';
- }
- else {
- querystring += '&blogid=' + addform.blogid.value;
- querystring += '&type=add';
- }
- if (addform.draftid.value > 0) {
- querystring += '&draftid=' + addform.draftid.value;
- }
-
- xmlhttprequest[0].open('POST', goalurl, true);
- xmlhttprequest[0].onreadystatechange = checkMonitor;
- xmlhttprequest[0].setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- xmlhttprequest[0].send(querystring);
-
- var querystring = 'action=updateticket&ticket=' + ticket;
-
- xmlhttprequest[1].open('POST', goalurl, true);
- xmlhttprequest[1].onreadystatechange = updateTicket;
- xmlhttprequest[1].setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- xmlhttprequest[1].send(querystring);
-}
-
-/**
- * Monitors the edits
- */
-function doMonitor() {
- if (checks * (now() - seconds) > 120 * 1000 * 50) {
- autoSaveDraft();
- }
- else {
- checks++;
- }
-}
-
-/**
- * Checks the process of the saving
- */
-function checkMonitor() {
- if (xmlhttprequest[0].readyState == 4) {
- if (xmlhttprequest[0].responseText) {
- if (xmlhttprequest[0].responseText.substr(0, 4) == 'err:') {
- goal.innerHTML = xmlhttprequest[0].responseText.substr(4) + ' (' + formattedDate() + ')';
- }
- else {
- addform.draftid.value = xmlhttprequest[0].responseText;
- goal.innerHTML = lastsavedtext + ' ' + formattedDate();
- }
- }
- }
-}
-
-/**
- * Checks the process of the ticket updating
- */
-function updateTicket() {
- if (xmlhttprequest[1].readyState == 4) {
- if (xmlhttprequest[1].responseText) {
- if (xmlhttprequest[1].responseText.substr(0, 4) == 'err:') {
- goal.innerHTML = xmlhttprequest[1].responseText.substr(4) + ' (' + formattedDate() + ')';
- }
- else {
- addform.ticket.value = xmlhttprequest[1].responseText;
- }
- }
- }
-}
-
-/**
- * Gets now in milliseconds
- */
-function now() {
- var now = new Date();
- return now.getTime();
-}
-
-/**
- * Gets now in the local dateformat
- */
-function formattedDate() {
- var now = new Date();
- return now.toLocaleDateString() + ' ' + now.toLocaleTimeString();
-}
\ No newline at end of file
+++ /dev/null
-<?php
-/*
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2009 The Nucleus Group
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * (see nucleus/documentation/index.html#license for more info)
- */
-/**
- * Media popup window for Nucleus
- *
- * Purpose:
- * - can be openen from an add-item form or bookmarklet popup
- * - shows a list of recent files, allowing browsing, search and
- * upload of new files
- * - close the popup by selecting a file in the list. The file gets
- * passed through to the add-item form (linkto, popupimg or inline img)
- *
- * @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-2009 The Nucleus Group
- * @version $Id: media.php 1870 2012-05-22 14:57:15Z sakamocchi $
- *
- */
-
-$CONF = array();
-
-// defines how much media items will be shown per page. You can override this
-// in config.php if you like. (changing it in config.php instead of here will
-// allow your settings to be kept even after a Nucleus upgrade)
-$CONF['MediaPerPage'] = 10;
-
-// include all classes and config data
-$DIR_LIBS = '';
-require_once('../config.php');
-//include($DIR_LIBS . 'MEDIA.php'); // media classes
-include_libs('MEDIA.php',false,false);
-
-sendContentType('application/xhtml+xml', 'media');
-
-// user needs to be logged in to use this
-if (!$member->isLoggedIn()) {
- media_loginAndPassThrough();
- exit;
-}
-
-// check if member is on at least one teamlist
-$query = 'SELECT * FROM ' . sql_table('team'). ' WHERE tmember=' . $member->getID();
-$teams = DB::getResult($query);
-if ($teams->rowCount() == 0 && !$member->isAdmin())
- media_doError(_ERROR_DISALLOWEDUPLOAD);
-
-// get action
-$action = requestVar('action');
-if ($action == '')
- $action = 'selectmedia';
-
-// check ticket
-$aActionsNotToCheck = array('selectmedia', _MEDIA_FILTER_APPLY, _MEDIA_COLLECTION_SELECT);
-if (!in_array($action, $aActionsNotToCheck))
-{
- if (!$manager->checkTicket())
- media_doError(_ERROR_BADTICKET);
-}
-
-
-switch($action) {
- case 'chooseupload':
- case _MEDIA_UPLOAD_TO:
- case _MEDIA_UPLOAD_NEW:
- if (!$member->isAdmin() and $CONF['AllowUpload'] != true) {
- media_doError(_ERROR_DISALLOWED);
- } else {
- media_choose();
- }
- break;
- case 'uploadfile':
- if (!$member->isAdmin() and $CONF['AllowUpload'] != true) {
- media_doError(_ERROR_DISALLOWED);
- } else {
- media_upload();
- }
- break;
- case _MEDIA_FILTER_APPLY:
- case 'selectmedia':
- case _MEDIA_COLLECTION_SELECT:
- default:
- media_select();
- break;
-}
-
-// select a file
-function media_select() {
- global $member, $CONF, $DIR_MEDIA, $manager;
-
- // show 10 files + navigation buttons
- // show msg when no files
- // show upload form
- // files sorted according to last modification date
-
- // currently selected collection
- $currentCollection = requestVar('collection');
- if (!$currentCollection || !@is_dir($DIR_MEDIA . $currentCollection))
- $currentCollection = $member->getID();
-
- // avoid directory travarsal and accessing invalid directory
- if (!Media::isValidCollection($currentCollection)) media_doError(_ERROR_DISALLOWED);
-
- media_head();
-
- // get collection list
- $collections = Media::getCollectionList();
-
- if (sizeof($collections) > 1) {
- ?>
- <form method="post" action="media.php"><div>
- <label for="media_collection"><?php echo Entity::hsc(_MEDIA_COLLECTION_LABEL)?></label>
- <select name="collection" id="media_collection">
- <?php foreach ($collections as $dirname => $description) {
- echo '<option value="',Entity::hsc($dirname),'"';
- if ($dirname == $currentCollection) {
- echo ' selected="selected"';
- }
- echo '>',Entity::hsc($description),'</option>';
- }
- ?>
- </select>
- <input type="submit" name="action" value="<?php echo Entity::hsc(_MEDIA_COLLECTION_SELECT) ?>" title="<?php echo Entity::hsc(_MEDIA_COLLECTION_TT)?>" />
- <input type="submit" name="action" value="<?php echo Entity::hsc(_MEDIA_UPLOAD_TO) ?>" title="<?php echo Entity::hsc(_MEDIA_UPLOADLINK) ?>" />
- <?php $manager->addTicketHidden() ?>
- </div></form>
- <?php } else {
- ?>
- <form method="post" action="media.php" style="float:right"><div>
- <input type="hidden" name="collection" value="<?php echo Entity::hsc($currentCollection)?>" />
- <input type="submit" name="action" value="<?php echo Entity::hsc(_MEDIA_UPLOAD_NEW) ?>" title="<?php echo Entity::hsc(_MEDIA_UPLOADLINK) ?>" />
- <?php $manager->addTicketHidden() ?>
- </div></form>
- <?php } // if sizeof
-
- $filter = requestVar('filter');
- $offset = intRequestVar('offset');
- $arr = Media::getMediaListByCollection($currentCollection, $filter);
-
- ?>
- <form method="post" action="media.php"><div>
- <label for="media_filter"><?php echo Entity::hsc(_MEDIA_FILTER_LABEL)?></label>
- <input id="media_filter" type="text" name="filter" value="<?php echo Entity::hsc($filter)?>" />
- <input type="submit" name="action" value="<?php echo Entity::hsc(_MEDIA_FILTER_APPLY) ?>" />
- <input type="hidden" name="collection" value="<?php echo Entity::hsc($currentCollection)?>" />
- <input type="hidden" name="offset" value="<?php echo intval($offset)?>" />
- </div></form>
-
- <?php
-
- ?>
- <table width="100%">
- <caption><?php echo _MEDIA_COLLECTION_LABEL . Entity::hsc($collections[$currentCollection])?></caption>
- <tr>
- <th><?php echo _MEDIA_MODIFIED?></th><th><?php echo _MEDIA_FILENAME?></th><th><?php echo _MEDIA_DIMENSIONS?></th>
- </tr>
-
- <?php
- if ( sizeof($arr) > 0 )
- {
- if ( ($offset + $CONF['MediaPerPage']) >= sizeof($arr) )
- {
- $offset = sizeof($arr) - $CONF['MediaPerPage'];
- }
-
- if ( $offset < 0 )
- {
- $offset = 0;
- }
-
- $idxStart = $offset;
- $idxEnd = $offset + $CONF['MediaPerPage'];
- $idxNext = $idxEnd;
- $idxPrev = $idxStart - $CONF['MediaPerPage'];
-
- if ( $idxPrev < 0 )
- {
- $idxPrev = 0;
- }
-
- if ( $idxEnd > sizeof($arr) )
- {
- $idxEnd = sizeof($arr);
- }
-
- for ( $i = $idxStart; $i < $idxEnd; $i++ )
- {
- $medium = $arr[$i];
- $medium->refine();
-
- echo "<tr>\n";
- echo "<td>" . date("Y-m-d", $medium->timestamp) . "</td>\n";
-
- // strings for javascript
- $jsCurrentCollection = str_replace("'", "\\'", $currentCollection);
- $jsFileName = str_replace("'", "\\'", $medium->filename);
-
- if ( array_key_exists($medium->mime, Media::$image_mime) )
- {
- echo "<td><a href=\"media.php\" onclick=\"chooseImage('" . Entity::hsc($jsCurrentCollection) . "','" . Entity::hsc($jsFileName) . "',"
- . "'" . Entity::hsc($medium->width) . "','" . Entity::hsc($medium->height) . "'"
- . ")\" title=\"" . Entity::hsc($medium->filename) . "\">"
- . Entity::hsc(Entity::shorten($medium->filename, 25, '...'))
- ."</a>";
- echo ' (<a href="', Entity::hsc("{$CONF['MediaURL']}/$currentCollection/$medium->filename"), '" onclick="window.open(this.href); return false;" title="'. Entity::hsc(_MEDIA_VIEW_TT) . '">' . _MEDIA_VIEW . '</a>)';
- echo "</td>\n";
- echo '<td>' . Entity::hsc($medium->width) . 'x' . Entity::hsc($medium->height) . "</td>\n";
- }
- else
- {
- // no image (e.g. mpg)
- echo "<td><a href='media.php' onclick=\"chooseOther('" , Entity::hsc($jsCurrentCollection), "','", Entity::hsc($jsFileName), "'"
- . ")\" title=\"" . Entity::hsc($medium->filename). "\">"
- . Entity::hsc(Entity::shorten($medium->filename, 30, '...'))
- ."</a></td>\n";
- echo '<td>' . Entity::hsc($medium->size) . "KB</td>\n";
- }
- echo "</tr>\n";
- continue;
- }
- }
- ?>
-
- </table>
- <?php
- if ($idxStart > 0)
- echo "<a href='media.php?offset=$idxPrev&collection=".urlencode($currentCollection)."'>". _LISTS_PREV."</a> ";
- if ($idxEnd < sizeof($arr))
- echo "<a href='media.php?offset=$idxNext&collection=".urlencode($currentCollection)."'>". _LISTS_NEXT."</a> ";
-
- ?>
- <input id="typeradio0" type="radio" name="typeradio" onclick="setType(0);" checked="checked" /><label for="typeradio0"><?php echo _MEDIA_INLINE?></label>
- <input id="typeradio1" type="radio" name="typeradio" onclick="setType(1);" /><label for="typeradio1"><?php echo _MEDIA_POPUP?></label>
- <?php
- media_foot();
-
-
-}
-
-/**
- * Shows a screen where you can select the file to upload
- */
-function media_choose() {
- global $CONF, $member, $manager;
-
- $currentCollection = requestVar('collection');
-
- $collections = Media::getCollectionList();
-
- media_head();
- ?>
- <h1><?php echo _UPLOAD_TITLE?></h1>
-
- <p><?php echo _UPLOAD_MSG?></p>
-
- <form method="post" enctype="multipart/form-data" action="media.php">
- <div>
- <input type="hidden" name="action" value="uploadfile" />
- <?php $manager->addTicketHidden() ?>
- <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $CONF['MaxUploadSize']?>" />
- File:
- <br />
- <input name="uploadfile" type="file" size="40" />
- <?php if (sizeof($collections) > 1) {
- ?>
- <br /><br /><label for="upload_collection">Collection:</label>
- <br /><select name="collection" id="upload_collection">
- <?php foreach ($collections as $dirname => $description) {
- echo '<option value="',Entity::hsc($dirname),'"';
- if ($dirname == $currentCollection) {
- echo ' selected="selected"';
- }
- echo '>',Entity::hsc($description),'</option>';
- }
- ?>
- </select>
- <?php } else {
- ?>
- <input name="collection" type="hidden" value="<?php echo Entity::hsc(requestVar('collection'))?>" />
- <?php } // if sizeof
- ?>
- <br /><br />
- <?php
- $manager->notify(
- 'MediaUploadFormExtras',
- array()
- );
- ?>
- <br /><br />
- <input type="submit" value="<?php echo _UPLOAD_BUTTON?>" />
- </div>
- </form>
-
- <?php
- media_foot();
-}
-
-
-/**
- * accepts a file for upload
- */
-function media_upload() {
- global $DIR_MEDIA, $member, $CONF;
-
- $uploadInfo = postFileInfo('uploadfile');
-
- $filename = $uploadInfo['name'];
- $filetype = $uploadInfo['type'];
- $filesize = $uploadInfo['size'];
- $filetempname = $uploadInfo['tmp_name'];
- $fileerror = intval($uploadInfo['error']);
-
- // clean filename of characters that may cause trouble in a filename using cleanFileName() function from globalfunctions.php
- $filename = cleanFileName($filename);
- if ($filename === false)
- media_doError(_ERROR_BADFILETYPE);
-
- switch ($fileerror)
- {
- case 0: // = UPLOAD_ERR_OK
- break;
- case 1: // = UPLOAD_ERR_INI_SIZE
- case 2: // = UPLOAD_ERR_FORM_SIZE
- media_doError(_ERROR_FILE_TOO_BIG);
- case 3: // = UPLOAD_ERR_PARTIAL
- case 4: // = UPLOAD_ERR_NO_FILE
- case 6: // = UPLOAD_ERR_NO_TMP_DIR
- case 7: // = UPLOAD_ERR_CANT_WRITE
- default:
- // include error code for debugging
- // (see http://www.php.net/manual/en/features.file-upload.errors.php)
- media_doError(_ERROR_BADREQUEST . ' (' . $fileerror . ')');
- }
-
- if ($filesize > $CONF['MaxUploadSize'])
- media_doError(_ERROR_FILE_TOO_BIG);
-
- // check file type against allowed types
- $ok = 0;
- $allowedtypes = preg_split('#,#', $CONF['AllowedTypes']);
- foreach ( $allowedtypes as $type )
- {
- //if (eregi("\." .$type. "$",$filename)) $ok = 1;
- if (preg_match("#\." .$type. "$#i",$filename)) $ok = 1;
- }
- if (!$ok) media_doError(_ERROR_BADFILETYPE);
-
- if (!is_uploaded_file($filetempname))
- media_doError(_ERROR_BADREQUEST);
-
- // prefix filename with current date (YYYY-MM-DD-)
- // this to avoid nameclashes
- if ( $CONF['MediaPrefix'] )
- {
- $filename = i18n::formatted_datetime("%Y%m%d-", time()) . $filename;
- }
-
- $collection = requestVar('collection');
- $res = Media::addMediaObject($collection, $filetempname, $filename);
-
- if ($res != '')
- media_doError($res);
-
- // shows updated list afterwards
- media_select();
-}
-
-function media_loginAndPassThrough() {
- media_head();
- ?>
- <h1><?php echo _LOGIN_PLEASE?></h1>
-
- <form method="post" action="media.php">
- <div>
- <input name="action" value="login" type="hidden" />
- <input name="collection" value="<?php echo Entity::hsc(requestVar('collection'))?>" type="hidden" />
- <?php echo _LOGINFORM_NAME?>: <input name="login" />
- <br /><?php echo _LOGINFORM_PWD?>: <input name="password" type="password" />
- <br /><input type="submit" value="<?php echo _LOGIN?>" />
- </div>
- </form>
- <p><a href="media.php" onclick="window.close();"><?php echo _POPUP_CLOSE?></a></p>
- <?php media_foot();
- exit;
-}
-
-function media_doError($msg) {
- media_head();
- ?>
- <h1><?php echo _ERROR?></h1>
- <p><?php echo $msg?></p>
- <p><a href="media.php" onclick="history.back()"><?php echo _BACK?></a></p>
- <?php media_foot();
- exit;
-}
-
-
-function media_head() {
-?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Nucleus Media</title>
- <link rel="stylesheet" type="text/css" href="styles/popups.css" />
- <script type="text/javascript">
- var type = 0;
- function setType(val) { type = val; }
-
- function chooseImage(collection, filename, width, height) {
- window.opener.focus();
- window.opener.includeImage(collection,
- filename,
- type == 0 ? 'inline' : 'popup',
- width,
- height
- );
- window.close();
- }
-
- function chooseOther(collection, filename) {
- window.opener.focus();
- window.opener.includeOtherMedia(collection, filename);
- window.close();
-
- }
- </script>
- </head>
- <body>
-<?php }
-
-function media_foot() {
-?>
- </body>
- </html>
-<?php }
-
-?>
+++ /dev/null
-/*
- This stylesheet serves to make item previews look nicer, and to markup the
- buttonbar
-
- $Id: addedit.css 757 2005-08-12 07:29:40Z dekarma $
-*/
-
-.leftbox, .rightbox {
- margin: 3px;
- padding: 3px;
- font-size: larger;
- width: 20%;
-}
-.leftbox {
- float: left;
- border-right: 2px solid #888;
-}
-.rightbox {
- float: right;
- border-left: 2px solid #888;
-}
-
-/* markup buttons */
-.jsbuttonbar {
- height: 30px;
- cursor: default;
-}
-
-.jsbutton {
- float: left;
- padding: 3px;
- margin-right: 4px;
- height: 16px;
- width: 16px;
- border: 1px solid #dddddd;
- background-color: white;
-}
-
-.jsbuttonspacer {
- float: left;
- width: 10px;
-}
+++ /dev/null
-/*@charset 'UTF-8';*/
-
-/*
- admin area style
-
- $Id: admin.css 1261 2008-05-22 20:32:43Z kaigreve $
-*/
-
-body {
- background: #fff url(contemporary/background.png) repeat-x;
-}
-
-body, td, th, a, li, ul, textarea {
- color: #333
- font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
-}
-
-/* basic link appearance */
-a:link, a:visited {
- color: #1D3565;
- font-weight: bold;
- text-decoration: none;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-/* textareas */
-textarea {
- font-size: small;
- width: 95%;
-}
-
-/* textareas for skin/template editing have monospace fonts */
-textarea.skinedit, textarea.templateedit {
- font-family: monospace;
- font-size: medium;
-}
-
-/* images */
-img {
- border: none;
-}
-
-img.skinpreview {
- border: 1px solid #ccc;
-}
-
-/* forms */
-form {
- margin-bottom: 0px;
-}
-
-label {
- cursor: pointer;
-}
-
-input.transparent {
- background-color: transparent;
-}
-
-/* preformatted text */
-pre {
- margin-left: 10px;
-}
-
-/* a div that has an indent */
-div.indent {
- margin-left: 40px;
-}
-
-.skip {
- display: none;
-}
-
-.error {
- color: red;
- font-size: 1.2em;
-}
-
-/* header */
-h1 {
- text-align: right;
- font-size: 30px;
- font-weight: 900;
- letter-spacing: 0.1em;
- /*color: #0001AA; */
- color: #596d9d;
- margin: 0 0 5px 135px;
- height: 35px;
- /*display: none; hide the header if you don't want it*/
-
-}
-
-/* quick menu on left */
-/*
- It's a real pain getting this absolute positioning to work correctly
- in all browsers. IE in particular seems to have a lot of trouble, even
- when a valid doctype is present. Because of the way it is solved currently,
- the top of the quickmenu and the contents will not line up
-*/
-#quickmenu {
- position: absolute;
- overflow: hidden;
-
- top: 10px;
- left: 10px;
-
- width: 150px;
- margin: 0px;
- padding: 0px;
-
- font-size:9pt;/*add yotaka 090323*/
- color:#333;/* add */
-
- border-width: 1px;
- border-style: solid;
- border-color: #bbb;
-
- background: #ffffff url(quickb.jpg) top left fixed repeat-y;
-}
-
-#quickmenu ul {
- list-style-type: none;
- margin: 0;
- padding: 0;
-}
-
-#quickmenu li {
- padding: 0;
- margin: 0;
- text-align: center;
- border-bottom: 1px solid #ccc;
-}
-
-#quickmenu p {
- padding: 5px;
- margin: 0px;
- text-align: justify;
-}
-
-#quickmenu a {
- display: block;
- padding: 5px;
- font-size: 1em;
- line-height: 1.5;
- text-decoration: none;
-}
-
-#quickmenu a:hover {
- background: #ffffff url(quickb-hover.jpg) top left fixed repeat-y;
- color: #333;
- letter-spacing: 1px;
-}
-
-#quickmenu h2 {
- font-size: small;
- text-align: center;
- padding: 1px 0px 1px 0px;
- margin: 0px;
- border-bottom: 1px solid #bbb;
- background-color: #ddd;
- color: #333;
-}
-
-#quickmenu form {
- margin: 0;
- padding: 5px;
- text-align: center;
-}
-
-#quickmenu option {
- font-size: 0.9em;
-}
-
-.loginname {
- float: right;
- font-size: small;
- text-align: right;
- line-height: normal;
- padding-left: 5px;
- background-color: white;
-}
-
-/* page content */
-#content {
- margin-left: 163px;
- font-style: normal;
- text-decoration: none;
- color: #333;
- text-align: justify;
- line-height: 13pt;
-
- border-width: 1px;
- border-style: solid;
- border-color: #bbb;
-
- /* rounded borders in gecko-based browsers? why not :) */
- -moz-border-radius: 10px;
-
- -webkit-border-radius: 10px;
- border-radius: 10px;
- padding: 10px 10px 0 10px;
-
- background-color: white;
-
-}
-
-#content h2 {
- color: #596d9d;
-
- border-color: gray;
- border-style: dashed;
- border-width: 0px 0px 1px 0px;
-
- font-size: large;
- line-height: 120%;
-
- text-decoration: none;
- font-weight: bold;
-}
-
-#content h3 {
- border-color: gray;
- border-style: dotted;
- border-width: 0px 0px 1px 0px;
- font-size: medium;
- font-weight: normal;
- line-height: 120%;
-
- color: gray;
- padding-left: 20px;
-}
-
-#content .note, pre {
- background-color: #ddd;
- padding: 5px;
-}
-
-/*
- font size tricks, to make it work in all browsers
-
- See:
- http://diveintoaccessibility.org/day_26_using_relative_font_sizes.html
-
- (netscape 4 trick is left out, Nucleus doesn't work anyway in that browser)
- #content should be 'small' (in standard-compliant browsers)
-
-*/
-
-#content {
- font-size: small;
- voice-family: "\"}\"";
- voice-family: inherit;
- font-size: small;
-}
-html>body #content { font-size: small; }
-
-/* tables */
-div#content table {
- border: none;
- width: 100%;
- border-collapse: collapse;
- margin-bottom: 10px;
- margin-top: 10px;
-}
-
-div#content table tbody tr {
- background-color: #FFFFFF;
-}
-
-div#content table tbody tr:hover {
- background-color: #F5F5F5;
-}
-
-div#content table thead tr th {
- border: none;
- background-color: #BBBBCC;
- color: #000000;
- font-size: small;
-}
-
-div#content table thead th,
-div#content table tbody td {
- padding: 4px;
- empty-cells: show;
-}
-
-div#content table.systemoverview thead th,
-div#content table.systemoverview tbody td {
- width: 50%;
-}
-
-div#content table tbody tr td {
- border: 1px solid #ddd;
- font-size: small;
- vertical-align: top;
- text-align: left;
-}
-
-div#content table tbody tr td a:link,
-div#content table tbody tr td a:visited {
- text-decoration: underline;
- color: black;
- font-weight: normal;
-}
-
-div#content table tbody tr td a:hover {
- color: #1D3565;
- text-decoration: underline;
-}
-
-div#content table tbody tr td.draft,
-div#content table tbody tr td.future {
- background-color: #FFFFEE;
-}
-
-div#content table.navigation td,
-div#content table.navigation th {
- border: none;
-}
-
-div#content table tbody td h3 {
- padding: 0px;
- margin: 0px 0px 2em 0px;
- border: 0px;
- color: #000000;
- font-size: small;
- font-weight: normal;
- line-height: 13pt;
-}
-
-div#content table tbody td h3#base_skin {
- font-weight: bold;
-}
-
-/* definitive list */
-div#content table tbody tr td dl {
- margin: 0px;
- padding: 0px;
-}
-
-div#content table tbody tr td:first-child dl dt {
- margin: 0px;
- padding: 0px 5px 0px 0px;
- display: inline;
- float: left;
- clear: both;
-}
-
-div#content table tbody tr td:first-child dl dd {
- margin: 0px;
- padding: 0px;
- display: block;
-}
-
-div#content table tbody tr td dl dd {
- margin: 0px 0px 1em 0px;
-}
-
-/* unorderd list */
-div#content table tbody tr td ul {
- margin: 0px;
- padding: 0px;
- list-style: none;
-}
-
-div#content table tbody tr td ul li {
- margin: 0px;
- padding: 0px;
- white-space: nowrap;
-}
-
-.batchoperations {
- background-color: #EEEEFF;
- width: auto;
- padding: 5px;
- text-align: right;
-}
-
-/* footer */
-div.foot {
- padding: 2px 0px 2px 10px;
- margin:10px -10px 0 -10px;
- text-align: center;
-}
+++ /dev/null
-/*
- admin area style
-
- $Id: admin_original.css 1652 2012-02-11 06:02:05Z sakamocchi $
-*/
-
-body {
- background: #ffffff;
-}
-
-body, td, th, a, li, ul, textarea {
- color: #000;
- font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
-}
-
-/* basic link appearance */
-a:link, a:visited {
- color: #1D3565;
- font-weight: bold;
- text-decoration: none;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-/* textareas */
-textarea {
- font-size: small;
- width: 95%;
-}
-
-/* textareas for skin/template editing have monospace fonts */
-textarea.skinedit, textarea.templateedit {
- font-family: monospace;
- font-size: medium;
-}
-
-/* images */
-img {
- border: none;
-}
-
-img.skinpreview {
- border: 1px solid #ccc;
-}
-
-/* forms */
-form {
- margin-bottom: 0px;
-}
-
-label {
- cursor: pointer;
-}
-
-input.transparent {
- background-color: transparent;
-}
-
-/* preformatted text */
-pre {
- margin-left: 10px;
-}
-
-/* a div that has an indent */
-div.indent {
- margin-left: 40px;
-}
-
-.skip {
- display: none;
-}
-
-.error {
- color: red;
- font-size: 1.2em;
-}
-
-/* header */
-h1 {
- text-align: right;
- font-size: 30px;
- font-weight: 900;
- letter-spacing: 0.1em;
- /*color: #0001AA; */
- color: #596d9d;
- margin: 0 0 5px 135px;
- height: 35px;
- /*display: none; hide the header if you don't want it*/
-}
-
-/* quick menu on left */
-/*
- It's a real pain getting this absolute positioning to work correctly
- in all browsers. IE in particular seems to have a lot of trouble, even
- when a valid doctype is present. Because of the way it is solved currently,
- the top of the quickmenu and the contents will not line up
-*/
-#quickmenu {
- position: absolute;
- overflow: hidden;
-
- top: 10px;
- left: 10px;
-
- width: 110px;
- margin: 0px;
- padding: 0px;
-
- font-size: 70%;
-
- border-width: 1px;
- border-style: solid;
- border-color: black;
-
- background: #ffffff url(quickb.jpg) top left fixed repeat-y;
-}
-
-#quickmenu ul {
- list-style-type: none;
- margin: 0;
- padding: 0;
-}
-
-#quickmenu li {
- padding: 0;
- margin: 0;
- text-align: center;
- border-bottom: 1px solid #ccc;
-}
-
-#quickmenu p {
- padding: 5px;
- margin: 0px;
- text-align: justify;
-}
-
-#quickmenu a {
- display: block;
- padding: 5px;
- font-size: 1em;
- line-height: 1.5em;
- text-decoration: none;
-}
-
-#quickmenu a:hover {
- background: #ffffff url(quickb-hover.jpg) top left fixed repeat-y;
- color: #000;
- letter-spacing: 1px;
-}
-
-#quickmenu h2 {
- font-size: small;
- text-align: center;
- padding: 1px 0px 1px 0px;
- margin: 0px;
- border-bottom: 1px solid #bbb;
- background-color: #ddd;
- color: #000;
-}
-
-#quickmenu form {
- margin: 0;
- padding: 5px;
- text-align: center;
-}
-
-#quickmenu option {
- font-size: 0.9em;
-}
-
-.loginname {
- float: right;
- font-size: small;
- text-align: right;
- line-height: normal;
- padding-left: 5px;
- background-color: white;
-}
-
-/* page content */
-#content {
- margin-left: 135px;
- font-style: normal;
- text-decoration: none;
- color: black;
- text-align: justify;
- line-height: 13pt;
-
- border-width: 1px;
- border-style: solid;
- border-color: black;
-
- /* rounded borders */
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- border-radius: 10px;
-
- padding: 10px 10px 0 10px;
-
- background-color: white;
-}
-
-#content h2 {
- color: #596d9d;
-
- border-color: gray;
- border-style: dashed;
- border-width: 0px 0px 1px 0px;
-
- font-size: large;
- line-height: 120%;
-
- text-decoration: none;
- font-weight: bold;
-}
-
-#content h3 {
- border-color: gray;
- border-style: dotted;
- border-width: 0px 0px 1px 0px;
- font-size: medium;
- font-weight: normal;
- line-height: 120%;
-
- color: gray;
- padding-left: 20px;
-}
-
-#content .note, pre {
- background-color: #ddd;
- padding: 5px;
-}
-
-/*
- font size tricks, to make it work in all browsers
-
- See:
- http://diveintoaccessibility.org/day_26_using_relative_font_sizes.html
-
- (netscape 4 trick is left out, Nucleus doesn't work anyway in that browser)
- #content should be 'small' (in standard-compliant browsers)
-
-*/
-
-#content {
- font-size: small;
- voice-family: "\"}\"";
- voice-family: inherit;
- font-size: small;
-}
-html>body #content { font-size: small; }
-
-/* tables */
-div#content table {
- border: none;
- width: 100%;
- border-collapse: collapse;
- margin-bottom: 10px;
- margin-top: 10px;
-}
-
-div#content table tbody tr {
- background-color: #FFFFFF;
-}
-
-div#content table tbody tr:hover {
- background-color: #F5F5F5;
-}
-
-div#content table thead tr th,
-div#content table tfoot tr th,
-div#content table tbody tr th {
- border: none;
- background-color: #BBBBCC;
- color: #000000;
- font-size: small;
-}
-
-div#content table thead th,
-div#content table thead td,
-div#content table tfoot th,
-div#content table tfoot td,
-div#content table tbody td {
- padding: 4px;
- empty-cells: show;
-}
-
-/* systemconfig column */
-div#content table.systemoverview thead td,
-div#content table.systemoverview tfoot td,
-div#content table.systemoverview tbody td {
- width: 50%;
-}
-
-div#content table thead tr td,
-div#content table tfoot tr td,
-div#content table tbody tr td {
- border: 1px solid #ddd;
- font-size: small;
- vertical-align: top;
- text-align: left;
-}
-
-div#content table tbody tr td a:link,
-div#content table tbody tr td a:visited {
- text-decoration: underline;
- color: black;
- font-weight: normal;
-}
-
-div#content table tbody tr td a:hover {
- color: #1D3565;
- text-decoration: underline;
-}
-
-div#content table tbody tr td.draft,
-div#content table tbody tr td.future {
- background-color: #FFFFEE;
-}
-
-div#content table.navigation td,
-div#content table.navigation th {
- border: none;
-}
-
-div#content table tbody td h3 {
- padding: 0px;
- margin: 0px 0px 2em 0px;
- border: 0px;
- color: #000000;
- font-size: small;
- font-weight: normal;
- line-height: 13pt;
-}
-
-div#content table tbody td h3#base_skin {
- font-weight: bold;
-}
-
-/* definitive list */
-div#content table tbody tr td dl {
- margin: 0px;
- padding: 0px;
-}
-
-div#content table tbody tr td:first-child dl dt {
- margin: 0px;
- padding: 0px 5px 0px 0px;
- display: inline;
- float: left;
- clear: both;
-}
-
-div#content table tbody tr td:first-child dl dd {
- margin: 0px;
- padding: 0px;
- display: block;
-}
-
-div#content table tbody tr td dl dd {
- margin: 0px 0px 1em 0px;
-}
-
-/* unorderd list */
-div#content table tbody tr td ul {
- margin: 0px;
- padding: 0px;
- list-style: none;
-}
-
-div#content table tbody tr td ul li {
- margin: 0px;
- padding: 0px;
- white-space: nowrap;
-}
-
-.batchoperations {
- background-color: #EEEEFF;
- width: auto;
- padding: 5px;
- text-align: right;
-}
-
-/* footer */
-div.foot {
- padding: 2px 0px 2px 10px;
- margin:10px -10px 0 -10px;
- text-align: center;
-}
+++ /dev/null
-/*
- style definitions for the bookmarklet
-
- $Id: bookmarklet.css 1277 2008-10-22 08:43:59Z shizuki $
-*/
-
-body {
- font-size: small;
- background: #fff;
- color: #000;
- font-family: "Trebuchet MS",Trebuchet,"Bitstream Vera Sans",verdana,lucida,arial,helvetica,sans-serif
-}
-
-h1 {
- border-bottom: 1px dotted gray;
- font-size: medium;
- color: #596d9d;
-}
-
-/*
- Hide switch buttons initially, we'll enable them again if we are sure
- the browser supports DOM
-*/
-#switchbuttons {
- display: none;
-}
-/*
- Hide preview also when no DOM is supported
-*/
-#preview {
- display: none;
-}
-
-.buttonbar {
- margin-bottom: 5px;
- background: rgb(187, 187, 204);
- padding: 3px;
-}
-
-.buttonbar input {
- background: #C5C5D3;
- border: 1px solid #CACAD7;
- border-right: 2px solid #8E8EAB;
- border-bottom: 2px solid #8E8EAB;
- color: #000000;
- font-family: "Trebuchet MS",Trebuchet,"Bitstream Vera Sans",verdana,lucida,arial,helvetica,sans-serif;
- font-weight: bold;
-}
-
-.contentblock {
- /*background: #ddd;*/
-/* height: 400px;*/
- height: 450px;
- overflow: auto; /* temporary removed, to make the select box work in Mozilla */
- padding: 1px;
- margin: 0px;
- vertical-align: top;
-}
-
-.shortcuts {
- float: right;
- text-align: right;
- font-size: x-small;
-}
-
-#options {
- margin-top:-15px;
- }
-#options h2 {
- margin:15px 0 0 0;
-}
-
-h2 {
- font-size: 1.5em;
- color: gray;
- margin-top: 0px;
- padding-top: 0px;
- padding-bottom: 0px;
- margin-top: 0px;
-}
-
-a:link, a:visited {
- color: #1D3565;
- font-weight: bold;
- text-decoration: none;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-img {
- border: none;
-}
-
-.indent {
- margin-left: 40px;
-}
-
-label { cursor: pointer; }
-
-table {
- border: none;
- width: 95%;
- border-collapse: collapse;
- margin-bottom: 10px;
- margin-top: 10px;
-}
-
-th {
- background: #bbc;
- color: #000;
- font-size: small;
-}
-
-th, td {
- padding: 4px;
- empty-cells: show;
-}
-
-td {
- background: #fff;
- border: 1px solid #ddd;
- font-size: small;
- vertical-align: top;
- text-align: left;
-}
-
-td a:link, td a:visited {
- text-decoration: underline;
- color: black;
- font-weight: normal;
-}
-td a:hover {
- color: #1D3565;
- text-decoration: underline;
-}
-
-td.draft, td.future {
- background: #ffe;
-}
-
-tr.highlighted td {
- background: green;
-}
-
-ul.nobullets {
- list-style-type: none;
- padding: 0;
- margin: 0;
-}
\ No newline at end of file
+++ /dev/null
-/*
- documentation style
-
- $Id: manual.css 757 2005-08-12 07:29:40Z dekarma $
-*/
-
-body {
- background-color: #fff;
- color: #000;
- font-family: verdana, arial;
- font-size: small;
-}
-
-@media screen {
- body {
- margin-left: 10%;
- margin-right: 10%;
- }
-}
-
-@media print {
- pre, .note, td, th {
- border: 1px dashed gray;
- }
-}
-
-img {
- border: none;
-}
-
-a:link, a:visited {
- color: #1D3565;
- font-weight: bold;
- text-decoration: none;
-}
-a: hover {
- text-decoration: underline;
-}
-
-.heading {
- text-align: center;
- font-size: xx-large;
- font-weight: bold;
- color: gray;
-}
-
-.heading i {
- position: absolute;
- top: 5px;
- right: 5px;
- font-size: small;
- font-style: normal;
- font-weight: normal;
-}
-
-p:first-letter {
- font-size: large;
-}
-
-p {
- text-indent: 20px;
-}
-
-h1 {
- border-bottom: 1px dotted gray;
- font-size: x-large;
- color: #596d9d;
-}
-
-h2 {
- color: gray;
- font-size: large;
- margin-left: 20px;
- text-indent: 10px;
- border-bottom: 1px solid #ddd;
-}
-
-pre, .note, .faq .answer {
- background-color: #ddd;
- padding: 10px;
- font-size: small;
-}
-
-.screenshot {
- text-align: center;
- background-color: #ddd;
- padding: 10px;
-}
-
-.faq .question {
- font-weight: bold;
- margin-bottom: 0px;
-}
-
-.faq .answer {
-
-}
-
-.faq {
- margin-bottom: 20px;
-}
-
-table {
- border: none;
-}
-
-th {
- background-color: linen;
- font-size: medium;
-}
-
-th, td {
- padding: 5px;
-}
-
-td {
- background-color: #dddddd;
- font-size: small;
- vertical-align: top;
- text-align: left;
-}
-
-input, select, option, textarea {
- background-color: transparent;
-}
-
-.deprecated {
- border: 3px solid red;
- padding: 5px;
- font-size: medium;
-}
-
-tt, code, samp {
- font-size: small;
-}
-
-.warning {
- color: red;
-}
-.ok {
- color: green;
-}
-
-acronym, abbr {
- border-bottom: 1px dotted gray;
- cursor: help;
-}
-
-label {
- cursor: hand;
-}
+++ /dev/null
-/*
- media library popup
-
- $Id: popups.css 757 2005-08-12 07:29:40Z dekarma $
-*/
-
-body {
- font-family: verdana, arial;
- font-size: small;
- background-color: #fff;
- color: #000;
-}
-
-img {
- border: none;
-}
-
-a:link, a:visited {
- color: #1D3565;
- font-weight: bold;
- text-decoration: none;
-}
-a:hover {
- text-decoration: underline;
-}
-
-.heading {
- text-align: center;
- font-size: xx-large;
- font-weight: bold;
- color: gray;
-}
-
-.heading i {
- position: absolute;
- top: 5px;
- right: 5px;
- font-size: small;
- font-style: normal;
- font-weight: normal;
-}
-
-p {
- text-indent: 20px;
-}
-
-h1 {
- border-bottom: 1px dotted gray;
- font-size: x-large;
- color: #596d9d;
-}
-
-h2 {
- color: gray;
- font-size: large;
- margin-left: 20px;
- text-indent: 10px;
- border-bottom: 1px solid #ddd;
-}
-
-pre, .note, .faq .answer {
- background-color: #ddd;
- padding: 10px;
- font-size: small;
-}
-
-.faq .question {
- font-weight: bold;
- margin-bottom: 0px;
-}
-
-.faq .answer {
-
-}
-
-.faq {
- margin-bottom: 20px;
-}
-
-table {
- border: none;
-}
-
-th {
- background-color: linen;
- font-size: medium;
-}
-
-th, td {
- padding: 5px;
-}
-
-td {
- background-color: #dddddd;
- font-size: small;
- vertical-align: top;
- text-align: left;
-}
-
-label {
- cursor: pointer;
-}
\ No newline at end of file
<meta http-equiv="Refresh" content="0; url=index.php" />
<style type="text/css">
<!--
- @import url(../styles/manual.css);
+ @import url(../styles/documentation/manual.css);
-->
</style>
</head>
echo "<head>\n";
echo "<title> Nucleus Upgrade </title>\n";
- if ( file_exists('../styles/manual.css') )
+ if ( file_exists('../documentation/styles/manual.css') )
{
- echo "<link rel=\"stylesheet\" href=\"../styles/manual.css\" type=\"text/css\" />\n";
+ echo "<link rel=\"stylesheet\" href=\"../documentation/styles/manual.css\" type=\"text/css\" />\n";
}
else
{