onokazu
onoka****@users*****
2005年 8月 13日 (土) 09:48:07 JST
Index: xoops2jp/html/include/commentform.inc.php diff -u xoops2jp/html/include/commentform.inc.php:1.2 xoops2jp/html/include/commentform.inc.php:1.2.12.1 --- xoops2jp/html/include/commentform.inc.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/include/commentform.inc.php Sat Aug 13 09:48:07 2005 @@ -1,5 +1,5 @@ <?php -// $Id: commentform.inc.php,v 1.2 2005/03/18 12:51:55 onokazu Exp $ +// $Id: commentform.inc.php,v 1.2.12.1 2005/08/13 00:48:07 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -25,32 +25,35 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; include XOOPS_ROOT_PATH."/class/xoopsformloader.php"; $cform = new XoopsThemeForm(_CM_POSTCOMMENT, "commentform", "postcomment.php"); if (!preg_match("/^re:/i", $subject)) { - $subject = "Re: ".xoops_substr($subject,0,56); + $subject = "Re: ".xoops_substr($subject,0,56); } $cform->addElement(new XoopsFormText(_CM_TITLE, 'subject', 50, 255, $subject), true); $icons_radio = new XoopsFormRadio(_MESSAGEICON, 'icon', $icon); $subject_icons = XoopsLists::getSubjectsList(); foreach ($subject_icons as $iconfile) { - $icons_radio->addOption($iconfile, '<img src="'.XOOPS_URL.'/images/subject/'.$iconfile.'" alt="" />'); + $icons_radio->addOption($iconfile, '<img src="'.XOOPS_URL.'/images/subject/'.$iconfile.'" alt="" />'); } $cform->addElement($icons_radio); $cform->addElement(new XoopsFormDhtmlTextArea(_CM_MESSAGE, 'message', $message, 10, 50), true); $option_tray = new XoopsFormElementTray(_OPTIONS,'<br />'); if ($xoopsUser) { - if ($xoopsConfig['anonpost'] == 1) { - $noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname); - $noname_checkbox->addOption(1, _POSTANON); - $option_tray->addElement($noname_checkbox); - } - if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml); - $nohtml_checkbox->addOption(1, _DISABLEHTML); - $option_tray->addElement($nohtml_checkbox); - } + if ($xoopsConfig['anonpost'] == 1) { + $noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname); + $noname_checkbox->addOption(1, _POSTANON); + $option_tray->addElement($noname_checkbox); + } + if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { + $nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml); + $nohtml_checkbox->addOption(1, _DISABLEHTML); + $option_tray->addElement($nohtml_checkbox); + } } $smiley_checkbox = new XoopsFormCheckBox('', 'nosmiley', $nosmiley); $smiley_checkbox->addOption(1, _DISABLESMILEY); Index: xoops2jp/html/include/registerform.php diff -u xoops2jp/html/include/registerform.php:1.4 xoops2jp/html/include/registerform.php:1.4.2.1 --- xoops2jp/html/include/registerform.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/registerform.php Sat Aug 13 09:48:07 2005 @@ -1,5 +1,5 @@ <?php -// $Id: registerform.php,v 1.4 2005/08/03 12:39:11 onokazu Exp $ +// $Id: registerform.php,v 1.4.2.1 2005/08/13 00:48:07 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -25,6 +25,9 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; Index: xoops2jp/html/include/searchform.php diff -u xoops2jp/html/include/searchform.php:1.2 xoops2jp/html/include/searchform.php:1.2.12.1 --- xoops2jp/html/include/searchform.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/include/searchform.php Sat Aug 13 09:48:07 2005 @@ -1,5 +1,5 @@ <?php -// $Id: searchform.php,v 1.2 2005/03/18 12:51:55 onokazu Exp $ +// $Id: searchform.php,v 1.2.12.1 2005/08/13 00:48:07 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -24,6 +24,10 @@ // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; // create form @@ -35,9 +39,9 @@ $type_select->addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT)); $search_form->addElement($type_select); if (!empty($mids)) { - $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mids); + $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mids); } else { - $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mid); + $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mid); } if (empty($modules)) { $criteria = new CriteriaCompo(); @@ -57,7 +61,7 @@ } $search_form->addElement($mods_checkbox); if ($xoopsConfigSearch['keyword_min'] > 0) { - $search_form->addElement(new XoopsFormLabel(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']))); + $search_form->addElement(new XoopsFormLabel(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']))); } $search_form->addElement(new XoopsFormHidden("action", "results")); $search_form->addElement(new XoopsFormButton("", "submit", _SR_SEARCH, "submit"));