From: <be...@us...> - 2012-07-31 12:58:07
|
Revision: 9961 http://xoops.svn.sourceforge.net/xoops/?rev=9961&view=rev Author: beckmi Date: 2012-07-31 12:57:55 +0000 (Tue, 31 Jul 2012) Log Message: ----------- Adding version 5.0 by Trabis Added Paths: ----------- XoopsModules/shoutbox/trunk/shoutbox/admin/ XoopsModules/shoutbox/trunk/shoutbox/admin/index.php XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php XoopsModules/shoutbox/trunk/shoutbox/blocks/ XoopsModules/shoutbox/trunk/shoutbox/blocks/index.html XoopsModules/shoutbox/trunk/shoutbox/blocks/shoutbox.php XoopsModules/shoutbox/trunk/shoutbox/class/ XoopsModules/shoutbox/trunk/shoutbox/class/database.php XoopsModules/shoutbox/trunk/shoutbox/class/file.php XoopsModules/shoutbox/trunk/shoutbox/class/index.html XoopsModules/shoutbox/trunk/shoutbox/class/shoutbox.php XoopsModules/shoutbox/trunk/shoutbox/header.php XoopsModules/shoutbox/trunk/shoutbox/images/ XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/ XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest1.gif XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest2.gif XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest3.gif XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest4.gif XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest5.gif XoopsModules/shoutbox/trunk/shoutbox/images/index.html XoopsModules/shoutbox/trunk/shoutbox/images/module_logo.png XoopsModules/shoutbox/trunk/shoutbox/images/newlogoblank.png XoopsModules/shoutbox/trunk/shoutbox/images/nonavatar.gif XoopsModules/shoutbox/trunk/shoutbox/images/offline.gif XoopsModules/shoutbox/trunk/shoutbox/images/online.gif XoopsModules/shoutbox/trunk/shoutbox/include/ XoopsModules/shoutbox/trunk/shoutbox/include/functions.php XoopsModules/shoutbox/trunk/shoutbox/include/index.html XoopsModules/shoutbox/trunk/shoutbox/include/module.php XoopsModules/shoutbox/trunk/shoutbox/index.html XoopsModules/shoutbox/trunk/shoutbox/language/ XoopsModules/shoutbox/trunk/shoutbox/language/english/ XoopsModules/shoutbox/trunk/shoutbox/language/english/admin.php XoopsModules/shoutbox/trunk/shoutbox/language/english/blocks.php XoopsModules/shoutbox/trunk/shoutbox/language/english/index.html XoopsModules/shoutbox/trunk/shoutbox/language/english/main.php XoopsModules/shoutbox/trunk/shoutbox/language/english/modinfo.php XoopsModules/shoutbox/trunk/shoutbox/language/index.html XoopsModules/shoutbox/trunk/shoutbox/new_shout.wav XoopsModules/shoutbox/trunk/shoutbox/online.php XoopsModules/shoutbox/trunk/shoutbox/popup.php XoopsModules/shoutbox/trunk/shoutbox/readme.txt XoopsModules/shoutbox/trunk/shoutbox/readme_archive.txt XoopsModules/shoutbox/trunk/shoutbox/shoutframe.php XoopsModules/shoutbox/trunk/shoutbox/shoutpopupframe.php XoopsModules/shoutbox/trunk/shoutbox/sql/ XoopsModules/shoutbox/trunk/shoutbox/sql/mysql.sql XoopsModules/shoutbox/trunk/shoutbox/style/ XoopsModules/shoutbox/trunk/shoutbox/style/index.html XoopsModules/shoutbox/trunk/shoutbox/style/shoutbox2.css XoopsModules/shoutbox/trunk/shoutbox/templates/ XoopsModules/shoutbox/trunk/shoutbox/templates/blocks/ XoopsModules/shoutbox/trunk/shoutbox/templates/blocks/index.html XoopsModules/shoutbox/trunk/shoutbox/templates/blocks/shoutbox_block.html XoopsModules/shoutbox/trunk/shoutbox/templates/index.html XoopsModules/shoutbox/trunk/shoutbox/templates/shoutbox_online.html XoopsModules/shoutbox/trunk/shoutbox/templates/shoutbox_popup.html XoopsModules/shoutbox/trunk/shoutbox/templates/shoutbox_popupframe.html XoopsModules/shoutbox/trunk/shoutbox/templates/shoutbox_popupheader.html XoopsModules/shoutbox/trunk/shoutbox/templates/shoutbox_shoutframe.html XoopsModules/shoutbox/trunk/shoutbox/xoops_version.php Added: XoopsModules/shoutbox/trunk/shoutbox/admin/index.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/index.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/index.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,125 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: index.php 0 2010-01-29 18:47:04Z trabis $ + */ +// Hello admin? +include '../../../include/cp_header.php'; +// Admin! + +function shoutboxDefault() +{ + global $xoopsModuleConfig; + + if($xoopsModuleConfig['storage_type'] == 'database') { + $database = '['._AM_SH_EDIT_INUSE.']'; + $file = ''; + } else if($xoopsModuleConfig['storage_type'] == 'file') { + $database = ''; + $file = '['._AM_SH_EDIT_INUSE.']'; + } + + echo " + <h1>"._AM_SH_CONFIG."</h1> + <br /> + "._AM_SH_CHOOSE." + <ul> + <li><a href='index.php?op=shoutboxList'>" . _AM_SH_EDIT_DB . "</a> $database</li> + <li><a href='index.php?op=shoutboxFile'>" . _AM_SH_EDIT_FILE . "</a> $file</li> + <li><a href='index.php?op=shoutboxStatus'>" . _AM_SH_STATUSOF . "</a></li> + </ul> + <br /> + "; +} + +function shoutboxList() +{ + global $xoopsDB; + include 'shoutboxList.php'; +} + +function shoutboxEdit() +{ + global $xoopsDB; + include 'shoutboxEdit.php'; +} + +function shoutboxSave() +{ + global $xoopsDB; + include 'shoutboxSave.php'; +} + +function shoutboxRemove() +{ + global $xoopsDB; + include 'shoutboxRemove.php'; +} + +function shoutboxFile() +{ + global $xoopsDB; + include 'shoutboxFile.php'; +} + +function shoutboxStatus() +{ + global $xoopsDB, $xoopsModuleConfig; + include 'shoutboxStatus.php'; +} + +$op = empty($_GET["op"]) ? '' : $_GET["op"]; + +switch ($op){ + case "shoutboxList": + xoops_cp_header(); + shoutboxList(); + break; + + case "shoutboxEdit": + xoops_cp_header(); + shoutboxEdit(); + break; + + case "shoutboxSave": + shoutboxSave(); + break; + + case "shoutboxRemove": + shoutboxRemove(); + break; + + case "shoutboxFile": + xoops_cp_header(); + shoutboxFile(); + break; + + case "shoutboxStatus": + xoops_cp_header(); + shoutboxStatus(); + break; + + default: + xoops_cp_header(); + shoutboxDefault(); + break; + +} + +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,28 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: menu.php 0 2010-01-29 18:47:04Z trabis $ + */ + +$adminmenu[1]['title'] = _MI_SHOUTBOX_MENU_DB; +$adminmenu[1]['link'] = "admin/index.php?op=shoutboxList"; +$adminmenu[2]['title'] = _MI_SHOUTBOX_MENU_FILE; +$adminmenu[2]['link'] = "admin/index.php?op=shoutboxFile"; +$adminmenu[3]['title'] = _MI_SHOUTBOX_MENU_STATUS; +$adminmenu[3]['link'] = "admin/index.php?op=shoutboxStatus"; +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,98 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutboxEdit.php 0 2010-01-29 18:47:04Z trabis $ + */ + +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { + exit(); +} + +include_once XOOPS_ROOT_PATH.'/class/module.textsanitizer.php'; + +$sanitizer = new MyTextSanitizer; + +// Check or ID is a number +$id = intval($_GET['id']); + +$handler = xoops_getModuleHandler('database', 'shoutbox'); + +// Check or we got a shout +if (!$obj = $handler->get($id)) { + /** + * Or we got none, or something really strange happend here... + */ + redirect_header("index.php", 3, _AM_SH_INVALID_ID); +} + + +// Make code ready for preview +$shout = $obj->getValues(); +$shout['date'] = $obj->time(_DATESTRING); + +echo " +<form action='index.php?op=shoutboxSave' method='post'> +<table width='100%' class='outer' cellspacing='1'> +<tbody> +<tr> +<th colspan='2'>".sprintf(_AM_SH_EDIT_TITLE, $shout['date'])."</th> +</tr> +<tr valign='top' align='left'> +<td class='odd'> +<b>"._AM_SH_POSTER."</b> +</td> +<td class='even'>\n"; + +if($shout['uid'] != 0) { + echo "<input type='text' size='30' maxlength='30' name='shoutboxUname' value='$shout[uname]' readonly='readonly' />"; +} else { + echo "<input type='text' size='30' maxlength='30' name='shoutboxUname' value='$shout[uname]' />"; +} +echo " +</td> +</tr> +<tr valign='top' align='left'> +<td class='odd'> +<b>"._AM_SH_EDIT_FROM."</b> +</td> +<td class='even'> +<input type='text' size='30' maxlength='30' name='shoutboxIp' value='$shout[ip]' /> +</td> +</tr> +<tr valign='top' align='left'> +<td class='odd'> +<b>"._AM_SH_MESSAGE."</b> +</td> +<td class='even'> +<input type='text' name='shoutboxMessage' size='100' maxlength='200' value='$shout[message]' /> +</td> +</tr> +<tr class='foot'> +<td colspan='2' align='center'> +<input type='hidden' name='id' value='$shout[id]' /> +<input type='hidden' name='uid' value='$shout[uid]' /> + +<input type='submit' name='submit' value='"._SUBMIT."' /> +<input type='button' value='"._CANCEL."' onClick='location=\"index.php?op=shoutboxList\"' /> +</td> +</tr> +</tbody> +</table> +</form> +"; +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,97 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutboxFile.php 0 2010-01-29 18:47:04Z trabis $ + */ + +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { + exit(); +} + +include_once XOOPS_ROOT_PATH . '/class/module.textsanitizer.php'; +$sanitizer =& MyTextSanitizer::getInstance(); + +$path = XOOPS_ROOT_PATH . '/uploads/shoutbox/shout.csv'; +$source = file_get_contents($path); +$source = $sanitizer->htmlSpecialChars($source); +$hash = sha1_file($path); +$invalidhash = false; + +if (!empty($_POST['action']) && $_POST['action'] == 'Update') { + if (empty($_POST['forceUpdate']) && $hash != $_POST['hash']) { + echo "<h1>" . _AM_SH_FILE_HASH_FAILED . "</h1>"; + $invalidhash = true; + $source = $sanitizer->stripSlashesGPC($_POST['shoutboxSource']); + $source = $sanitizer->htmlSpecialChars($source); + } else { + $source = $sanitizer->stripSlashesGPC($_POST['shoutboxSource']); + + if ($file = fopen($path, "w")) { + fwrite($file, $source); + fclose($file); + echo "<h1>"._AM_SH_FILE_UPDATED."</h1>"; + } else { + echo "<h1>"._AM_SH_FILE_FAILED."</h1>"; + } + } +} + +echo " +<form action='index.php?op=shoutboxFile' method='post'> +<table width='100%' class='outer' cellspacing='1'> +<tbody> +<tr> +<th colspan='2'>"._AM_SH_FILE_TITLE."</th> +</tr> +<tr valign='top' align='left'> +<td class='odd' width='20%'> +<b>"._AM_SH_FILE_SOURCE."</b><br /> +"._AM_SH_FILE_SOURCED." +</td> +<td class='even'> +<textarea name='shoutboxSource' rows='25' cols='98%'>$source</textarea> +</td> +</tr>"; + +if ($invalidhash == true) { + echo " + <tr valign='top' align='left'> + <td class='odd' width='20%'> + <b>"._AM_SH_FILE_HASH."</b><br /> + "._AM_SH_FILE_HASHD." + </td> + <td class='even'> + <input type='checkbox' name='forceUpdate' value='yes' checked='checked' /> + </td> + </tr> + "; +} + +echo " +<tr class='foot'> +<td colspan='2' align='center'> +<input type='hidden' name='hash' value='$hash' /> +<input type='hidden' name='action' value='Update' /> +<input type='submit' name='submit' value='"._SUBMIT."' /> +</td> +</tr> +<tbody> +</table> +</form>"; + +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,71 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutboxList.php 0 2010-01-29 18:47:04Z trabis $ + */ + +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { + exit(); +} + +include_once(XOOPS_ROOT_PATH.'/class/module.textsanitizer.php'); +$sanitizer = new MyTextSanitizer; + +echo "<h4 style='text-align: left;'>"._AM_SH_CONFIG."</h4>\n"; +echo " +<table class='outer' width='100%' cellpadding='4' cellspacing='1'> +<tr> +<th width='15%' align='left'>"._AM_SH_POSTER."</th> +<th width='15%' align='left'>"._AM_SH_LIST_TIME."</th> +<th width='55%' align='center'>"._AM_SH_MESSAGE."</th> +<th width='15%' align='right'>"._AM_SH_LIST_ACTION."</th> +</tr>\n"; + +$evodd = "even"; +$result = $xoopsDB->query("SELECT `id`, `uid`, `uname`, `time`, `ip`, `message` FROM ".$xoopsDB->prefix('shoutbox')." ORDER BY `time` DESC LIMIT 0, 50"); + +if(!$xoopsDB->getRowsNum($result)) { + echo "<tr class='even' align='center'><td colspan='4'>"._AM_SH_LIST_NOSHOUTS."</td></tr>"; +} + +while (list($msg_id, $user_id, $uname, $time, $ip, $message) = $xoopsDB->fetchRow($result)) { + + if ($evodd == "even") { + echo "<tr class='even' align='center' valign='top'>\n"; + } else { + echo "<tr class='even' align='center' valign='top'>\n"; + } + + echo "<td align='left'> + <div title='UID: $user_id | IP: $ip'>$uname"; if($user_id == 0) { echo '*'; } echo "</div> + </td> + <td align='left'> + ".formatTimestamp($time, _DATESTRING)." + </td> + <td align='center'> + $message + </td> + <td align='right'> + <a href='index.php?op=shoutboxEdit&id=$msg_id'>"._EDIT."</a> / <a href='index.php?op=shoutboxRemove&id=$msg_id'>"._DELETE."</a> + </td>"; + + echo "</tr>"; +} + +echo "<tr class='foot'><td colspan='4'> </td></tr></table>"; +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,93 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutboxRemove.php 0 2010-01-29 18:47:04Z trabis $ + */ +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { + exit(); +} +$id = intval($_REQUEST['id']); +$handler = xoops_getModuleHandler('database', 'shoutbox'); +// Request or confirmation? +if (!empty($_POST['confirm']) && $_POST['confirm'] == 'yes') { + // Sanitize inputs + $obj = $handler->get($id); + if (is_object($obj) && $handler->delete($obj)) { + redirect_header("index.php", 2, _AM_SH_REMOVE_SUCCES); + } else { + redirect_header("index.php", 4, _AM_SH_REMOVE_FAILURE); + } +} else { + xoops_cp_header(); + // Check or we got a shout + if (!$obj = $handler->get($id)) { + /** + * Or we got none, or something really strange happend here... + */ + redirect_header("index.php", 3, _AM_SH_INVALID_ID); + } + + // Make code ready for preview + $shout = $obj->getValues(); + $shout['date'] = $obj->time(_DATESTRING); + + echo " + <form action='index.php?op=shoutboxRemove' method='post'> + <table width='100%' class='outer' cellspacing='1'> + <tbody> + <tr> + <th colspan='2'>".sprintf(_AM_SH_REMOVE_TITLE, $shout['date'])."</th> + </tr> + <tr valign='top' align='left'> + <td class='odd'> + <b>"._AM_SH_POSTER."</b> + </td> + <td class='even'> + $shout[uname] + </td> + </tr> + <tr valign='top' align='left'> + <td class='odd'> + <b>"._AM_SH_REMOVE_FROM."</b> + </td> + <td class='even'> + $shout[ip] + </td> + </tr> + <tr valign='top' align='left'> + <td class='odd'> + <b>"._AM_SH_MESSAGE."</b> + </td> + <td class='even'> + $shout[message] + </td> + </tr> + <tr class='foot'> + <td colspan='2' align='center'> + <input type='hidden' name='id' value='$shout[id]' /> + <input type='hidden' name='confirm' value='yes' /> + <input type='submit' name='submit' value='"._DELETE."' /> + <input type='button' value='"._CANCEL."' onClick='location=\"index.php?op=shoutboxList\"' /> + </td> + </tr> + </tbody> + </table> + </form> + "; +} +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,53 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutboxSave.php 0 2010-01-29 18:47:04Z trabis $ + */ + +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { + exit(); +} + +$handler = xoops_getModuleHandler('database', 'shoutbox'); + +$id = intval($_POST['id']); +if (!$obj = $handler->get($id)) { + /** + * Or we got none, or something really strange happend here... + */ + redirect_header("index.php", 3, _AM_SH_INVALID_ID); +} + +if (!preg_match("/^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$/", $_POST['shoutboxIp'])) { + // This check is far from perfect but... + exit('Whoops! [ERROR 24]'); +} + +$obj->setVar('uname', $_POST['shoutboxUname']); +$obj->setVar('ip', $_POST['shoutboxIp']); +$obj->setVar('message', $_POST['shoutboxMessage']); + + +// Execute query +if ($handler->insert($obj)) { + redirect_header("index.php", 2, "Shout updated!"); +} else { + redirect_header("index.php", 4, "Error - Could not execute query..."); +} + +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,111 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutboxStatus.php 0 2010-01-29 18:47:04Z trabis $ + */ + +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { + exit(); +} + +// Count shouts in database and file +// Database: +$query = $xoopsDB->query("SELECT count(*) FROM ".$xoopsDB->prefix("shoutbox")); +$query = $xoopsDB->fetchRow($query); +$count_database = $query[0]; +// File: +$path = XOOPS_ROOT_PATH.'/uploads/shoutbox/shout.csv'; +$count_file = count(file($path)); + +// Size +// Database: +// [Source: http://www.webmasterworld.com/forum88/2069.htm] +$rows = $xoopsDB->queryF("SHOW table STATUS"); +while ($row = $xoopsDB->fetchBoth($rows)) { + if($row['Name'] == $xoopsDB->prefix("shoutbox")) { + $size_database = $row['Data_length'] + $row['Index_length']; + } +} +// File: +$size_file = filesize($path); + +echo " +<table width='100%' class='outer' cellspacing='1'> +<tbody> +<tr> +<th colspan='2'>"._AM_SH_STATUS_TITLE."</th> +</tr> + + +<tr valign='top' align='left'> +<td class='odd'> +<b>"._AM_SH_STATUS_STORAGETYPE."</b> +</td> +<td class='even'> +$xoopsModuleConfig[storage_type] +</td> +</tr> +<tr valign='top' align='left'> +<td class='odd'> +<ul> +<li>"._AM_SH_STATUS_INDB."</li> +</ul> +</td> +<td class='even'> +$count_database +</td> +</tr> +<tr valign='top' align='left'> +<td class='odd'> +<ul> +<li>"._AM_SH_STATUS_INFILE."</li> +</ul> +</td> +<td class='even'> +$count_file +</td> +</tr> + + +<tr valign='top' align='left'> +<td class='odd'> +<b>"._AM_SH_STATUS_SIZEDB."</b> +</td> +<td class='even'> +$size_database bytes +</td> +</tr> +<tr valign='top' align='left'> +<td class='odd'> +<b>"._AM_SH_STATUS_SIZEFILE."</b> +</td> +<td class='even'> +$size_file bytes +</td> +</tr> + + +<tr class='foot'> +<td colspan='2' align='center'> + +</td> +</tr> +</tbody> +</table> +"; +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/blocks/index.html =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/blocks/index.html (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/blocks/index.html 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/blocks/shoutbox.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/blocks/shoutbox.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/blocks/shoutbox.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,68 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutbox.php 0 2010-01-29 18:47:04Z trabis $ + */ + +function b_shoutbox_show($options) +{ + include_once XOOPS_ROOT_PATH . '/modules/shoutbox/include/functions.php'; + global $xoopsUser, $xoopsConfig; + + $module_handler =& xoops_gethandler('module'); + $module =& $module_handler->getByDirname('shoutbox'); + $config_handler =& xoops_gethandler('config'); + $block =& $config_handler->getConfigsByCat(0, $module->getVar('mid')); + + if ($block['captcha_enable']) { + xoops_load('XoopsFormCaptcha'); + $shoutcaptcha = new XoopsFormCaptcha(); + $block['captcha_caption'] = $shoutcaptcha->getCaption(); + $block['captcha_render'] = $shoutcaptcha->render(); + } + + $block['shoutbox_access'] = false; + if (is_object($xoopsUser)) { + $block['shoutbox_access'] = true; + $block['shoutbox_uname'] = $xoopsUser->getVar('uname'); + $block['shoutbox_userid'] = $xoopsUser->getVar('uid'); + } else if ($block['guests_may_post']) { + $block['shoutbox_access'] = true; + $block['shoutbox_uname'] = shoutbox_makeGuestName(); + $block['shoutbox_uid'] = 0; + } + + $block['shoutbox_anonymous'] = $xoopsConfig['anonymous']; + + if ($block['show_smileybar']) { + ob_start(); + include_once XOOPS_ROOT_PATH . '/include/xoopscodes.php'; + xoopsSmilies('shoutfield'); + $block['shoutbox_smibar'] = ob_get_contents(); + ob_end_clean(); + $block['shoutbox_smibar'] = str_replace("<a href='#moresmiley' onmouseover='style.cursor=\"hand\"' alt=''","<a href='#moresmiley' onmouseover='style.cursor=\"hand\"' title='More'", $block['shoutbox_smibar']); + } + + if (!is_object($xoopsUser) && !$block['popup_guests']) { + $block['popup'] = false; + } + + return $block; +} + +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/class/database.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/class/database.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/class/database.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,111 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * Shoutbox class + * + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @since 5.0 + * @author trabis <lus...@gm...> + * @version $Id: db.php 0 2010-01-06 18:47:04Z trabis $ + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +class ShoutboxDatabase extends XoopsObject +{ + /** + * constructor + */ + function ShoutboxDatabase() + { + $this->initVar("id", XOBJ_DTYPE_INT); + $this->initVar("uid", XOBJ_DTYPE_INT); + $this->initVar("uname", XOBJ_DTYPE_TXTBOX); + $this->initVar("time", XOBJ_DTYPE_STIME); + $this->initVar("ip", XOBJ_DTYPE_TXTBOX); + $this->initVar("message", XOBJ_DTYPE_TXTAREA); + + $this->initVar("dohtml", XOBJ_DTYPE_INT, 0); + $this->initVar("doxcode", XOBJ_DTYPE_INT, 0); + $this->initVar("dosmiley", XOBJ_DTYPE_INT, 1); + $this->initVar("doimage", XOBJ_DTYPE_INT, 1); + $this->initVar("dobr", XOBJ_DTYPE_INT, 0); + } + + function time($dateFormat = 's', $format = 'S') + { + return formatTimestamp($this->getVar('time', $format), $dateFormat); + } + +} + +class ShoutboxDatabaseHandler extends XoopsPersistableObjectHandler +{ + function ShoutboxDatabaseHandler(&$db) + { + $this->__construct($db); + } + + function __construct($db) + { + parent::__construct($db, 'shoutbox', 'ShoutboxDatabase', 'id', 'uid'); + } + + function createShout() + { + return $this->create(); + } + + function saveShout($obj) + { + return $this->insert($obj); + } + + function getShouts($limit) + { + $criteria = new CriteriaCompo(); + $criteria->setSort('time'); + $criteria->setOrder('DESC'); + $criteria->setStart(0); + $criteria->setLimit($limit); + return $this->getObjects($criteria); + } + + function pruneShouts($limit) + { + $criteria = new CriteriaCompo(); + $criteria->setSort('id'); + $criteria->setOrder('DESC'); + $criteria->setStart(0); + $criteria->setLimit($limit); + $objs = $this->getList($criteria, true); + unset($criteria); + $criteria = new Criteria('id', '(' . implode(',', array_keys($objs)) . ')', 'NOT IN'); + return $this->deleteAll($criteria); + } + + function deleteShouts() + { + return $this->deleteAll(); + } + + function shoutExists($message, $ip) + { + $myts =& MyTextSanitizer::getInstance(); + $criteria = new CriteriaCompo(new Criteria('message', $myts->addSlashes($message))); + $criteria->add(new Criteria('ip', $ip)); + return $this->getCount($criteria) ? true : false; + } +} +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/class/file.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/class/file.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/class/file.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,150 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * Shoutbox class + * + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @since 5.0 + * @author trabis <lus...@gm...> + * @version $Id: file.php 0 2010-01-06 18:47:04Z trabis $ + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +class ShoutboxFile extends XoopsObject +{ + /** + * constructor + */ + function ShoutboxFile() + { + $this->initVar("id", XOBJ_DTYPE_INT); + $this->initVar("uid", XOBJ_DTYPE_INT); + $this->initVar("uname", XOBJ_DTYPE_TXTBOX); + $this->initVar("time", XOBJ_DTYPE_STIME); + $this->initVar("ip", XOBJ_DTYPE_TXTBOX); + $this->initVar("message", XOBJ_DTYPE_TXTAREA); + + $this->initVar("dohtml", XOBJ_DTYPE_INT, 0); + $this->initVar("doxcode", XOBJ_DTYPE_INT, 0); + $this->initVar("dosmiley", XOBJ_DTYPE_INT, 1); + $this->initVar("doimage", XOBJ_DTYPE_INT, 1); + $this->initVar("dobr", XOBJ_DTYPE_INT, 0); + } + + function time($dateFormat = 's', $format = 'S') + { + return formatTimestamp($this->getVar('time', $format), $dateFormat); + } + +} + +class ShoutboxFileHandler extends XoopsPersistableObjectHandler +{ + var $csvfile; + + function ShoutboxFileHandler(&$db) + { + $this->__construct($db); + } + + function __construct($db) + { + $this->csvfile = XOOPS_ROOT_PATH . '/uploads/shoutbox/shout.csv'; + parent::__construct($db, '', 'ShoutboxFile', 'id', 'uid'); + } + + function createShout() + { + return $this->create(); + } + + function saveShout($obj) + { + $f = fopen($this->csvfile, 'a'); + fwrite($f, $obj->getVar('uname', 'n') . '|' . + $obj->getVar('message', 'n') . '|' . + $obj->getVar('time', 'n') . '|' . + $obj->getVar('ip', 'n') . '|' . + $obj->getVar('uid', 'n') . "\n"); + fclose($f); + return true; + } + + function getShouts($limit) + { + $objs = array(); + $shouts = file($this->csvfile); + $count = count($shouts) - 1; + $i = 0; + for ($count; $count >= 0; $count--) { + if ($limit <= $i) { + break; + } + $oneline = array(); + $oneline = explode('|', $shouts[$count]); + + $obj = $this->create(); + $obj->setVar('uname', $oneline[0]); + $obj->setVar('message', $oneline[1]); + $obj->setVar('time', $oneline[2]); + $obj->setVar('ip' , $oneline[3]); + $obj->setVar('uid', $oneline[4]); + $objs[] =& $obj; + unset($obj); + $i++; + } + return $objs; + } + + function pruneShouts($limit) + { + $shouts = file($this->csvfile); + $totrim = count($shouts) - $limit; + if ($totrim > 0) { + for ($i = 0; $i < $totrim; $i++) { + array_shift($shouts); + } + $f = fopen($this->csvfile, 'w'); + foreach ($shouts as $i => $line) { + fputs($f, $line); + } + fclose($f); + } + return true; + } + + function deleteShouts() + { + $f = fopen($this->csvfile, 'w'); + fclose($f); + return true; + } + + function shoutExists($message, $ip) + { + $shouts = file($this->csvfile); + if (!empty($shouts)) { + $count = count($shouts) - 1; + $oneline = explode('|', $shouts[$count]); + if (count($oneline) != 0) { + if ($oneline[3] == $ip && $oneline[1] == $message) { + return true; + } + } + } + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/class/index.html =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/class/index.html (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/class/index.html 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/class/shoutbox.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/class/shoutbox.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/class/shoutbox.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,126 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: shoutbox.php 0 2010-01-29 18:47:04Z trabis $ + */ + +include_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +class Shoutbox +{ + var $handler = ''; + + function Shoutbox($storage_type) + { + $this->handler =& xoops_getModuleHandler($storage_type, 'shoutbox'); + } + + function getDefaultAvatar() + { + if ($value = shoutbox_getOption('guest_avatar')) { + $avatar = XOOPS_URL . "/modules/shoutbox/images/guestavatars/guest" . $value . ".gif"; + } else { + $avatar = XOOPS_URL . '/uploags/blank.gif'; + } + return $avatar; + } + + function saveShout($uid, $uname, $message) + { + $myts =& MyTextSanitizer::getInstance(); + $obj = $this->handler->createShout(); + $obj->setVar('uid', $uid); + $obj->setVar('uname', $uname); + $obj->setVar('time', time()); + $obj->setVar('ip', getenv("REMOTE_ADDR")); + $obj->setVar('message', $message); + + if (!$this->handler->saveShout($obj)) { + return false; + } + + return true; + } + + function getShouts($online, $bbcode, $limit) + { + global $xoopsUser; + $shouts = array(); + $myts =& MyTextSanitizer::getInstance(); + $objs = $this->handler->getShouts($limit); + $i = 0; + foreach ($objs as $obj) { + $uid = $obj->getVar('uid'); + $shouts[$i]['uid'] = $uid; + $shouts[$i]['online'] = 0; + $shouts[$i]['url'] = ''; + $shouts[$i]['email'] = ''; + $shouts[$i]['avatar'] = $this->getDefaultAvatar(); + $shouts[$i]['uname'] = $obj->getVar('uname'); + $shouts[$i]['time'] = $obj->time(shoutbox_getOption('stamp_format')); + $shouts[$i]['ip'] = $obj->getVar('ip'); + + $obj->setVar('doxcode', $bbcode); + + $shouts[$i]['message'] = $myts->censorString($obj->getVar('message')); + if ($wordwrap = shoutbox_getOption('wordwrap_setting')) { + $shouts[$i]['message'] = wordwrap($shouts[$i]['message'], $wordwrap ,"\r\n", true); + } + + if ($uid != 0) { + $thisUser = new XoopsUser($uid); + if ($thisUser->isOnline()) { + $shouts[$i]['online'] = 1; + } + if ($thisUser->getVar("url") != "") { + $shouts[$i]['url'] = $thisUser->getVar("url"); + } + if ($thisUser->getVar("user_viewemail") == 1 || ($xoopsUser && $xoopsUser->isAdmin())) { + $shouts[$i]['email'] = $thisUser->getVar("email"); + } + $shouts[$i]['avatar'] = XOOPS_URL . '/uploads/' . $thisUser->getVar("user_avatar"); + } + $i++; + } + return $shouts; + } + + function pruneShouts($limit) + { + if ($limit > 0) { + return $this->handler->pruneShouts($limit); + } + return false; + } + + function deleteShouts() + { + global $xoopsUser; + if (!empty($xoopsUser) && $xoopsUser->isAdmin()) { + return $this->handler->deleteShouts(); + } + return false; + } + + function shoutExists($message) + { + return $this->handler->shoutExists($message, getenv("REMOTE_ADDR")); + } + +} +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/header.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/header.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/header.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,49 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author trabis <lus...@gm...> + * @version $Id: header.php 0 2010-01-29 18:47:04Z trabis $ + */ + +include_once dirname(dirname(dirname(__FILE__))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/class/template.php'; +error_reporting(0); +$GLOBALS['xoopsLogger']->activated = false; +$xoopsTpl = new XoopsTpl(); +$xoopsTpl->xoops_setCaching(0); + +$xoopsTpl->assign( +array( + 'xoops_theme' => $xoopsConfig['theme_set'], + 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/', + 'xoops_themecss'=> xoops_getcss($xoopsConfig['theme_set']), + 'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES), + 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), + 'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES) +) +); +$xoopsTpl->assign('xoops_js', '<script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script>'); +if (is_object($xoopsUser)) { + $xoopsTpl->assign(array('xoops_isuser' => true, 'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin)); +} else { + $xoopsTpl->assign(array('xoops_isuser' => false, 'xoops_isadmin' => false)); +} + +if (is_file('style/shoutbox.css')) { + $xoopsTpl->assign('themecss', 'style/shoutbox.css'); +} else { + $xoopsTpl->assign('themecss', xoops_getcss()); +} +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest1.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest1.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest2.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest2.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest3.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest3.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest4.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest4.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest5.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/guestavatars/guest5.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/index.html =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/images/index.html (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/images/index.html 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/images/module_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/module_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/newlogoblank.png =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/newlogoblank.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/nonavatar.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/nonavatar.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/offline.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/offline.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/online.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/online.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/include/functions.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/include/functions.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/include/functions.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,110 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: functions.php 0 2010-01-29 18:47:04Z trabis $ + */ + +function shoutbox_getOption($option, $dirname = 'shoutbox') +{ + static $modOptions = array(); + if (is_array($modOptions) && array_key_exists($option, $modOptions)) { + return $modOptions[$option]; + } + + $ret = null; + $module_handler =& xoops_gethandler('module'); + $module =& $module_handler->getByDirname($dirname); + $config_handler =& xoops_gethandler('config'); + if ($module) { + $moduleConfig =& $config_handler->getConfigsByCat(0, $module->getVar('mid')); + if (isset($moduleConfig[$option])) { + $ret = $moduleConfig[$option]; + } + } + $modOptions[$option] = $ret; + return $ret; +} + +function shoutbox_makeGuestName() +{ + global $xoopsConfig; + $ipadd = getenv('REMOTE_ADDR'); + $iparr = explode('.', $ipadd); + $ipadd = $iparr[0] + $iparr[1] + $iparr[2] + $iparr[3]; + $guestname = $xoopsConfig['anonymous'] . $ipadd; + return $guestname; +} + +function shoutbox_getUserName($uid = 0) +{ + xoops_load('XoopsUserUtility'); + $uname = XoopsUserUtility::getUnameFromId($uid, shoutbox_getOption('user_realname')); + return $uname; +} + +/** + * Most of these functions were written (originally) + * by Florian Solcher <e-xoops.alphalogic.org> + */ +function shoutbox_setCookie($timestamp) +{ + if (empty($_COOKIE['shoutcookie'])) { + setcookie("shoutcookie", $timestamp); + return false; + } + + if ($_COOKIE['shoutcookie'] < $timestamp) { + setcookie("shoutcookie", $timestamp); + return TRUE; + } else { + return FALSE; + } +} + +//irc like commands +function shoutbox_ircLike($command) +{ + global $xoopsModuleConfig, $xoopsUser, $special_stuff_head; + if ($command == "/quit") { + $special_stuff_head .= '<script language="javascript">'; + $special_stuff_head .= ' top.window.close();'; + $special_stuff_head .= '</script>'; + return true; + } + $commandlines=explode(' ',$command); + if (is_array($commandlines)) { + //general commands + //unregistered commands + if (!$xoopsUser) { + if (count($commandlines)==2) { + if (($commandlines[0]=='/nick') && ($commandlines[1]!='')) { + if($xoopsModuleConfig['guests_may_chname'] == 1) { + $special_stuff_head .= '<script language="javascript">'; + $special_stuff_head .= ' top.document.location.href="popup.php?username='.htmlentities($commandlines[1], ENT_QUOTES).'";'; + $special_stuff_head .= '</script>'; + return true; + } else { + return true; + } + } + } + } + } + return false; +} +?> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/include/index.html =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/include/index.html (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/include/index.html 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/include/module.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/include/module.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/include/module.php 2012-07-31 12:57:55 UTC (rev 9961) @@ -0,0 +1,151 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: module.php 0 2010-01-29 18:47:04Z trabis $ + */ + +function xoops_module_install_shoutbox(&$module) +{ + $newmid = $module->getVar('mid'); + $groups = array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS); + + // retrieve all block ids for this module + $blocks = XoopsBlock::getByModule($newmid, false); + $msgs[] = _MD_AM_GROUP_SETTINGS_ADD; + $gperm_handler =& xoops_gethandler('groupperm'); + foreach ($groups as $mygroup) { + if ($gperm_handler->checkRight('module_admin', 0, $mygroup)) { + $mperm =& $gperm_handler->create(); + $mperm->setVar('gperm_groupid', $mygroup); + $mperm->setVar('gperm_itemid', $newmid); + $mperm->setVar('gperm_name', 'module_admin'); + $mperm->setVar('gperm_modid', 1); + if (!$gperm_handler->insert($mperm)) { + $msgs[] = ' <span style="color:#ff0000;">' . sprintf(_MD_AM_ACCESS_ADMIN_ADD_ERROR, "<strong>" . $mygroup . "</strong>") . "</span>"; + } else { + $msgs[] = " " . sprintf(_MD_AM_ACCESS_ADMIN_ADD, "<strong>" . $mygroup . "</strong>"); + } + unset($mperm); + } + $mperm =& $gperm_handler->create(); + $mperm->setVar('gperm_groupid', $mygroup); + $mperm->setVar('gperm_itemid', $newmid); + $mperm->setVar('gperm_name', 'module_read'); + $mperm->setVar('gperm_modid', 1); + if (!$gperm_handler->insert($mperm)) { + $msgs[] = ' <span style="color:#ff0000;">' . sprintf(_MD_AM_ACCESS_USER_ADD_ERROR, "<strong>" . $mygroup . "</strong>") . "</span>"; + } else { + $msgs[] = ' ' . sprintf(_MD_AM_ACCESS_USER_ADD_ERROR, "<strong>" . $mygroup . "</strong>"); + } + unset($mperm); + foreach ($blocks as $blc) { + $bperm =& $gperm_handler->create(); + $bperm->setVar('gperm_groupid', $mygroup); + $bperm->setVar('gperm_itemid', $blc); + $bperm->setVar('gperm_name', 'block_read'); + $bperm->setVar('gperm_modid', 1); + if (!$gperm_handler->insert($bperm)) { + $msgs[] = ' <span style="color:#ff0000;">' . _MD_AM_BLOCK_ACCESS_ERROR . ' Block ID: <strong>' . $blc . '</strong> Group ID: <strong>' . $mygroup . '</strong></span>'; + } else { + $msgs[] = ' ' . _MD_AM_BLOCK_ACCESS . sprintf(_MD_AM_BLOCK_ID, "<strong>" . $blc . "</strong>") . sprintf(_MD_AM_GROUP_ID, "<strong>" . $mygroup . "</strong>"); + } + unset($bperm); + } + } + unset($blocks); + unset($groups); + + $cacheDir = XOOPS_ROOT_PATH . '/uploads/shoutbox'; + $cacheFile = $cacheDir . '/shout.csv'; + + if (!file_exists($cacheFile)) { + if (!is_dir($cacheDir)) { + if (!mkdir($cacheDir)) { + //$msgs[] = "Failed to create dir!"; + return false; + } else { + //$msgs[] = " Dir /uploads/shoutbox/ succesfully created!"; + chmod($cacheDir, 0777); + } + } + + if ($file = fopen($cacheFile, 'w')) { + if (!fwrite($file, "Shoutbox|Welcome to the Shoutbox v4.x for Xoops|1|111.111.111.111|guest\n")) { + //$msgs[] = " Could not put content in file /uploads/shoutbox/shout.cvs! Please create <i>manually</i>."; + } + fclose($file); + chmod($cacheFile, 0777); + //$msgs[] = " File /uploads/shoutbox/shout.cvs succesfully created!"; + return true; + } else { + //$msgs[] = " Could not create file /uploads/shoutbox/shout.cvs! Please create <i>manually</i>."; + return false; + } + } else { + return true; + } +} + +function xoops_module_uninstall_shoutbox(&$module) +{ + $cacheDir = XOOPS_ROOT_PATH . '/uploads/shoutbox'; + //Always check if a directory exists prior to creation + if (!is_dir($cacheDir)) { + return true; + } else { + return rmdirr($cacheDir); + } +} + +/** + * Delete a file, or a folder and its contents + * + * @author Aidan Lister <ai...@ph...> + * @version 1.0 + * @param string $dirname The directory to delete + * @return bool Returns true on success, false on failure + */ + +function rmdirr($dirname) +{ + // Simple de... [truncated message content] |
From: <be...@us...> - 2012-07-31 13:13:15
|
Revision: 9963 http://xoops.svn.sourceforge.net/xoops/?rev=9963&view=rev Author: beckmi Date: 2012-07-31 13:13:02 +0000 (Tue, 31 Jul 2012) Log Message: ----------- Release 5.01 Beta 1 (conversion to XOOPS 2.5.5 GUI) Modified Paths: -------------- XoopsModules/shoutbox/trunk/shoutbox/admin/index.php XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php XoopsModules/shoutbox/trunk/shoutbox/language/english/admin.php XoopsModules/shoutbox/trunk/shoutbox/xoops_version.php Added Paths: ----------- XoopsModules/shoutbox/trunk/shoutbox/admin/about.php XoopsModules/shoutbox/trunk/shoutbox/admin/admin_footer.php XoopsModules/shoutbox/trunk/shoutbox/admin/admin_header.php XoopsModules/shoutbox/trunk/shoutbox/admin/main.php XoopsModules/shoutbox/trunk/shoutbox/docs/ XoopsModules/shoutbox/trunk/shoutbox/docs/changelog.txt XoopsModules/shoutbox/trunk/shoutbox/docs/credits.txt XoopsModules/shoutbox/trunk/shoutbox/docs/index.html XoopsModules/shoutbox/trunk/shoutbox/docs/install.txt XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt XoopsModules/shoutbox/trunk/shoutbox/docs/license.txt XoopsModules/shoutbox/trunk/shoutbox/docs/readme.txt XoopsModules/shoutbox/trunk/shoutbox/images/off.png XoopsModules/shoutbox/trunk/shoutbox/images/on.png XoopsModules/shoutbox/trunk/shoutbox/language/english/help/ XoopsModules/shoutbox/trunk/shoutbox/language/english/help/help.html XoopsModules/shoutbox/trunk/shoutbox/language/english/help/index.html Removed Paths: ------------- XoopsModules/shoutbox/trunk/shoutbox/readme.txt XoopsModules/shoutbox/trunk/shoutbox/readme_archive.txt Added: XoopsModules/shoutbox/trunk/shoutbox/admin/about.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/about.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/about.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,30 @@ +<?php +/* + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * 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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/admin_footer.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/admin_footer.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/admin_footer.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,28 @@ +<?php +/* + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * 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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/admin_header.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/admin_header.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/admin_header.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,46 @@ +<?php +/* + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * 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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_BIRTHDAY_MODULEADMIN_MISSING, false); + } \ No newline at end of file Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/index.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/index.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/index.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -1,125 +1,57 @@ -<?php -/* - You may not change or alter any portion of this comment or credits - of supporting developers from this source code or any supporting source code - which is considered copyrighted (c) material of the original comment or credit authors. - - 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. - */ - -/** - * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Shoutbox - * @author Alphalogic <alp...@ho...> - * @author tank <tan...@co...> - * @author trabis <lus...@gm...> - * @version $Id: index.php 0 2010-01-29 18:47:04Z trabis $ - */ -// Hello admin? -include '../../../include/cp_header.php'; -// Admin! - -function shoutboxDefault() -{ - global $xoopsModuleConfig; - - if($xoopsModuleConfig['storage_type'] == 'database') { - $database = '['._AM_SH_EDIT_INUSE.']'; - $file = ''; - } else if($xoopsModuleConfig['storage_type'] == 'file') { - $database = ''; - $file = '['._AM_SH_EDIT_INUSE.']'; - } - - echo " - <h1>"._AM_SH_CONFIG."</h1> - <br /> - "._AM_SH_CHOOSE." - <ul> - <li><a href='index.php?op=shoutboxList'>" . _AM_SH_EDIT_DB . "</a> $database</li> - <li><a href='index.php?op=shoutboxFile'>" . _AM_SH_EDIT_FILE . "</a> $file</li> - <li><a href='index.php?op=shoutboxStatus'>" . _AM_SH_STATUSOF . "</a></li> - </ul> - <br /> - "; -} - -function shoutboxList() -{ - global $xoopsDB; - include 'shoutboxList.php'; -} - -function shoutboxEdit() -{ - global $xoopsDB; - include 'shoutboxEdit.php'; -} - -function shoutboxSave() -{ - global $xoopsDB; - include 'shoutboxSave.php'; -} - -function shoutboxRemove() -{ - global $xoopsDB; - include 'shoutboxRemove.php'; -} - -function shoutboxFile() -{ - global $xoopsDB; - include 'shoutboxFile.php'; -} - -function shoutboxStatus() -{ - global $xoopsDB, $xoopsModuleConfig; - include 'shoutboxStatus.php'; -} - -$op = empty($_GET["op"]) ? '' : $_GET["op"]; - -switch ($op){ - case "shoutboxList": - xoops_cp_header(); - shoutboxList(); - break; - - case "shoutboxEdit": - xoops_cp_header(); - shoutboxEdit(); - break; - - case "shoutboxSave": - shoutboxSave(); - break; - - case "shoutboxRemove": - shoutboxRemove(); - break; - - case "shoutboxFile": - xoops_cp_header(); - shoutboxFile(); - break; - - case "shoutboxStatus": - xoops_cp_header(); - shoutboxStatus(); - break; - - default: - xoops_cp_header(); - shoutboxDefault(); - break; - -} - -xoops_cp_footer(); -?> \ No newline at end of file +<?php +/* + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * 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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + +global $xoopsModuleConfig; + +$indexAdmin->addInfoBox(_AM_SHOUTBOX_CURRENT_SELECTION); +if($xoopsModuleConfig['storage_type'] == 'database') { + $database = '['._AM_SH_EDIT_INUSE.']'; + $file = ''; + $imgDB="<img src='../images/on.png'>"; + $imgFile="<img src='../images/off.png'>"; + $indexAdmin->addInfoBoxLine(_AM_SHOUTBOX_CURRENT_SELECTION, + $imgDB."<a href='main.php?op=shoutboxList'>" . _AM_SH_EDIT_DB . "</a> $database", 0, 'Green' ); + $indexAdmin->addInfoBoxLine(_AM_SHOUTBOX_CURRENT_SELECTION, + $imgFile."<a href='main.php?op=shoutboxFile'>" . _AM_SH_EDIT_FILE . "</a> $file", 0, 'Green' ); +} else if($xoopsModuleConfig['storage_type'] == 'file') { + $database = ''; + $file = '['._AM_SH_EDIT_INUSE.']'; + $imgDB="<img src='../images/off.png'>"; + $imgFile="<img src='../images/on.png'>"; + $indexAdmin->addInfoBoxLine(_AM_SHOUTBOX_CURRENT_SELECTION, + $imgDB."<a href='main.php?op=shoutboxList'>" . _AM_SH_EDIT_DB . "</a> $database", 0, 'Green' ); + $indexAdmin->addInfoBoxLine(_AM_SHOUTBOX_CURRENT_SELECTION, + $imgFile."<a href='main.php?op=shoutboxFile'>" . _AM_SH_EDIT_FILE . "</a> $file", 0, 'Green' ); +} + + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/admin/main.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/main.php (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/main.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,139 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + 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. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Shoutbox + * @author Alphalogic <alp...@ho...> + * @author tank <tan...@co...> + * @author trabis <lus...@gm...> + * @version $Id: main.php 0 2010-01-29 18:47:04Z trabis $ + */ +// Hello admin? +include '../../../include/cp_header.php'; +include_once 'admin_header.php'; +// Admin! + + + +function shoutboxDefault() +{ + global $xoopsModuleConfig; + + + if($xoopsModuleConfig['storage_type'] == 'database') { + $database = '['._AM_SH_EDIT_INUSE.']'; + $file = ''; + } else if($xoopsModuleConfig['storage_type'] == 'file') { + $database = ''; + $file = '['._AM_SH_EDIT_INUSE.']'; + } + + echo " + <h1>"._AM_SH_CONFIG."</h1> + <br /> + "._AM_SH_CHOOSE." + <ul> + <li><a href='main.php?op=shoutboxList'>" . _AM_SH_EDIT_DB . "</a> $database</li> + <li><a href='main.php?op=shoutboxFile'>" . _AM_SH_EDIT_FILE . "</a> $file</li> + <li><a href='main.php?op=shoutboxStatus'>" . _AM_SH_STATUSOF . "</a></li> + </ul> + <br /> + "; +} + +function shoutboxList() +{ + global $xoopsDB; + include 'shoutboxList.php'; +} + +function shoutboxEdit() +{ + global $xoopsDB; + include 'shoutboxEdit.php'; +} + +function shoutboxSave() +{ + global $xoopsDB; + include 'shoutboxSave.php'; +} + +function shoutboxRemove() +{ + global $xoopsDB; + include 'shoutboxRemove.php'; +} + +function shoutboxFile() +{ + global $xoopsDB; + include 'shoutboxFile.php'; +} + +function shoutboxStatus() +{ + global $xoopsDB, $xoopsModuleConfig; + include 'shoutboxStatus.php'; +} + +$op = empty($_GET["op"]) ? '' : $_GET["op"]; + +switch ($op){ + case "shoutboxList": + xoops_cp_header(); + $indexAdmin= new ModuleAdmin(); + echo $indexAdmin->addNavigation('main.php?op=shoutboxList'); + shoutboxList(); + break; + + case "shoutboxEdit": + xoops_cp_header(); + $indexAdmin= new ModuleAdmin(); + echo $indexAdmin->addNavigation('main.php'); + shoutboxEdit(); + break; + + case "shoutboxSave": + shoutboxSave(); + break; + + case "shoutboxRemove": + shoutboxRemove(); + break; + + case "shoutboxFile": + xoops_cp_header(); + $indexAdmin= new ModuleAdmin(); + echo $indexAdmin->addNavigation('main.php?op=shoutboxFile'); + shoutboxFile(); + break; + + case "shoutboxStatus": + xoops_cp_header(); + $indexAdmin= new ModuleAdmin(); + echo $indexAdmin->addNavigation('main.php?op=shoutboxStatus'); + shoutboxStatus(); + break; + + default: + xoops_cp_header(); + $indexAdmin= new ModuleAdmin(); + echo $indexAdmin->addNavigation('main.php'); + shoutboxDefault(); + break; + +} +include_once 'admin_footer.php'; +//xoops_cp_footer(); +//?> \ No newline at end of file Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/menu.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -18,11 +18,47 @@ * @author trabis <lus...@gm...> * @version $Id: menu.php 0 2010-01-29 18:47:04Z trabis $ */ +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); -$adminmenu[1]['title'] = _MI_SHOUTBOX_MENU_DB; -$adminmenu[1]['link'] = "admin/index.php?op=shoutboxList"; -$adminmenu[2]['title'] = _MI_SHOUTBOX_MENU_FILE; -$adminmenu[2]['link'] = "admin/index.php?op=shoutboxFile"; -$adminmenu[3]['title'] = _MI_SHOUTBOX_MENU_STATUS; -$adminmenu[3]['link'] = "admin/index.php?op=shoutboxStatus"; -?> \ No newline at end of file +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; + +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); +$pathModuleAdmin = $module->getInfo('dirmoduleadmin'); +$pathLanguage = $path . $pathModuleAdmin; + + +if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; +} + +include_once $fileinc; + +$adminmenu = array(); +$i=0; +$adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]["icon"] = $pathIcon32 . '/home.png'; +//$i++; +//$adminmenu[$i]['title'] = _AM_MODULEADMIN_HOME; +//$adminmenu[$i]['link'] = "admin/main.php"; +//$adminmenu[$i]["icon"] = $pathIcon32 . '/manage.png'; +$i++; +$adminmenu[$i]['title'] = _MI_SHOUTBOX_MENU_DB; +$adminmenu[$i]['link'] = "admin/main.php?op=shoutboxList"; +$adminmenu[$i]["icon"] = $pathIcon32 . '/list.png'; +$i++; +$adminmenu[$i]['title'] = _MI_SHOUTBOX_MENU_FILE; +$adminmenu[$i]['link'] = "admin/main.php?op=shoutboxFile"; +$adminmenu[$i]["icon"] = $pathIcon32 . '/index.png'; +$i++; +$adminmenu[$i]['title'] = _MI_SHOUTBOX_MENU_STATUS; +$adminmenu[$i]['link'] = "admin/main.php?op=shoutboxStatus"; +$adminmenu[$i]["icon"] = $pathIcon32 . '/search.png'; +$i++; +$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = $pathIcon32 . '/about.png'; \ No newline at end of file Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxEdit.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -19,7 +19,7 @@ * @version $Id: shoutboxEdit.php 0 2010-01-29 18:47:04Z trabis $ */ -if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/main.php')) { exit(); } Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxFile.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -19,7 +19,7 @@ * @version $Id: shoutboxFile.php 0 2010-01-29 18:47:04Z trabis $ */ -if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/main.php')) { exit(); } Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxList.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -19,7 +19,7 @@ * @version $Id: shoutboxList.php 0 2010-01-29 18:47:04Z trabis $ */ -if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/main.php')) { exit(); } Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxRemove.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -18,7 +18,7 @@ * @author trabis <lus...@gm...> * @version $Id: shoutboxRemove.php 0 2010-01-29 18:47:04Z trabis $ */ -if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/main.php')) { exit(); } $id = intval($_REQUEST['id']); Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxSave.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -19,7 +19,7 @@ * @version $Id: shoutboxSave.php 0 2010-01-29 18:47:04Z trabis $ */ -if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/main.php')) { exit(); } Modified: XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/admin/shoutboxStatus.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -19,7 +19,7 @@ * @version $Id: shoutboxStatus.php 0 2010-01-29 18:47:04Z trabis $ */ -if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/index.php')) { +if (!defined("XOOPS_MAINFILE_INCLUDED") || !strstr($_SERVER['PHP_SELF'], 'admin/main.php')) { exit(); } Added: XoopsModules/shoutbox/trunk/shoutbox/docs/changelog.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/changelog.txt (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/changelog.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,164 @@ +--------------------------------------- +5.01 Beta 1 2012-07-30 +--------------------------------------- + +- Converted to XOOPS 2.5.5 Admin GUI (Mamba) + +--------------------------------------- +5.00 Final 2010-01-24 +--------------------------------------- + +- Converted to Blue Move (Trabis) +- Classes were added and a lot of the code was rewritten. + +Database has changed so please do not upload this package over the old shoutbox. +- Unistall shoutbox +- Delete all files +- Upload new files +- Install Shoutbox + +**************************************************************************** + + Shoutbox v4.05 Release| Xoops Module by Tank | Dec 15, 2008 + Website: http://www.customvirtualdesigns.com + +**************************************************************************** + +Initial release 4.01 10/05/2008 + + - Posted messages can be stored in database table or csv file + - All components of message entry are routed through sanitizer prior to storage + - Dynamic resizing of pop-up window has been disabled until further testing + - Text entry field now contains options for single line text box or + multi-line text area with optional alerts when approaching message + length limit + - Display of registered user's avatar included in standard message block + - OnUpdate function provided so database table will be created (if + necessary) when updating from version 4.0 beta + + NOTE: If your current version of Shoutbox is earlier than v4.0 beta, it is + not known whether performing a module update will work properly. Our + recommendation would be to uninstall the current Shoutbox module and + perform a New Install. + +Update Release 4.02 11/01/2008 + + - Bug Fix: Typo in include/class.php causing some file storage processing + to be performed incorrectly + - Add guest avatar + - Popup window dynamic resizing re-designed using div tags and css + - Add captcha for guest posting with good guest mode + The module contains it's own copy of XOOPS 2.3.0 captcha class with + modifications to meet ShoutBox module requirements + - Add captcha enable/disable preference parameter + - Enable module style sheet so user can customize appearance + - Change Refresh and Popup from links to buttons in Shoutbox block + +Update Release 4.03 11/15/2008 + + - Bug Fix: Update text sanitizer functions to eliminate debug deprecated message + - Add wordwrap preference parameter for controlling message line display length + - Update style sheet to coincide with wordwrap feature so horizontal scroll bar + is automatically removed when not necessary + - Add display avatar preference parameter to enable/disable display of avatars + in the ShoutBox block. NOTE: This has no affect on Popup window. + - Remove local copy of captcha class. + - Add captcha support for Frameworks/captcha class. + +Update Release 4.04 12/01/2008 + + - Clean up some minor defects generating notices in debug mode + - Bug Fix: Add passing UID to template to correct page refresh problem + - Redefine how refresh works similar to the way it was in v4.02 + - Anytime an incorrect captcha code is entered the full page will refresh + regardless of the type of captcha class used + - If using Frameworks/captcha the full page will refresh for any message + entry performed by guest + - If using Core captcha only the message box, shout entry and captcha fields + will be refreshed when an entry is performed by guest + - Add word censoring support + - Add selectable guest avatars. If guest avatar is set to None then blank.gif + is placed in the avatar location. + - Add option for disable/enable sound on new message when using popup window + +Update Release 4.05 12/15/2008 + + - Add padding to sideboxcontent in module style sheet to provide some space + between avatars and message text + - Add javascript code in shoutframe and popupframe templates so URL's, when + selected, open in a new window. (target ="_blank") + NOTE: Special thanks to blueteen for this code + - Add comments to shoutbox.css style sheet to help users in making changes + - Add definitions in language files to eliminate all hard-coded text used + in templates + - Improve text sanitizing used in storing and retrieving messages + - Eliminate extra line feeds in text entry when stored as File type + +Credits: +======== +At the very beginning this module was developed for e-xoops aka runcms (XOOPS fork) but I ported it to XOOPS and never stopped porting... ;-) + +Thx for everything... +- Herko [herkocoomans.net]: Where would I be without his spiritual help? +- Shine aka Triangle [adoptietrefpunt.nl]: Without her guidance I wouldn't have been the same person! +- All the rest I now forget but couldn't live without! + +And those who helped developing me with shoutbox... +- Wizanda [wizanda.co.uk]: Kicking my ass for not following W3C guidelines... *shame* +- Masterprut [fueldump.de]: Helped me with those stupid javascript security measures (read: my scripting skills). +- Ackbarr: Small things, together big! + +Version 4.0 Beta +================ +* Fixed: Fixed XHTML so Tidy loves it (Thx to Wizanda [wizanda.co.uk] & Masterprut [fueldump.de]) +* Fixed: Javascript optimized so it isn't a mess anymore. + +* Added: You can now choose the storage method: file or database. Database is still experimental! +* Added: It's now possible to edit/remove shouts [database only] +* Added: You can now select the height and width of the popup. Popup stays resizeable! +* Added: The remove button now asks or you are sure you want to remove all posts. + +* Todo: CAPTCHA integration for guest users +* Todo: Make storage file moveable +* Todo: Fix known problem with popup for users that use crappy browser (aka IE) +* Todo: Fix unknown bugs :-) + +Version 3.2: +============ +* Fixed: Anonymous users could post when generating own form + +Version 3.1: +============ +* Fixed: Possible warning in popup. +* Fixed: Wrong variable selection in popupframe +* Fixed: Forgot ":" after anonymous name... + +* Changed: If you now deselect "guest" may post and block is visible to guests they will see the shouts but won't be able to add. This option gots now a logic! +* Changed: Almost all repeated actions are now packed in one class. This will speedy the conversion to a sql version. + +* Added: You got now a maxview function. This is seperated from the trim function. + +Install Notes: +============== +Deactivate, uninstall, remove folder if you upgrade from older version. Then upload new version and install. Be sure to set the Order of the Module to hide. (System Admin - Modules - Height -> '0') + +If you set the access rights be sure to change the rights for the block and the main - THIS IS NECESSARY -, if you just allow access to the Block, the groupmembers wont see the frame content, instead of this the shoutbox will load the non acess page and in the non access page there will be another shoutbox clone again and that will also display the no access page ... + +If you want to use a custom theme for the shoutbox, rename the the file style/shoutbox.temp.css to style/shoutbox.css and change it so it will fit your needs. + +Help: +===== +1. My database is really BIG even with trimming enabled? +-------------------------------------------------------- +Known problem. Shoutbox will ignore the trimming function when your select the database as your favorite storage method. This should be fixed in the next version. For now: live with or execute query "DELETE * FROM shoutbox WHERE time < ...". + +2. If I open main I get... +-------------------------- +You shouldn't open the mainpage of this module. Shoutbox exists as block and popup. Search for it in System Admin - Blocks. + +3. This module sucks! +--------------------- +Good for you. Move on! + + + Added: XoopsModules/shoutbox/trunk/shoutbox/docs/credits.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/credits.txt (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/credits.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,8 @@ +Credits +=============== + +Originally developed by Tank. + +Version 5.0 released by Trabis (Ricardo Costa). + +Version 5.01 was updated to XOOPS 2.5.5 Standard GUI by Michael Beck (Mamba) \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/docs/index.html =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/index.html (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/index.html 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/docs/install.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/install.txt (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/install.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,14 @@ +INSTALL/UNISTALL +================= + +No special measures necessary, follow the standard installation process and extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. + +Detailed instructions on installing modules are available in the XOOPS Operations Manual: http://goo.gl/adT2i + +UPGRADE WARNING for version 5.0+ + +Database has changed so please do not upload this package over the old shoutbox. +- Unistall shoutbox +- Delete all files +- Upload new files +- Install Shoutbox \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,14 @@ +LANGUAGE DIFFERENCES +===================== + +Below are language differences from a version to next version. + +Legend : ++ Added +- Removed +* Modified +x renamed + +--------------------------------------- +5.01 Beta 1 2012-07-30 +--------------------------------------- Added: XoopsModules/shoutbox/trunk/shoutbox/docs/license.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/license.txt (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/license.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, 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 Lesser 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 Street, 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 Lesser General +Public License instead of this License. Added: XoopsModules/shoutbox/trunk/shoutbox/docs/readme.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/readme.txt (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/readme.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,39 @@ +Shoutbox is an XOOPS module that provides an interactive block and pop-up +window for visitors to post and view messages. + +UPGRADE WARNING for version 5.0+ + +Database has changed so please do not upload this package over the old shoutbox. +- Unistall shoutbox +- Delete all files +- Upload new files +- Install Shoutbox + +FRESH Install Instructions: +1) After downloading, unzip the package +2) Upload the directory labeled 'shoutbox' to your server into the 'modules' subdirectory +3) Select Administration Menu >> System >> Modules +4) Scroll to bottom of screen and click the install icon associated with Shoutbox module +5) Don't forget to modify Shoutbox Preferences for desired features + +Using Word Censor +For word censoring go to Admin Menu -> System -> Preferences -> Word Censoring Options +enable word censoring and update the fields for bad words to censor and the replacement +phrase to be used. Visitors will see the replacement text wherever bad words are +detected. The original unaltered text entry can be viewed through the module admin +interface by selecting Database or File as applicable. + +Modifying Guest Avatars +You can replace the guest avatars supplied with the module release to your own +creations. The files are located in the shoutbox/images/guestavatars/ subdirectory. +The files are labeled: + guest1.gif + guest2.gif + guest3.gif + guest4.gif + guest5.gif +Each image is 80px wide by 80px high. + +For defining display attributes of your shoutbox a style sheet has been provided. +The file is /shoutbox/style/shoutbox.css +You can open this file and change tag attribute definitions to suit your needs. \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/images/off.png =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/off.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/shoutbox/trunk/shoutbox/images/on.png =================================================================== (Binary files differ) Property changes on: XoopsModules/shoutbox/trunk/shoutbox/images/on.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/shoutbox/trunk/shoutbox/language/english/admin.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/language/english/admin.php 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/language/english/admin.php 2012-07-31 13:13:02 UTC (rev 9963) @@ -45,4 +45,5 @@ define('_AM_SH_FILE_UPDATED','File updated'); define('_AM_SH_FILE_FAILED','Could not open file!'); -?> \ No newline at end of file +//5.01 +define('_AM_SHOUTBOX_CURRENT_SELECTION','Current Selection'); \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/language/english/help/help.html =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/language/english/help/help.html (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/language/english/help/help.html 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1,34 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/shoutbox/admin/index.php" + title="Back to the administration of Shoutbox"> Shoutbox + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of Shoutbox"/> + </a></h1> + + <h4 class="odd">Description</h4> + + <p class="even">Shoutbox is an XOOPS module that provides an interactive block and pop-up + window for visitors to post and view messages. .<br /> <br /> + </p> + + <h4 class="odd">Install/uninstall</h4> + + <p class="even">No special measures necessary, follow the standard installation process – + extract the module folder into the ../modules directory. Install the + module through Admin -> System Module -> Modules.<br /> <br /> + Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> </p> + + + <h4 class="odd">Operating instructions</h4> + + This module and its operations are very simple.<br /> <br /> + Detailed instructions on configuring the access rights for user groups are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br /> <br /> + + <h4 class="odd">Tutorial</h4> + + <p class="even">There is no tutorial available at the moment.</p> + +</div> \ No newline at end of file Added: XoopsModules/shoutbox/trunk/shoutbox/language/english/help/index.html =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/language/english/help/index.html (rev 0) +++ XoopsModules/shoutbox/trunk/shoutbox/language/english/help/index.html 2012-07-31 13:13:02 UTC (rev 9963) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Deleted: XoopsModules/shoutbox/trunk/shoutbox/readme.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/readme.txt 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/readme.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -1,32 +0,0 @@ -Shoutbox is an XOOPS module that provides an interactive block and pop-up -window for visitors to post and view messages. For background info and -previous developer credits refer to "readme_archive.txt". - -Install Instructions: -1) After downloading, unzip the package -2) Upload the directory labeled 'shoutbox' to your server into the 'modules' subdirectory -3) Select Administration Menu >> System >> Modules -4) Scroll to bottom of screen and click the install icon associated with Shoutbox module -5) Don't forget to modify Shoutbox Preferences for desired features - -Using Word Censor -For word censoring go to Admin Menu -> System -> Preferences -> Word Censoring Options -enable word censoring and update the fields for bad words to censor and the replacement -phrase to be used. Visitors will see the replacement text wherever bad words are -detected. The original unaltered text entry can be viewed through the module admin -interface by selecting Database or File as applicable. - -Modifying Guest Avatars -You can replace the guest avatars supplied with the module release to your own -creations. The files are located in the shoutbox/images/guestavatars/ subdirectory. -The files are labeled: - guest1.gif - guest2.gif - guest3.gif - guest4.gif - guest5.gif -Each image is 80px wide by 80px high. - -For defining display attributes of your shoutbox a style sheet has been provided. -The file is /shoutbox/style/shoutbox.css -You can open this file and change tag attribute definitions to suit your needs. \ No newline at end of file Deleted: XoopsModules/shoutbox/trunk/shoutbox/readme_archive.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/readme_archive.txt 2012-07-31 13:11:37 UTC (rev 9962) +++ XoopsModules/shoutbox/trunk/shoutbox/readme_archive.txt 2012-07-31 13:13:02 UTC (rev 9963) @@ -1,146 +0,0 @@ -**************************************************************************** - - Shoutbox v4.05 Release| Xoops Module by Tank | Dec 15, 2008 - Website: http://www.customvirtualdesigns.com - -**************************************************************************** - -Initial release 4.01 10/05/2008 - - - Posted messages can be stored in database table or csv file - - All components of message entry are routed through sanitizer prior to storage - - Dynamic resizing of pop-up window has been disabled until further testing - - Text entry field now contains options for single line text box or - multi-line text area with optional alerts when approaching message - length limit - - Display of registered user's avatar included in standard message block - - OnUpdate function provided so database table w... [truncated message content] |
From: <be...@us...> - 2012-08-07 07:07:13
|
Revision: 10001 http://xoops.svn.sourceforge.net/xoops/?rev=10001&view=rev Author: beckmi Date: 2012-08-07 07:07:07 +0000 (Tue, 07 Aug 2012) Log Message: ----------- Adding missing language constants. Updating to RC 1 Modified Paths: -------------- XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt XoopsModules/shoutbox/trunk/shoutbox/include/module.php XoopsModules/shoutbox/trunk/shoutbox/language/english/main.php XoopsModules/shoutbox/trunk/shoutbox/xoops_version.php Modified: XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt 2012-08-07 06:56:25 UTC (rev 10000) +++ XoopsModules/shoutbox/trunk/shoutbox/docs/lang_diff.txt 2012-08-07 07:07:07 UTC (rev 10001) @@ -12,3 +12,13 @@ --------------------------------------- 5.01 Beta 1 2012-07-30 --------------------------------------- + +main.php +-------- +define('_MD_AM_GROUP_SETTINGS_ADD','Add Group Settings'); +define('_MD_AM_BLOCK_ID','Block ID'); +define('_MD_AM_ACCESS_ADMIN_ADD','Add Admin Access'); +define('_MD_AM_ACCESS_USER_ADD_ERROR',"User couldn't be added"); +define('_MD_AM_BLOCK_ACCESS','Block Access'); +define('_MD_AM_GROUP_ID','Group ID'); +define('_MD_AM_WELCOME','Welcome to the Shoutbox for XOOPS'); \ No newline at end of file Modified: XoopsModules/shoutbox/trunk/shoutbox/include/module.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/include/module.php 2012-08-07 06:56:25 UTC (rev 10000) +++ XoopsModules/shoutbox/trunk/shoutbox/include/module.php 2012-08-07 07:07:07 UTC (rev 10001) @@ -21,9 +21,13 @@ function xoops_module_install_shoutbox(&$module) { + $newmid = $module->getVar('mid'); $groups = array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS); + $thisModuleDir = $module->getVar('dirname'); + xoops_loadLanguage('main', $thisModuleDir); + // retrieve all block ids for this module $blocks = XoopsBlock::getByModule($newmid, false); $msgs[] = _MD_AM_GROUP_SETTINGS_ADD; @@ -85,7 +89,7 @@ } if ($file = fopen($cacheFile, 'w')) { - if (!fwrite($file, "Shoutbox|Welcome to the Shoutbox v4.x for Xoops|1|111.111.111.111|guest\n")) { + if (!fwrite($file, "Shoutbox|"._MD_AM_WELCOME."|1|111.111.111.111|guest\n")) { //$msgs[] = " Could not put content in file /uploads/shoutbox/shout.cvs! Please create <i>manually</i>."; } fclose($file); Modified: XoopsModules/shoutbox/trunk/shoutbox/language/english/main.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/language/english/main.php 2012-08-07 06:56:25 UTC (rev 10000) +++ XoopsModules/shoutbox/trunk/shoutbox/language/english/main.php 2012-08-07 07:07:07 UTC (rev 10001) @@ -14,4 +14,13 @@ define("_MD_SHOUTBOX_POPUP_NOSHOUTS", "No shouts!"); define("_MD_SHOUTBOX_POPUP_AUTOFOCUS", "Auto-Focus"); define("_MD_SHOUTBOX_POPUP_SOUND_ON", "Sound On New Message Enable"); -?> \ No newline at end of file + +// 5.01 + +define('_MD_AM_GROUP_SETTINGS_ADD','Add Group Settings'); +define('_MD_AM_BLOCK_ID','Block ID'); +define('_MD_AM_ACCESS_ADMIN_ADD','Add Admin Access'); +define('_MD_AM_ACCESS_USER_ADD_ERROR',"User couldn't be added"); +define('_MD_AM_BLOCK_ACCESS','Block Access'); +define('_MD_AM_GROUP_ID','Group ID'); +define('_MD_AM_WELCOME','Welcome to the Shoutbox for XOOPS'); \ No newline at end of file Modified: XoopsModules/shoutbox/trunk/shoutbox/xoops_version.php =================================================================== --- XoopsModules/shoutbox/trunk/shoutbox/xoops_version.php 2012-08-07 06:56:25 UTC (rev 10000) +++ XoopsModules/shoutbox/trunk/shoutbox/xoops_version.php 2012-08-07 07:07:07 UTC (rev 10001) @@ -23,17 +23,17 @@ die('XOOPS root path not defined'); } -$modversion['name'] = _MI_SHOUTBOX_NAME; -$modversion['version'] = '5.01'; +$modversion['name'] = _MI_SHOUTBOX_NAME; +$modversion['version'] = '5.01'; $modversion['description'] = _MI_SHOUTBOX_DESC; -$modversion['credits'] = "The XOOPS Project"; +$modversion['credits'] = "The XOOPS Project"; $modversion['help'] = 'page=help'; $modversion['license'] = 'GNU GPL 2.0 or later'; $modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; -$modversion['official'] = 0; -$modversion['image'] = "images/module_logo.png"; -$modversion['dirname'] = "shoutbox"; -$modversion['author'] = 'Tank, Trabis'; +$modversion['official'] = 0; +$modversion['image'] = "images/module_logo.png"; +$modversion['dirname'] = "shoutbox"; +$modversion['author'] = 'Tank, Trabis'; $modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; $modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; @@ -42,13 +42,12 @@ $modversion['release_date'] = '2012/05/09'; $modversion["module_website_url"] = "http://www.xoops.org/"; $modversion["module_website_name"] = "XOOPS"; -$modversion["module_status"] = "Beta 1"; +$modversion["module_status"] = "RC 1"; $modversion['min_php'] = '5.2'; $modversion['min_xoops'] = "2.5.5"; $modversion['min_admin'] = '1.1'; $modversion['min_db'] = array( - 'mysql' => '5.0.7', - 'mysqli' => '5.0.7' + 'mysql' => '5.0.7', 'mysqli' => '5.0.7' ); // Admin things This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |