Merge pull request #7 from andydixon/dev

Fixes Issue #5 and issue #6
This commit was merged in pull request #7.
This commit is contained in:
Andy Dixon
2024-07-23 19:04:26 +01:00
committed by GitHub
26 changed files with 307 additions and 300 deletions
Generated
+1
View File
@@ -10,6 +10,7 @@
<option name="highlightLevel" value="WARNING" /> <option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" /> <option name="transferred" value="true" />
</component> </component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.3" />
<component name="PhpStanOptionsConfiguration"> <component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" /> <option name="transferred" value="true" />
</component> </component>
+7 -2
View File
@@ -5,6 +5,11 @@
$_users = [ $_users = [
"admin" => ["password"=>"password","isAdmin"=>1], "admin" => ["password" => "password", "isAdmin" => 1],
"user" => ["password"=>"password","isAdmin"=>0], "user" => ["password" => "password", "isAdmin" => 0],
]; ];
$companyName = "CHANGEME IN CONFIG";
$versionInfo = "1.0.0";
+6 -3
View File
@@ -51,12 +51,15 @@ function thecleaner($stuff)
preg_match_all($codereg, $stuff, $code['CODE']); preg_match_all($codereg, $stuff, $code['CODE']);
$stuff = preg_replace($codereg, '----||CODEGO3SHERE||----', $stuff); $stuff = preg_replace($codereg, '----||CODEGO3SHERE||----', $stuff);
function lower($matches) { function lower($matches)
{
} }
//fix uppercase tags //fix uppercase tags
$stuff = preg_replace_callback('/<(\/|)[A-Z]+[A-Z0-9]*\b/', function($matches){return strtolower($matches[0]);}, $stuff); $stuff = preg_replace_callback('/<(\/|)[A-Z]+[A-Z0-9]*\b/', function ($matches) {
return strtolower($matches[0]);
}, $stuff);
//fix attribute quotes //fix attribute quotes
$stuff = preg_replace('/(<(?!meta)[^>]*\s[A-Za-z]+=)([^>\'\"\s]+)(\s*[^>]*)/', '$1"$2"$3', $stuff); $stuff = preg_replace('/(<(?!meta)[^>]*\s[A-Za-z]+=)([^>\'\"\s]+)(\s*[^>]*)/', '$1"$2"$3', $stuff);
@@ -104,6 +107,6 @@ function thecleaner($stuff)
$stuff = preg_replace("/\r\n/", "\n", $stuff); $stuff = preg_replace("/\r\n/", "\n", $stuff);
if ($stuff != '' || $stufflen == 0) return $stuff; if ($stuff != '' || $stufflen == 0) return $stuff;
else $message = '<strong>Error:</strong> Some characters couldn&rsquo;t be recognized. Try switching to UTF-8 encoding and be sure all special characters are properly encoded.'; else $message = '<strong>Error:</strong> Some characters couldn&rsquo;t be recognised. Try switching to UTF-8 encoding and be sure all special characters are properly encoded.';
} }
+4 -4
View File
@@ -1,6 +1,6 @@
<?php <?php
$_users=[]; $_users = [];
error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL & ~E_NOTICE);
@session_start(); @session_start();
@@ -24,10 +24,10 @@ if (isset($_SESSION['neoCMSSess']) && strstr($_SESSION['neoCMSSess'], 'neoCMSses
$script = '<script type="text/javascript">window.top.window.location="../";</script>'; $script = '<script type="text/javascript">window.top.window.location="../";</script>';
echo $script; echo $script;
} else { } else {
$script = '<script type="text/javascript">window.top.window.loginIncorr("Incorrect Username or Password.");</script>'; $script = '<script type="text/javascript">window.top.window.loginIncorr("Incorrect Username or Password.");</script>';
echo $script; echo $script;
}
} }
}
} else { } else {
-1
View File
@@ -563,7 +563,6 @@ div.neoCMSFiles h2 {
div.disabled { div.disabled {
opacity: 0.3 !important; opacity: 0.3 !important;
*filter: alpha(opacity=30) !important;
} }
+7 -23
View File
@@ -460,16 +460,12 @@ a#neoCMSEditContent_deflist:link, a#neoCMSEditContent_deflist:visited {
display: block; display: block;
margin: 0; margin: 0;
padding: 4px; padding: 4px;
.padding:
5px;
border-right: 3px solid #000; border-right: 3px solid #000;
border-bottom: 3px solid #000; border-bottom: 3px solid #000;
border-left: 3px solid #000; border-left: 3px solid #000;
background: #fff; background: #fff;
height: auto !important; height: auto !important;
overflow-x: none; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
@@ -593,7 +589,7 @@ a.neoCMSAddDef, a.neoCMSDeleteDef {
height: 18px; height: 18px;
display: block; display: block;
position: absolute; position: absolute;
top: 10; top: 10px;
left: 0; left: 0;
overflow: hidden; overflow: hidden;
text-indent: -5000px; text-indent: -5000px;
@@ -638,7 +634,7 @@ p.neoCMSAddTerm a:hover {
width: 353px; width: 353px;
height: 135px; height: 135px;
display: block; display: block;
background: transparent url(../images/areyousure_bg.png) no-repeat top center; /** background: transparent url(../images/areyousure_bg.png) no-repeat top center; **/
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
} }
@@ -1007,10 +1003,6 @@ div.neoCMSFileInfo label span {
form.neoCMSLinkProperties, form.neoCMSDlGenerator { form.neoCMSLinkProperties, form.neoCMSDlGenerator {
margin: 10px 0 0 0; margin: 10px 0 0 0;
padding: 15px 0 0; padding: 15px 0 0;
.padding:
5px;
border-top: 1px solid #444; border-top: 1px solid #444;
clear: both; clear: both;
} }
@@ -1573,13 +1565,8 @@ span.neoCMSPathDeclar {
padding: 7px 5px 4px; padding: 7px 5px 4px;
margin: 0 10px 0 5px; margin: 0 10px 0 5px;
font-weight: normal; font-weight: normal;
position: relative;
.position: relative top:4px;
;
.top:
4px;
} }
.neoCMSDashSidebar { .neoCMSDashSidebar {
@@ -1656,10 +1643,7 @@ input.filepath {
height: 16px; height: 16px;
display: inline; display: inline;
position: relative; position: relative;
top: 4px;
.top:
4px;
} }
li.shady, iframe#neoCMSFormFrame { li.shady, iframe#neoCMSFormFrame {
@@ -2182,7 +2166,7 @@ form.neoCMSAcctEditing span.neoCMSCancel, form.neoCMSNewAcctEditing span.neoCMSC
.ui-widget-shadow { .ui-widget-shadow {
margin: -8px 0 0 -8px; margin: -8px 0 0 -8px;
padding: 8px; padding: 8px;
background: #aaaaa 50% 50% repeat-x; background-color: #aaaaaa;
opacity: .30; opacity: .30;
filter: Alpha(Opacity=30); filter: Alpha(Opacity=30);
-moz-border-radius: 8px; -moz-border-radius: 8px;
+12 -14
View File
@@ -19,23 +19,23 @@ function thecleaner($stuff)
//grab php //grab php
preg_match_all($phpreg, $stuff, $code['PHP']); preg_match_all($phpreg, $stuff, $code['PHP']);
$stuff = preg_replace($phpreg, '----||PHPGO3SHERE||----', $stuff); $stuff = preg_replace($phpreg, '----||PHPTagGoesH3r3||----', $stuff);
//grab asp //grab asp
preg_match_all($aspreg, $stuff, $code['ASP']); preg_match_all($aspreg, $stuff, $code['ASP']);
$stuff = preg_replace($aspreg, '----||ASPGO3SHERE||----', $stuff); $stuff = preg_replace($aspreg, '----||ASPTagGoesH3r3||----', $stuff);
//grab on-page js //grab on-page js
preg_match_all($jsreg, $stuff, $code['JS']); preg_match_all($jsreg, $stuff, $code['JS']);
$stuff = preg_replace($jsreg, '----||JSGO3SHERE||----', $stuff); $stuff = preg_replace($jsreg, '----||JSTagGoesH3r3||----', $stuff);
//grab on-page CSS //grab on-page CSS
preg_match_all($cssreg, $stuff, $code['CSS']); preg_match_all($cssreg, $stuff, $code['CSS']);
$stuff = preg_replace($cssreg, '----||CSSGO3SHERE||----', $stuff); $stuff = preg_replace($cssreg, '----||CSSTagGoesH3r3||----', $stuff);
} catch (Exception $e) { } catch (Exception $e) {
$message = '<strong>Error:</strong> There may be too much on page Javascript or CSS. Please try moving them to external files and/or validating your HTML.'; $message = '<strong>Error:</strong> There may be too much on-page Javascript or CSS. Please try moving them to external files and/or validating your HTML.';
output(); output();
} }
@@ -45,18 +45,16 @@ function thecleaner($stuff)
//grab pre //grab pre
preg_match_all($prereg, $stuff, $code['PRE']); preg_match_all($prereg, $stuff, $code['PRE']);
$stuff = preg_replace($prereg, '----||PREGO3SHERE||----', $stuff); $stuff = preg_replace($prereg, '----||PreTagGoesH3r3||----', $stuff);
//grab code //grab code
preg_match_all($codereg, $stuff, $code['CODE']); preg_match_all($codereg, $stuff, $code['CODE']);
$stuff = preg_replace($codereg, '----||CODEGO3SHERE||----', $stuff); $stuff = preg_replace($codereg, '----||CodeTagGoesH3r3||----', $stuff);
function lower($matches) {
}
//fix uppercase tags //fix uppercase tags
$stuff = preg_replace_callback('/<(\/|)[A-Z]+[A-Z0-9]*\b/', function($matches){return strtolower($matches[0]);}, $stuff); $stuff = preg_replace_callback('/<(\/|)[A-Z]+[A-Z0-9]*\b/', function ($matches) {
return strtolower($matches[0]);
}, $stuff);
//fix attribute quotes //fix attribute quotes
$stuff = preg_replace('/(<(?!meta)[^>]*\s[A-Za-z]+=)([^>\'\"\s]+)(\s*[^>]*)/', '$1"$2"$3', $stuff); $stuff = preg_replace('/(<(?!meta)[^>]*\s[A-Za-z]+=)([^>\'\"\s]+)(\s*[^>]*)/', '$1"$2"$3', $stuff);
@@ -88,7 +86,7 @@ function thecleaner($stuff)
$replace = array('CODE', 'PRE', 'CSS', 'JS', 'ASP', 'PHP'); $replace = array('CODE', 'PRE', 'CSS', 'JS', 'ASP', 'PHP');
foreach ($replace as $r) { foreach ($replace as $r) {
$rreg = '/\-\-\-\-\|\|' . $r . 'GO3SHERE\|\|\-\-\-\-/'; $rreg = '/\-\-\-\-\|\|' . $r . 'TagGoesH3r3\|\|\-\-\-\-/';
$c = 0; $c = 0;
preg_match_all($rreg, $stuff, $newcode); preg_match_all($rreg, $stuff, $newcode);
@@ -104,7 +102,7 @@ function thecleaner($stuff)
$stuff = preg_replace("/\r\n/", "\n", $stuff); $stuff = preg_replace("/\r\n/", "\n", $stuff);
if ($stuff != '' || $stufflen == 0) return $stuff; if ($stuff != '' || $stufflen == 0) return $stuff;
else $message = '<strong>Error:</strong> Some characters couldn&rsquo;t be recognized. Try switching to UTF-8 encoding and be sure all special characters are properly encoded.'; else $message = '<strong>Error:</strong> Some characters couldn&rsquo;t be recognised. Try switching to UTF-8 encoding and be sure all special characters are properly encoded.';
} }
+7 -7
View File
@@ -104,7 +104,7 @@ var Editor = (function () {
// Creates a MochiKit-style iterator that goes over a series of DOM // Creates a MochiKit-style iterator that goes over a series of DOM
// nodes. The values it yields are strings, the textual content of // nodes. The values it yields are strings, the textual content of
// the nodes. It makes sure that all nodes up to and including the // the nodes. It makes sure that all nodes up to and including the
// one whose text is being yielded have been 'normalized' to be just // one whose text is being yielded have been 'normalised' to be just
// <span> and <br> elements. // <span> and <br> elements.
// See the story.html file for some short remarks about the use of // See the story.html file for some short remarks about the use of
// continuation-passing style in this iterator. // continuation-passing style in this iterator.
@@ -145,7 +145,7 @@ var Editor = (function () {
// confused when the cursor is between two BRs. // confused when the cursor is between two BRs.
var afterBR = true; var afterBR = true;
// Insert a normalized node at the current point. If it is a text // Insert a normalised node at the current point. If it is a text
// node, wrap it in a <span>, and give that span a currentText // node, wrap it in a <span>, and give that span a currentText
// property -- this is used to cache the nodeValue, because // property -- this is used to cache the nodeValue, because
// directly accessing nodeValue is horribly slow on some browsers. // directly accessing nodeValue is horribly slow on some browsers.
@@ -171,7 +171,7 @@ var Editor = (function () {
// Extract the text and newlines from a DOM node, insert them into // Extract the text and newlines from a DOM node, insert them into
// the document, and yield the textual content. Used to replace // the document, and yield the textual content. Used to replace
// non-normalized nodes. // non-normalised nodes.
function writeNode(node, c, end) { function writeNode(node, c, end) {
var toYield = []; var toYield = [];
forEach(simplifyDOM(node, end), function (part) { forEach(simplifyDOM(node, end), function (part) {
@@ -180,7 +180,7 @@ var Editor = (function () {
return yield(toYield.join(""), c); return yield(toYield.join(""), c);
} }
// Check whether a node is a normalized <span> element. // Check whether a node is a normalised <span> element.
function partNode(node) { function partNode(node) {
if (node.isPart && node.childNodes.length == 1 && node.firstChild.nodeType == 3) { if (node.isPart && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {
node.currentText = node.firstChild.nodeValue; node.currentText = node.firstChild.nodeValue;
@@ -190,8 +190,8 @@ var Editor = (function () {
} }
// Handle a node. Add its successor to the continuation if there // Handle a node. Add its successor to the continuation if there
// is one, find out whether the node is normalized. If it is, // is one, find out whether the node is normalised. If it is,
// yield its content, otherwise, normalize it (writeNode will take // yield its content, otherwise, normalise it (writeNode will take
// care of yielding). // care of yielding).
function scanNode(node, c) { function scanNode(node, c) {
if (node.nextSibling) if (node.nextSibling)
@@ -1188,7 +1188,7 @@ var Editor = (function () {
}, },
// The function that does the actual highlighting/colouring (with // The function that does the actual highlighting/colouring (with
// help from the parser and the DOM normalizer). Its interface is // help from the parser and the DOM normaliser). Its interface is
// rather overcomplicated, because it is used in different // rather overcomplicated, because it is used in different
// situations: ensuring that a certain line is highlighted, or // situations: ensuring that a certain line is highlighted, or
// highlighting up to X milliseconds starting from a certain // highlighting up to X milliseconds starting from a certain
+2 -2
View File
@@ -1,6 +1,6 @@
/* Parse function for JavaScript. Makes use of the tokenizer from /* Parse function for JavaScript. Makes use of the tokenizer from
* tokenizejavascript.js. Note that your parsers do not have to be * tokenizejavascript.js. Note that your parsers do not have to be
* this complicated -- if you don't want to recognize local variables, * this complicated -- if you don't want to recognise local variables,
* in many languages it is enough to just look for braces, semicolons, * in many languages it is enough to just look for braces, semicolons,
* parentheses, etc, and know when you are inside a string or comment. * parentheses, etc, and know when you are inside a string or comment.
* *
@@ -297,7 +297,7 @@ var JSParser = Editor.Parser = (function () {
if (atomicTypes.hasOwnProperty(type)) cont(expect(":"), expression); if (atomicTypes.hasOwnProperty(type)) cont(expect(":"), expression);
} }
// Parses a comma-separated list of the things that are recognized // Parses a comma-separated list of the things that are recognised
// by the 'what' argument. // by the 'what' argument.
function commasep(what, end) { function commasep(what, end) {
function proceed(type) { function proceed(type) {
+4 -4
View File
@@ -302,7 +302,7 @@ var select = {};
} }
} }
// Used to normalize the effect of the enter key, since browsers // Used to normalise the effect of the enter key, since browsers
// do widely different things when pressing enter in designMode. // do widely different things when pressing enter in designMode.
select.insertNewlineAtCursor = function (window) { select.insertNewlineAtCursor = function (window) {
insertAtCursor(window, "<br>"); insertAtCursor(window, "<br>");
@@ -396,7 +396,7 @@ var select = {};
// We want the nodes right at the cursor, not one of their // We want the nodes right at the cursor, not one of their
// ancestors with a suitable offset. This goes down the DOM tree // ancestors with a suitable offset. This goes down the DOM tree
// until a 'leaf' is reached (or is it *up* the DOM tree?). // until a 'leaf' is reached (or is it *up* the DOM tree?).
function normalize(point) { function normalise(point) {
while (point.node.nodeType != 3 && !isBR(point.node)) { while (point.node.nodeType != 3 && !isBR(point.node)) {
var newNode = point.node.childNodes[point.offset] || point.node.nextSibling; var newNode = point.node.childNodes[point.offset] || point.node.nextSibling;
point.offset = 0; point.offset = 0;
@@ -410,8 +410,8 @@ var select = {};
} }
} }
normalize(currentSelection.start); normalise(currentSelection.start);
normalize(currentSelection.end); normalise(currentSelection.end);
}; };
select.selectMarked = function () { select.selectMarked = function () {
+2 -2
View File
@@ -91,7 +91,7 @@ var matching = {
}; };
// Standardize a few unportable event properties. // Standardize a few unportable event properties.
function normalizeEvent(event) { function normaliseEvent(event) {
if (!event.stopPropagation) { if (!event.stopPropagation) {
event.stopPropagation = function () { event.stopPropagation = function () {
this.cancelBubble = true; this.cancelBubble = true;
@@ -117,7 +117,7 @@ function normalizeEvent(event) {
// Portably register event handlers. // Portably register event handlers.
function addEventHandler(node, type, handler, removeFunc) { function addEventHandler(node, type, handler, removeFunc) {
function wrapHandler(event) { function wrapHandler(event) {
handler(normalizeEvent(event || window.event)); handler(normaliseEvent(event || window.event));
} }
if (typeof node.addEventListener == "function") { if (typeof node.addEventListener == "function") {
+4 -4
View File
@@ -80,7 +80,7 @@ if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.v
return J[G]} return J[G]}
if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)} if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}
if(L){J.setAttribute(G,""+K)} if(L){J.setAttribute(G,""+K)}
var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E} var E=!o.support.hrefnormalised&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}
if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")} if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}
return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""} return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}
G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K} G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}
@@ -120,7 +120,7 @@ return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0
if(ag==null){ag=U} if(ag==null){ag=U}
I.relative[ah](ai,ag,Q(U))}} I.relative[ah](ai,ag,Q(U))}}
if(!ai){ai=af} if(!ai){ai=af}
if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)} if(!ai){throw"Syntax error, unrecognised expression: "+(ah||Y)}
if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)} if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}
if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}} if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}
return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]} return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}
@@ -132,7 +132,7 @@ return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0
if(ah!==g){if(!ag){aa=ai} if(ah!==g){if(!ag){aa=ai}
ad=ad.replace(I.match[ab],"");if(!T){return[]} ad=ad.replace(I.match[ab],"");if(!T){return[]}
break}}} break}}}
if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}} if(ad==V){if(T==null){throw"Syntax error, unrecognised expression: "+ad}else{break}}
V=ad} V=ad}
return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()} return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}
for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){} for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}
@@ -244,7 +244,7 @@ return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0
o.ready()})()}}} o.ready()})()}}}
o.event.add(l,"load",o.ready)} o.event.add(l,"load",o.ready)}
o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return} o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}
o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){} o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefnormalised:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}
F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]} F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}
F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")} F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}
o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)} o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}
+1 -1
View File
File diff suppressed because one or more lines are too long
+6 -3
View File
@@ -1,4 +1,5 @@
var undoC, neoCMSGlobalPath, neoCMSPath, neoCMSFiles, neoCMSHTMLEdit, neoCMSFilePath, neoCMSImagePath, fileTarget, origImg, var undoC, neoCMSGlobalPath, neoCMSPath, neoCMSFiles, neoCMSHTMLEdit, neoCMSFilePath, neoCMSImagePath, fileTarget,
origImg,
bm; bm;
$(function () { $(function () {
$(window).bind('load', neocmsStart); $(window).bind('load', neocmsStart);
@@ -1165,7 +1166,8 @@ imageConstrain = function (ele) {
} }
}; };
changeSize = function (f, ele) { changeSize = function (f, ele) {
var ele = (ele) ? ele : $('.neoCMSEle', ifrDoc)[0], fval = $('#' + f).val(), fWidth = $('#neoCMSImgStatsWidth').val(), var ele = (ele) ? ele : $('.neoCMSEle', ifrDoc)[0], fval = $('#' + f).val(),
fWidth = $('#neoCMSImgStatsWidth').val(),
fHeight = $('#neoCMSImgStatsHeight').val(); fHeight = $('#neoCMSImgStatsHeight').val();
if ($('#neoCMSUploadImgClone', ifrDoc).length) ele = $('#neoCMSUploadImgClone', ifrDoc); if ($('#neoCMSUploadImgClone', ifrDoc).length) ele = $('#neoCMSUploadImgClone', ifrDoc);
var eleWidth = $(ele, ifrDoc).width(); var eleWidth = $(ele, ifrDoc).width();
@@ -1518,7 +1520,8 @@ vidBind = function () {
}) })
}; };
vidDone = function (ele) { vidDone = function (ele) {
var eleEditNum = $(ele, ifrDoc).attr('neocmsid').replace('neoCMSEditArea', ''), content = $('#neoCMSVidEmbed').val(); var eleEditNum = $(ele, ifrDoc).attr('neocmsid').replace('neoCMSEditArea', ''),
content = $('#neoCMSVidEmbed').val();
createUndo(ele); createUndo(ele);
content = $(content, ifrDoc).addClass('neocms'); content = $(content, ifrDoc).addClass('neocms');
var constring = eleHTML(content); var constring = eleHTML(content);
+34 -33
View File
@@ -1,6 +1,7 @@
<?php <?php
@session_start(); @session_start();
include_once("config.php");
if (session_id() != "") { if (session_id() != "") {
if (isset($_SESSION['neoCMSSess']) && isset($_SESSION['neoCMSUserid'])) { if (isset($_SESSION['neoCMSSess']) && isset($_SESSION['neoCMSUserid'])) {
@@ -36,46 +37,46 @@ if (session_id() != "") {
<div id="neoCMSLoginWrap" class="neoCMSLoginWrap"> <div id="neoCMSLoginWrap" class="neoCMSLoginWrap">
<h1 class="logo">neocms</h1> <h1 class="logo">neoCMS</h1>
<div id="neoCMSAppInfo" class="neoCMSAppInfo"> <div id="neoCMSAppInfo" class="neoCMSAppInfo">
<p>1.01<br/> <p><?php echo $versionInfo; ?>><br/>
Copyright <?php echo @date('Y'); ?> **NAME HERE**<br/></p> Copyright <?php echo @date('Y'); ?> <?php echo $companyName; ?>><br/></p>
<p class="neoCMSTopBorder">neoCMS is developed by **NAME HERE**.</p> <p class="neoCMSTopBorder">neoCMS is developed by Neogate Technologies.</p>
</div> </div>
<div id="neoCMSLoginCont" class="neoCMSLoginCont"> <div id="neoCMSLoginCont" class="neoCMSLoginCont">
<form id="neoCMSLoginForm" method="post" action="core/login.php" target="neoCMSLoginIframe"> <form id="neoCMSLoginForm" method="post" action="core/login.php" target="neoCMSLoginIframe">
<fieldset> <fieldset>
<legend>Login</legend> <legend>Login</legend>
<ol> <ol>
<li id="neoCMSUsername"><label>Username</label><br/> <li id="neoCMSUsername"><label>Username</label><br/>
<input class="neoCMSInput" name="neoCMSUsername" type="text" tabindex="1"/> <input class="neoCMSInput" name="neoCMSUsername" type="text" tabindex="1"/>
<p class="error">Required</p></li> <p class="error">Required</p></li>
<li id="neoCMSPassword"><label>Password</label><br/> <li id="neoCMSPassword"><label>Password</label><br/>
<input class="neoCMSInput" name="neoCMSPassword" type="password" tabindex="2"/> <input class="neoCMSInput" name="neoCMSPassword" type="password" tabindex="2"/>
<p class="error">Required</p></li> <p class="error">Required</p></li>
<li id="neoCMSEnter" class="clearfix"> <li id="neoCMSEnter" class="clearfix">
<button id="neoCMSLoginBtn" type="submit" class="neoCMSLoginBtn" tabindex="3">login <button id="neoCMSLoginBtn" type="submit" class="neoCMSLoginBtn" tabindex="3">login
</button>
<p><a id="forgotPass" href="javascript:">Forgot your password?</a></p>
<p class="error invalid"></p></li>
</ol>
<div id="forgot" class="forgotLogin clearfix">
<p>Submit your username to receive an<br/>email with your new password.</p>
<button id="neoCMSSubmitBtn" type="submit" class="neoCMSSubmitBtn" tabindex="3">submit
</button> </button>
<p><a id="forgotPass" href="javascript:">Forgot your password?</a></p> <p class="clearfix"><a id="forgotCancel" href="javascript:">Back to login</a></p>
<p class="error invalid"></p></li> <p class="message"></p>
</ol> </div>
<div id="forgot" class="forgotLogin clearfix"> </fieldset>
<p>Submit your username to receive an<br/>email with your new password.</p>
<button id="neoCMSSubmitBtn" type="submit" class="neoCMSSubmitBtn" tabindex="3">submit </form>
</button> </div>
<p class="clearfix"><a id="forgotCancel" href="javascript:">Back to login</a></p>
<p class="message"></p>
</div>
</fieldset>
</form>
</div> </div>
</div> </div>
</div>
<iframe id="neoCMSPageSrc" name="neoCMSPageSrc" marginheight="0" align="top" frameborder="0" src="../" <iframe id="neoCMSPageSrc" name="neoCMSPageSrc" marginheight="0" align="top" frameborder="0" src="../"
application="yes"></iframe> application="yes"></iframe>
+7 -7
View File
@@ -1,21 +1,21 @@
<div id="neoCMSPrompt" class="neoCMSDefPrompt neoCMSPrompt clearfix"> <div class="neoCMSDefPrompt neoCMSPrompt clearfix" id="neoCMSPrompt">
<div id="neoCMSPromptTop"> <div id="neoCMSPromptTop">
<div class="neoCMSPromptTopL"> <div class="neoCMSPromptTopL">
<div class="neoCMSPromptTopR"></div> <div class="neoCMSPromptTopR"></div>
</div> </div>
</div> </div>
<div id="neoCMSPromptContent" class="neoCMSDefContent neoCMSPromptContent"> <div class="neoCMSDefContent neoCMSPromptContent" id="neoCMSPromptContent">
<h4 id="neoCMSPromptTitle" class="neoCMSPromptTitle"></h4> <h4 class="neoCMSPromptTitle" id="neoCMSPromptTitle"></h4>
<div class="neoCMSDefAlert"> <div class="neoCMSDefAlert">
<p><em>A "definition list" is a series of terms and definitions. More than one definition may be associated <p><em>A "definition list" is a series of terms and definitions. More than one definition may be associated
with a single term.</em></p> with a single term.</em></p>
</div> </div>
<form action="javascript:return false;" method="post" name="neoCMSDlGenerator" id="neoCMSDlGenerator" <form action="javascript:return false;" class="neoCMSDlGenerator" id="neoCMSDlGenerator" method="post"
class="neoCMSDlGenerator"> name="neoCMSDlGenerator">
</form> </form>
<div class="neoCMSDefInsert neoCMSPromptInsert"> <div class="neoCMSDefInsert neoCMSPromptInsert">
<a title="Apply these changes" class="neoCMSInsertBtnDone" href="javascript:" id="neoCMSPromptBtn">done</a> <a class="neoCMSInsertBtnDone" href="javascript:" id="neoCMSPromptBtn" title="Apply these changes">done</a>
<a title="cancel" href="javascript:" id="neoCMSCancelBtn">cancel</a> <a href="javascript:" id="neoCMSCancelBtn" title="cancel">cancel</a>
</div> </div>
</div> </div>
<div id="neoCMSPromptBot"> <div id="neoCMSPromptBot">
+7 -7
View File
@@ -1,10 +1,10 @@
<div id="neoCMSEditWrap" class="neoCMSEditWrap"> <div class="neoCMSEditWrap" id="neoCMSEditWrap">
<ul id="neoCMSEditTopUl"> <ul id="neoCMSEditTopUl">
<li id="neoCMSEditDone"><a title="Apply these changes" href="javascript:">done</a></li> <li id="neoCMSEditDone"><a href="javascript:" title="Apply these changes">done</a></li>
<li id="neoCMSEditCancel"><a title="Do not apply these changes" href="javascript:">cancel</a></li> <li id="neoCMSEditCancel"><a href="javascript:" title="Do not apply these changes">cancel</a></li>
<li id="neoCMSFullscreen"><a class="fullscreen" rel="#neoCMSEditWrap" title="Maximize this window" <li id="neoCMSFullscreen"><a class="fullscreen" href="javascript:" rel="#neoCMSEditWrap"
href="javascript:">Maximize this window</a></li> title="Maximize this window">Maximize this window</a></li>
<li id="neoCMSContrast"><a title="Scroll here to change editor contrast" href="javascript:" <li id="neoCMSContrast"><a href="javascript:" id="neoCMSEditorContrast"
id="neoCMSEditorContrast"></a></li> title="Scroll here to change editor contrast"></a></li>
</ul> </ul>
</div> </div>
+2 -2
View File
@@ -1,5 +1,5 @@
<div id="neoCMSFiles" class="neoCMSFiles clearfix"> <div class="neoCMSFiles clearfix" id="neoCMSFiles">
<a id="neoCMSFClose" href="javascript:">cancel</a> <a href="javascript:" id="neoCMSFClose">cancel</a>
<h2>Loading&hellip;</h2> <h2>Loading&hellip;</h2>
<ul id="filesTab"> <ul id="filesTab">
<li class="on" id="pages"><a href="javascript:" rel="#neoCMSPagesUL">Pages</a></li> <li class="on" id="pages"><a href="javascript:" rel="#neoCMSPagesUL">Pages</a></li>
+8 -8
View File
@@ -1,12 +1,12 @@
<div id="neoCMSPrompt" class="neoCMSHtmlPrompt neoCMSPrompt clearfix"> <div class="neoCMSHtmlPrompt neoCMSPrompt clearfix" id="neoCMSPrompt">
<h4 class="neoCMSPromptTitle"><a title="Maximize this window" href="javascript:" class="fullscreen" <h4 class="neoCMSPromptTitle"><a class="fullscreen" href="javascript:" rel=".neoCMSHtmlPrompt"
rel=".neoCMSHtmlPrompt">Maximize this window</a>Edit HTML</h4> title="Maximize this window">Maximize this window</a>Edit HTML</h4>
<div class="neoCMSHtmlInsert neoCMSPromptInsert"> <div class="neoCMSHtmlInsert neoCMSPromptInsert">
<a title="Update HTML" href="javascript:" id="neoCMSPromptBtn">done</a> <a href="javascript:" id="neoCMSPromptBtn" title="Update HTML">done</a>
<a title="cancel" href="javascript:" id="neoCMSCancelBtn">cancel</a> <a href="javascript:" id="neoCMSCancelBtn" title="cancel">cancel</a>
</div> </div>
<form action="javascript:return false;" method="post" class="neoCMSHtmlEditForm"> <form action="javascript:return false;" class="neoCMSHtmlEditForm" method="post">
<textarea class="codepress html linenumbers-off" cols="1" rows="1" id="neoCMSHtmlEditAreaTA" <textarea class="codepress html linenumbers-off" class="neoCMSHtmlEditArea" cols="1" id="neoCMSHtmlEditAreaTA"
name="neoCMSHtmlEditAreaTA" class="neoCMSHtmlEditArea"></textarea> name="neoCMSHtmlEditAreaTA" rows="1"></textarea>
</form> </form>
</div> </div>
+15 -15
View File
@@ -1,24 +1,24 @@
<div id="neoCMSPrompt" class="neoCMSImgSelect neoCMSPrompt clearfix"> <div class="neoCMSImgSelect neoCMSPrompt clearfix" id="neoCMSPrompt">
<h4 id="neoCMSPromptTitle" class="neoCMSPromptTitle">Edit Image</h4> <h4 class="neoCMSPromptTitle" id="neoCMSPromptTitle">Edit Image</h4>
<div class="neoCMSImgChoose neoCMSImgChooseInline clearfix" id="neoCMSImgChoose"> <div class="neoCMSImgChoose neoCMSImgChooseInline clearfix" id="neoCMSImgChoose">
<h4>Upload A New Image</h4> <h4>Upload A New Image</h4>
<p>First select the folder you want to upload to:</p> <p>First select the folder you want to upload to:</p>
<form target="neoCMSImgUploadIframe" action="functions/upload.php?type=img" method="POST" id="neoCMSImgLoc" <form action="functions/upload.php?type=img" class="neoCMSImgLoc" enctype="multipart/form-data" id="neoCMSImgLoc"
class="neoCMSImgLoc" enctype="multipart/form-data"> method="POST" target="neoCMSImgUploadIframe">
<select id="neoCMSImgFolder" name="neoCMSImgFolder"> <select id="neoCMSImgFolder" name="neoCMSImgFolder">
<option id="neoCMSImgFolderDefault" selected="selected" class="defaultFolder" value="">Loading&hellip; <option class="defaultFolder" id="neoCMSImgFolderDefault" selected="selected" value="">Loading&hellip;
</option> </option>
</select> </select>
<p>Then, upload an image from your computer:</p> <p>Then, upload an image from your computer:</p>
<input id="neoCMSImgUpload" name="neoCMSImgUpload" class="neoCMSImgUpload" type="file"> <input class="neoCMSImgUpload" id="neoCMSImgUpload" name="neoCMSImgUpload" type="file">
</form> </form>
<form action="javascript:" method="POST" name="neoCMSImgSrc" class="neoCMSImgLoc" enctype="multipart/form-data"> <form action="javascript:" class="neoCMSImgLoc" enctype="multipart/form-data" method="POST" name="neoCMSImgSrc">
<h4 class="neoCMSImgURLTitle">Or Choose An Existing Image</h4> <h4 class="neoCMSImgURLTitle">Or Choose An Existing Image</h4>
<p>To use an image that already exists on the web, enter the URL of the image below:</p> <p>To use an image that already exists on the web, enter the URL of the image below:</p>
<div><input id="neoCMSImgAddress" name="neoCMSImgAddress" class="neoCMSImgAddress" type="text" <div><input class="neoCMSImgAddress" id="neoCMSImgAddress" name="neoCMSImgAddress" type="text"
value="http://"/><a href="javascript:" class="neoCMSFBrowse" rel="#neoCMSImgAddress" value="http://"/><a class="neoCMSFBrowse" href="javascript:" rel="#neoCMSImgAddress"
title="Link to a file on the server">browse</a></div> title="Link to a file on the server">browse</a></div>
<p><a id="neoCMSApplyBtn" class="neoCMSApplyBtn" href="javascript:">&laquo; apply</a></p> <p><a class="neoCMSApplyBtn" href="javascript:" id="neoCMSApplyBtn">&laquo; apply</a></p>
</form> </form>
</div> </div>
<ul class="neoCMSImgProperties"> <ul class="neoCMSImgProperties">
@@ -26,13 +26,13 @@
type="text"></li> type="text"></li>
<li class="clearfix"><label>Class</label><input id="neoCMSImgClass" name="neoCMSImgClass" type="text"></li> <li class="clearfix"><label>Class</label><input id="neoCMSImgClass" name="neoCMSImgClass" type="text"></li>
<li class="clearfix"><label>Link URL</label><input id="neoCMSImgLink" name="neoCMSImgLink" type="text"><a <li class="clearfix"><label>Link URL</label><input id="neoCMSImgLink" name="neoCMSImgLink" type="text"><a
href="javascript:" class="neoCMSFBrowse" rel="#neoCMSImgLink" title="Link to an image on the server">browse</a> class="neoCMSFBrowse" href="javascript:" rel="#neoCMSImgLink" title="Link to an image on the server">browse</a>
</li> </li>
<li class="neoCMSImgRel disabled clearfix"><label>Link Rel</label><input id="neoCMSImgRel" name="neoCMSImgRel" <li class="neoCMSImgRel disabled clearfix"><label>Link Rel</label><input disabled="disabled" id="neoCMSImgRel"
type="text" disabled="disabled"></li> name="neoCMSImgRel" type="text"></li>
</ul> </ul>
<div class="neoCMSImgInsert neoCMSPromptInsert"> <div class="neoCMSImgInsert neoCMSPromptInsert">
<a title="Apply these changes" href="javascript:" id="neoCMSPromptBtn">done</a> <a href="javascript:" id="neoCMSPromptBtn" title="Apply these changes">done</a>
<a id="neoCMSPromptCancel" title="cancel" href="javascript:">cancel</a> <a href="javascript:" id="neoCMSPromptCancel" title="cancel">cancel</a>
</div> </div>
</div> </div>
+6 -6
View File
@@ -1,17 +1,17 @@
<div id="neoCMSPrompt" class="neoCMSLinkPrompt neoCMSPrompt clearfix"> <div class="neoCMSLinkPrompt neoCMSPrompt clearfix" id="neoCMSPrompt">
<h4 id="neoCMSPromptTitle" class="neoCMSPromptTitle">Edit Link</h4> <h4 class="neoCMSPromptTitle" id="neoCMSPromptTitle">Edit Link</h4>
<form action="#" method="post" name="neoCMSLinkProperties" id="neoCMSLinkProperties" class="neoCMSLinkProperties"> <form action="#" class="neoCMSLinkProperties" id="neoCMSLinkProperties" method="post" name="neoCMSLinkProperties">
<ul> <ul>
<li><label>Link URL</label><input id="neoCMSLinkURL" name="neoCMSLinkURL" type="text"> <li><label>Link URL</label><input id="neoCMSLinkURL" name="neoCMSLinkURL" type="text">
<a href="javascript:" class="neoCMSFBrowse" rel="#neoCMSLinkURL" title="Link to a file on the server">browse</a> <a class="neoCMSFBrowse" href="javascript:" rel="#neoCMSLinkURL" title="Link to a file on the server">browse</a>
</li> </li>
<li class="neoCMSLinkID"><label>ID</label><input id="neoCMSLinkID" name="neoCMSLinkID" type="text"></li> <li class="neoCMSLinkID"><label>ID</label><input id="neoCMSLinkID" name="neoCMSLinkID" type="text"></li>
<li><label>Class</label><input id="neoCMSLinkClass" name="neoCMSLinkClass" type="text"></li> <li><label>Class</label><input id="neoCMSLinkClass" name="neoCMSLinkClass" type="text"></li>
<li><label>Title</label><input id="neoCMSLinkTitle" name="neoCMSLinkTitle" type="text"></li> <li><label>Title</label><input id="neoCMSLinkTitle" name="neoCMSLinkTitle" type="text"></li>
<li><label>Rel</label><input id="neoCMSLinkRel" name="neoCMSLinkRel" type="text"></li> <li><label>Rel</label><input id="neoCMSLinkRel" name="neoCMSLinkRel" type="text"></li>
<li class="neoCMSLinkInsert neoCMSPromptInsert"> <li class="neoCMSLinkInsert neoCMSPromptInsert">
<a title="Create a link from the selection" href="javascript:" id="neoCMSPromptBtn">done</a> <a href="javascript:" id="neoCMSPromptBtn" title="Create a link from the selection">done</a>
<a title="cancel" href="javascript:" id="neoCMSCancelBtn">cancel</a> <a href="javascript:" id="neoCMSCancelBtn" title="cancel">cancel</a>
</li> </li>
</ul> </ul>
</form> </form>
+4 -4
View File
@@ -1,8 +1,8 @@
<div id="neoCMSPrompt" class="neoCMSPrompt neoCMSSimplePrompt clearfix"> <div class="neoCMSPrompt neoCMSSimplePrompt clearfix" id="neoCMSPrompt">
<h4 class="neoCMSPromptTitle"></h4> <h4 class="neoCMSPromptTitle"></h4>
<p></p> <p></p>
<div id="neoCMSPromptInsert" class="neoCMSPromptInsert clearfix"> <div class="neoCMSPromptInsert clearfix" id="neoCMSPromptInsert">
<a title="" href="javascript:" id="neoCMSPromptBtn"></a> <a href="javascript:" id="neoCMSPromptBtn" title=""></a>
<a title="cancel" href="javascript:" id="neoCMSCancelBtn">cancel</a> <a href="javascript:" id="neoCMSCancelBtn" title="cancel">cancel</a>
</div> </div>
</div> </div>
+14 -14
View File
@@ -1,5 +1,5 @@
<div id="neoCMSPrompt" class="neoCMSTables neoCMSPrompt clearfix"> <div class="neoCMSTables neoCMSPrompt clearfix" id="neoCMSPrompt">
<h4 id="neoCMSPromptTitle" class="neoCMSPromptTitle">Insert Table</h4> <h4 class="neoCMSPromptTitle" id="neoCMSPromptTitle">Insert Table</h4>
<div id="neoCMSTablePrev"> <div id="neoCMSTablePrev">
<table> <table>
<tbody> <tbody>
@@ -18,27 +18,27 @@
<h4>Table Options</h4> <h4>Table Options</h4>
<form action="javascript:" method="post"> <form action="javascript:" method="post">
<ul id="tableRowsCols"> <ul id="tableRowsCols">
<li class="clearfix"><label>Rows</label><input id="neoCMSTableRows" name="neoCMSTableID" type="text" <li class="clearfix"><label>Rows</label><input id="neoCMSTableRows" name="neoCMSTableID" tabindex="1"
value="2" tabindex="1"/></li> type="text" value="2"/></li>
<li class="clearfix"><label>Columns</label><input id="neoCMSTableCols" name="neoCMSTableCols" <li class="clearfix"><label>Columns</label><input id="neoCMSTableCols" name="neoCMSTableCols"
type="text" value="2" tabindex="2"/></li> tabindex="2" type="text" value="2"/></li>
</ul> </ul>
<ul id="tableHeadFoot"> <ul id="tableHeadFoot">
<li class="clearfix"><input id="neoCMSTableThead" name="neoCMSTableThead" type="checkbox" value="Y" <li class="clearfix"><input id="neoCMSTableThead" name="neoCMSTableThead" tabindex="3" type="checkbox"
tabindex="3"/><label>Add Header</label></li> value="Y"/><label>Add Header</label></li>
<li class="clearfix"><input id="neoCMSTableTfoot" name="neoCMSTableTfoot" type="checkbox" value="Y" <li class="clearfix"><input id="neoCMSTableTfoot" name="neoCMSTableTfoot" tabindex="4" type="checkbox"
tabindex="4"/><label>Add Footer</label></li> value="Y"/><label>Add Footer</label></li>
</ul> </ul>
<ul id="tableAttrs"> <ul id="tableAttrs">
<li class="clearfix"><label>Table ID</label><input id="neoCMSTableID" name="neoCMSTableID" type="text" <li class="clearfix"><label>Table ID</label><input id="neoCMSTableID" name="neoCMSTableID" tabindex="5"
tabindex="5"/></li> type="text"/></li>
<li class="clearfix"><label>Class</label><input id="neoCMSTableClass" name="neoCMSTableClass" <li class="clearfix"><label>Class</label><input id="neoCMSTableClass" name="neoCMSTableClass"
type="text" tabindex="6"/></li> tabindex="6" type="text"/></li>
</ul> </ul>
</form> </form>
</div> </div>
<div class="neoCMSVidInsert neoCMSPromptInsert"> <div class="neoCMSVidInsert neoCMSPromptInsert">
<a title="Insert this table" href="javascript:" id="neoCMSPromptBtn">insert</a> <a href="javascript:" id="neoCMSPromptBtn" title="Insert this table">insert</a>
<a id="neoCMSPromptCancel" title="cancel" href="javascript:">cancel</a> <a href="javascript:" id="neoCMSPromptCancel" title="cancel">cancel</a>
</div> </div>
</div> </div>
+8 -8
View File
@@ -1,23 +1,23 @@
<div id="neoCMSPrompt" class="neoCMSUploadContent neoCMSPrompt clearfix"> <div class="neoCMSUploadContent neoCMSPrompt clearfix" id="neoCMSPrompt">
<h4 id="neoCMSPromptTitle" class="neoCMSPromptTitle">Upload A File</h4> <h4 class="neoCMSPromptTitle" id="neoCMSPromptTitle">Upload A File</h4>
<p id="neoCMSUploadTxt">To upload a file, first select the folder you want to upload to:</p> <p id="neoCMSUploadTxt">To upload a file, first select the folder you want to upload to:</p>
<form target="neoCMSUploadIframe" action="functions/upload.php" method="POST" name="neoCMSUploadForm" <form action="functions/upload.php" class="neoCMSUploadForm neoCMSImgChooseInline" enctype="multipart/form-data" id="neoCMSUploadForm"
id="neoCMSUploadForm" class="neoCMSUploadForm neoCMSImgChooseInline" enctype="multipart/form-data"> method="POST" name="neoCMSUploadForm" target="neoCMSUploadIframe">
<ul> <ul>
<li> <li>
<select id="neoCMSFolder" name="neoCMSFolder"> <select id="neoCMSFolder" name="neoCMSFolder">
<option id="neoCMSFolderDefault" selected="selected" class="defaultFolder" value=""> <option class="defaultFolder" id="neoCMSFolderDefault" selected="selected" value="">
Loading&hellip; Loading&hellip;
</option> </option>
</select> </select>
</li> </li>
<li> <li>
<p>Then, select the file from your computer:</p> <p>Then, select the file from your computer:</p>
<input id="neoCMSUpload" name="neoCMSUpload" class="neoCMSUpload" type="file"/> <input class="neoCMSUpload" id="neoCMSUpload" name="neoCMSUpload" type="file"/>
</li> </li>
<li class="neoCMSPromptInsert"> <li class="neoCMSPromptInsert">
<a title="Finish Uploading" href="javascript:" id="neoCMSPromptBtn">done</a> <a href="javascript:" id="neoCMSPromptBtn" title="Finish Uploading">done</a>
<a title="cancel" href="javascript:" id="neoCMSCancelBtn">cancel</a> <a href="javascript:" id="neoCMSCancelBtn" title="cancel">cancel</a>
</li> </li>
</ul> </ul>
</form> </form>
+7 -7
View File
@@ -1,15 +1,15 @@
<div id="neoCMSPrompt" class="neoCMSVidSelect neoCMSPrompt clearfix"> <div class="neoCMSVidSelect neoCMSPrompt clearfix" id="neoCMSPrompt">
<h4 id="neoCMSPromptTitle" class="neoCMSPromptTitle">Insert Video</h4> <h4 class="neoCMSPromptTitle" id="neoCMSPromptTitle">Insert Video</h4>
<div class="neoCMSVidChoose neoCMSVidChooseInline clearfix" id="neoCMSVidChoose"> <div class="neoCMSVidChoose neoCMSVidChooseInline clearfix" id="neoCMSVidChoose">
<h4 id="neoCMSVidSub">Video Embed</h4> <h4 id="neoCMSVidSub">Video Embed</h4>
<p>Edit the embed code, or paste here to replace with a new video.</p> <p>Edit the embed code, or paste here to replace with a new video.</p>
<form action="javascript:" method="POST" id="neoCMSVidLoc" class="neoCMSVidLoc" enctype="multipart/form-data"> <form action="javascript:" class="neoCMSVidLoc" enctype="multipart/form-data" id="neoCMSVidLoc" method="POST">
<textarea id="neoCMSVidEmbed" rows="12" name="neoCMSVidEmbed" class="neoCMSVidEmbed"></textarea> <textarea class="neoCMSVidEmbed" id="neoCMSVidEmbed" name="neoCMSVidEmbed" rows="12"></textarea>
<a id="neoCMSApplyBtn" class="neoCMSApplyBtn" href="javascript:">&laquo; apply</a> <a class="neoCMSApplyBtn" href="javascript:" id="neoCMSApplyBtn">&laquo; apply</a>
</form> </form>
</div> </div>
<div class="neoCMSVidInsert neoCMSPromptInsert"> <div class="neoCMSVidInsert neoCMSPromptInsert">
<a title="Apply these changes" href="javascript:" id="neoCMSPromptBtn">done</a> <a href="javascript:" id="neoCMSPromptBtn" title="Apply these changes">done</a>
<a id="neoCMSPromptCancel" title="cancel" href="javascript:">cancel</a> <a href="javascript:" id="neoCMSPromptCancel" title="cancel">cancel</a>
</div> </div>
</div> </div>
+131 -118
View File
@@ -1,127 +1,140 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Default page</title> <title>Default page</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta content="Default page" name="description"> <meta content="Default page" name="description">
<meta content="width=device-width, initial-scale=1" name="viewport"> <meta content="width=device-width, initial-scale=1" name="viewport">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link href="https://fonts.googleapis.com" rel="preconnect">
<link href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap" rel="stylesheet">
<style> <style>
body { body {
margin: 0px; margin: 0px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
min-height: 675px; min-height: 675px;
background-color: #F4F5FF; background-color: #F4F5FF;
} }
p {
width: 100%; p {
left: 0px; width: 100%;
font-size: 16px; left: 0px;
font-family: 'DM Sans', sans-serif; font-size: 16px;
font-weight: 400; font-family: 'DM Sans', sans-serif;
letter-spacing: 0px; font-weight: 400;
text-align: center; letter-spacing: 0px;
vertical-align: top; text-align: center;
max-width: 550px; vertical-align: top;
color: #727586; max-width: 550px;
margin: 0px; color: #727586;
} margin: 0px;
a:hover { }
cursor: pointer;
color: #673DE6; a:hover {
text-decoration: underline; cursor: pointer;
} color: #673DE6;
h1 { text-decoration: underline;
font-family: 'DM Sans', sans-serif; }
font-size: 24px;
font-weight: 700; h1 {
letter-spacing: 0px; font-family: 'DM Sans', sans-serif;
text-align: center; font-size: 24px;
margin: 8px; font-weight: 700;
} letter-spacing: 0px;
.content { text-align: center;
display: flex; margin: 8px;
flex-direction: column; }
align-items: center;
justify-content: center; .content {
width: 100%; display: flex;
height: 100%; flex-direction: column;
} align-items: center;
.ic-launch { justify-content: center;
margin-left: 10.5px; width: 100%;
width: 21px !important; height: 100%;
height: 20px !important; }
.ic-launch {
margin-left: 10.5px;
width: 21px !important;
height: 20px !important;
}
.link-container {
margin-top: 32px;
margin-bottom: 32px;
}
.link {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
font-family: 'DM Sans', sans-serif;
font-style: normal;
font-weight: 700;
font-size: 14px;
color: #673DE6;
margin-top: 8px;
text-decoration: none;
}
.main-image {
width: 100%;
max-width: 650px;
max-height: 406px;
height: auto;
}
.navigation {
width: 100%;
height: 72px;
display: flex;
margin: 0;
padding: 0;
flex-direction: row;
align-items: center;
justify-content: center;
background-color: #36344D;
}
@media screen and (max-width: 580px) and (min-width: 0px) {
h1, p, .link-container {
width: 80%;
} }
}
@media screen and (min-width: 650px) and (min-height: 0px) and (max-height: 750px) {
.link-container { .link-container {
margin-top: 32px; margin-top: 12px;
margin-bottom: 32px;
} }
.link {
display: flex; h1 {
flex-direction: row; margin-top: 0px;
align-items: center; margin-bottom: 0px;
justify-content: center;
font-family: 'DM Sans', sans-serif;
font-style: normal;
font-weight: 700;
font-size: 14px;
color: #673DE6;
margin-top: 8px;
text-decoration: none;
} }
.main-image { }
width: 100%;
max-width: 650px; .navigation {
max-height: 406px; color: white;
height: auto; }
} </style>
.navigation { </head>
width: 100%; <body>
height: 72px; <nav class="navigation neocms">
display: flex; <h1>neoCMS</h1>
margin: 0; </nav>
padding: 0; <div class="content neocms">
flex-direction: row; <h1>You Are All Set to Go!</h1>
align-items: center; <p>All you need to do is add the class <em>neocms</em> to any div which contains editable content!</p>
justify-content: center; <p> Update cms/core.php to manage credentials</p>
background-color: #36344D;
}
@media screen and (max-width: 580px) and (min-width: 0px) {
h1, p, .link-container {
width: 80%;
}
}
@media screen and (min-width: 650px) and (min-height: 0px) and (max-height: 750px) {
.link-container {
margin-top: 12px;
}
h1 {
margin-top: 0px;
margin-bottom: 0px;
}
}
.navigation {
color: white;
}
</style>
</head>
<body>
<nav class="navigation neocms">
<h1>neoCMS</h1>
</nav>
<div class="content neocms">
<h1>You Are All Set to Go!</h1>
<p>All you need to do is add the class <em>neocms</em> to any div which contains editable content!</p>
<p> Update cms/config.php to manage credentials</p>
</div> </div>
</body> </body>
</html> </html>