paulscriptsmods-checkin Mailing List for paulscriptsmods
Status: Beta
Brought to you by:
paulsohier
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(225) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(93) |
Feb
(107) |
Mar
(41) |
Apr
(58) |
May
(866) |
Jun
(587) |
Jul
(56) |
Aug
|
Sep
(30) |
Oct
|
Nov
(124) |
Dec
(6) |
2007 |
Jan
(76) |
Feb
(50) |
Mar
(10) |
Apr
(47) |
May
(61) |
Jun
(34) |
Jul
(6) |
Aug
(9) |
Sep
(24) |
Oct
(8) |
Nov
|
Dec
(2) |
From: Paul S. <pau...@us...> - 2007-12-02 11:21:23
|
Update of /cvsroot/paulscriptsmods/pg3/root/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27600/root/includes Modified Files: functions_guestbook.php Log Message: Editors... Index: functions_guestbook.php =================================================================== RCS file: /cvsroot/paulscriptsmods/pg3/root/includes/functions_guestbook.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_guestbook.php 30 Sep 2007 13:02:58 -0000 1.1 --- functions_guestbook.php 2 Dec 2007 11:17:26 -0000 1.2 *************** *** 28,74 **** function display() { ! global $auth; $mode = request_var('gb', ''); switch ($mode) { ! case 'post': ! if ($auth->acl_get('u_gb_post')) ! { ! $this->post(); } else { ! trigger_error('NO_PERMISSION'); } ! break; ! case 'delete': ! if ($auth->acl_get('u_gb_delete')) { ! ! /** ! * @TODO: Use confirm box? ! */ ! $id = request_var('id', 0); ! ! if (!$id) { ! trigger_error('NO_POST'); ! } ! ! $sql = 'DELETE FROM ' . PROFILE_GUESTBOOK_TABLE . ' WHERE guestbook_id = ' . $id; ! $db->sql_query($sql); ! ! trigger_error('MESSAGE_DELETED');// Add return? ! } ! else ! { ! trigger_error('NO_PERMISSION'); } ! break; ! default: ! $this->view(); } } --- 28,73 ---- function display() { ! global $auth; $mode = request_var('gb', ''); switch ($mode) { ! case 'post': ! if ($auth->acl_get('u_gb_post')) ! { ! $this->post(); } else { ! trigger_error('NO_PERMISSION'); } ! break; ! case 'delete': ! if ($auth->acl_get('u_gb_delete')) { ! /** ! * @TODO: Use confirm box? ! */ ! $id = request_var('id', 0); ! ! if (!$id) { ! trigger_error('NO_POST'); ! } ! ! $sql = 'DELETE FROM ' . PROFILE_GUESTBOOK_TABLE . ' WHERE guestbook_id = ' . $id; ! $db->sql_query($sql); ! ! trigger_error('MESSAGE_DELETED');// Add return? } ! else ! { ! trigger_error('NO_PERMISSION'); ! } ! break; ! default: ! $this->view(); } } *************** *** 76,88 **** function view() { ! global $auth, $db, $user; ! ! // Member is a variable in memberlist.php that contains userdata from the current user. ! // If this var isnt present we cant run the guestbook really. ! global $member; ! if (!$member) ! { ! return; } } --- 75,87 ---- function view() { ! global $auth, $db, $user; ! // Member is a variable in memberlist.php that contains userdata from the current user. ! // If this var isnt present we cant run the guestbook really. ! global $member; ! ! if (!$member) ! { ! return; } } |
From: Paul S. <pau...@us...> - 2007-12-02 11:21:10
|
Update of /cvsroot/paulscriptsmods/pg3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27600 Modified Files: install.xml Log Message: Editors... Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/pg3/install.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** install.xml 30 Sep 2007 12:42:34 -0000 1.1 --- install.xml 2 Dec 2007 11:17:26 -0000 1.2 *************** *** 27,31 **** <time>424</time> <target-version> ! <target-primary>3.0.RC5</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> --- 27,31 ---- <time>424</time> <target-version> ! <target-primary>3.0.RC7</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> *************** *** 65,69 **** <edit> <find><![CDATA[ ]]></find> ! <action type="before-add"><![CDATA[ $user->add_lang('mods/shout');]]></action> </edit> --- 65,69 ---- <edit> <find><![CDATA[ ]]></find> ! <action type="before-add"><![CDATA[ $user->add_lang('mods/guestbook');]]></action> </edit> |
From: Paul S. <pau...@us...> - 2007-10-19 21:00:50
|
Update of /cvsroot/paulscriptsmods/warnban In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24599 Modified Files: install.xml Log Message: finaly fixed. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/warnban/install.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** install.xml 22 May 2007 12:11:46 -0000 1.5 --- install.xml 19 Oct 2007 21:00:50 -0000 1.6 *************** *** 2,15 **** <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/--> ! <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> ! <title lang="en-gb">Ban users by x warnings</title> ! <description lang="en-gb">Ban a user by x warnings.</description> <author-group> <author> <realname>Paul Sohier</realname> ! <email>pa...@ph...</email> ! <username>paul999</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> --- 2,15 ---- <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/--> ! <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> ! <title lang="en">Ban users by x warnings</title> ! <description lang="en">Ban a user by x warnings.</description> <author-group> <author> <realname>Paul Sohier</realname> ! <email>mo...@pa...</email> ! <username>paul</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> *************** *** 17,23 **** </author-group> <mod-version> ! <major>0</major> <minor>0</minor> ! <revision>1</revision> </mod-version> <installation> --- 17,23 ---- </author-group> <mod-version> ! <major>1</major> <minor>0</minor> ! <revision>0</revision> </mod-version> <installation> *************** *** 25,29 **** <time>354</time> <target-version> ! <target-primary>3.0.RC1</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> --- 25,29 ---- <time>354</time> <target-version> ! <target-primary>3.0.RC7</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> *************** *** 38,54 **** <revision>1</revision> </rev-version> ! <changelog lang="en-GB"> <change>First release.</change> </changelog> </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> <open src="includes/acp/acp_board.php"> <edit> <find><![CDATA['warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),]]></find> <action type="after-add"><![CDATA[ 'warnings_ban' => array('lang' => 'WARNINGS_BAN', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['WARNINGS']), ! 'warnings_ban_expire' => array('lang' => 'WARNINGS_BAN_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),]]></action> </edit> </open> --- 38,72 ---- <revision>1</revision> </rev-version> ! <changelog lang="en"> <change>First release.</change> </changelog> </entry> + + <entry> + <date>2007-10-19</date> + <rev-version> + <major>1</major> + <minor>0</minor> + <revision>0</revision> + </rev-version> + <changelog lang="en"> + <change>Fixed wrong lang entry</change> + <change>Fixed sql error</change> + <change>updated for RC7</change> + </changelog> + </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> + <sql> + INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_ban', 3); + INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_ban_expire', 1440); + </sql> <open src="includes/acp/acp_board.php"> <edit> <find><![CDATA['warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),]]></find> <action type="after-add"><![CDATA[ 'warnings_ban' => array('lang' => 'WARNINGS_BAN', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['WARNINGS']), ! 'warnings_ban_expire' => array('lang' => 'WARNINGS_BAN_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['MINUTES']),]]></action> </edit> </open> *************** *** 65,69 **** include("{$phpbb_root_path}includes/functions_user.$phpEx"); } ! user_ban('user', $user_row['username'], $config['warnings_ban_expire'], false, false, $user->lang['AUTO_WARN_BAN']); }]]></action> </edit> --- 83,88 ---- include("{$phpbb_root_path}includes/functions_user.$phpEx"); } ! ! user_ban('user', array($user_row['username']), $config['warnings_ban_expire'], false, 0, $user->lang['AUTO_WARN_BAN']); }]]></action> </edit> |
From: Paul S. <pau...@us...> - 2007-10-19 20:27:02
|
Update of /cvsroot/paulscriptsmods/warnban In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12073 Modified Files: modx.prosilver.en.xsl Log Message: updated stylesheet. Index: modx.prosilver.en.xsl =================================================================== RCS file: /cvsroot/paulscriptsmods/warnban/modx.prosilver.en.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** modx.prosilver.en.xsl 11 May 2007 13:01:07 -0000 1.1 --- modx.prosilver.en.xsl 19 Oct 2007 20:27:04 -0000 1.2 *************** *** 1,9 **** ! <?xml version="1.0" encoding="UTF-8" ?> ! <!-- MODX by the phpBB MOD Team XSL file v1.0 copyright 2005-2007 the phpBB MOD Team. $Id$ --> <!DOCTYPE xsl:stylesheet[ <!ENTITY nbsp " "> ]> ! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:mod="http://www.phpbb.com/mods/xml/modx-1.0.xsd"> <xsl:output method="html" omit-xml-declaration="no" indent="yes" /> <xsl:variable name="title" select="mod:mod/mod:header/mod:title" /> --- 1,9 ---- [...1074 lines suppressed...] </xsl:when> <xsl:otherwise> --- 1843,1849 ---- <br /> <xsl:call-template name="add-line-breaks"> <xsl:with-param name="string" select="substring-after($string, '
')" /> </xsl:call-template> + </xsl:when> <xsl:otherwise> *************** *** 1799,1801 **** </xsl:choose> </xsl:template> ! </xsl:stylesheet> --- 1852,1854 ---- </xsl:choose> </xsl:template> ! </xsl:stylesheet> \ No newline at end of file |
From: Paul S. <pau...@us...> - 2007-10-03 20:56:03
|
Update of /cvsroot/paulscriptsmods/ajax_shout/contrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13106/contrib Added Files: Tag: phpbb3_ver update_0-0-5_or_0-0-6_to_0-0-7.xml Log Message: Commiting the last things. Need be tested before release. --- NEW FILE: update_0-0-5_or_0-0-6_to_0-0-7.xml --- <?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="../modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/--> <!-- $Id: update_0-0-5_or_0-0-6_to_0-0-7.xml,v 1.1.2.1 2007/10/03 20:56:05 paulsohier Exp $ --> <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> <title lang="en">Update Ajax ShoutBox</title> <description lang="en">Update for ajax shoutbox</description> <author-notes lang="en">This changes are required for the ajax shoutbox version 0.0.5 or 0.0.6 to 0.0.7. </author-notes> <author-group> <author> <realname>Paul Sohier</realname> <email>mo...@pa...</email> <username>paul</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> </author> </author-group> <mod-version> <major>0</major> <minor>0</minor> <revision>1</revision> </mod-version> <installation> <level>easy</level> <time>300</time> <target-version> <target-primary>3.0.RC5</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> </target-version> </installation> <history> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> <copy> <file from="root/ajax.php" to="ajax.php" /> <file from="root/bbcode.js" to="bbcode.js" /> <file from="root/js.php" to="js.php" /> <file from="root/static.js" to="static.js" /> <file from="root/language/en/mods/shout.php" to="language/en/mods/shout.php" /> </copy> <open src="includes/functions.php"> <edit> <find><![CDATA[ 'U_SHOUT' => append_sid("{$phpbb_root_path}ajax.$phpEx", 'm=js'), 'U_SHOUT_BBCODE' => append_sid("{$phpbb_root_path}bbcode.js"),]]></find> <action type="replace-with"><![CDATA[ 'U_SHOUT' => append_sid("{$phpbb_root_path}js.$phpEx"), 'U_SHOUT_BBCODE' => append_sid("{$phpbb_root_path}bbcode.js"), 'U_SHOUT_STATIC' => append_sid("{$phpbb_root_path}static.js"),]]></action> </edit> </open> <open src="styles/prosilver/template/overall_header.html"> <edit> <find><![CDATA[<script type="text/javascript" src="{U_SHOUT}"></script>]]></find> <action type="before-add"><![CDATA[<script type="text/javascript" src="{U_SHOUT_STATIC}"></script>]]></action> </edit> </open> <open src="styles/subsilver2/template/overall_header.html"> <edit> <find><![CDATA[<script type="text/javascript" src="{U_SHOUT}"></script>]]></find> <action type="before-add"><![CDATA[<script type="text/javascript" src="{U_SHOUT_STATIC}"></script>]]></action> </edit> </open> </action-group> </mod> |
From: Paul S. <pau...@us...> - 2007-10-03 20:56:03
|
Update of /cvsroot/paulscriptsmods/ajax_shout/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13106/templates Modified Files: Tag: phpbb3_ver prosilver.xml subsilver2.xml Log Message: Commiting the last things. Need be tested before release. Index: prosilver.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/templates/Attic/prosilver.xml,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** prosilver.xml 23 Sep 2007 21:07:19 -0000 1.1.2.7 --- prosilver.xml 3 Oct 2007 20:56:05 -0000 1.1.2.8 *************** *** 23,27 **** <major>0</major> <minor>0</minor> ! <revision>6</revision> </mod-version> <installation> --- 23,27 ---- <major>0</major> <minor>0</minor> ! <revision>7</revision> </mod-version> <installation> *************** *** 67,70 **** --- 67,71 ---- <find><![CDATA[</head>]]></find> <action type="before-add"><![CDATA[ + <script type="text/javascript" src="{U_SHOUT_STATIC}"></script> <script type="text/javascript" src="{U_SHOUT_BBCODE}"></script> <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> Index: subsilver2.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/templates/Attic/subsilver2.xml,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** subsilver2.xml 23 Sep 2007 21:07:19 -0000 1.1.2.6 --- subsilver2.xml 3 Oct 2007 20:56:05 -0000 1.1.2.7 *************** *** 23,27 **** <major>0</major> <minor>0</minor> ! <revision>6</revision> </mod-version> <installation> --- 23,27 ---- <major>0</major> <minor>0</minor> ! <revision>7</revision> </mod-version> <installation> *************** *** 70,73 **** --- 70,74 ---- <find><![CDATA[</head>]]></find> <action type="before-add"><![CDATA[ + <script type="text/javascript" src="{U_SHOUT_STATIC}"></script> <script type="text/javascript" src="{U_SHOUT_BBCODE}"></script> <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> |
From: Paul S. <pau...@us...> - 2007-10-03 20:56:02
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13106/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: Commiting the last things. Need be tested before release. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.35 retrieving revision 1.21.2.36 diff -C2 -d -r1.21.2.35 -r1.21.2.36 *** ajax.php 3 Oct 2007 20:06:15 -0000 1.21.2.35 --- ajax.php 3 Oct 2007 20:56:05 -0000 1.21.2.36 *************** *** 13,17 **** */ define('IN_PHPBB', true); - define('AJAX_DEBUG', false); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; --- 13,16 ---- |
From: Paul S. <pau...@us...> - 2007-10-03 20:56:02
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13106 Modified Files: Tag: phpbb3_ver install.xml Log Message: Commiting the last things. Need be tested before release. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.31 retrieving revision 1.19.2.32 diff -C2 -d -r1.19.2.31 -r1.19.2.32 *** install.xml 23 Sep 2007 21:07:19 -0000 1.19.2.31 --- install.xml 3 Oct 2007 20:56:05 -0000 1.19.2.32 *************** *** 10,14 **** <author-notes lang="en">This mod requires for the user visiting the forum that he has eneblad JavaScript. Without JavaScript, the shoutbox isn't displayed. ! You can place this shoutbox eveywhere on the forum, the only thing you has to do is editing the correct html file, with the changes that are normally done for index_body.html.</author-notes> <author-group> <author> --- 10,15 ---- <author-notes lang="en">This mod requires for the user visiting the forum that he has eneblad JavaScript. Without JavaScript, the shoutbox isn't displayed. ! You can place this shoutbox eveywhere on the forum, the only thing you has to do is editing the correct html file, with the changes that are normally done for index_body.html. ! If you place it somewhere else as index_body.html you need also to move the call to $user->add_lang in index.php to the correct page.</author-notes> <author-group> <author> *************** *** 23,31 **** <major>0</major> <minor>0</minor> ! <revision>6</revision> </mod-version> <installation> <level>easy</level> ! <time>424</time> <target-version> <target-primary>3.0.RC5</target-primary> --- 24,32 ---- <major>0</major> <minor>0</minor> ! <revision>7</revision> </mod-version> <installation> <level>easy</level> ! <time>500</time> <target-version> <target-primary>3.0.RC5</target-primary> *************** *** 128,135 **** --- 129,151 ---- </rev-version> <changelog lang="en"> + <change>NOTE: This version isnt publicly released!</change> <change>Fixed a mistake with the new cdata function.</change> <change>A lot of updates for submissions. Mostly code guideline thingies</change> </changelog> </entry> + <entry> + <date>xxxx-xx-xx</date> + <rev-version> + <major>0</major> + <minor>0</minor> + <revision>7</revision> + </rev-version> + <changelog lang="en"> + <change>Fixed a problem with UTF8 data.</change> + <change>Moved static javascript to static.js</change> + <change>Moved dynamic javascript to js.php. This both change means that you need to edit 2 files when upgrading, see contrib dir for more info!</change> + <change>Moved loading of language to index.php instead including it everywhere.</change> + </changelog> + </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> *************** *** 150,158 **** <copy> <file from="root/ajax.php" to="ajax.php" /> - <file from="root/language/en/mods/shout.php" to="language/en/mods/shout.php" /> <file from="root/bbcode.js" to="bbcode.js" /> ! ! </copy> <open src="includes/constants.php"> <edit> --- 166,180 ---- <copy> <file from="root/ajax.php" to="ajax.php" /> <file from="root/bbcode.js" to="bbcode.js" /> ! <file from="root/js.php" to="js.php" /> ! <file from="root/static.js" to="static.js" /> ! <file from="root/language/en/mods/shout.php" to="language/en/mods/shout.php" /> </copy> + <open src="index.php"> + <edit> + <find>$user->setup('viewforum');</find> + <action type="after-add">$user->add_lang('mods/shout');</action> + </edit> + </open> <open src="includes/constants.php"> <edit> *************** *** 165,171 **** <find><![CDATA[ // The following assigns all _common_ variables that may be used at any point in a template. $template->assign_vars(array(]]></find> ! <action type="before-add"><![CDATA[ $user->add_lang('mods/shout');]]></action> ! <action type="after-add"><![CDATA[ 'U_SHOUT' => append_sid("{$phpbb_root_path}ajax.$phpEx", 'm=js'), ! 'U_SHOUT_BBCODE' => append_sid("{$phpbb_root_path}bbcode.js"),]]></action> </edit> </open> --- 187,193 ---- <find><![CDATA[ // The following assigns all _common_ variables that may be used at any point in a template. $template->assign_vars(array(]]></find> ! <action type="after-add"><![CDATA[ 'U_SHOUT' => append_sid("{$phpbb_root_path}js.$phpEx"), ! 'U_SHOUT_BBCODE' => append_sid("{$phpbb_root_path}bbcode.js"), ! 'U_SHOUT_STATIC' => append_sid("{$phpbb_root_path}static.js"),]]></action> </edit> </open> |
From: Paul S. <pau...@us...> - 2007-10-03 20:06:15
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27129 Modified Files: Tag: phpbb3_ver ajax.php Added Files: Tag: phpbb3_ver js.php static.js Log Message: Commiting this already, its a rather BIG commit, but will make HoL happy when validating. note, This commit means really that ALL users that have installed the MOD currently are required to use the provided update. This is because ajax.php DONT handle the JS anymore. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.34 retrieving revision 1.21.2.35 diff -C2 -d -r1.21.2.34 -r1.21.2.35 *** ajax.php 3 Oct 2007 19:59:53 -0000 1.21.2.34 --- ajax.php 3 Oct 2007 20:06:15 -0000 1.21.2.35 *************** *** 31,1103 **** $mode = request_var('m', 'index'); - $ajax_mode = array('add', 'del', 'view', 'check', 'smilies', 'delete', 'number'); - $err = false; - if (in_array($mode, $ajax_mode)) - { - @ob_end_clean(); - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); - header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT'); - header('Cache-Control: no-cache, must-revalidate'); [...1076 lines suppressed...] switch ($mode) { *************** *** 1331,1338 **** break; } ! if (in_array($mode, $ajax_mode)) ! { ! echo '<error></error></xml>'; ! } /** --- 272,278 ---- break; } ! ! echo '<error></error></xml>'; ! /** --- NEW FILE: static.js --- /** * * @package Ajax Shoutbox * @version $Id: static.js,v 1.1.2.1 2007/10/03 20:06:15 paulsohier Exp $ * @copyright (c) 2007 Paul Sohier * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ var div,hin,huit,hin2, hsmilies, hinfo, hdelete, hnr; var config = new Array(); var post_info = timer_in = last = null; var display_shoutbox = false; var start = first = true; var smilies = false; var count = 0; function err_msg(title) { var err = new Error(title); if (!err.message) { err.message = title; } err.name = "E_USER_ERROR";//Php error?!? :D return err; } function validate_overige(xml) { try { if (xml.childNodes.length == 0) { return tn(''); } else if (xml.childNodes.length == 1 && xml.childNodes[0].nodeValue != null) { // With a tag in it, its bigger as 1? return tn(xml.childNodes[0].nodeValue); } else { var div = ce('span'); loop: for (var i = 0; i < xml.childNodes.length; i++) { switch (xml.childNodes[i].nodeType) { case 3: div.appendChild(document.createTextNode(xml.childNodes[i].nodeValue)); break; case 9: case 8: case 10: case 11: // continue; break; case 1: if (xml.childNodes[i].childNodes.length == 0 && xml.childNodes[i].nodeName != 'br' && xml.childNodes[i].nodeName != 'img' && xml.childNodes[i].nodeName != 'hr') { break; } // This is a difficult one :) switch (xml.childNodes[i].nodeName) { case 'br': div.appendChild(ce('br')); break; case 'blockquote': var q = ce('blockquote'); q.className = 'quote'; q.appendChild(validate_overige(xml.childNodes[i])); add_style(xml.childNodes[i], q); div.appendChild(q); break; case 'a': var a = ce('a'); a.href = xml.childNodes[i].getAttribute('href'); a.appendChild(validate_overige(xml.childNodes[i])); add_style(xml.childNodes[i], a); div.appendChild(a); break; case 'img': var img = ce('img'); img.alt = xml.childNodes[i].getAttribute('alt'); img.src = xml.childNodes[i].getAttribute('src'); img.border = 0; add_style(xml.childNodes[i], img); div.appendChild(img); break; case 'strong': case 'b': var b = ce('strong'); b.appendChild(validate_overige(xml.childNodes[i])); add_style(xml.childNodes[i], b); div.appendChild(b); break; case 'hr': var hr = ce('hr'); div.appendChild(hr); break; case 'h1': case 'h2': case 'h3': case 'h4': case 'h5': case 'h6': var h = ce(xml.childNodes[i].nodeName); h.appendChild(validate_overige(xml.childNodes[i])); add_style(xml.childNodes[i], h); div.appendChild(h); break; case 'span': var s = ce('span'); s.appendChild(validate_overige(xml.childNodes[i])); add_style(xml.childNodes[i], s); div.appendChild(s); break; default: { throw err_msg('<?php echo $user->lang['INVALID_EL']; ?>' + xml.childNodes[i].nodeName); } } break; } } } return div; } catch (e) { handle(e); return div; } } function add_style(el, s) { var c = el.getAttribute('class'); if (c != null) { s.className = c; } f = el.getAttribute('style'); if (f == null) { return; } if (f.indexOf(';') == -1) { f += ';'; } f = f.split(';'); for (var j = 0; j < f.length; j++) { f2 = f[j].split(':'); if (f2[0]) { f2[0] = trim(f2[0]); } if (f2[1]) { f2[1] = trim(f2[1]); } switch (f2[0]) { case 'font-style': s.style.fontStyle = f2[1]; break; case 'font-weight': s.style.fontWeight = f2[1]; break; case 'font-size': try { s.style.fontSize = f2[1]; } catch (e){} break; case 'line-height': s.style.lineHeigt = f2[1]; break; case 'color': s.style.color = f2[1]; break; case 'text-decoration': s.style.textDecoration = f2[1]; break; } } } function trim(value) { value = value.replace(/^\s+/,''); value = value.replace(/\s+$/,''); return value; } function http() { try { var http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { http_request = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e) { } } } if (!http_request) { throw err_msg(no_ajax()); } return http_request; } catch (e) { handle(e); return false; } } function message(msg, color) { try { if (document.getElementById('msg_txt') != null) { document.getElementById('msg_txt').innerHTML = ''; var tmp = ce('p'); tmp.appendChild(tn(msg)); if (color) { tmp.style.color = 'red'; } document.getElementById('msg_txt').appendChild(tmp); } else { div.innerHTML = ''; var tmp = ce('p'); tmp.appendChild(tn(msg)); if (color) { tmp.style.color = 'red'; } div.appendChild(tmp); } } catch (e) { handle(e); return false; } } function ce(e) { return document.createElement(e); } function tn(e) { return document.createTextNode(e); } --- NEW FILE: js.php --- <?php /** * * @package Ajax Shoutbox * @version $Id: js.php,v 1.1.2.1 2007/10/03 20:06:15 paulsohier Exp $ * @copyright (c) 2007 Paul Sohier * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ define('IN_PHPBB', true); define('AJAX_DEBUG', false); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); [...1029 lines suppressed...] handle(e); return; } } hin2.send(null); } } function no_ajax() { return '<?php echo $user->lang['NO_AJAX']; ?>'; } function cp() { var sep = ce('span'); sep.className = 'page-sep'; sep.appendChild(tn('<?php echo $user->lang['COMMA_SEPARATOR'];?>')); return sep; } |
From: Paul S. <pau...@us...> - 2007-10-03 19:59:52
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24605 Modified Files: Tag: phpbb3_ver ajax.php Log Message: You didnt see this. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.33 retrieving revision 1.21.2.34 diff -C2 -d -r1.21.2.33 -r1.21.2.34 *** ajax.php 23 Sep 2007 21:03:33 -0000 1.21.2.33 --- ajax.php 3 Oct 2007 19:59:53 -0000 1.21.2.34 *************** *** 588,794 **** } } - function validate_overige(xml) - { - try - { - if (xml.childNodes.length == 0) - { - return tn(''); - } - else if (xml.childNodes.length == 1 && xml.childNodes[0].nodeValue != null) - { - // With a tag in it, its bigger as 1? - - return tn(xml.childNodes[0].nodeValue); - } - else - { - var div = ce('span'); - loop: - - for (var i = 0; i < xml.childNodes.length; i++) - { - - switch (xml.childNodes[i].nodeType) - { - case 3: - div.appendChild(document.createTextNode(xml.childNodes[i].nodeValue)); - break; - - case 9: - case 8: - case 10: - case 11: - // continue; - break; - - case 1: - if (xml.childNodes[i].childNodes.length == 0 && xml.childNodes[i].nodeName != 'br' && xml.childNodes[i].nodeName != 'img' && xml.childNodes[i].nodeName != 'hr') - { - break; - } - - // This is a difficult one :) - switch (xml.childNodes[i].nodeName) - { - case 'br': - div.appendChild(ce('br')); - break; - - case 'blockquote': - var q = ce('blockquote'); - q.className = 'quote'; - q.appendChild(validate_overige(xml.childNodes[i])); - add_style(xml.childNodes[i], q); - div.appendChild(q); - break; - - case 'a': - var a = ce('a'); - - a.href = xml.childNodes[i].getAttribute('href'); - a.appendChild(validate_overige(xml.childNodes[i])); - - add_style(xml.childNodes[i], a); - - div.appendChild(a); - break; - - case 'img': - var img = ce('img'); - - img.alt = xml.childNodes[i].getAttribute('alt'); - img.src = xml.childNodes[i].getAttribute('src'); - img.border = 0; - add_style(xml.childNodes[i], img); - - div.appendChild(img); - break; - - case 'strong': - case 'b': - var b = ce('strong'); - - b.appendChild(validate_overige(xml.childNodes[i])); - add_style(xml.childNodes[i], b); - div.appendChild(b); - break; - - case 'hr': - var hr = ce('hr'); - - div.appendChild(hr); - break; - - case 'h1': - case 'h2': - case 'h3': - case 'h4': - case 'h5': - case 'h6': - var h = ce(xml.childNodes[i].nodeName); - h.appendChild(validate_overige(xml.childNodes[i])); - add_style(xml.childNodes[i], h); - div.appendChild(h); - break; - - case 'span': - var s = ce('span'); - s.appendChild(validate_overige(xml.childNodes[i])); - - add_style(xml.childNodes[i], s); - div.appendChild(s); - break; - - default: - { - throw err_msg('<?php echo $user->lang['INVALID_EL']; ?>' + xml.childNodes[i].nodeName); - } - } - break; - } - } - } - return div; - } - catch (e) - { - handle(e); - return div; - } - } - function add_style(el, s) - { - var c = el.getAttribute('class'); - - if (c != null) - { - s.className = c; - } - - f = el.getAttribute('style'); - - if (f == null) - { - return; - } - if (f.indexOf(';') == -1) - { - f += ';'; - } - f = f.split(';'); - for (var j = 0; j < f.length; j++) - { - f2 = f[j].split(':'); - - if (f2[0]) - { - f2[0] = trim(f2[0]); - } - - if (f2[1]) - { - f2[1] = trim(f2[1]); - } - - switch (f2[0]) - { - case 'font-style': - s.style.fontStyle = f2[1]; - break; - - case 'font-weight': - s.style.fontWeight = f2[1]; - break; - - case 'font-size': - try - { - s.style.fontSize = f2[1]; - } - catch (e){} - break; - - case 'line-height': - s.style.lineHeigt = f2[1]; - break; - - case 'color': - s.style.color = f2[1]; - break; - - case 'text-decoration': - s.style.textDecoration = f2[1]; - break; - } - } - } - - function trim(value) - { - value = value.replace(/^\s+/,''); - value = value.replace(/\s+$/,''); - return value; - } function reload_page() --- 588,591 ---- *************** *** 1287,1375 **** } } ! function http() ! { ! try ! { ! var http_request = false; ! if (window.XMLHttpRequest) ! { // Mozilla, Safari,... ! http_request = new XMLHttpRequest(); ! if (http_request.overrideMimeType) ! { ! http_request.overrideMimeType('text/xml'); ! } ! } ! else if (window.ActiveXObject) ! { // IE ! try ! { ! http_request = new ActiveXObject('Msxml2.XMLHTTP'); ! } ! catch (e) ! { ! try ! { ! http_request = new ActiveXObject('Microsoft.XMLHTTP'); ! } ! catch (e) ! { ! } ! } ! } ! ! if (!http_request) ! { ! throw err_msg('<?php echo $user->lang['NO_AJAX']; ?>'); ! } ! return http_request; ! ! } ! catch (e) ! { ! handle(e); ! return false; ! } ! } ! function message(msg, color) ! { ! try ! { ! if (document.getElementById('msg_txt') != null) ! { ! document.getElementById('msg_txt').innerHTML = ''; ! var tmp = ce('p'); ! tmp.appendChild(tn(msg)); ! if (color) ! { ! tmp.style.color = 'red'; ! } ! document.getElementById('msg_txt').appendChild(tmp); ! } ! else ! { ! div.innerHTML = ''; ! var tmp = ce('p'); ! tmp.appendChild(tn(msg)); ! if (color) ! { ! tmp.style.color = 'red'; ! } ! div.appendChild(tmp); ! } ! } ! catch (e) ! { ! handle(e); ! return false; ! } ! } ! function ce(e) ! { ! return document.createElement(e); ! } ! function tn(e) { ! return document.createTextNode(e); } function cp() { --- 1084,1093 ---- } } ! ! function no_ajax() { ! return '<?php echo $user->lang['NO_AJAX']; ?>'; } + function cp() { *************** *** 1626,1632 **** function xml($contents) { - error_reporting(E_ALL); - $contents = utf8_encode(trim($contents)); - if ( preg_match('/\<(.*?)\>/xsi', $contents) ) { --- 1344,1347 ---- |
From: Paul S. <pau...@us...> - 2007-09-30 13:02:58
|
Update of /cvsroot/paulscriptsmods/pg3/root/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17781 Added Files: functions_guestbook.php Log Message: another file. --- NEW FILE: functions_guestbook.php --- <?php /** * * @package profile guestbook * @version $Id: functions_guestbook.php,v 1.1 2007/09/30 13:02:58 paulsohier Exp $ * @copyright (c) 2007 Paul Sohier * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** */ if (!defined('IN_PHPBB')) { exit; } $gb = new guestbook(); $gb->display(); class guestbook { function guestbook () { } function display() { global $auth; $mode = request_var('gb', ''); switch ($mode) { case 'post': if ($auth->acl_get('u_gb_post')) { $this->post(); } else { trigger_error('NO_PERMISSION'); } break; case 'delete': if ($auth->acl_get('u_gb_delete')) { /** * @TODO: Use confirm box? */ $id = request_var('id', 0); if (!$id) { trigger_error('NO_POST'); } $sql = 'DELETE FROM ' . PROFILE_GUESTBOOK_TABLE . ' WHERE guestbook_id = ' . $id; $db->sql_query($sql); trigger_error('MESSAGE_DELETED');// Add return? } else { trigger_error('NO_PERMISSION'); } break; default: $this->view(); } } function view() { global $auth, $db, $user; // Member is a variable in memberlist.php that contains userdata from the current user. // If this var isnt present we cant run the guestbook really. global $member; if (!$member) { return; } } } ?> |
From: Paul S. <pau...@us...> - 2007-09-30 12:42:34
|
Update of /cvsroot/paulscriptsmods/pg3/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10620/templates Added Files: prosilver.xml subsilver2.xml Log Message: Some files... --- NEW FILE: prosilver.xml --- <?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="../modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/--> <!-- $Id: prosilver.xml,v 1.1 2007/09/30 12:42:34 paulsohier Exp $ --> <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> <title lang="en">Profile guestbook</title> <description lang="en">Adds a guestbook for every user to their profile</description> <author-notes lang="en"></author-notes> <author-group> <author> <realname>Paul Sohier</realname> <email>mo...@pa...</email> <username>paul</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> </author> </author-group> <mod-version> <major>0</major> <minor>0</minor> <revision>1</revision> </mod-version> <installation> <level>easy</level> <time>424</time> <target-version> <target-primary>3.0.RC5</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> </target-version> </installation> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> </action-group> </mod> --- NEW FILE: subsilver2.xml --- <?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="../modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/--> <!-- $Id: subsilver2.xml,v 1.1 2007/09/30 12:42:34 paulsohier Exp $ --> <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> <title lang="en">Profile guestbook</title> <description lang="en">Adds a guestbook for every user to their profile</description> <author-notes lang="en"></author-notes> <author-group> <author> <realname>Paul Sohier</realname> <email>mo...@pa...</email> <username>paul</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> </author> </author-group> <mod-version> <major>0</major> <minor>0</minor> <revision>1</revision> </mod-version> <installation> <level>easy</level> <time>424</time> <target-version> <target-primary>3.0.RC5</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> </target-version> </installation> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> </action-group> </mod> |
From: Paul S. <pau...@us...> - 2007-09-30 12:42:34
|
Update of /cvsroot/paulscriptsmods/pg3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10620 Added Files: install.xml license.txt modx.prosilver.en.xsl Log Message: Some files... --- NEW FILE: license.txt --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. --- NEW FILE: modx.prosilver.en.xsl --- <?xml version="1.0" encoding="utf-8" ?> <!-- MODX by the phpBB MOD Team XSL file v1.0.1 copyright 2005-2007 the phpBB MOD Team. $Id: modx.prosilver.en.xsl,v 1.1 2007/09/30 12:42:34 paulsohier Exp $ --> <!DOCTYPE xsl:stylesheet[ <!ENTITY nbsp " "> ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:mod="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <xsl:output method="html" omit-xml-declaration="no" indent="yes" /> <xsl:variable name="title" select="mod:mod/mod:header/mod:title" /> <xsl:variable name="version"> <xsl:for-each select="mod:mod/mod:header/mod:mod-version"> <xsl:call-template name="give-version"> </xsl:call-template> </xsl:for-each> </xsl:variable> <xsl:template match="mod:mod"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> [...1815 lines suppressed...] </xsl:template> <!-- add-line-breaks borrowed from http://www.stylusstudio.com/xsllist/200103/post40180.html --> <xsl:template name="add-line-breaks"> <xsl:param name="string" select="." /> <xsl:choose> <xsl:when test="contains($string, '
')"> <xsl:value-of select="substring-before($string, '
')" /> <br /> <xsl:call-template name="add-line-breaks"> <xsl:with-param name="string" select="substring-after($string, '
')" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string" /> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet> --- NEW FILE: install.xml --- <?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/--> <!-- $Id: install.xml,v 1.1 2007/09/30 12:42:34 paulsohier Exp $ --> <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> <title lang="en">Profile guestbook</title> <description lang="en">Adds a guestbook for every user to their profile</description> <author-notes lang="en"></author-notes> <author-group> <author> <realname>Paul Sohier</realname> <email>mo...@pa...</email> <username>paul</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> </author> </author-group> <mod-version> <major>0</major> <minor>0</minor> <revision>1</revision> </mod-version> <installation> <level>easy</level> <time>424</time> <target-version> <target-primary>3.0.RC5</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> </target-version> </installation> <history> <entry> <date>2007-05-28</date> <rev-version> <major>0</major> <minor>0</minor> <revision>1</revision> </rev-version> <changelog lang="en"> <change>First release for phpBB3.</change> </changelog> </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> <sql> </sql> <copy> </copy> <open src="includes/constants.php"> <edit> <find><![CDATA[?>]]></find> <action type="before-add">define('PROFILE_GUESTBOOK_TABLE', $table_prefix . 'guestbook');</action> </edit> </open> <open src="memberlist"> <edit> <find><![CDATA[ ]]></find> <action type="before-add"><![CDATA[ $user->add_lang('mods/shout');]]></action> </edit> </open> </action-group> </mod> |
From: Paul S. <pau...@us...> - 2007-09-30 12:41:06
|
Update of /cvsroot/paulscriptsmods/pg3/root/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10245/includes Log Message: Directory /cvsroot/paulscriptsmods/pg3/root/includes added to the repository |
From: Paul S. <pau...@us...> - 2007-09-30 12:41:01
|
Update of /cvsroot/paulscriptsmods/pg3/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9897/templates Log Message: Directory /cvsroot/paulscriptsmods/pg3/templates added to the repository |
From: Paul S. <pau...@us...> - 2007-09-30 12:41:01
|
Update of /cvsroot/paulscriptsmods/pg3/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9897/root Log Message: Directory /cvsroot/paulscriptsmods/pg3/root added to the repository |
From: Paul S. <pau...@us...> - 2007-09-23 21:07:17
|
Update of /cvsroot/paulscriptsmods/ajax_shout/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18039/templates Modified Files: Tag: phpbb3_ver prosilver.xml subsilver2.xml Log Message: Index: prosilver.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/templates/Attic/prosilver.xml,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** prosilver.xml 23 Sep 2007 21:03:33 -0000 1.1.2.6 --- prosilver.xml 23 Sep 2007 21:07:19 -0000 1.1.2.7 *************** *** 21,27 **** </author-group> <mod-version> ! <major>1</major> <minor>0</minor> ! <revision>1</revision> </mod-version> <installation> --- 21,27 ---- </author-group> <mod-version> ! <major>0</major> <minor>0</minor> ! <revision>6</revision> </mod-version> <installation> Index: subsilver2.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/templates/Attic/subsilver2.xml,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** subsilver2.xml 23 Sep 2007 21:03:33 -0000 1.1.2.5 --- subsilver2.xml 23 Sep 2007 21:07:19 -0000 1.1.2.6 *************** *** 23,27 **** <major>0</major> <minor>0</minor> ! <revision>5</revision> </mod-version> <installation> --- 23,27 ---- <major>0</major> <minor>0</minor> ! <revision>6</revision> </mod-version> <installation> |
From: Paul S. <pau...@us...> - 2007-09-23 21:07:17
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18039 Modified Files: Tag: phpbb3_ver install.xml Log Message: Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.30 retrieving revision 1.19.2.31 diff -C2 -d -r1.19.2.30 -r1.19.2.31 *** install.xml 23 Sep 2007 21:03:33 -0000 1.19.2.30 --- install.xml 23 Sep 2007 21:07:19 -0000 1.19.2.31 *************** *** 21,27 **** </author-group> <mod-version> ! <major>1</major> <minor>0</minor> ! <revision>1</revision> </mod-version> <installation> --- 21,27 ---- </author-group> <mod-version> ! <major>0</major> <minor>0</minor> ! <revision>6</revision> </mod-version> <installation> *************** *** 123,129 **** <date>2007-09-23</date> <rev-version> ! <major>1</major> <minor>0</minor> ! <revision>1</revision> </rev-version> <changelog lang="en"> --- 123,129 ---- <date>2007-09-23</date> <rev-version> ! <major>0</major> <minor>0</minor> ! <revision>6</revision> </rev-version> <changelog lang="en"> |
From: Paul S. <pau...@us...> - 2007-09-23 21:03:32
|
Update of /cvsroot/paulscriptsmods/ajax_shout/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16568/templates Modified Files: Tag: phpbb3_ver prosilver.xml subsilver2.xml Log Message: More changes. Index: prosilver.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/templates/Attic/prosilver.xml,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** prosilver.xml 17 Sep 2007 11:59:15 -0000 1.1.2.5 --- prosilver.xml 23 Sep 2007 21:03:33 -0000 1.1.2.6 *************** *** 21,27 **** </author-group> <mod-version> ! <major>0</major> <minor>0</minor> ! <revision>5</revision> </mod-version> <installation> --- 21,27 ---- </author-group> <mod-version> ! <major>1</major> <minor>0</minor> ! <revision>1</revision> </mod-version> <installation> *************** *** 67,71 **** <find><![CDATA[</head>]]></find> <action type="before-add"><![CDATA[ ! <script type="text/javascript" src="bbcode.js"></script> <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> --- 67,71 ---- <find><![CDATA[</head>]]></find> <action type="before-add"><![CDATA[ ! <script type="text/javascript" src="{U_SHOUT_BBCODE}"></script> <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> Index: subsilver2.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/templates/Attic/subsilver2.xml,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** subsilver2.xml 17 Sep 2007 11:59:15 -0000 1.1.2.4 --- subsilver2.xml 23 Sep 2007 21:03:33 -0000 1.1.2.5 *************** *** 70,74 **** <find><![CDATA[</head>]]></find> <action type="before-add"><![CDATA[ ! <script type="text/javascript" src="bbcode.js"></script> <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> --- 70,74 ---- <find><![CDATA[</head>]]></find> <action type="before-add"><![CDATA[ ! <script type="text/javascript" src="{U_SHOUT_BBCODE}"></script> <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> |
From: Paul S. <pau...@us...> - 2007-09-23 21:03:32
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16568 Modified Files: Tag: phpbb3_ver install.xml Log Message: More changes. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.29 retrieving revision 1.19.2.30 diff -C2 -d -r1.19.2.29 -r1.19.2.30 *** install.xml 19 Sep 2007 08:19:11 -0000 1.19.2.29 --- install.xml 23 Sep 2007 21:03:33 -0000 1.19.2.30 *************** *** 21,27 **** </author-group> <mod-version> ! <major>0</major> <minor>0</minor> ! <revision>5</revision> </mod-version> <installation> --- 21,27 ---- </author-group> <mod-version> ! <major>1</major> <minor>0</minor> ! <revision>1</revision> </mod-version> <installation> *************** *** 91,97 **** <date>2007-08-04</date> <rev-version> ! <major>0</major> <minor>0</minor> ! <revision>4</revision> </rev-version> <changelog lang="en"> --- 91,97 ---- <date>2007-08-04</date> <rev-version> ! <major>1</major> <minor>0</minor> ! <revision>0</revision> </rev-version> <changelog lang="en"> *************** *** 121,132 **** <entry> ! <date>2007-09-xx</date> <rev-version> ! <major>0</major> <minor>0</minor> ! <revision>6</revision> </rev-version> <changelog lang="en"> <change>Fixed a mistake with the new cdata function.</change> </changelog> </entry> --- 121,133 ---- <entry> ! <date>2007-09-23</date> <rev-version> ! <major>1</major> <minor>0</minor> ! <revision>1</revision> </rev-version> <changelog lang="en"> <change>Fixed a mistake with the new cdata function.</change> + <change>A lot of updates for submissions. Mostly code guideline thingies</change> </changelog> </entry> *************** *** 165,169 **** $template->assign_vars(array(]]></find> <action type="before-add"><![CDATA[ $user->add_lang('mods/shout');]]></action> ! <action type="after-add"><![CDATA[ "U_SHOUT" => append_sid("{$phpbb_root_path}ajax.$phpEx", 'm=js'),]]></action> </edit> </open> --- 166,171 ---- $template->assign_vars(array(]]></find> <action type="before-add"><![CDATA[ $user->add_lang('mods/shout');]]></action> ! <action type="after-add"><![CDATA[ 'U_SHOUT' => append_sid("{$phpbb_root_path}ajax.$phpEx", 'm=js'), ! 'U_SHOUT_BBCODE' => append_sid("{$phpbb_root_path}bbcode.js"),]]></action> </edit> </open> |
From: Paul S. <pau...@us...> - 2007-09-23 21:03:31
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16568/root Modified Files: Tag: phpbb3_ver ajax.php bbcode.js Log Message: More changes. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.32 retrieving revision 1.21.2.33 diff -C2 -d -r1.21.2.32 -r1.21.2.33 *** ajax.php 23 Sep 2007 20:43:44 -0000 1.21.2.32 --- ajax.php 23 Sep 2007 21:03:33 -0000 1.21.2.33 *************** *** 227,231 **** el.className = 'inputbox'; ! el.name = el.id = 'bericht'; el.style.width = '325px'; --- 227,231 ---- el.className = 'inputbox'; ! el.name = el.id = 'message'; el.style.width = '325px'; *************** *** 281,285 **** document.getElementById('msg_txt').appendChild(tn('<?php echo $user->lang['SENDING']; ?>')); ! if (document.getElementById('bericht').value == '') { document.getElementById('msg_txt').innerHTML = ''; --- 281,285 ---- document.getElementById('msg_txt').appendChild(tn('<?php echo $user->lang['SENDING']; ?>')); ! if (document.getElementById('message').value == '') { document.getElementById('msg_txt').innerHTML = ''; *************** *** 319,323 **** setTimeout('last = 0;', 500); } ! document.getElementById('bericht').focus(); } } --- 319,323 ---- setTimeout('last = 0;', 500); } ! document.getElementById('message').focus(); } } *************** *** 330,336 **** post = 'message='; ! post += encodeURIComponent(document.getElementById('bericht').value); ! document.getElementById('bericht').value = ''; if (smilies == true) --- 330,336 ---- post = 'message='; ! post += encodeURIComponent(document.getElementById('message').value); ! document.getElementById('message').value = ''; if (smilies == true) *************** *** 414,418 **** a.onclick = function() { ! document.getElementById('bericht').value += " " + this.code + " "; } --- 414,418 ---- a.onclick = function() { ! document.getElementById('message').value += ' ' + this.code + ' '; } *************** *** 563,567 **** { echo 'post.style.height = \'160px\'; ! post.style.overflow = \'auto\';''; } ?> --- 563,567 ---- { echo 'post.style.height = \'160px\'; ! post.style.overflow = \'auto\';'; } ?> *************** *** 1380,1384 **** } <?php ! die; } switch ($mode) --- 1380,1384 ---- } <?php ! exit; } switch ($mode) *************** *** 1408,1412 **** } echo '</xml>'; ! die; } else --- 1408,1412 ---- } echo '</xml>'; ! exit; } else *************** *** 1421,1425 **** { echo '<error>' . $user->lang['NO_SHOUT_ID'] . '</error></xml>'; ! die; } else --- 1421,1425 ---- { echo '<error>' . $user->lang['NO_SHOUT_ID'] . '</error></xml>'; ! exit; } else *************** *** 1434,1438 **** { echo '<msg></msg></xml>'; ! die; } } --- 1434,1438 ---- { echo '<msg></msg></xml>'; ! exit; } } *************** *** 1473,1477 **** { echo '<error>' . $user->lang['FLOOD_ERROR'] . '</error></xml>'; ! die; } } --- 1473,1477 ---- { echo '<error>' . $user->lang['FLOOD_ERROR'] . '</error></xml>'; ! exit; } } *************** *** 1487,1496 **** { echo '<error>' . $user->lang['MESSAGE_EMPTY'] . '</error></xml>'; ! die; } else if (strpos($message, '[quote') !== false || strpos($message, '[code') !== false || strpos($message, '[list') !== false) { echo '<error>' . $user->lang['NO_QUOTE'] . '</error></xml>'; ! die; } else --- 1487,1496 ---- { echo '<error>' . $user->lang['MESSAGE_EMPTY'] . '</error></xml>'; ! exit; } else if (strpos($message, '[quote') !== false || strpos($message, '[code') !== false || strpos($message, '[list') !== false) { echo '<error>' . $user->lang['NO_QUOTE'] . '</error></xml>'; ! exit; } else *************** *** 1517,1521 **** } echo '<msg>' . $user->lang['POSTED'] . '</msg></xml>'; ! die; } } --- 1517,1521 ---- } echo '<msg>' . $user->lang['POSTED'] . '</msg></xml>'; ! exit; } } *************** *** 1536,1540 **** $s = $row['s']; echo "<last>$s</last><tijd>" . (int)($s != $last) . '</tijd></xml>'; ! die; } break; --- 1536,1540 ---- $s = $row['s']; echo "<last>$s</last><tijd>" . (int)($s != $last) . '</tijd></xml>'; ! exit; } break; *************** *** 1550,1554 **** $row = (int)$row['nr']; echo "<nr>$row</nr></xml>"; ! die; break; --- 1550,1554 ---- $row = (int)$row['nr']; echo "<nr>$row</nr></xml>"; ! exit; break; *************** *** 1572,1576 **** { echo '<error>' . $user->lang['NO_MESSAGE'] . '</error></xml>'; ! die; } --- 1572,1576 ---- { echo '<error>' . $user->lang['NO_MESSAGE'] . '</error></xml>'; ! exit; } *************** *** 1609,1613 **** } echo '</xml>'; ! die; } break; --- 1609,1613 ---- } echo '</xml>'; ! exit; } break; *************** *** 1668,1672 **** $err = xml($err['message']); echo "<error>$err</error>\n<sql>$sql</sql>\n</xml>"; ! die; } --- 1668,1672 ---- $err = xml($err['message']); echo "<error>$err</error>\n<sql>$sql</sql>\n</xml>"; ! exit; } Index: bbcode.js =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/bbcode.js,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** bbcode.js 28 Jan 2007 15:40:09 -0000 1.3 --- bbcode.js 23 Sep 2007 21:03:33 -0000 1.3.2.1 *************** *** 28,36 **** // Replacement for arrayname.length property ! function getarraysize(thearray) { ! for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } --- 28,40 ---- // Replacement for arrayname.length property ! function getarraysize(thearray) ! { ! for (i = 0; i < thearray.length; i++) ! { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) + { return i; } + } return thearray.length; } *************** *** 38,42 **** // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array ! function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } --- 42,47 ---- // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array ! function arraypush(thearray,value) ! { thearray[ getarraysize(thearray) ] = value; } *************** *** 44,48 **** // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array ! function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; --- 49,54 ---- // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array ! function arraypop(thearray) ! { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; *************** *** 51,68 **** } ! function bbfontstyle(bbopen, bbclose) { ! if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; ! if (!theSelection) { ! document.getElementById('bericht').value += bbopen + bbclose; ! document.getElementById('bericht').focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; ! document.getElementById('bericht').focus(); return; ! } else { ! document.getElementById('bericht').value += bbopen + bbclose; ! document.getElementById('bericht').focus(); return; } --- 57,79 ---- } ! function bbfontstyle(bbopen, bbclose) ! { ! if ((clientVer >= 4) && is_ie && is_win) ! { theSelection = document.selection.createRange().text; ! if (!theSelection) ! { ! document.getElementById('message').value += bbopen + bbclose; ! document.getElementById('message').focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; ! document.getElementById('message').focus(); return; ! } ! else ! { ! document.getElementById('message').value += bbopen + bbclose; ! document.getElementById('message').focus(); return; } *************** *** 70,97 **** ! function bbstyle(bbnumber) { donotinsert = false; bblast = 0; ! if(document.getElementById('bericht').value == document.getElementById('bericht').begin) { ! document.getElementById('bericht').value = ' '; } ! if (bbnumber == -1) { // Close all open tags & default button names ! while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; ! document.getElementById('bericht').value += bbtags[butnumber + 1]; buttext = eval('document.getElementById(\'addbbcode' + butnumber + '\').value'); eval('document.getElementById(\'addbbcode' + butnumber + '\').value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D ! document.getElementById('bericht').focus(); return; } // Find last occurance of an open tag the same as the one just clicked ! for (i = 0; i < bbcode.length; i++) { ! if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; --- 81,113 ---- ! function bbstyle(bbnumber) ! { donotinsert = false; bblast = 0; ! if(document.getElementById('message').value == document.getElementById('message').begin) { ! document.getElementById('message').value = ' '; } ! if (bbnumber == -1) ! { // Close all open tags & default button names ! while (bbcode[0]) ! { butnumber = arraypop(bbcode) - 1; ! document.getElementById('message').value += bbtags[butnumber + 1]; buttext = eval('document.getElementById(\'addbbcode' + butnumber + '\').value'); eval('document.getElementById(\'addbbcode' + butnumber + '\').value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D ! document.getElementById('message').focus(); return; } // Find last occurance of an open tag the same as the one just clicked ! for (i = 0; i < bbcode.length; i++) ! { ! if (bbcode[i] == bbnumber+1) ! { bblast = i; donotinsert = true; *************** *** 99,116 **** } ! if (donotinsert) { // Close all open tags up to the one just clicked & default button names ! while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; ! document.getElementById('bericht').value += bbtags[butnumber + 1]; buttext = eval('document.getElementById(\'addbbcode' + butnumber + '\').value'); eval('document.getElementById(\'addbbcode' + butnumber + '\').value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } ! document.getElementById('bericht').focus(); return; ! } else { // Open tags ! if (imageTag && (bbnumber != 6)) { // Close image tag before adding another ! document.getElementById('bericht').value += bbtags[7]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.getElementById('addbbcode6').value = "Img"; // Return button back to normal state --- 115,137 ---- } ! if (donotinsert) ! { // Close all open tags up to the one just clicked & default button names ! while (bbcode[bblast]) ! { butnumber = arraypop(bbcode) - 1; ! document.getElementById('message').value += bbtags[butnumber + 1]; buttext = eval('document.getElementById(\'addbbcode' + butnumber + '\').value'); eval('document.getElementById(\'addbbcode' + butnumber + '\').value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } ! document.getElementById('message').focus(); return; ! } ! else ! { // Open tags ! if (imageTag && (bbnumber != 6)) ! { // Close image tag before adding another ! document.getElementById('message').value += bbtags[7]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.getElementById('addbbcode6').value = "Img"; // Return button back to normal state *************** *** 119,127 **** // Open tag ! document.getElementById('bericht').value += bbtags[bbnumber]; if ((bbnumber == 6) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.getElementById(\'addbbcode'+bbnumber+'\').value += "*"'); ! document.getElementById('bericht').focus(); return; } --- 140,148 ---- // Open tag ! document.getElementById('message').value += bbtags[bbnumber]; if ((bbnumber == 6) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.getElementById(\'addbbcode'+bbnumber+'\').value += "*"'); ! document.getElementById('message').focus(); return; } |
From: Paul S. <pau...@us...> - 2007-09-23 21:03:31
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/language/en/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16568/root/language/en/mods Modified Files: Tag: phpbb3_ver shout.php Log Message: More changes. Index: shout.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/language/en/mods/Attic/shout.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** shout.php 15 Sep 2007 21:41:32 -0000 1.1.2.2 --- shout.php 23 Sep 2007 21:03:33 -0000 1.1.2.3 *************** *** 34,38 **** * NOTE: Most of the language items are used in javascript * If you want to use quotes or other chars that need escaped, be sure you escape them double - * (Especially for ', you must use \\\' instead of \'. For " you only need to use \". */ /** --- 34,37 ---- *************** *** 40,44 **** */ $lang = array_merge($lang, array( ! 'MISSING_DIV' => 'The shoutbox div cann\\\'t be found.', 'LOADING' => 'Loading', 'POST_MESSAGE' => 'Post message', --- 39,43 ---- */ $lang = array_merge($lang, array( ! 'MISSING_DIV' => 'The shoutbox div cannât be found.', 'LOADING' => 'Loading', 'POST_MESSAGE' => 'Post message', *************** *** 57,61 **** //Added in 0.0.3 ! 'NO_QUOTE' => 'Don\\\'t use list, quote or code bbcode.', 'SMILIES' => 'Smilies', 'DEL_SHOUT' => 'Are you sure you want to delete this shout?', --- 56,60 ---- //Added in 0.0.3 ! 'NO_QUOTE' => 'Donât use list, quote or code bbcode.', 'SMILIES' => 'Smilies', 'DEL_SHOUT' => 'Are you sure you want to delete this shout?', |
From: Paul S. <pau...@us...> - 2007-09-23 20:43:44
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9091 Modified Files: Tag: phpbb3_ver ajax.php Log Message: First part of some changes. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.31 retrieving revision 1.21.2.32 diff -C2 -d -r1.21.2.31 -r1.21.2.32 *** ajax.php 19 Sep 2007 08:19:11 -0000 1.21.2.31 --- ajax.php 23 Sep 2007 20:43:44 -0000 1.21.2.32 *************** *** 15,19 **** define('AJAX_DEBUG', false); ! $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 15,19 ---- define('AJAX_DEBUG', false); ! $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 31,45 **** $mode = request_var('m', 'index'); ! $ajax_m = array('add','del','view','check', 'smilie', 'delete', 'nr'); $err = false; ! if (in_array($mode,$ajax_m)) { @ob_end_clean(); ! header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); ! header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); ! header("Cache-Control: no-cache, must-revalidate" ); ! header("Pragma: no-cache" ); ! header("Content-type: text/xml; charset=UTF-8"); ! print '<'.'?xml version="1.0" encoding="UTF-8" ?'.'> <xml>'; } --- 31,45 ---- $mode = request_var('m', 'index'); ! $ajax_mode = array('add', 'del', 'view', 'check', 'smilies', 'delete', 'number'); $err = false; ! if (in_array($mode, $ajax_mode)) { @ob_end_clean(); ! header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); ! header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT'); ! header('Cache-Control: no-cache, must-revalidate'); ! header('Pragma: no-cache'); ! header('Content-type: text/xml; charset=UTF-8'); ! echo '<' . '?xml version="1.0" encoding="UTF-8" ?' . '> <xml>'; } *************** *** 48,61 **** //JS :D @ob_end_clean(); ! header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); ! header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); ! header("Cache-Control: no-cache, must-revalidate" ); ! header("Pragma: no-cache" ); ! header("Content-type: text/javascript; charset=UTF-8"); } // Define the number of printed shouts. // This is difference in IE as in other browsers ;) ! if (strpos(strtolower($_SERVER["HTTP_USER_AGENT"]), 'msie') === false || strpos(strtolower($_SERVER["HTTP_USER_AGENT"]), 'opera') !== false) { $shout_number = 20; --- 48,61 ---- //JS :D @ob_end_clean(); ! header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); ! header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT'); ! header('Cache-Control: no-cache, must-revalidate'); ! header('Pragma: no-cache'); ! header('Content-type: text/javascript; charset=UTF-8'); } // Define the number of printed shouts. // This is difference in IE as in other browsers ;) ! if (strpos(strtolower($user->browser), 'msie') === false || strpos(strtolower($user->browser), 'opera') !== false) { $shout_number = 20; *************** *** 99,107 **** if (AJAX_DEBUG) { ! print 'alert(e.message);'; } else { ! print 'message(e.message, true);'; } ?> --- 99,107 ---- if (AJAX_DEBUG) { ! echo 'alert(e.message);'; } else { ! echo 'message(e.message, true);'; } ?> *************** *** 126,134 **** <?php if (AJAX_DEBUG) { ! print 'alert(tmp);'; } else { ! print 'message(tmp, true);'; } ?> --- 126,134 ---- <?php if (AJAX_DEBUG) { ! echo 'alert(tmp);'; } else { ! echo 'message(tmp, true);'; } ?> *************** *** 152,156 **** var ev = err_msg('<?php echo $user->lang['MISSING_DIV']; ?>'); ! ev.name = "E_CORE_ERROR"; throw ev; return; --- 152,156 ---- var ev = err_msg('<?php echo $user->lang['MISSING_DIV']; ?>'); ! ev.name = 'E_CORE_ERROR'; throw ev; return; *************** *** 300,306 **** { xml = huit.responseXML; ! if (xml.getElementsByTagName("error") && xml.getElementsByTagName("error").length != 0) { ! err = xml.getElementsByTagName("error")[0].childNodes[0].nodeValue; document.getElementById('msg_txt').innerHTML = ''; document.getElementById('post_message').style.display = 'block'; --- 300,306 ---- { xml = huit.responseXML; ! if (xml.getElementsByTagName('error') && xml.getElementsByTagName('error').length != 0) { ! err = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; document.getElementById('msg_txt').innerHTML = ''; document.getElementById('post_message').style.display = 'block'; *************** *** 386,390 **** // Lets got some nice things :D ! hsmilies.open('GET','<?php echo append_sid("{$phpbb_root_path}ajax." . $phpEx , 'm=smilie', false)?>&rand='+Math.floor(Math.random() * 1000000),true); hsmilies.onreadystatechange = function() --- 386,390 ---- // Lets got some nice things :D ! hsmilies.open('GET','<?php echo append_sid("{$phpbb_root_path}ajax." . $phpEx , 'm=smilies', false)?>&rand='+Math.floor(Math.random() * 1000000),true); hsmilies.onreadystatechange = function() *************** *** 395,401 **** { xml = hsmilies.responseXML; ! if (xml.getElementsByTagName("error") && xml.getElementsByTagName("error").length != 0) { ! err = xml.getElementsByTagName("error")[0].childNodes[0].nodeValue; document.getElementById('smilies').innerHTML = ''; message(err, true); --- 395,401 ---- { xml = hsmilies.responseXML; ! if (xml.getElementsByTagName('error') && xml.getElementsByTagName('error').length != 0) { ! err = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; document.getElementById('smilies').innerHTML = ''; message(err, true); *************** *** 404,408 **** { document.getElementById('smilies').innerHTML = ''; ! var tmp = xml.getElementsByTagName('smilie'); for (var i = (tmp.length - 1); i >= 0 ; i--) { --- 404,408 ---- { document.getElementById('smilies').innerHTML = ''; ! var tmp = xml.getElementsByTagName('smilies'); for (var i = (tmp.length - 1); i >= 0 ; i--) { *************** *** 534,541 **** // inh.appendChild(ce('br')); ! var smilie = ce('div'); ! smilie.style.display = 'none'; ! smilie.name = smilie.id = 'smilies'; ! inh.appendChild(smilie); dl.appendChild(inh); --- 534,541 ---- // inh.appendChild(ce('br')); ! var smilies = ce('div'); ! smilies.style.display = 'none'; ! smilies.name = smilies.id = 'smilies'; ! inh.appendChild(smilies); dl.appendChild(inh); *************** *** 560,567 **** <?php ! if (strpos($_SERVER["HTTP_USER_AGENT"], 'MSIE') === false) { ! echo "post.style.height = '160px'; ! post.style.overflow = 'auto';"; } ?> --- 560,567 ---- <?php ! if (strpos($user->browser, 'MSIE') === false) { ! echo 'post.style.height = \'160px\'; ! post.style.overflow = \'auto\';''; } ?> *************** *** 594,598 **** if (xml.childNodes.length == 0) { ! return tn(""); } else if (xml.childNodes.length == 1 && xml.childNodes[0].nodeValue != null) --- 594,598 ---- if (xml.childNodes.length == 0) { ! return tn(''); } else if (xml.childNodes.length == 1 && xml.childNodes[0].nodeValue != null) *************** *** 604,608 **** else { ! var div = ce("span"); loop: --- 604,608 ---- else { ! var div = ce('span'); loop: *************** *** 632,642 **** switch (xml.childNodes[i].nodeName) { ! case "br": ! div.appendChild(ce("br")); break; ! case "blockquote": ! var q = ce("blockquote"); ! q.className = "quote"; q.appendChild(validate_overige(xml.childNodes[i])); add_style(xml.childNodes[i], q); --- 632,642 ---- switch (xml.childNodes[i].nodeName) { ! case 'br': ! div.appendChild(ce('br')); break; ! case 'blockquote': ! var q = ce('blockquote'); ! q.className = 'quote'; q.appendChild(validate_overige(xml.childNodes[i])); add_style(xml.childNodes[i], q); *************** *** 644,651 **** break; ! case "a": ! var a = ce("a"); ! a.href = xml.childNodes[i].getAttribute("href"); a.appendChild(validate_overige(xml.childNodes[i])); --- 644,651 ---- break; ! case 'a': ! var a = ce('a'); ! a.href = xml.childNodes[i].getAttribute('href'); a.appendChild(validate_overige(xml.childNodes[i])); *************** *** 655,663 **** break; ! case "img": ! var img = ce("img"); ! img.alt = xml.childNodes[i].getAttribute("alt"); ! img.src = xml.childNodes[i].getAttribute("src"); img.border = 0; add_style(xml.childNodes[i], img); --- 655,663 ---- break; ! case 'img': ! var img = ce('img'); ! img.alt = xml.childNodes[i].getAttribute('alt'); ! img.src = xml.childNodes[i].getAttribute('src'); img.border = 0; add_style(xml.childNodes[i], img); *************** *** 666,672 **** break; ! case "strong": ! case "b": ! var b = ce("strong"); b.appendChild(validate_overige(xml.childNodes[i])); --- 666,672 ---- break; ! case 'strong': ! case 'b': ! var b = ce('strong'); b.appendChild(validate_overige(xml.childNodes[i])); *************** *** 675,690 **** break; ! case "hr": ! var hr = ce("hr"); div.appendChild(hr); break; ! case "h1": ! case "h2": ! case "h3": ! case "h4": ! case "h5": ! case "h6": var h = ce(xml.childNodes[i].nodeName); h.appendChild(validate_overige(xml.childNodes[i])); --- 675,690 ---- break; ! case 'hr': ! var hr = ce('hr'); div.appendChild(hr); break; ! case 'h1': ! case 'h2': ! case 'h3': ! case 'h4': ! case 'h5': ! case 'h6': var h = ce(xml.childNodes[i].nodeName); h.appendChild(validate_overige(xml.childNodes[i])); *************** *** 703,707 **** default: { ! throw err_msg("<?php echo $user->lang['INVALID_EL']; ?>"+xml.childNodes[i].nodeName); } } --- 703,707 ---- default: { ! throw err_msg('<?php echo $user->lang['INVALID_EL']; ?>' + xml.childNodes[i].nodeName); } } *************** *** 727,731 **** } ! f = el.getAttribute("style"); if (f == null) --- 727,731 ---- } ! f = el.getAttribute('style'); if (f == null) *************** *** 733,744 **** return; } ! if (f.indexOf(";") == -1) { ! f += ";"; } ! f = f.split(";"); for (var j = 0; j < f.length; j++) { ! f2 = f[j].split(":"); if (f2[0]) --- 733,744 ---- return; } ! if (f.indexOf(';') == -1) { ! f += ';'; } ! f = f.split(';'); for (var j = 0; j < f.length; j++) { ! f2 = f[j].split(':'); if (f2[0]) *************** *** 798,802 **** // Lets got some nice things :D ! hnr.open('GET','<?php echo append_sid("{$phpbb_root_path}ajax." . $phpEx , 'm=nr', false)?>&rand='+Math.floor(Math.random() * 1000000),true); hnr.onreadystatechange = function() --- 798,802 ---- // Lets got some nice things :D ! hnr.open('GET','<?php echo append_sid("{$phpbb_root_path}ajax." . $phpEx , 'm=number', false)?>&rand='+Math.floor(Math.random() * 1000000),true); hnr.onreadystatechange = function() *************** *** 807,821 **** { xml = hnr.responseXML; ! if (xml.getElementsByTagName("error") && xml.getElementsByTagName("error").length != 0) { ! err = xml.getElementsByTagName("error")[0].childNodes[0].nodeValue; message(err, true); clearTimeout(timer_in); ! setTimeout("reload_post();",500); } else { ! var nr = xml.getElementsByTagName("nr")[0].childNodes[0].nodeValue; var f = document.getElementById('nr'); f.innerHTML = ''; --- 807,821 ---- { xml = hnr.responseXML; ! if (xml.getElementsByTagName('error') && xml.getElementsByTagName('error').length != 0) { ! err = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; message(err, true); clearTimeout(timer_in); ! setTimeout('reload_post();',500); } else { ! var nr = xml.getElementsByTagName('nr')[0].childNodes[0].nodeValue; var f = document.getElementById('nr'); f.innerHTML = ''; *************** *** 851,855 **** { a.c = ((on_page - 2) * per_page); ! a.href = "javascript:;"; a.onclick = function() { --- 851,855 ---- { a.c = ((on_page - 2) * per_page); ! a.href = 'javascript:;'; a.onclick = function() { *************** *** 870,874 **** a.c = 0; ! a.href = "javascript:;"; a.onclick = function() { --- 870,874 ---- a.c = 0; ! a.href = 'javascript:;'; a.onclick = function() { *************** *** 904,908 **** { a.c = (i - 1) * per_page; ! a.href = "javascript:;"; a.onclick = function() { --- 904,908 ---- { a.c = (i - 1) * per_page; ! a.href = 'javascript:;'; a.onclick = function() { *************** *** 941,945 **** { a.c = (i - 1) * per_page; ! a.href = "javascript:;"; a.onclick = function() { --- 941,945 ---- { a.c = (i - 1) * per_page; ! a.href = 'javascript:;'; a.onclick = function() { *************** *** 975,979 **** a.c = ((total_pages - 1) * per_page); ! a.href = "javascript:;"; a.onclick = function() { --- 975,979 ---- a.c = ((total_pages - 1) * per_page); ! a.href = 'javascript:;'; a.onclick = function() { *************** *** 991,995 **** a.c = ((on_page) * per_page); ! a.href = "javascript:;"; a.onclick = function() { --- 991,995 ---- a.c = ((on_page) * per_page); ! a.href = 'javascript:;'; a.onclick = function() { *************** *** 1041,1045 **** } var xml = hin2.responseXML; ! if (xml.getElementsByTagName("error") && xml.getElementsByTagName("error").length != 0) { err = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; --- 1041,1045 ---- } var xml = hin2.responseXML; ! if (xml.getElementsByTagName('error') && xml.getElementsByTagName('error').length != 0) { err = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; *************** *** 1049,1053 **** var t = xml.getElementsByTagName('tijd')[0].childNodes[0].nodeValue; ! if (t == "0") { // If start is true, we let notice that there are no messages --- 1049,1053 ---- var t = xml.getElementsByTagName('tijd')[0].childNodes[0].nodeValue; ! if (t == '0') { // If start is true, we let notice that there are no messages *************** *** 1091,1095 **** } var xml = hin.responseXML; ! if (xml.getElementsByTagName("error") && xml.getElementsByTagName("error").length != 0) { var msg = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; --- 1091,1095 ---- } var xml = hin.responseXML; ! if (xml.getElementsByTagName('error') && xml.getElementsByTagName('error').length != 0) { var msg = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; *************** *** 1183,1189 **** xml = hdelete.responseXML; ! if (xml.getElementsByTagName("error") && xml.getElementsByTagName("error").length != 0) { ! err = xml.getElementsByTagName("error")[0].childNodes[0].nodeValue; message(err, true); return; --- 1183,1189 ---- xml = hdelete.responseXML; ! if (xml.getElementsByTagName('error') && xml.getElementsByTagName('error').length != 0) { ! err = xml.getElementsByTagName('error')[0].childNodes[0].nodeValue; message(err, true); return; *************** *** 1304,1308 **** try { ! http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) --- 1304,1308 ---- try { ! http_request = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) *************** *** 1310,1314 **** try { ! http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) --- 1310,1314 ---- try { ! http_request = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e) *************** *** 1384,1388 **** switch ($mode) { ! case 'smilie': $sql = 'SELECT * --- 1384,1388 ---- switch ($mode) { ! case 'smilies': $sql = 'SELECT * *************** *** 1399,1411 **** if ($row['smiley_url'] !== $last_url) { ! print "<smilie>\n <code>" . xml($row['code']) . "</code>\n <img>" . xml($phpbb_root_path . $config['smilies_path'] . '/' . $row['smiley_url']) . "</img>\n <alt>" . xml($row['emotion']) . "</alt>\n ! </smilie>"; } $last_url = $row['smiley_url']; } ! print "</xml>"; die; } --- 1399,1411 ---- if ($row['smiley_url'] !== $last_url) { ! echo "<smilies>\n <code>" . xml($row['code']) . "</code>\n <img>" . xml($phpbb_root_path . $config['smilies_path'] . '/' . $row['smiley_url']) . "</img>\n <alt>" . xml($row['emotion']) . "</alt>\n ! </smilies>"; } $last_url = $row['smiley_url']; } ! echo '</xml>'; die; } *************** *** 1416,1424 **** break; ! case "delete": $id = request_var('id', 0); if (!$id) { ! print "<error>" . $user->lang['NO_SHOUT_ID'] . "</error></xml>"; die; } --- 1416,1424 ---- break; ! case 'delete': $id = request_var('id', 0); if (!$id) { ! echo '<error>' . $user->lang['NO_SHOUT_ID'] . '</error></xml>'; die; } *************** *** 1426,1430 **** { // Lets delete this post :D ! $sql = "DELETE FROM " . SHOUTBOX_TABLE . " WHERE shout_id = " . $id; if (!$db->sql_query($sql)) { --- 1426,1430 ---- { // Lets delete this post :D ! $sql = 'DELETE FROM ' . SHOUTBOX_TABLE . ' WHERE shout_id = ' . $id; if (!$db->sql_query($sql)) { *************** *** 1433,1437 **** else { ! print "<msg></msg></xml>"; die; } --- 1433,1437 ---- else { ! echo '<msg></msg></xml>'; die; } *************** *** 1439,1443 **** break; ! case "add": if ($user->data['user_type'] == USER_IGNORE ) { --- 1439,1443 ---- break; ! case 'add': if ($user->data['user_type'] == USER_IGNORE ) { *************** *** 1450,1454 **** $time = time() - (3600 * 24 * 14);//3600 seconds in 1 hour, 24 hours in a day, 14 days in 2 weeks. ! $sql = "DELETE FROM " . SHOUTBOX_TABLE . " WHERE shout_time < $time"; if (!$db->sql_query($sql)) { --- 1450,1454 ---- $time = time() - (3600 * 24 * 14);//3600 seconds in 1 hour, 24 hours in a day, 14 days in 2 weeks. ! $sql = 'DELETE FROM ' . SHOUTBOX_TABLE . " WHERE shout_time < $time"; if (!$db->sql_query($sql)) { *************** *** 1462,1468 **** if (!($auth->acl_get('a_') || $auth->acl_getf_global('m_'))) { ! $sql = "SELECT MAX(shout_time) AS last_post_time ! FROM " . SHOUTBOX_TABLE . " ! WHERE shout_user_id = " . $user->data['user_id']; if ($result = $db->sql_query($sql)) { --- 1462,1468 ---- if (!($auth->acl_get('a_') || $auth->acl_getf_global('m_'))) { ! $sql = 'SELECT MAX(shout_time) AS last_post_time ! FROM ' . SHOUTBOX_TABLE . ' ! WHERE shout_user_id = ' . $user->data['user_id']; if ($result = $db->sql_query($sql)) { *************** *** 1472,1476 **** if ($row['last_post_time'] > 0 && ( $current_time - $row['last_post_time'] ) < $config['flood_interval']) { ! print "<error>" . $user->lang['FLOOD_ERROR'] . "</error></xml>"; die; } --- 1472,1476 ---- if ($row['last_post_time'] > 0 && ( $current_time - $row['last_post_time'] ) < $config['flood_interval']) { ! echo '<error>' . $user->lang['FLOOD_ERROR'] . '</error></xml>'; die; } *************** *** 1486,1495 **** if (empty($message)) { ! print "<error>" . $user->lang['MESSAGE_EMPTY'] . "</error></xml>"; die; } ! else if (strpos($message, "[quote") !== false || strpos($message, "[code") !== false || strpos($message, "[list") !== false) { ! print "<error>" . $user->lang['NO_QUOTE'] . "</error></xml>"; die; } --- 1486,1495 ---- if (empty($message)) { ! echo '<error>' . $user->lang['MESSAGE_EMPTY'] . '</error></xml>'; die; } ! else if (strpos($message, '[quote') !== false || strpos($message, '[code') !== false || strpos($message, '[list') !== false) { ! echo '<error>' . $user->lang['NO_QUOTE'] . '</error></xml>'; die; } *************** *** 1516,1520 **** sql_error($sql, __LINE__, __FILE__); } ! print "<msg>" . $user->lang['POSTED'] . "</msg></xml>"; die; } --- 1516,1520 ---- sql_error($sql, __LINE__, __FILE__); } ! echo '<msg>' . $user->lang['POSTED'] . '</msg></xml>'; die; } *************** *** 1522,1530 **** break; ! case "check": $last = request_var('last', 1); ! $sql = "SELECT shout_time AS s FROM " . SHOUTBOX_TABLE . " ! ORDER BY shout_time DESC LIMIT 1"; ! $result = $db->sql_query($sql); if (!$result) { --- 1522,1530 ---- break; ! case 'check': $last = request_var('last', 1); ! $sql = 'SELECT shout_time AS s FROM ' . SHOUTBOX_TABLE . ' ! ORDER BY shout_time DESC'; ! $result = $db->sql_query_limit($sql, 1); if (!$result) { *************** *** 1535,1545 **** $row = $db->sql_fetchrow($result); $s = $row['s']; ! print "<last>$s</last><tijd>" . (int)($s != $last) . "</tijd></xml>"; die; } break; ! case 'nr': ! $sql = "SELECT COUNT(shout_id) as nr FROM " . SHOUTBOX_TABLE; $result = $db->sql_query($sql); if (!$result) --- 1535,1545 ---- $row = $db->sql_fetchrow($result); $s = $row['s']; ! echo "<last>$s</last><tijd>" . (int)($s != $last) . '</tijd></xml>'; die; } break; ! case 'number': ! $sql = 'SELECT COUNT(shout_id) as nr FROM ' . SHOUTBOX_TABLE; $result = $db->sql_query($sql); if (!$result) *************** *** 1549,1553 **** $row = $db->sql_fetchrow($result); $row = (int)$row['nr']; ! print "<nr>$row</nr></xml>"; die; break; --- 1549,1553 ---- $row = $db->sql_fetchrow($result); $row = (int)$row['nr']; ! echo "<nr>$row</nr></xml>"; die; break; *************** *** 1557,1564 **** $start = ($start < 0) ? 0 : $start; ! $sql = "SELECT s.*, u.user_colour, u.username, u.user_id FROM " . SHOUTBOX_TABLE . " s, ".USERS_TABLE." u WHERE s.shout_user_id = u.user_id ! ORDER BY s.shout_time DESC"; $result = $db->sql_query_limit($sql, $shout_number, $start); if (!$result) --- 1557,1564 ---- $start = ($start < 0) ? 0 : $start; ! $sql = 'SELECT s.*, u.user_colour, u.username, u.user_id FROM ' . SHOUTBOX_TABLE . ' s, ' . USERS_TABLE . ' u WHERE s.shout_user_id = u.user_id ! ORDER BY s.shout_time DESC'; $result = $db->sql_query_limit($sql, $shout_number, $start); if (!$result) *************** *** 1571,1575 **** if (!sizeof($data)) { ! print "<error>" . $user->lang['NO_MESSAGE'] . "</error></xml>"; die; } --- 1571,1575 ---- if (!sizeof($data)) { ! echo '<error>' . $user->lang['NO_MESSAGE'] . '</error></xml>'; die; } *************** *** 1578,1582 **** { $row = $data[$i]; ! print "<posts>\n"; $row['username'] = get_username_string('full', $row['user_id'], xml(htmlspecialchars_decode($row['username'])), $row['user_colour']); --- 1578,1582 ---- { $row = $data[$i]; ! echo "<posts>\n"; $row['username'] = get_username_string('full', $row['user_id'], xml(htmlspecialchars_decode($row['username'])), $row['user_colour']); *************** *** 1598,1621 **** unset($row['shout_userip']); } ! foreach ($row as $el => $wa) { ! if (is_numeric($el)) { continue; } ! print "\t<$el>$wa</$el>\n"; } ! print "</posts>\n"; } ! print "</xml>"; die; } break; } ! if (in_array($mode, $ajax_m)) { ! print "<error></error>"; ! ! print '</xml>'; } --- 1598,1619 ---- unset($row['shout_userip']); } ! foreach ($row as $key => $value) { ! if (is_numeric($key)) { continue; } ! echo "\t<$key>$value</$key>\n"; } ! echo "</posts>\n"; } ! echo '</xml>'; die; } break; } ! if (in_array($mode, $ajax_mode)) { ! echo '<error></error></xml>'; } *************** *** 1669,1673 **** $err = $db->sql_error(); $err = xml($err['message']); ! print "<error>$err</error>\n<sql>$sql</sql>\n</xml>"; die; } --- 1667,1671 ---- $err = $db->sql_error(); $err = xml($err['message']); ! echo "<error>$err</error>\n<sql>$sql</sql>\n</xml>"; die; } |
From: Paul S. <pau...@us...> - 2007-09-19 08:19:15
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6039 Modified Files: Tag: phpbb3_ver install.xml Log Message: Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.28 retrieving revision 1.19.2.29 diff -C2 -d -r1.19.2.28 -r1.19.2.29 *** install.xml 17 Sep 2007 11:59:15 -0000 1.19.2.28 --- install.xml 19 Sep 2007 08:19:11 -0000 1.19.2.29 *************** *** 119,122 **** --- 119,134 ---- </changelog> </entry> + + <entry> + <date>2007-09-xx</date> + <rev-version> + <major>0</major> + <minor>0</minor> + <revision>6</revision> + </rev-version> + <changelog lang="en"> + <change>Fixed a mistake with the new cdata function.</change> + </changelog> + </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> |
From: Paul S. <pau...@us...> - 2007-09-19 08:19:09
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6039/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.30 retrieving revision 1.21.2.31 diff -C2 -d -r1.21.2.30 -r1.21.2.31 *** ajax.php 17 Sep 2007 18:23:17 -0000 1.21.2.30 --- ajax.php 19 Sep 2007 08:19:11 -0000 1.21.2.31 *************** *** 14,17 **** --- 14,18 ---- define('IN_PHPBB', true); define('AJAX_DEBUG', false); + $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); |