| 1 | <?php |
|---|
| 2 | // $Id: config.php,v 1.3 2005/09/04 20:46:10 onokazu Exp $ |
|---|
| 3 | // ------------------------------------------------------------------------ // |
|---|
| 4 | // XOOPS - PHP Content Management System // |
|---|
| 5 | // Copyright (c) 2000 XOOPS.org // |
|---|
| 6 | // <http://www.xoops.org/> // |
|---|
| 7 | // ------------------------------------------------------------------------ // |
|---|
| 8 | // This program is free software; you can redistribute it and/or modify // |
|---|
| 9 | // it under the terms of the GNU General Public License as published by // |
|---|
| 10 | // the Free Software Foundation; either version 2 of the License, or // |
|---|
| 11 | // (at your option) any later version. // |
|---|
| 12 | // // |
|---|
| 13 | // You may not change or alter any portion of this comment or credits // |
|---|
| 14 | // of supporting developers from this source code or any supporting // |
|---|
| 15 | // source code which is considered copyrighted (c) material of the // |
|---|
| 16 | // original comment or credit authors. // |
|---|
| 17 | // // |
|---|
| 18 | // This program is distributed in the hope that it will be useful, // |
|---|
| 19 | // but WITHOUT ANY WARRANTY; without even the implied warranty of // |
|---|
| 20 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // |
|---|
| 21 | // GNU General Public License for more details. // |
|---|
| 22 | // // |
|---|
| 23 | // You should have received a copy of the GNU General Public License // |
|---|
| 24 | // along with this program; if not, write to the Free Software // |
|---|
| 25 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // |
|---|
| 26 | // ------------------------------------------------------------------------ // |
|---|
| 27 | |
|---|
| 28 | // You shouldn't have to change any of these |
|---|
| 29 | $bbUrl['root'] = XOOPS_URL."/modules/newbb/"; |
|---|
| 30 | $bbUrl['admin'] = $bbUrl['root']."admin"; |
|---|
| 31 | $bbUrl['images'] = $bbUrl['root']."images"; |
|---|
| 32 | $bbUrl['smilies'] = $bbUrl['images']."smiles"; |
|---|
| 33 | |
|---|
| 34 | /* -- Cookie settings (lastvisit) -- */ |
|---|
| 35 | // Most likely you can leave this be, however if you have problems |
|---|
| 36 | // logging into the forum set this to your domain name, without |
|---|
| 37 | // the http:// |
|---|
| 38 | // For example, if your forum is at http://www.mysite.com/phpBB then |
|---|
| 39 | // set this value to |
|---|
| 40 | // $bbCookie['domain'] = "www.mysite.com"; |
|---|
| 41 | $bbCookie['domain'] = ""; |
|---|
| 42 | |
|---|
| 43 | // It should be safe to leave these alone as well. |
|---|
| 44 | $bbCookie['path'] = htmlspecialchars(str_replace(basename($_SERVER['PHP_SELF']),"",$_SERVER['PHP_SELF']),ENT_QUOTES); |
|---|
| 45 | $bbCookie['secure'] = false; |
|---|
| 46 | /* -- You shouldn't have to change anything after this point */ |
|---|
| 47 | /* -- Images -- */ |
|---|
| 48 | $bbImage['post'] = $bbUrl['images']."/post.gif"; |
|---|
| 49 | $bbImage['newposts_forum'] = $bbUrl['images']."/folder_new_big.gif"; |
|---|
| 50 | $bbImage['folder_forum'] = $bbUrl['images']."/folder_big.gif"; |
|---|
| 51 | $bbImage['locked_forum'] = $bbUrl['images']."/folder_locked_big.gif"; |
|---|
| 52 | $bbImage['folder_topic'] = $bbUrl['images']."/folder.gif"; |
|---|
| 53 | $bbImage['hot_folder_topic'] = $bbUrl['images']."/hot_folder.gif"; |
|---|
| 54 | $bbImage['newposts_topic'] = $bbUrl['images']."/red_folder.gif"; |
|---|
| 55 | $bbImage['hot_newposts_topic'] = $bbUrl['images']."/hot_red_folder.gif"; |
|---|
| 56 | $bbImage['locked_topic'] = $bbUrl['images']."/lock.gif"; |
|---|
| 57 | $bbImage['locktopic'] = $bbUrl['images']."/lock_topic.gif"; |
|---|
| 58 | $bbImage['deltopic'] = $bbUrl['images']."/del_topic.gif"; |
|---|
| 59 | $bbImage['movetopic'] = $bbUrl['images']."/move_topic.gif"; |
|---|
| 60 | $bbImage['unlocktopic'] = $bbUrl['images']."/unlock_topic.gif"; |
|---|
| 61 | $bbImage['sticky'] = $bbUrl['images']."/sticky.gif"; |
|---|
| 62 | $bbImage['unsticky'] = $bbUrl['images']."/unsticky.gif"; |
|---|
| 63 | $bbImage['newtopic'] = $bbUrl['images']."/new_topic-dark.jpg"; |
|---|
| 64 | $bbImage['folder_sticky'] = $bbUrl['images']."/folder_sticky.gif"; |
|---|
| 65 | |
|---|
| 66 | // set expire dates: one for a year, one for 10 minutes |
|---|
| 67 | $expiredate1 = time() + 3600 * 24 * 365; |
|---|
| 68 | $expiredate2 = time() + 600; |
|---|
| 69 | |
|---|
| 70 | // update LastVisit cookie. This cookie is updated each time auth.php runs |
|---|
| 71 | setcookie("NewBBLastVisit", time(), $expiredate1, $bbCookie['path'], $bbCookie['domain'], $bbCookie['secure']); |
|---|
| 72 | |
|---|
| 73 | // set LastVisitTemp cookie, which only gets the time from the LastVisit |
|---|
| 74 | // cookie if it does not exist yet |
|---|
| 75 | // otherwise, it gets the time from the LastVisitTemp cookie |
|---|
| 76 | if (!isset($_COOKIE["NewBBLastVisitTemp"])) { |
|---|
| 77 | if(isset($_COOKIE["NewBBLastVisit"])){ |
|---|
| 78 | $temptime = $_COOKIE["NewBBLastVisit"]; |
|---|
| 79 | }else{ |
|---|
| 80 | $temptime = time(); |
|---|
| 81 | } |
|---|
| 82 | } |
|---|
| 83 | else { |
|---|
| 84 | $temptime = $_COOKIE["NewBBLastVisitTemp"]; |
|---|
| 85 | } |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | // set cookie. |
|---|
| 89 | setcookie("NewBBLastVisitTemp", $temptime ,$expiredate2, $bbCookie['path'], $bbCookie['domain'], $bbCookie['secure']); |
|---|
| 90 | |
|---|
| 91 | // set vars for all scripts |
|---|
| 92 | $last_visit = $temptime; |
|---|
| 93 | |
|---|
| 94 | // Âбþ¾õ¶· |
|---|
| 95 | $arrResponse = array( |
|---|
| 96 | 1=>"¡Ý¡Ý¡Ý" // ²¿¤âÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¡ÊÊüÃÖ¤µ¤ì¤Æ¤¤¤ë¾õÂÖ¡Ë |
|---|
| 97 | ,2=>"³ÎÇ§Ãæ" // 狼¤¬ºÆ¸½ÊýË¡¤Ê¤É³Îǧ¤·¤Æ¤¯¤ì¤Æ¤¤¤ë¡£ |
|---|
| 98 | ,3=>"³«È¯Ãæ" // 狼¤¬³«È¯¤ÇÂбþ¤·¤Æ¤¯¤ì¤Æ¤¤¤ë¡£ |
|---|
| 99 | ,4=>"ÊÝα" // ÊÝα |
|---|
| 100 | ,9=>"²ò·èºÑ" // ¼ÁÌ䤨¤Î²óÅú¤¬¤¢¤Ã¤¿¡£¤Þ¤¿¤Ï¡¢³«È¯¤Ç¤ÎÂбþ¤¬¤¢¤Ã¤¿¡£ |
|---|
| 101 | ); |
|---|
| 102 | |
|---|
| 103 | ?> |
|---|