- Aug 09, 2006
-
-
deuce authored
files to convert another xjs file to ssjs and load() it.
-
deuce authored
-
deuce authored
-
deuce authored
more usefull. Only use \n to terminate lines... Win32 uses textmode so it already "fixes" that.
-
deuce authored
-
deuce authored
Allow <?xjs to be at the end of a line without a trailing space. Allow short tags ala PHP... ie: <? some code here ?>
-
deuce authored
1) If the *.xjs.ssjs file exists and is newer than the *.xjs file, simply load()s the *.xjs.ssjs file. 2) Otherwise, generates the *.xjs.ssjs file from the *.xjs file as follows: Anything inside the tag <?xjs ... ?> is SSJS. A simple welcome.xjs page would then be as follows: <html> <head> <title><?xjs write(system.name)?></title> </head> <body> Your SysOp <?xjs write(system.operator)?> would like to welcome you to <?xjs write(system.name) ?> </body> </html> This is converted to welcome.xjs.ssjs as follows: writeln('<html>'); writeln('<head>'); write('<title>'); write(system.name); writeln('</title>'); writeln('</head>'); writeln('<body>'); write('Your SysOp '); write(system.operator); writeln(' would like to welcome you to'); write(''); write(system.name) ; writeln('</body>'); writeln('</html>'); Now all you PHP folks out there can get comfortable writing XJS scripts if I understand how PHP embedding works.
-
- Aug 08, 2006
- Aug 07, 2006
- Aug 04, 2006
- Aug 03, 2006
-
-
rswindell authored
Cyberdine) - increased to 10 digits.
-
- Aug 02, 2006
- Jul 24, 2006
-
-
cyan authored
-
- Jul 23, 2006
- Jul 22, 2006
-
-
cyan authored
Also, the URL in the previous commit was supposed to be this: http://www.andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/
-
cyan authored
the built-in JS "Array" object. This is because the Array object offers no facilities for associative arrays. Full details here: Thanks to Deuce for pointing this one out. This fixes many minor quirks, such as "undefined" coming up in STATS M and soforth, since a general scan of the array object would also pick up on properties of the Array object. * More general code cleanup, especially in ircd_server.js
-
cyan authored
-
cyan authored
-
cyan authored
faster by using system.timer to measure CPU usage over 10,000 loops: test 1 (Cyan's Method): 5.031109094619751 test 2 (Deuce's Method): 0.26767897605895996
-
cyan authored
-
- Jul 21, 2006
- Jul 20, 2006
-
-
deuce authored
readAll() will *only* read 512 bytes at a time ever.
-