Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+227
-250
@@ -1,251 +1,228 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
//===========================================================================
|
||||
// Íåáîëüøàÿ áèáëèîòåêà, êîíòðîëèðóþùàÿ âñå ññûëêè àäìèíöåíòðà
|
||||
// Invision Power Board
|
||||
//===========================================================================
|
||||
|
||||
// CAT_ID => array( PAGE_ID => (PAGE_NAME, URL ) )
|
||||
|
||||
// $PAGES[ $cat_id ][$page_id][0] = Íàçâàíèå ñòðàíèöû
|
||||
// $PAGES[ $cat_id ][$page_id][1] = Ññûëêà
|
||||
// $PAGES[ $cat_id ][$page_id][2] = Ïðîñìîòð äèðåêòîðèè ïåðåä îòîáðàæåíèåì
|
||||
// $PAGES[ $cat_id ][$page_id][3] = Òèï ññûëêè: 1 = ôîðóì 0 = àäìèíöåíòð
|
||||
// $PAGES[ $cat_id ][$page_id][4] = Èêîíêà ìåíþ: 1 = ïåðåàäðåñàöèÿ 0 = íîðìàëüíàÿ
|
||||
|
||||
$PAGES = array(
|
||||
# ÍÀÑÒÐÎÉÊÈ
|
||||
|
||||
100 => array (
|
||||
|
||||
1 => array( 'Ñïèñîê íàñòðîåê', 'act=op' ),
|
||||
2 => array( 'Äîáàâèòü íàñòðîéêó' , 'act=op&code=settingnew' ),
|
||||
7 => array( 'Âêëþ÷åíèå/âûêëþ÷åíèå' , 'act=op&code=findsetting&key='.urlencode('boardoffline/online'), '', 0, 1 ),
|
||||
8 => array( 'Ïðàâèëà ôîðóìà' , 'act=op&code=findsetting&key='.urlencode('boardguidelines'), '', 0, 1 ),
|
||||
9 => array( 'Îñíîâíûå íàñòðîéêè' , 'act=op&code=findsetting&key='.urlencode('generalconfiguration'), '', 0, 1 ),
|
||||
10 => array( 'Íàñòðîéêè áûñòðîäåéñòâèÿ' , 'act=op&code=findsetting&key='.urlencode('cpusaving&optimization'), '', 0, 1 ),
|
||||
//11 => array( 'IP Chat' , 'act=pin&code=ipchat' ),
|
||||
12 => array( 'Ðåãèñòðàöèÿ IPB' , 'act=pin&code=reg' ),
|
||||
//14 => array( 'IPB Óäàëåíèå êîïèðàéòà' , 'act=pin&code=copy' ),
|
||||
),
|
||||
|
||||
# ÓÏÐÀÂËÅÍÈÅ ÏÎËÜÇÎÂÀÒÅËßÌÈ
|
||||
|
||||
200 => array (
|
||||
1 => array( 'Ñîçäàòü ôîðóì' , 'act=forum&code=new' ),
|
||||
2 => array( 'Ñïèñîê ôîðóìîâ' , 'act=forum' ),
|
||||
3 => array( 'Ìàñêè äîñòóïà' , 'act=group&code=permsplash'),
|
||||
6 => array( 'Ìîäåðàòîðû' , 'act=mod' ),
|
||||
7 => array( 'Ìóëüòè-ìîäåðàöèÿ òåì', 'act=multimod' ),
|
||||
8 => array( 'Íàñòðîéêè êîðçèíû' , 'act=op&code=findsetting&key=trashcanset-up', '', 0, 1 ),
|
||||
),
|
||||
|
||||
|
||||
300 => array (
|
||||
1 => array ( 'Ïîèñê è ðåäàêòèðîâàíèå' , 'act=mem&code=search' ),
|
||||
2 => array ( 'Äîáàâèòü ïîëüçîâàòåëÿ' , 'act=mem&code=add' ),
|
||||
6 => array ( 'Çâàíèÿ' , 'act=mem&code=title'),
|
||||
7 => array ( 'Ãðóïïû' , 'act=group' ),
|
||||
8 => array ( 'Íåàêòèâèðîâàííûå' , 'act=mem&code=mod' ),
|
||||
9 => array ( 'Äîïîëíèòåëüíûå ïîëÿ' , 'act=field' ),
|
||||
11 => array ( 'Èíñòðóìåíòû IP' , 'act=mtools' ),
|
||||
12 => array ( 'Ïðîôèëè ïîëüçîâàòåëåé' , 'act=op&code=findsetting&key=userprofiles', '', 0, 1 ),
|
||||
),
|
||||
|
||||
|
||||
/*400 => array(
|
||||
1 => array( 'Manage Payment Gateways' , 'act=msubs&code=index-gateways' ),
|
||||
2 => array( 'Manage Packages' , 'act=msubs&code=index-packages' ),
|
||||
3 => array( 'Manage Transactions' , 'act=msubs&code=index-tools' ),
|
||||
4 => array( 'Manage Currencies' , 'act=msubs&code=currency' , ),
|
||||
5 => array( 'Manually Add Transaction' , 'act=msubs&code=addtransaction' ),
|
||||
6 => array( 'Install Payment Gateways' , 'act=msubs&code=install-index' ),
|
||||
9 => array( 'Subscription Settings' , 'act=op&code=findsetting&key='.urlencode('subscriptionsmanager'), '', 0, 1 ),
|
||||
),*/
|
||||
|
||||
# ÓÏÐÀÂËÅÍÈÅ ÏÓÁËÈÊÀÖÈÅÉ
|
||||
|
||||
500 => array (
|
||||
1 => array( 'Òèïû ôàéëîâ' , 'act=attach&code=types' ),
|
||||
2 => array( 'Ñòàòèñòèêà' , 'act=attach&code=stats' ),
|
||||
3 => array( 'Ïîèñê' , 'act=attach&code=search' ),
|
||||
),
|
||||
|
||||
|
||||
600 => array(
|
||||
1 => array( 'Ñïèñîê BB-êîäîâ' , 'act=admin&code=bbcode' ),
|
||||
2 => array( 'Äîáàâèòü BB-êîä' , 'act=admin&code=bbcode_add' ),
|
||||
),
|
||||
|
||||
700 => array(
|
||||
1 => array( 'Ñïèñîê ïàïîê ñî ñìàéëèêàìè' , 'act=admin&code=emo' ),
|
||||
2 => array( 'Èìïîðò è ýêñïîðò' , 'act=admin&code=emo_packsplash' ),
|
||||
),
|
||||
|
||||
800 => array (
|
||||
1 => array( 'Íåöåíçóðíûå ñëîâà', 'act=admin&code=badword' ),
|
||||
6 => array( 'Áëîêèðîâêà' , 'act=admin&code=ban' ),
|
||||
),
|
||||
|
||||
# ÑÒÈËÈ È ßÇÛÊÈ
|
||||
|
||||
900 => array (
|
||||
1 => array( 'Ñïèñîê ñòèëåé' , 'act=sets' ),
|
||||
2 => array( 'Èíñòðóìåíòû' , 'act=skintools' ),
|
||||
3 => array( 'Ïîèñê è çàìåíà' , 'act=skintools&code=searchsplash' ),
|
||||
4 => array( 'Èìïîðò è ýêñïîðò' , 'act=import' ),
|
||||
5 => array( 'Ïðîñòàÿ ñìåíà ëîãîòèïà' , 'act=skintools&code=easylogo' ),
|
||||
),
|
||||
|
||||
1000 => array (
|
||||
1 => array( 'Ñïèñîê ÿçûêîâ' , 'act=lang' ),
|
||||
2 => array( 'Èìïîðòèðîâàíèå' , 'act=lang&code=import' ),
|
||||
),
|
||||
|
||||
|
||||
# ÀÄÌÈÍÈÑÒÐÀÒÈÐÎÂÀÍÈÅ
|
||||
|
||||
1100 => array (
|
||||
1 => array( 'Ðàçäåëû ïîìîùè' , 'act=help' ),
|
||||
2 => array( 'Óïðàâëåíèå êåøåì' , 'act=admin&code=cache' ),
|
||||
3 => array( 'Ïåðåñ÷åò è îáíîâëåíèå' , 'act=rebuild' ),
|
||||
4 => array( 'Èíñòðóìåíòû î÷èñòêè' , 'act=rebuild&code=tools' ),
|
||||
),
|
||||
|
||||
1200 => array(
|
||||
1 => array( 'Ñïèñîê ðàññûëîê' , 'act=postoffice' ),
|
||||
2 => array( 'Ñîçäàòü ðàññûëêó' , 'act=postoffice&code=mail_new' ),
|
||||
3 => array( 'Æóðíàë e-mail îòïðàâëåíèé' , 'act=emaillog', '', 0, 1 ),
|
||||
4 => array( 'Æóðíàë e-mail îøèáîê' , 'act=emailerror', '', 0, 1 ),
|
||||
5 => array( 'Íàñòðîéêè e-mail ' , 'act=op&code=findsetting&key=emailset-up', '', 0, 1 ),
|
||||
),
|
||||
|
||||
1300 => array (
|
||||
1 => array( 'Ñïèñîê çàäà÷' , 'act=task' ),
|
||||
2 => array( 'Æóðíàë âûïîëíåííûõ çàäà÷ ' , 'act=task&code=log' ),
|
||||
),
|
||||
|
||||
|
||||
1400 => array(
|
||||
1 => array( 'Invision Gallery' , 'act=gallery' ),
|
||||
2 => array( '|-- Íàñòðîéêè' , 'act=op&code=findsetting&key='.urlencode('Íàñòðîéêè ãàëåðåè'), '', 0, 0 ),
|
||||
3 => array( '|-- Ìåíåäæåð àëüáîìîâ' , 'act=gallery&code=albums' , 'modules/gallery' ),
|
||||
4 => array( '|-- Ìåíåäæåð ìóëüòèìåäèà' , 'act=gallery&code=media' , 'modules/gallery' ),
|
||||
5 => array( '|-- Ãðóïïû' , 'act=gallery&code=groups' , 'modules/gallery' ),
|
||||
6 => array( '|-- Ñòàòèñòèêà' , 'act=gallery&code=stats' , 'modules/gallery' ),
|
||||
7 => array( '|-- Èíñòðóìåíòû' , 'act=gallery&code=tools' , 'modules/gallery' ),
|
||||
8 => array( ''-- Ïîëÿ çàãðóçêè' , 'act=gallery&code=postform', 'modules/gallery' ),
|
||||
),
|
||||
|
||||
1450 => array(
|
||||
1 => array( 'Community Blog' , 'act=blog' ),
|
||||
2 => array( 'Íàñòðîéêè' , 'act=op&code=findsetting&key='.urlencode('communityblog'), '', 0, 1 ),
|
||||
3 => array( 'Ãðóïïû' , 'act=blog&cmd=groups' ),
|
||||
4 => array( 'Áëîêè' , 'act=blog&cmd=cblocks' ),
|
||||
5 => array( 'Èíñòðóìåíòû' , 'act=blog&cmd=tools' ),
|
||||
),
|
||||
|
||||
1500 => array (
|
||||
1 => array( 'Ðåãèñòðàöèé' , 'act=stats&code=reg' ),
|
||||
2 => array( 'Íîâûõ òåì' , 'act=stats&code=topic' ),
|
||||
3 => array( 'Ñîîáùåíèé' , 'act=stats&code=post' ),
|
||||
4 => array( 'Ëè÷íûõ ñîîáùåíèé' , 'act=stats&code=msg' ),
|
||||
5 => array( 'Ïðîñìîòðîâ òåì' , 'act=stats&code=views' ),
|
||||
),
|
||||
|
||||
1600 => array (
|
||||
1 => array( 'Èíñòðóìåíòû' , 'act=mysql' ),
|
||||
2 => array( 'Ðåçåðâíàÿ êîïèÿ' , 'act=mysql&code=backup' ),
|
||||
3 => array( 'Èíôîðìàöèÿ î ñåðâåðå', 'act=mysql&code=runtime' ),
|
||||
4 => array( 'Ñèñòåìíûå ïåðåìåííûå' , 'act=mysql&code=system' ),
|
||||
5 => array( 'Ïðîöåññû' , 'act=mysql&code=processes' ),
|
||||
),
|
||||
|
||||
1700 => array(
|
||||
1 => array( 'Ìîäåðèðîâàíèå' , 'act=modlog' ),
|
||||
2 => array( 'Àäìèíèñòðàòèðîâàíèå' , 'act=adminlog' ),
|
||||
3 => array( 'E-mail îòïðàâëåíèÿ' , 'act=emaillog' ),
|
||||
4 => array( 'E-mail îøèáêè', 'act=emailerror' ),
|
||||
5 => array( 'Ïîèñêîâûå ðîáîòû' , 'act=spiderlog' ),
|
||||
6 => array( 'Ïðåäóïðåæäåíèÿ' , 'act=warnlog' ),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
$CATS = array (
|
||||
100 => array( "Ñèñòåìíûå íàñòðîéêè" , '#caf2d9;margin-bottom:12px;' ),
|
||||
|
||||
200 => array( 'Óïðàâëåíèå ôîðóìàìè' , '#F9FFA2' ),
|
||||
300 => array( 'Ïîëüçîâàòåëè è ãðóïïû' , '#F9FFA2' ),
|
||||
|
||||
//400 => array( "Ïîäïèñêè" , '#F9FFA2;margin-bottom:12px;' ),
|
||||
|
||||
500 => array( "Ïðèêðåïëÿåìûå ôàéëû" , '#f5cdcd' ),
|
||||
600 => array( "Äîïîëíèòåëüíûå BB-êîäû" , '#f5cdcd' ),
|
||||
700 => array( "Ñìàéëèêè" , '#f5cdcd' ),
|
||||
800 => array( "Ôèëüòðû", '#f5cdcd;margin-bottom:12px;' ),
|
||||
|
||||
900 => array( 'Ñòèëè' , '#DFE6EF' ),
|
||||
1000 => array( 'ßçûêè' , '#DFE6EF;margin-bottom:12px;' ),
|
||||
|
||||
1100 => array( 'Äîïîëíèòåëüíî' , '#caf2d9' ),
|
||||
1200 => array( 'Ðàáîòà ñ e-mail' , '#caf2d9' ),
|
||||
1300 => array( 'Ìåíåäæåð çàäà÷' , '#caf2d9;margin-bottom:12px;' ),
|
||||
|
||||
1400 => array( "Invision Gallery" , '#F9FFA2;' ),
|
||||
1450 => array( "Community Blog" , '#F9FFA2;margin-bottom:12px;' ),
|
||||
|
||||
1500 => array( 'Ñòàòèñòèêà' , '#f5cdcd' ),
|
||||
1600 => array( 'Óïðàâëåíèå SQL' , '#f5cdcd' ),
|
||||
1700 => array( 'Æóðíàëû îïåðàöèé' , '#f5cdcd' ),
|
||||
);
|
||||
|
||||
|
||||
|
||||
$DESC = array (
|
||||
100 => "Íàñòðîéêè ôîðóìà, òàêèå êàê íàñòðîéêà cookies, âîçìîæíîñòè ïî áåçîïàñíîñòè, âîçìîæíîñòè ïóáëèêàöèè ñîîáùåíèé è ò.ä.",
|
||||
|
||||
200 => "Ñîçäàíèå, èçìåíåíèå, óäàëåíèå è ñîðòèðîâêà êàòåãîðèé, ôîðóìîâ è ìîäåðàòîðîâ",
|
||||
300 => "Óïðàâëåíèå ïîëüçîâàòåëÿìè, ãðóïïàìè è çâàíèÿìè",
|
||||
|
||||
//400 => "Óïðàâëåíèå ïîäïèñêàìè âàøèõ ïîëüçîâàòåëåé",
|
||||
|
||||
500 => "Óïðàâëåíèå ïðèêðåïëÿåìûìè ôàéëàìè",
|
||||
600 => "Óïðàâëåíèå äîïîëíèòåëüíàìè BB-êîäàìè",
|
||||
700 => "Óïðàâëåíèå ñìàéëèêàìè, ýêñïîðò è èìïîðò ãðóïï ñìàéëèêîâ",
|
||||
800 => "Óïðàâëåíèå ôèëüòðàìè áàíîâ è íåöåíçóðíûõ ñëîâ",
|
||||
|
||||
900 => "Óïðàâëåíèå øàáëîíàìè, ñòèëÿìè, öâåòàìè è èçîáðàæåíèÿìè",
|
||||
1000 => "Óïðàâëåíèå ÿçûêîâûìè ôàéëàìè",
|
||||
|
||||
1100 => "Óïðàâëåíèå ðàçäåëàìè ïîìîùè, ôèëüòðàìè íåöåíçóðíûõ ñëîâ è ñìàéëèêàìè",
|
||||
1200 => "Óïðàâëåíèå e-mail è ðàññûëêàìè",
|
||||
1300 => "Óïðàâëåíèå çàïëàíèðîâàííûìè çàäà÷àìè",
|
||||
|
||||
1400 => "Óïðàâëåíèå âàøåé ãàëåðååé",
|
||||
1450 => "Óïðàâëåíèå âàøèìè áëîãàìè",
|
||||
|
||||
1500 => "Ïîëó÷åíèå ñòàòèñòèêè ðåãèñòðàöèé è ïóáëèêàöèè ñîîáùåíèé",
|
||||
1600 => "Óïðàâëåíèå âàøåé áàçîé äàííûõ, ïî÷èíêà, îïòèìèçàöèÿ è ýêñïîðò äàííûõ",
|
||||
1700 => "Ïðîñìîòð æóðíàëà îïåðàöèé àäìèíèñòðàòîðîâ, ìîäåðàòîðîâ è e-mail (òîëüêî ãëàâíûå àäìèíèñòðàòîðû)", );
|
||||
<?php
|
||||
//===========================================================================
|
||||
// Simple library that holds all the links for the admin cp
|
||||
// Invision Power Board
|
||||
//===========================================================================
|
||||
|
||||
// CAT_ID => array( PAGE_ID => (PAGE_NAME, URL ) )
|
||||
|
||||
// $PAGES[ $cat_id ][$page_id][0] = Page name
|
||||
// $PAGES[ $cat_id ][$page_id][1] = Url
|
||||
// $PAGES[ $cat_id ][$page_id][2] = Look for folder before showing
|
||||
// $PAGES[ $cat_id ][$page_id][3] = URL type: 1 = Board URL 0 = ACP URL
|
||||
// $PAGES[ $cat_id ][$page_id][4] = Item icon: 1= redirect 0 = Normal
|
||||
|
||||
$PAGES = array(
|
||||
# SETTINGS
|
||||
|
||||
100 => array (
|
||||
|
||||
1 => array( 'View All General Settings', 'act=op' ),
|
||||
2 => array( 'Add New General Setting' , 'act=op&code=settingnew' ),
|
||||
7 => array( 'Turn Board On / Off' , 'act=op&code=findsetting&key='.urlencode('boardoffline/online'), '', 0, 1 ),
|
||||
8 => array( 'Board Guidelines' , 'act=op&code=findsetting&key='.urlencode('boardguidelines'), '', 0, 1 ),
|
||||
9 => array( 'General Configuration' , 'act=op&code=findsetting&key='.urlencode('generalconfiguration'), '', 0, 1 ),
|
||||
10 => array( 'CPU Saving' , 'act=op&code=findsetting&key='.urlencode('cpusaving&optimization'), '', 0, 1 ),
|
||||
11 => array( 'IP Chat' , 'act=pin&code=ipchat' ),
|
||||
12 => array( 'IPB License' , 'act=pin&code=reg' ),
|
||||
14 => array( 'IPB Copyright Removal' , 'act=pin&code=copy' ),
|
||||
),
|
||||
|
||||
# MEMBER MANAGEMENT
|
||||
|
||||
200 => array (
|
||||
1 => array( 'New Forum' , 'act=forum&code=new' ),
|
||||
2 => array( 'Manage Forums' , 'act=forum' ),
|
||||
3 => array( 'Permission Masks' , 'act=group&code=permsplash'),
|
||||
6 => array( 'Moderators' , 'act=mod' ),
|
||||
7 => array( 'Topic Multi-Moderation', 'act=multimod' ),
|
||||
8 => array( 'Trash Can Set-Up' , 'act=op&code=findsetting&key=trashcanset-up', '', 0, 1 ),
|
||||
),
|
||||
|
||||
|
||||
300 => array (
|
||||
1 => array ( 'Manage Members' , 'act=mem&code=search' ),
|
||||
2 => array ( 'Add New Member' , 'act=mem&code=add' ),
|
||||
6 => array ( 'Manage Ranks' , 'act=mem&code=title'),
|
||||
7 => array ( 'Manage User Groups' , 'act=group' ),
|
||||
8 => array ( 'Manage Validating' , 'act=mem&code=mod' ),
|
||||
9 => array ( 'Custom Profile Fields' , 'act=field' ),
|
||||
11 => array ( 'IP Member Tools' , 'act=mtools' ),
|
||||
12 => array ( 'Member Settings' , 'act=op&code=findsetting&key=userprofiles', '', 0, 1 ),
|
||||
),
|
||||
|
||||
|
||||
400 => array(
|
||||
1 => array( 'Manage Payment Gateways' , 'act=msubs&code=index-gateways' ),
|
||||
2 => array( 'Manage Packages' , 'act=msubs&code=index-packages' ),
|
||||
3 => array( 'Manage Transactions' , 'act=msubs&code=index-tools' ),
|
||||
4 => array( 'Manage Currencies' , 'act=msubs&code=currency' , ),
|
||||
5 => array( 'Manually Add Transaction' , 'act=msubs&code=addtransaction' ),
|
||||
6 => array( 'Install Payment Gateways' , 'act=msubs&code=install-index' ),
|
||||
9 => array( 'Subscription Settings' , 'act=op&code=findsetting&key='.urlencode('subscriptionsmanager'), '', 0, 1 ),
|
||||
),
|
||||
|
||||
# POST MANAGEMENT
|
||||
|
||||
500 => array (
|
||||
1 => array( 'Attachment Types' , 'act=attach&code=types' ),
|
||||
2 => array( 'Attachment Stats' , 'act=attach&code=stats' ),
|
||||
3 => array( 'Attachment Search' , 'act=attach&code=search' ),
|
||||
),
|
||||
|
||||
|
||||
600 => array(
|
||||
1 => array( 'Custom BBCode Manager' , 'act=admin&code=bbcode' ),
|
||||
2 => array( 'Add New BBCode' , 'act=admin&code=bbcode_add' ),
|
||||
),
|
||||
|
||||
700 => array(
|
||||
1 => array( 'Emoticon Manager' , 'act=admin&code=emo' ),
|
||||
2 => array( 'Import/Export Packs' , 'act=admin&code=emo_packsplash' ),
|
||||
),
|
||||
|
||||
800 => array (
|
||||
1 => array( 'Manage Badword Filters', 'act=admin&code=badword' ),
|
||||
6 => array( 'Manage Ban Filters' , 'act=admin&code=ban' ),
|
||||
),
|
||||
|
||||
# SKINS & LANGS
|
||||
|
||||
900 => array (
|
||||
1 => array( 'Skin Manager' , 'act=sets' ),
|
||||
2 => array( 'Skin Tools' , 'act=skintools' ),
|
||||
3 => array( 'Skin Search & Replace' , 'act=skintools&code=searchsplash' ),
|
||||
4 => array( 'Skin Import/Export' , 'act=import' ),
|
||||
5 => array( 'Easy Logo Changer' , 'act=skintools&code=easylogo' ),
|
||||
),
|
||||
|
||||
1000 => array (
|
||||
1 => array( 'Manage Languages' , 'act=lang' ),
|
||||
2 => array( 'Import a Language' , 'act=lang&code=import' ),
|
||||
),
|
||||
|
||||
|
||||
# ADMIN
|
||||
|
||||
1100 => array (
|
||||
1 => array( 'Manage Help Files' , 'act=help' ),
|
||||
2 => array( 'Cache Control' , 'act=admin&code=cache' ),
|
||||
3 => array( 'Recount & Rebuild' , 'act=rebuild' ),
|
||||
4 => array( 'Clean-up Tools' , 'act=rebuild&code=tools' ),
|
||||
),
|
||||
|
||||
1200 => array(
|
||||
1 => array( 'Manage Bulk Mail' , 'act=postoffice' ),
|
||||
2 => array( 'Create New Email' , 'act=postoffice&code=mail_new' ),
|
||||
3 => array( 'View Email Logs' , 'act=emaillog', '', 0, 1 ),
|
||||
4 => array( 'View Email Error Logs' , 'act=emailerror', '', 0, 1 ),
|
||||
5 => array( 'Email Settings' , 'act=op&code=findsetting&key=emailset-up', '', 0, 1 ),
|
||||
),
|
||||
|
||||
1300 => array (
|
||||
1 => array( 'Task Manager' , 'act=task' ),
|
||||
2 => array( 'View Task Logs' , 'act=task&code=log' ),
|
||||
),
|
||||
|
||||
|
||||
1400 => array(
|
||||
1 => array( 'Invision Gallery' , 'act=gallery' ),
|
||||
2 => array( '|-- Settings' , 'act=op&code=findsetting&key='.urlencode('invisiongallerysettings'), '', 0, 0 ),
|
||||
3 => array( '|-- Album Manager' , 'act=gallery&code=albums' , 'modules/gallery' ),
|
||||
4 => array( '|-- Multimedia Manager' , 'act=gallery&code=media' , 'modules/gallery' ),
|
||||
5 => array( '|-- Groups' , 'act=gallery&code=groups' , 'modules/gallery' ),
|
||||
6 => array( '|-- Stats' , 'act=gallery&code=stats' , 'modules/gallery' ),
|
||||
7 => array( '|-- Tools' , 'act=gallery&code=tools' , 'modules/gallery' ),
|
||||
8 => array( ''-- Post Form' , 'act=gallery&code=postform', 'modules/gallery' ),
|
||||
),
|
||||
|
||||
1450 => array(
|
||||
1 => array( 'Community Blog' , 'act=blog' ),
|
||||
2 => array( 'Blog Settings' , 'act=op&code=findsetting&key='.urlencode('communityblog'), '', 0, 1 ),
|
||||
3 => array( 'Groups' , 'act=blog&cmd=groups' ),
|
||||
4 => array( 'Content Blocks' , 'act=blog&cmd=cblocks' ),
|
||||
5 => array( 'Tools' , 'act=blog&cmd=tools' ),
|
||||
),
|
||||
|
||||
1500 => array (
|
||||
1 => array( 'Registration Stats' , 'act=stats&code=reg' ),
|
||||
2 => array( 'New Topic Stats' , 'act=stats&code=topic' ),
|
||||
3 => array( 'Post Stats' , 'act=stats&code=post' ),
|
||||
4 => array( 'Personal Message' , 'act=stats&code=msg' ),
|
||||
5 => array( 'Topic Views' , 'act=stats&code=views' ),
|
||||
),
|
||||
|
||||
1600 => array (
|
||||
1 => array( 'SQL Toolbox' , 'act=mysql' ),
|
||||
2 => array( 'SQL Back Up' , 'act=mysql&code=backup' ),
|
||||
3 => array( 'SQL Runtime Info', 'act=mysql&code=runtime' ),
|
||||
4 => array( 'SQL System Vars' , 'act=mysql&code=system' ),
|
||||
5 => array( 'SQL Processes' , 'act=mysql&code=processes' ),
|
||||
),
|
||||
|
||||
1700 => array(
|
||||
1 => array( 'View Moderator Logs' , 'act=modlog' ),
|
||||
2 => array( 'View Admin Logs' , 'act=adminlog' ),
|
||||
3 => array( 'View Email Logs' , 'act=emaillog' ),
|
||||
4 => array( 'View Email Error Logs', 'act=emailerror' ),
|
||||
5 => array( 'View Bot Logs' , 'act=spiderlog' ),
|
||||
6 => array( 'View Warn Logs' , 'act=warnlog' ),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
$CATS = array (
|
||||
100 => array( "System Settings" , '#caf2d9;margin-bottom:12px;' ),
|
||||
|
||||
200 => array( 'Forum Control' , '#F9FFA2' ),
|
||||
300 => array( 'Users and Groups' , '#F9FFA2' ),
|
||||
400 => array( "Subscriptions" , '#F9FFA2;margin-bottom:12px;' ),
|
||||
|
||||
500 => array( "Attachments" , '#f5cdcd' ),
|
||||
600 => array( "Custom BBCode" , '#f5cdcd' ),
|
||||
700 => array( "Emoticons" , '#f5cdcd' ),
|
||||
800 => array( "Word & Ban Filters", '#f5cdcd;margin-bottom:12px;' ),
|
||||
|
||||
900 => array( 'Skins & Templates' , '#DFE6EF' ),
|
||||
1000 => array( 'Languages' , '#DFE6EF;margin-bottom:12px;' ),
|
||||
|
||||
1100 => array( 'Maintenance' , '#caf2d9' ),
|
||||
1200 => array( 'Post Office' , '#caf2d9' ),
|
||||
1300 => array( 'Task Manager' , '#caf2d9;margin-bottom:12px;' ),
|
||||
|
||||
1400 => array( "Invision Gallery" , '#F9FFA2;' ),
|
||||
1450 => array( "Community Blog" , '#F9FFA2;margin-bottom:12px;' ),
|
||||
|
||||
1500 => array( 'Statistic Center' , '#f5cdcd' ),
|
||||
1600 => array( 'SQL Management' , '#f5cdcd' ),
|
||||
1700 => array( 'Board Logs' , '#f5cdcd' ),
|
||||
);
|
||||
|
||||
|
||||
|
||||
$DESC = array (
|
||||
100 => "Edit forum settings such as cookie paths, security features, posting abilities, etc",
|
||||
|
||||
200 => "Create, edit, remove and re-order categories, forums and moderators",
|
||||
300 => "Manage members, groups and ranks",
|
||||
400 => "Manage your members' subscriptions and more",
|
||||
|
||||
500 => "Manage your attachments",
|
||||
600 => "Manage your custom BBCode",
|
||||
700 => "Manage your emoticons and upload/download emoticon packs",
|
||||
800 => "Manage your badword and ban filters",
|
||||
|
||||
900 => "Manage templates, skins, colours and images.",
|
||||
1000 => "Manage language sets",
|
||||
|
||||
1100 => "Manage Help Files, Bad Word Filters and Emoticons",
|
||||
1200 => "Manage your email and bulk mail members",
|
||||
1300 => "Manage your scheduled tasks.",
|
||||
|
||||
1400 => "Manage your gallery",
|
||||
1450 => "Manage your community blog",
|
||||
1500 => "Get registration and posting statistics",
|
||||
1600 => "Manage your SQL database; repair, optimize and export data",
|
||||
1700 => "View admin, moderator and email logs (Root admin only)",
|
||||
);
|
||||
?>
|
||||
+763
-770
File diff suppressed because it is too large.
Load diff
@@ -2,25 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Date: 2007-03-29 06:52:02 -0400 (Thu, 29 Mar 2007) $
|
||||
| > $Revision: 911 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -34,7 +26,7 @@
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -49,26 +41,26 @@ class admin_template_functions
|
||||
var $menu_highchange = "";
|
||||
var $default_css = "";
|
||||
var $type = "";
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Constructor
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function admin_template_functions()
|
||||
{
|
||||
$this->default_css = "font-family:Verdana;font-size:11pt;color:black;background-color:white;border:3px outset #555";
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Build generic editor
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function build_generic_editor_area( $data )
|
||||
{
|
||||
$return = "";
|
||||
|
||||
|
||||
$return .= $this->html_build_editor_top();
|
||||
|
||||
|
||||
$return .= "
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
@@ -80,7 +72,7 @@ class admin_template_functions
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td width='1%' align='left' valign='middle'>
|
||||
<input type='button' value='Ïëàâàþùåå îêíî' class='realdarkbutton' title='Îòêðûòü ðåäàêòèðîâàíèå ýòîãî øàáëîíà â áîëüøîì îêíå' onclick=\"pop_win('section={$data['section']}&act={$data['act']}&code=floateditor&id={$data['textareaname']}', 'Float', 800, 400)\">
|
||||
<input type='button' value='Float' class='realdarkbutton' title='Open this template editor in a large window' onclick=\"pop_win('section={$data['section']}&act={$data['act']}&code=floateditor&id={$data['textareaname']}', 'Float', 800, 400)\">
|
||||
</td>
|
||||
<td width='95%' align='left' valign='middle'> <b>{$data['title']}</b></td>
|
||||
<td width='5% align='right' valign='middle' nowrap='nowrap' ><!--TOP.RIGHT--></td>
|
||||
@@ -88,41 +80,41 @@ class admin_template_functions
|
||||
<!--TR.ROW-->
|
||||
</table>
|
||||
</div>";
|
||||
|
||||
|
||||
$return .= "<div align='center' style='padding:2px;'>".$this->ipsclass->adskin->form_textarea("txt{$data['textareaname']}", $data['textareainput'], '', '', 'none', "txt{$data['textareaname']}", $this->default_css )."</div>\n";
|
||||
|
||||
|
||||
$return .= $this->html_build_editor_bottom() . "</div>";
|
||||
|
||||
|
||||
return $return;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Build editor text area table
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function build_editor_area( $html, $template=array(), $img="" )
|
||||
{
|
||||
$return = "";
|
||||
|
||||
|
||||
$edit_prefs = $this->type == 'single' ? $this->editor_prefs_dropdown : '';
|
||||
$close_box = $this->type == 'single' ? "<input type='button' class='realbutton' style='color:red' onclick='parent.template_edit_close(\"{$template['suid']}\")' value=' X ' />" : '';
|
||||
|
||||
|
||||
$template['func_data'] = str_replace( "'", ''', $template['func_data'] );
|
||||
|
||||
|
||||
$spiffy_diffy = "<div align='center' style='position:absolute;width:99%;display:none;text-align:center' id='dv_{$template['suid']}'>
|
||||
<table cellspacing='0' width='500' align='center' cellpadding='6' style='background:#EEE;border:2px outset #555;'>
|
||||
<tr>
|
||||
<td align='center' valign='top'>
|
||||
<b>Ðàñøèðåííûé ðåæèì: Ïåðåìåííûå øàáëîíà</b><br />Îñòàâüòå êàê åñòü, åñëè âû íå çíàåòå, êàê ýòî ðàáîòàåò.<br />Èñïîëüçóéòå çàïÿòóþ äëÿ ðàçäåëåíèÿ íåñêîëüêèõ ïåðåìåííûõ.
|
||||
<b>Advanced: Template Bit Incoming Variables</b><br />Leave alone if unsure. Separate many with a comma.
|
||||
<br /><input class='textinput' name='funcdata_{$template['suid']}' value='{$template['func_data']}' type='text' size='50' />
|
||||
<br /><br />
|
||||
<input type='button' class='realdarkbutton' value='Ñîõðàíèòü è çàêðûòü' onclick=\"togglediv('dv_{$template['suid']}');\" />
|
||||
<input type='button' class='realdarkbutton' value='Save and Close' onclick=\"togglediv('dv_{$template['suid']}');\" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>";
|
||||
|
||||
|
||||
$return .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tablesubheader'>
|
||||
@@ -135,8 +127,8 @@ class admin_template_functions
|
||||
<td width='75%' align='left' valign='middle'> {$img}<b>{$template['easy_name']}</b></td>
|
||||
<td width='5% align='right' nowrap='nowrap' valign='middle'>
|
||||
<input type='hidden' id='edited-{$template['suid']}' name='edited-{$template['suid']}' value='0' />
|
||||
<input type='submit' name='submit-{$template['suid']}' value='Ñîõðàíèòü øàáëîí' id='sb-t{$template['suid']}' class='realdarkbutton' />
|
||||
<input type='button' value='Ïëàâàþùåå îêíî' class='realbutton' title='Îòêðûòü ðåäàêòèðîâàíèå ýòîãî øàáëîíà â ïëàâàþùåì îêíå' onclick="pop_win('section=lookandfeel&act=templ&code=floateditor&id={$template['suid']}', 'Ïëàâàþùåå îêíî {$template['suid']}', 800, 400)">
|
||||
<input type='submit' name='submit-{$template['suid']}' value='Save Template Bit' id='sb-t{$template['suid']}' class='realdarkbutton' />
|
||||
<input type='button' value='Float' class='realbutton' title='Open this template editor in a large window' onclick="pop_win('section=lookandfeel&act=templ&code=floateditor&id={$template['suid']}', 'Float{$template['suid']}', 800, 400)">
|
||||
<img id="tmpl-{$template['suid']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' />
|
||||
|
||||
</td>
|
||||
@@ -150,74 +142,75 @@ EOF;
|
||||
{
|
||||
$return .= "\ntry { parent.template_bit_onload(); } catch(e) { }\n";
|
||||
}
|
||||
|
||||
|
||||
$return .= <<<EOF
|
||||
menu_build_menu(
|
||||
"tmpl-{$template['suid']}",
|
||||
new Array(
|
||||
img_item + " <a href='#' onclick=\"menu_action_close(); toggleview('dv_{$template['suid']}')\"; return false;'>Âõîäÿùèå ïåðåìåííûå</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); pop_win(\"act=rtempl&code=macro_one&suid={$template['suid']}\", \"MacroWindow\", 400, 200); return false;'>Ïðîâåðêà ìàêðîñîâ</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); pop_win(\"act=rtempl&code=compare&suid={$template['suid']}\", \"CompareWindow\", 500,400); return false;'>Ñðàâíèòü âåðñèè</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); parent.template_bit_restore(\"{$template['suid']}\"); return false;'>Îáðàòèòü âñå èçìåíåíèÿ</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); pop_win(\"act=rtempl&code=preview&suid={$template['suid']}&type=html\", \"OriginalPreview\", 400,400); return false;'>Ïðîñìîòð îðèãèíàëà</a>"
|
||||
new Array(
|
||||
img_item + " <a href='#' onclick=\"menu_action_close(); toggleview('dv_{$template['suid']}')\"; return false;'>Edit Data Variables...</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); pop_win(\"act=rtempl&code=cache_settings&suid={$template['suid']}\", \"CacheWindow\", 400, 600); return false;'>Edit Cache Settings...</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); pop_win(\"act=rtempl&code=macro_one&suid={$template['suid']}\", \"MacroWindow\", 400, 200); return false;'>Macro Look-up...</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); pop_win(\"act=rtempl&code=compare&suid={$template['suid']}\", \"CompareWindow\", 500,400); return false;'>Compare Versions...</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); parent.template_bit_restore(\"{$template['suid']}\"); return false;'>Restore Unedited Version...</a>",
|
||||
img_item + " <a href='#' onclick='menu_action_close(); pop_win(\"act=rtempl&code=preview&suid={$template['suid']}&type=html\", \"OriginalPreview\", 400,400); return false;'>View Original Version...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
|
||||
$return .= "<div align='center' style='padding:2px;'>".$this->ipsclass->adskin->form_textarea("txt{$template['suid']}", $html, 60, 5, 'none', "t{$template['suid']}", $this->default_css, 'onkeypress="parent.template_bit_changed(\'t'.$template['suid'].'\')"' )."</div>\n";
|
||||
|
||||
|
||||
$return .= "</div>";
|
||||
|
||||
|
||||
return $return;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Build JS for floated window
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function build_editor_area_floated($no_buttons=0)
|
||||
{
|
||||
$return = "<form name='theform'>";
|
||||
|
||||
|
||||
$return .= $this->html_build_editor_top();
|
||||
|
||||
|
||||
$return .= "<div class='tableborder'>
|
||||
<div class='tablesubheader' align='right'>";
|
||||
|
||||
|
||||
if ( $no_buttons == 0 )
|
||||
{
|
||||
$return .= "
|
||||
<input type='button' value='Ïîèñê' class='realbutton' title='Ïîèñê ïî øàáëîíó' onClick='pop_win(\"act=rtempl&code=search&set_id={$this->ipsclass->input['id']}&type=html\", \"Search\", 900,600)'>
|
||||
<input type='button' value='Ìàêðîñû' class='realbutton' title='Ïðîâåðêà ìàêðîñîâ ïî ââåäåííîé çàïèñè' onClick='pop_win(\"act=rtempl&code=macro_one&suid={$this->ipsclass->input['id']}\", \"MacroWindow\", 400, 200)'>
|
||||
<input type='button' value='Ñðàâíèòü' class='realbutton' title='Ñðàâíèòü èçìåíåííûé âàìè âàðèàíò øàáëîíà ñ ïåðâîíà÷àëüíûì îðèãèíàëîì' onClick='pop_win(\"act=rtempl&code=compare&suid={$this->ipsclass->input['id']}&pop=1\", \"CompareWindow\", 500,400)'>
|
||||
<input type='button' value='Îáðàòèòü' class='realbutton' title='Îáðàòèòü âñå èçìåíåíèÿ øàáëîíà, òî åñòü ïðèâåñòè åãî ê ïåðâîíà÷àëüíîìó ñòàíäàðòíîìó âèäó' onClick='template_bit_restore(); return false;'>
|
||||
<input type='button' value='Îðèãèíàë' class='realbutton' title='Ïðîñìîòð îðèãèíàëüíîãî ïåðâîíà÷àëüíîãî âàðèàíòà øàáëîíà' onClick='pop_win(\"act=rtempl&code=preview&suid={$this->ipsclass->input['id']}&type=html\", \"OriginalPreview\", 400,400)'>
|
||||
<input type='button' value='Search' class='realbutton' title='Search the templates for a string' onClick='pop_win(\"act=rtempl&code=search&set_id={$this->ipsclass->input['id']}&type=html\", \"Search\", 900,600)'>
|
||||
<input type='button' value='Macro Look-up' class='realbutton' title='View a macro definition' onClick='pop_win(\"act=rtempl&code=macro_one&suid={$this->ipsclass->input['id']}\", \"MacroWindow\", 400, 200)'>
|
||||
<input type='button' value='Compare' class='realbutton' title='Compare the edited version to the original' onClick='pop_win(\"act=rtempl&code=compare&suid={$this->ipsclass->input['id']}&pop=1\", \"CompareWindow\", 500,400)'>
|
||||
<input type='button' value='Restore' class='realbutton' title='Restore the original, unedited template bit' onClick='template_bit_restore(); return false;'>
|
||||
<input type='button' value='View Original' class='realbutton' title='View the HTML for the unedited template bit' onClick='pop_win(\"act=rtempl&code=preview&suid={$this->ipsclass->input['id']}&type=html\", \"OriginalPreview\", 400,400)'>
|
||||
";
|
||||
}
|
||||
|
||||
|
||||
$return .= "</div>";
|
||||
|
||||
|
||||
$return .= "<div align='center' style='padding:2px;'>".$this->ipsclass->adskin->form_textarea("templatebit", $html, $this->ipsclass->vars['tx'], $this->ipsclass->vars['ty'], 'none', "templatebit", $this->default_css )."</div>\n";
|
||||
|
||||
|
||||
$return .= "</div>";
|
||||
|
||||
|
||||
$return .= "<script type='text/javascript'>
|
||||
var template_id = '{$this->ipsclass->input['id']}';
|
||||
var template_bit = eval(\"opener.document.theform.txt\"+template_id+\".value\");
|
||||
document.theform.templatebit.value = template_bit;
|
||||
var template_bit_ids = 'templatebit';
|
||||
|
||||
|
||||
function saveandclose()
|
||||
{
|
||||
eval(\"opener.document.theform.txt\"+template_id+\".value = document.theform.templatebit.value\");
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
||||
function template_bit_restore( )
|
||||
{
|
||||
var edit_box_obj = document.theform.templatebit;
|
||||
|
||||
|
||||
if ( template_bit )
|
||||
{
|
||||
if ( confirm(\"Are you sure you want to restore the template?\\nALL UNSAVED CHANGES WILL BE LOST!\") )
|
||||
@@ -228,21 +221,21 @@ EOF;
|
||||
}
|
||||
</script>
|
||||
";
|
||||
|
||||
|
||||
$return .= $this->html_build_editor_bottom();
|
||||
|
||||
$return .= "<br /><div class='tableborder'><div class='catrow2' align='center' style='padding:4px;'><input type='button' onclick='saveandclose()' value='Ñêîïèðîâàòü â ñòàíäàðòíîå ïîëå è çàêðûòü îêíî' class='realdarkbutton' /></div></div></form>";
|
||||
|
||||
|
||||
$return .= "<br /><div class='tableborder'><div class='catrow2' align='center' style='padding:4px;'><input type='button' onclick='saveandclose()' value='Copy back to original textarea and close window' class='realdarkbutton' /></div></div></form>";
|
||||
|
||||
$this->ipsclass->html = $return;
|
||||
|
||||
|
||||
$this->ipsclass->admin->print_popup();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Build editor preferences menus
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function build_editor_pref_menus()
|
||||
{
|
||||
$this->menu_fontchange = "<select name='fontchange' class='smalldropdown'>".
|
||||
@@ -251,32 +244,32 @@ EOF;
|
||||
"<option value='verdana'>Verdana</option>".
|
||||
"<option value='arial'>Arial</option>".
|
||||
"</select>";
|
||||
|
||||
|
||||
$this->menu_sizechange = "<select name='sizechange' class='smalldropdown'>".
|
||||
"<option value='8pt'>8 ïóíêòîâ</option>".
|
||||
"<option value='9pt'>9 ïóíêòîâ</option>".
|
||||
"<option value='10pt'>10 ïóíêòîâ</option>".
|
||||
"<option value='11pt'>11 ïóíêòîâ</option>".
|
||||
"<option value='12pt'>12 ïóíêòîâ</option>".
|
||||
"<option value='8pt'>8pt</option>".
|
||||
"<option value='9pt'>9pt</option>".
|
||||
"<option value='10pt'>10pt</option>".
|
||||
"<option value='11pt'>11pt</option>".
|
||||
"<option value='12pt'>12pt</option>".
|
||||
"</select>";
|
||||
|
||||
|
||||
$this->menu_backchange = "<select name='backchange' class='smalldropdown'>".
|
||||
"<option value='black'>×åðíûé</option>".
|
||||
"<option value='white'>Áåëûé</option>".
|
||||
"<option value='#EEEEEE'>Ñâåòëîñåðûé</option>".
|
||||
"<option value='gray'>Ñåðûé</option>".
|
||||
"<option value='black'>Black</option>".
|
||||
"<option value='white'>White</option>".
|
||||
"<option value='#EEEEEE'>Light Gray</option>".
|
||||
"<option value='gray'>Gray</option>".
|
||||
"</select>";
|
||||
|
||||
|
||||
$this->menu_fontcolor = "<select name='fontcolor' class='smalldropdown'>".
|
||||
"<option value='black'>×åðíûé</option>".
|
||||
"<option value='white'>Áåëûé</option>".
|
||||
"<option value='blue'>Ñèíèé</option>".
|
||||
"<option value='lightgreen'>Ñâåòëîçåëåíûé</option>".
|
||||
"<option value='green'>Çåëåíûé</option>".
|
||||
"<option value='darkgreen'>Òåìíîçåëåíûé</option>".
|
||||
"<option value='gray'>Ñåðûé</option>".
|
||||
"<option value='black'>Black</option>".
|
||||
"<option value='white'>White</option>".
|
||||
"<option value='blue'>Blue</option>".
|
||||
"<option value='lightgreen'>Light Green</option>".
|
||||
"<option value='green'>Green</option>".
|
||||
"<option value='darkgreen'>Dark Green</option>".
|
||||
"<option value='gray'>Gray</option>".
|
||||
"</select>";
|
||||
|
||||
|
||||
$this->menu_widthchange = "<select name='widthchange' class='smalldropdown'>".
|
||||
"<option value='100%'>100%</option>".
|
||||
"<option value='90%'>90%</option>".
|
||||
@@ -285,34 +278,34 @@ EOF;
|
||||
"<option value='60%'>60%</option>".
|
||||
"<option value='50%'>50%</option>".
|
||||
"</select>";
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Not single?
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $this->type != 'single' AND $this->type != 'multiple' )
|
||||
{
|
||||
$this->menu_highchange = "<select name='highchange' class='smalldropdown'>".
|
||||
"<option value='50px'>50 ïèêñåëåé</option>".
|
||||
"<option value='100px'>100 ïèêñåëåé</option>".
|
||||
"<option value='200px'>200 ïèêñåëåé</option>".
|
||||
"<option value='300px'>300 ïèêñåëåé</option>".
|
||||
"<option value='400px'>400 ïèêñåëåé</option>".
|
||||
"<option value='500px'>500 ïèêñåëåé</option>".
|
||||
"<option value='600px'>600 ïèêñåëåé</option>".
|
||||
"<option value='700px'>700 ïèêñåëåé</option>".
|
||||
"<option value='800px'>800 ïèêñåëåé</option>".
|
||||
"<option value='900px'>900 ïèêñåëåé</option>".
|
||||
"<option value='1000px'>1000 ïèêñåëåé</option>".
|
||||
"<option value='50px'>50px</option>".
|
||||
"<option value='100px'>100px</option>".
|
||||
"<option value='200px'>200px</option>".
|
||||
"<option value='300px'>300px</option>".
|
||||
"<option value='400px'>400px</option>".
|
||||
"<option value='500px'>500px</option>".
|
||||
"<option value='600px'>600px</option>".
|
||||
"<option value='700px'>700px</option>".
|
||||
"<option value='800px'>800px</option>".
|
||||
"<option value='900px'>900px</option>".
|
||||
"<option value='1000px'>1000px</option>".
|
||||
"</select>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->menu_highchange = "<select name='highchange' class='smalldropdown' style='color:gray'><option value='-'>Íåäîñòóïíî</option></span>";
|
||||
$this->menu_highchange = "<select name='highchange' class='smalldropdown' style='color:gray'><option value='-'>N/A</option></span>";
|
||||
}
|
||||
|
||||
|
||||
if ( $cookie = $this->ipsclass->my_getcookie( 'acpeditorprefs' ) )
|
||||
{
|
||||
{
|
||||
list( $font, $size, $bg, $fc, $width, $height ) = explode( "," ,$cookie );
|
||||
}
|
||||
else
|
||||
@@ -320,7 +313,7 @@ EOF;
|
||||
//-----------------------------------------
|
||||
// Decent defaults
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$font = 'monaco';
|
||||
$size = '8pt';
|
||||
$bg = 'white';
|
||||
@@ -328,57 +321,57 @@ EOF;
|
||||
$width = '100%';
|
||||
$height = '300px';
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Force decent height if single
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $this->type == 'single' OR $this->type == 'multiple' )
|
||||
{
|
||||
$height = '300px';
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Show..
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->default_css = "font-family:$font;font-size:$size;color:$fc;background-color:$bg;width:$width;height:$height;border:3px outset #555";
|
||||
|
||||
|
||||
$this->menu_fontchange = preg_replace( "/(option value='".preg_quote($font)."')/" , "\\1 selected='selected'", $this->menu_fontchange );
|
||||
$this->menu_sizechange = preg_replace( "/(option value='".preg_quote($size)."')/" , "\\1 selected='selected'", $this->menu_sizechange );
|
||||
$this->menu_backchange = preg_replace( "/(option value='".preg_quote($bg)."')/" , "\\1 selected='selected'", $this->menu_backchange );
|
||||
$this->menu_fontcolor = preg_replace( "/(option value='".preg_quote($fc)."')/" , "\\1 selected='selected'", $this->menu_fontcolor );
|
||||
$this->menu_widthchange = preg_replace( "/(option value='".preg_quote($width)."')/" , "\\1 selected='selected'", $this->menu_widthchange );
|
||||
$this->menu_highchange = preg_replace( "/(option value='".preg_quote($height)."')/" , "\\1 selected='selected'", $this->menu_highchange );
|
||||
|
||||
|
||||
$this->editor_prefs_dropdown = "<div class='fauxbutton' style='padding:4px;color:black;white-space:nowrap;font-weight:bold;float:left' id='tmpl-editor-prefs'>Íàñòðîéêè ðåäàêòîðà <img src='{$this->ipsclass->skin_acp_url}/images/icon_open.gif' border='0' style='vertical-align:top' /></div>";
|
||||
|
||||
|
||||
|
||||
$this->editor_prefs_dropdown = "<div class='fauxbutton' style='padding:4px;color:black;white-space:nowrap;font-weight:bold;float:left' id='tmpl-editor-prefs'>Editor Preferences <img src='{$this->ipsclass->skin_acp_url}/images/icon_open.gif' border='0' style='vertical-align:top' /></div>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function html_build_editor_top()
|
||||
{
|
||||
$this->build_editor_pref_menus();
|
||||
|
||||
|
||||
if ( $this->type == 'single' )
|
||||
{
|
||||
return "<input type='hidden' name='changed_bits' id='changed_bits' /><div class='tableborder'><div>";
|
||||
}
|
||||
|
||||
|
||||
$close_box = $this->type == 'multiple' ? "<input type='button' class='realbutton' style='color:red' onclick='parent.template_edit_close(\"{$template['suid']}\")' value=' X ' />" : '';
|
||||
|
||||
|
||||
return <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt' align='left' style='height:30px'>
|
||||
|
||||
|
||||
<div style='float:right'>{$close_box} <!--TOPRIGHT--></div>
|
||||
<div>{$this->editor_prefs_dropdown}</div>
|
||||
</div>
|
||||
<div class='tablepad'><!--BEFORETEXTAREA-->
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function html_build_editor_bottom()
|
||||
{
|
||||
return <<<EOF
|
||||
@@ -387,32 +380,32 @@ EOF;
|
||||
'tmpl-editor-prefs',
|
||||
new Array( "<table cellpadding='4' cellspacing='0' width='200' border='0'>"+
|
||||
"<tr>"+
|
||||
"<td nowrap='nowrap'>Øðèôò</td>"+
|
||||
"<td nowrap='nowrap'>Font Family</td>"+
|
||||
"<td width='100%'>{$this->menu_fontchange}</td>"+
|
||||
"</tr>"+
|
||||
"<tr>"+
|
||||
"<td nowrap='nowrap'>Ðàçìåð øðèôòà</td>"+
|
||||
"<td nowrap='nowrap'>Font Size</td>"+
|
||||
"<td width='100%'>{$this->menu_sizechange}</td>"+
|
||||
"</tr>"+
|
||||
"<tr>"+
|
||||
"<td nowrap='nowrap'>Öâåò øðèôòà</td>"+
|
||||
"<td nowrap='nowrap'>Font Color</td>"+
|
||||
"<td width='100%'>{$this->menu_fontcolor}</td>"+
|
||||
"</tr>"+
|
||||
"<tr>"+
|
||||
"<td nowrap='nowrap'>Ôîí</td>"+
|
||||
"<td nowrap='nowrap'>Background</td>"+
|
||||
"<td width='100%'>{$this->menu_backchange}</td>"+
|
||||
"</tr>"+
|
||||
"<tr>"+
|
||||
"<td nowrap='nowrap'>Øèðèíà</td>"+
|
||||
"<td nowrap='nowrap'>Area Width</td>"+
|
||||
"<td width='100%'>{$this->menu_widthchange}</td>"+
|
||||
"</tr>"+
|
||||
"<tr>"+
|
||||
"<td nowrap='nowrap'>Âûñîòà</td>"+
|
||||
"<td nowrap='nowrap'>Area Height</td>"+
|
||||
"<td width='100%'>{$this->menu_highchange}</td>"+
|
||||
"</tr>"+
|
||||
"<tr>"+
|
||||
"<td colspan='2' align='center'>"+
|
||||
"<input type='button' value='Èçìåíèòü' class='realbutton' onclick=\"menu_action_close(); changefont();\" />"+
|
||||
"<input type='button' value='Change' class='realbutton' onclick=\"menu_action_close(); changefont();\" />"+
|
||||
"</td>"+
|
||||
"</tr>"+
|
||||
"</table>"
|
||||
@@ -421,8 +414,8 @@ EOF;
|
||||
<!--IPB.EDITORBOTTOM--></div>\n</div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,26 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-02-14 15:17:58 -0500 (Wed, 14 Feb 2007) $
|
||||
| > $Revision: 848 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Board index functions module
|
||||
@@ -35,8 +27,8 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
@@ -360,19 +352,19 @@ class func_boardstats
|
||||
else
|
||||
{
|
||||
$member_permission_groups = explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->member['g_perm_id'] ) );
|
||||
|
||||
if( isset($this->ipsclass->member['mgroup_others']) AND $this->ipsclass->member['mgroup_others'] )
|
||||
{
|
||||
$this->ipsclass->member['mgroup_others'] = $this->ipsclass->clean_perm_string($this->ipsclass->member['mgroup_others']);
|
||||
|
||||
$mgroup_others = explode( ",", $this->ipsclass->member['mgroup_others'] );
|
||||
|
||||
if( count($mgroup_others) )
|
||||
if( isset($this->ipsclass->member['mgroup_others']) AND $this->ipsclass->member['mgroup_others'] )
|
||||
{
|
||||
foreach( $mgroup_others as $mgroup )
|
||||
$this->ipsclass->member['mgroup_others'] = $this->ipsclass->clean_perm_string($this->ipsclass->member['mgroup_others']);
|
||||
|
||||
$mgroup_others = explode( ",", $this->ipsclass->member['mgroup_others'] );
|
||||
|
||||
if( count($mgroup_others) )
|
||||
{
|
||||
if( $mgroup )
|
||||
foreach( $mgroup_others as $mgroup )
|
||||
{
|
||||
if( $mgroup )
|
||||
{
|
||||
$member_permission_groups = array_merge( $member_permission_groups, explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->cache['group_cache'][$mgroup]['g_perm_id'] ) ) );
|
||||
}
|
||||
}
|
||||
@@ -509,11 +501,7 @@ class func_boardstats
|
||||
//-----------------------------------------
|
||||
|
||||
$c_time = '';
|
||||
$c_time_day = gmdate( 'd', $event['event_activetime'] );
|
||||
$c_time_month = $this->ipsclass->lang[ 'M_' . gmdate( 'n', $event['event_activetime'] ) ];
|
||||
$c_time_year = gmdate( 'Y', $event['event_activetime'] );
|
||||
|
||||
$c_time = $c_time_day . ' ' . $c_time_month . ' ' . $c_time_year;
|
||||
$c_time = gmdate( 'j-F-y', $event['event_activetime'] );
|
||||
|
||||
$show_events[] = "<a href='{$this->ipsclass->base_url}act=calendar&code=showevent&calendar_id={$event['event_calendar_id']}&event_id={$event['event_id']}' title='$c_time'>".$event['event_title']."</a>";
|
||||
}
|
||||
|
||||
+177
-187
@@ -1,188 +1,178 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-05 11:04:08 -0500 (Thu, 05 Oct 2006) $
|
||||
| > $Revision: 609 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Func chgat
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 1st march 2002
|
||||
|
|
||||
| > DBA Checked: Tue 25th May 2004
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
class func_chat
|
||||
{
|
||||
|
||||
var $class = "";
|
||||
var $server = "";
|
||||
var $html = "";
|
||||
|
||||
function func_chat()
|
||||
{
|
||||
$this->server = str_replace( 'http://', '', $this->ipsclass->vars['chat04_whodat_server_addr'] );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// register_class($class)
|
||||
//
|
||||
// Register a $this-> with this class
|
||||
//
|
||||
//-----------------------------------------
|
||||
|
||||
function register_class()
|
||||
{
|
||||
// NO LONGER NEEDED
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Print online list
|
||||
//-----------------------------------------
|
||||
|
||||
function get_online_list()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$member_ids = array();
|
||||
$to_load = array();
|
||||
|
||||
// Let's use the new config vars if they are available, else revert to the legacy variable names
|
||||
$_hide_whoschatting = ( isset($this->ipsclass->vars['chat_hide_whoschatting']) ) ? $this->ipsclass->vars['chat_hide_whoschatting'] : $this->ipsclass->vars['chat04_hide_whoschatting'];
|
||||
$_who_on = ( isset($this->ipsclass->vars['chat_who_on']) ) ? $this->ipsclass->vars['chat_who_on'] : $this->ipsclass->vars['chat04_who_on'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $_who_on )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Sort and show :D
|
||||
//-----------------------------------------
|
||||
|
||||
if ( is_array( $this->ipsclass->cache['chatting'] ) AND count( $this->ipsclass->cache['chatting'] ) )
|
||||
{
|
||||
foreach( $this->ipsclass->cache['chatting'] as $id => $data )
|
||||
{
|
||||
if ( $data['updated'] < ( time() - 120 ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$to_load[ $id ] = $id;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Is this a root admin in disguise?
|
||||
// Is that kinda like a diamond in the rough?
|
||||
//-----------------------------------------
|
||||
|
||||
$our_mgroups = array();
|
||||
|
||||
if( $this->ipsclass->member['mgroup_others'] )
|
||||
{
|
||||
$our_mgroups = explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->member['mgroup_others'] ) );
|
||||
}
|
||||
|
||||
$our_mgroups[] = $this->ipsclass->member['mgroup'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Got owt?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count($to_load) )
|
||||
{
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'm.id, m.members_display_name, m.mgroup',
|
||||
'from' => array( 'members' => 'm' ),
|
||||
'where' => "m.id IN(".implode(",",$to_load).")",
|
||||
'add_join' => array( 0 => array( 'select' => 's.login_type',
|
||||
'from' => array( 'sessions' => 's' ),
|
||||
'where' => 's.member_id=m.id',
|
||||
'type' => 'left' ) ),
|
||||
'order' => 'm.members_display_name' ) );
|
||||
$this->ipsclass->DB->exec_query();
|
||||
|
||||
while ( $m = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$m['members_display_name'] = $this->ipsclass->make_name_formatted( $m['members_display_name'], $m['mgroup'] );
|
||||
|
||||
if( $m['login_type'] )
|
||||
{
|
||||
if ( (in_array( $this->ipsclass->vars['admin_group'], $our_mgroups )) and ($this->ipsclass->vars['disable_admin_anon'] != 1) )
|
||||
{
|
||||
$member_ids[] = "<a href=\"{$this->ipsclass->base_url}showuser={$m['id']}\">{$m['members_display_name']}</a>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$member_ids[] = "<a href=\"{$this->ipsclass->base_url}showuser={$m['id']}\">{$m['members_display_name']}</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Got owt?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $member_ids ) )
|
||||
{
|
||||
$final = implode( ",\n", $member_ids );
|
||||
|
||||
$this->html = $this->ipsclass->compiled_templates['skin_boards']->whoschatting_show( intval(count($member_ids)), $final );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( ! $_hide_whoschatting )
|
||||
{
|
||||
$this->html = $this->ipsclass->compiled_templates['skin_boards']->whoschatting_empty();
|
||||
}
|
||||
}
|
||||
|
||||
return $this->html;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-12-13 16:16:03 -0500 (Wed, 13 Dec 2006) $
|
||||
| > $Revision: 791 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPChat functions
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 29th September 2003
|
||||
|
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly.";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
class func_chat
|
||||
{
|
||||
|
||||
var $class = "";
|
||||
var $server = "";
|
||||
var $html = "";
|
||||
|
||||
function func_chat()
|
||||
{
|
||||
$this->server = str_replace( 'http://', '', $this->ipsclass->vars['chat04_whodat_server_addr'] );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// register_class($class)
|
||||
//
|
||||
// Register a $this-> with this class
|
||||
//
|
||||
//-----------------------------------------
|
||||
|
||||
function register_class()
|
||||
{
|
||||
// NO LONGER NEEDED
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Print online list
|
||||
//-----------------------------------------
|
||||
|
||||
function get_online_list()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$member_ids = array();
|
||||
$to_load = array();
|
||||
|
||||
// Let's use the new config vars if they are available, else revert to the legacy variable names
|
||||
$_hide_whoschatting = ( isset($this->ipsclass->vars['chat_hide_whoschatting']) ) ? $this->ipsclass->vars['chat_hide_whoschatting'] : $this->ipsclass->vars['chat04_hide_whoschatting'];
|
||||
$_who_on = ( isset($this->ipsclass->vars['chat_who_on']) ) ? $this->ipsclass->vars['chat_who_on'] : $this->ipsclass->vars['chat04_who_on'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $_who_on )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Sort and show :D
|
||||
//-----------------------------------------
|
||||
|
||||
if ( is_array( $this->ipsclass->cache['chatting'] ) AND count( $this->ipsclass->cache['chatting'] ) )
|
||||
{
|
||||
foreach( $this->ipsclass->cache['chatting'] as $id => $data )
|
||||
{
|
||||
if ( $data['updated'] < ( time() - 120 ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$to_load[ $id ] = $id;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Is this a root admin in disguise?
|
||||
// Is that kinda like a diamond in the rough?
|
||||
//-----------------------------------------
|
||||
|
||||
$our_mgroups = array();
|
||||
|
||||
if( $this->ipsclass->member['mgroup_others'] )
|
||||
{
|
||||
$our_mgroups = explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->member['mgroup_others'] ) );
|
||||
}
|
||||
|
||||
$our_mgroups[] = $this->ipsclass->member['mgroup'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Got owt?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count($to_load) )
|
||||
{
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'm.id, m.members_display_name, m.mgroup',
|
||||
'from' => array( 'members' => 'm' ),
|
||||
'where' => "m.id IN(".implode(",",$to_load).")",
|
||||
'add_join' => array( 0 => array( 'select' => 's.login_type',
|
||||
'from' => array( 'sessions' => 's' ),
|
||||
'where' => 's.member_id=m.id',
|
||||
'type' => 'left' ) ),
|
||||
'order' => 'm.members_display_name' ) );
|
||||
$this->ipsclass->DB->exec_query();
|
||||
|
||||
while ( $m = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$m['members_display_name'] = $this->ipsclass->make_name_formatted( $m['members_display_name'], $m['mgroup'] );
|
||||
|
||||
if( $m['login_type'] )
|
||||
{
|
||||
if ( (in_array( $this->ipsclass->vars['admin_group'], $our_mgroups )) and ($this->ipsclass->vars['disable_admin_anon'] != 1) )
|
||||
{
|
||||
$member_ids[] = "<a href=\"{$this->ipsclass->base_url}showuser={$m['id']}\">{$m['members_display_name']}</a>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$member_ids[] = "<a href=\"{$this->ipsclass->base_url}showuser={$m['id']}\">{$m['members_display_name']}</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Got owt?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $member_ids ) )
|
||||
{
|
||||
$final = implode( ",\n", $member_ids );
|
||||
|
||||
$this->html = $this->ipsclass->compiled_templates['skin_boards']->whoschatting_show( intval(count($member_ids)), $final );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( ! $_hide_whoschatting )
|
||||
{
|
||||
$this->html = $this->ipsclass->compiled_templates['skin_boards']->whoschatting_empty();
|
||||
}
|
||||
}
|
||||
|
||||
return $this->html;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -2,40 +2,31 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-05 11:04:08 -0500 (Thu, 05 Oct 2006) $
|
||||
| > $Revision: 609 $
|
||||
| > $Date: 2007-10-11 09:36:59 -0400 (Thu, 11 Oct 2007) $
|
||||
| > $Revision: 1130 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Func chat
|
||||
| > IPChat functions
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 1st march 2002
|
||||
| > Date started: 29th September 2003
|
||||
|
|
||||
| > DBA Checked: Tue 25th May 2004
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -121,7 +112,7 @@ class chat_functions
|
||||
'from' => 'members',
|
||||
'where' => "members_l_username IN (\"".$name_string."\")",
|
||||
'order' => 'members_display_name' ) );
|
||||
$this->ipsclass->DB->exec_query
|
||||
$this->ipsclass->DB->exec_query();
|
||||
|
||||
while ( $m = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
@@ -132,10 +123,12 @@ class chat_functions
|
||||
|
||||
$final = implode( ",\n", $member_ids );
|
||||
|
||||
$final .= '|&|'.intval(count($member_ids));
|
||||
$final .= '|&|'.intval( count($member_ids) );
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->do_update( 'cache_store', array( 'cs_value' => addslashes($final), 'cs_extra' => "{$hits_left}&{$time_is_running_out}" ), 'where' => "cs_key='chatstat'" );
|
||||
$this->ipsclass->DB->do_update( 'cache_store',
|
||||
array( 'cs_value' => addslashes($final),
|
||||
'cs_extra' => "{$hits_left}&{$time_is_running_out}" ), "cs_key='chatstat'" );
|
||||
|
||||
$row['cs_value'] = $final;
|
||||
}
|
||||
|
||||
@@ -2,25 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-11-13 15:22:45 -0600 (Mon, 13 Nov 2006) $
|
||||
| > $Revision: 726 $
|
||||
| > $Date: 2007-12-17 18:07:20 -0500 (Mon, 17 Dec 2007) $
|
||||
| > $Revision: 1149 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -33,15 +25,14 @@
|
||||
*/
|
||||
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly.";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class func_digest
|
||||
{
|
||||
# Global
|
||||
@@ -106,6 +97,9 @@ class func_digest
|
||||
$this->email = new emailer($this->root_path);
|
||||
$this->email->ipsclass =& $this->ipsclass;
|
||||
$this->email->email_init();
|
||||
|
||||
$this->ipsclass->forums->strip_invisible = 0;
|
||||
$this->ipsclass->forums->forums_init();
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -155,13 +149,90 @@ class func_digest
|
||||
|
||||
while( $t = $this->ipsclass->DB->fetch_row( $topic_query ) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Test for group permissions
|
||||
//-----------------------------------------
|
||||
|
||||
$mgroup_others = "";
|
||||
$temp_mgroups = array();
|
||||
$mgroup_perms = array();
|
||||
|
||||
if( $t['mgroup_others'] )
|
||||
{
|
||||
$t['mgroup_others'] = $this->ipsclass->clean_perm_string( $t['mgroup_others'] );
|
||||
$temp_mgroups = explode( ",", $t['mgroup_others'] );
|
||||
|
||||
if( count($temp_mgroups) )
|
||||
{
|
||||
foreach( $temp_mgroups as $other_mgroup )
|
||||
{
|
||||
$mgroup_perms[] = $this->ipsclass->cache['group_cache'][ $other_mgroup ]['g_perm_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( count($mgroup_perms) )
|
||||
{
|
||||
$mgroup_others = ",".implode( ",", $mgroup_perms ).",";
|
||||
}
|
||||
}
|
||||
|
||||
$perm_id = ( $t['org_perm_id'] ) ? $t['org_perm_id'] : $this->ipsclass->cache['group_cache'][ $t['mgroup'] ]['g_perm_id'].$mgroup_others;
|
||||
|
||||
if ( $this->ipsclass->forums->forum_by_id[ $t['forum_id'] ]['read_perms'] != '*' )
|
||||
{
|
||||
if ( ! preg_match("/(^|,)".str_replace( ",", '|', $perm_id )."(,|$)/", $this->ipsclass->forums->forum_by_id[ $t['forum_id'] ]['read_perms'] ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Test for approved/approve perms
|
||||
//-----------------------------------------
|
||||
|
||||
if( $t['approved'] == 0 )
|
||||
{
|
||||
$mod = 0;
|
||||
|
||||
if( $this->ipsclass->cache['group_cache'][$t['mgroup']]['g_is_supmod'] == 1 )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
else if ( count($this->ipsclass->cache['moderators']) )
|
||||
{
|
||||
$other_mgroups = array();
|
||||
|
||||
if( $t['mgroup_others'] )
|
||||
{
|
||||
$other_mgroups = explode( ",", $this->ipsclass->clean_perm_string( $t['mgroup_others'] ) );
|
||||
}
|
||||
|
||||
foreach( $this->ipsclass->cache['moderators'] as $moderators )
|
||||
{
|
||||
if ( $moderators['member_id'] == $t['id'] or $moderators['group_id'] == $t['mgroup'] )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
else if( count($other_mgroups) AND in_array( $moderators['group_id'], $other_mgroups ) )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( $mod == 0 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$main_output = "";
|
||||
$others_posted = 0;
|
||||
|
||||
if ( ! $cached[ $t['tid'] ] )
|
||||
{
|
||||
$topic_title = $t['title'];
|
||||
$forum_name = $this->ipsclass->cache['forum_cache'][ $t['forum_id'] ]['name'];
|
||||
$forum_name = $this->ipsclass->forums->forum_by_id[ $t['forum_id'] ]['name'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Get posts...
|
||||
@@ -282,12 +353,50 @@ class func_digest
|
||||
|
||||
while( $t = $this->ipsclass->DB->fetch_row( $forum_query ) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Test for group permissions
|
||||
//-----------------------------------------
|
||||
|
||||
$mgroup_others = "";
|
||||
$temp_mgroups = array();
|
||||
$mgroup_perms = array();
|
||||
|
||||
if( $t['mgroup_others'] )
|
||||
{
|
||||
$t['mgroup_others'] = $this->ipsclass->clean_perm_string( $t['mgroup_others'] );
|
||||
$temp_mgroups = explode( ",", $t['mgroup_others'] );
|
||||
|
||||
if( count($temp_mgroups) )
|
||||
{
|
||||
foreach( $temp_mgroups as $other_mgroup )
|
||||
{
|
||||
$mgroup_perms[] = $this->ipsclass->cache['group_cache'][ $other_mgroup ]['g_perm_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( count($mgroup_perms) )
|
||||
{
|
||||
$mgroup_others = ",".implode( ",", $mgroup_perms ).",";
|
||||
}
|
||||
}
|
||||
|
||||
$perm_id = ( $t['org_perm_id'] ) ? $t['org_perm_id'] : $this->ipsclass->cache['group_cache'][ $t['mgroup'] ]['g_perm_id'].$mgroup_others;
|
||||
|
||||
if ( $this->ipsclass->forums->forum_by_id[ $t['forum_id'] ]['read_perms'] != '*' )
|
||||
{
|
||||
if ( ! preg_match("/(^|,)".str_replace( ",", '|', $perm_id )."(,|$)/", $this->ipsclass->forums->forum_by_id[ $t['forum_id'] ]['read_perms'] ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$main_output = "";
|
||||
$others_posted = 0;
|
||||
|
||||
if ( !isset($cached[ $t['forum_id'] ]) OR !$cached[ $t['forum_id'] ] )
|
||||
{
|
||||
$forum_name = $this->ipsclass->cache['forum_cache'][ $t['forum_id'] ]['name'];
|
||||
$forum_name = $this->ipsclass->forums->forum_by_id[ $t['forum_id'] ]['name'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Get topics...
|
||||
@@ -303,6 +412,46 @@ class func_digest
|
||||
|
||||
while( $p = $this->ipsclass->DB->fetch_row( $topic_query ) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Test for approved/approve perms
|
||||
//-----------------------------------------
|
||||
|
||||
if( $p['approved'] == 0 )
|
||||
{
|
||||
$mod = 0;
|
||||
|
||||
if( $this->ipsclass->cache['group_cache'][$t['mgroup']]['g_is_supmod'] == 1 )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
else if ( count($this->ipsclass->cache['moderators']) )
|
||||
{
|
||||
$other_mgroups = array();
|
||||
|
||||
if( $t['mgroup_others'] )
|
||||
{
|
||||
$other_mgroups = explode( ",", $this->ipsclass->clean_perm_string( $t['mgroup_others'] ) );
|
||||
}
|
||||
|
||||
foreach( $this->ipsclass->cache['moderators'] as $moderators )
|
||||
{
|
||||
if ( $moderators['member_id'] == $t['id'] or $moderators['group_id'] == $t['mgroup'] )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
else if( count($other_mgroups) AND in_array( $moderators['group_id'], $other_mgroups ) )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( $mod == 0 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'digest_get_forums_topics_posts', array(
|
||||
'tid' => $p['tid'],
|
||||
), 'sql_extra_queries' );
|
||||
|
||||
@@ -1,22 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionboard.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
| Email: matt@ibforums.com
|
||||
| Licence Info: http://www.invisionpower.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Moderator Core Functions
|
||||
@@ -30,12 +23,11 @@
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class func_mod
|
||||
{
|
||||
var $ipsclass;
|
||||
@@ -212,7 +204,7 @@ class func_mod
|
||||
$this->rebuild_topic($tid);
|
||||
}
|
||||
|
||||
$this->add_moderate_log("", "", "", $pid, "Óäàëåííûå ñîîáùåíèÿ ñ id ($pid)");
|
||||
$this->add_moderate_log("", "", "", $pid, "Deleted posts ($pid)");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -307,16 +299,16 @@ class func_mod
|
||||
|
||||
$this->ipsclass->DB->force_data_type = array( 'starter_name' => 'string',
|
||||
'last_poster_name' => 'string' );
|
||||
|
||||
$this->ipsclass->DB->do_update( 'topics', array( 'last_post' => $last_post['post_date'] ? $last_post['post_date'] : $first_post['post_date'],
|
||||
'last_poster_id' => $last_post['author_id'] ? $last_post['author_id'] : $first_post['author_id'],
|
||||
'last_poster_name' => $last_poster_name ? $last_poster_name : $first_poster_name,
|
||||
'topic_queuedposts' => $qpcount,
|
||||
'posts' => $pcount,
|
||||
'starter_id' => $first_post['author_id'],
|
||||
|
||||
$this->ipsclass->DB->do_update( 'topics', array( 'last_post' => intval($last_post['post_date'] ? $last_post['post_date'] : $first_post['post_date']),
|
||||
'last_poster_id' => intval($last_post['author_id'] ? $last_post['author_id'] : ( $pcount > 0 ? 0 : $first_post['author_id'] )),
|
||||
'last_poster_name' => $last_poster_name ? $last_poster_name : ( $pcount > 0 ? $this->ipsclass->lang['global_guestname'] : $first_poster_name ),
|
||||
'topic_queuedposts' => intval($qpcount),
|
||||
'posts' => intval($pcount),
|
||||
'starter_id' => intval($first_post['author_id']),
|
||||
'starter_name' => $first_poster_name,
|
||||
'start_date' => $first_post['post_date'],
|
||||
'topic_firstpost' => $first_post['pid'],
|
||||
'start_date' => intval($first_post['post_date']),
|
||||
'topic_firstpost' => intval($first_post['pid']),
|
||||
'topic_hasattach' => intval($attach['count'])
|
||||
), 'tid='.$tid );
|
||||
|
||||
@@ -335,7 +327,7 @@ class func_mod
|
||||
// the last post in a forum, best update that :D
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ($this->ipsclass->forums->forums_by_id[ $last_post['forum_id'] ]['last_id'] == $tid) AND ($doforum == 1) )
|
||||
if ( ($this->ipsclass->forums->forum_by_id[ $last_post['forum_id'] ]['last_id'] == $tid) AND ($doforum == 1) )
|
||||
{
|
||||
$tt = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'title, tid, last_post, last_poster_id, last_poster_name',
|
||||
'from' => 'topics',
|
||||
@@ -346,10 +338,10 @@ class func_mod
|
||||
|
||||
$dbs = array(
|
||||
'last_title' => $tt['title'] ? $tt['title'] : "",
|
||||
'last_id' => $tt['tid'] ? $tt['tid'] : "",
|
||||
'last_post' => $tt['last_post'] ? $tt['last_post'] : "",
|
||||
'last_id' => $tt['tid'] ? $tt['tid'] : 0,
|
||||
'last_post' => $tt['last_post'] ? $tt['last_post'] : 0,
|
||||
'last_poster_name' => $tt['last_poster_name'] ? $tt['last_poster_name'] : "",
|
||||
'last_poster_id' => $tt['last_poster_id'] ? $tt['last_poster_id'] : "",
|
||||
'last_poster_id' => $tt['last_poster_id'] ? $tt['last_poster_id'] : 0,
|
||||
);
|
||||
|
||||
$this->ipsclass->DB->force_data_type = array( 'last_poster_name' => 'string',
|
||||
@@ -357,14 +349,14 @@ class func_mod
|
||||
|
||||
$this->ipsclass->DB->do_update( 'forums', $dbs, "id=".intval($this->forum['id']) );
|
||||
|
||||
if ( $this->ipsclass->forums->forums_by_id[ $this->forum['id'] ]['newest_id'] == $tid )
|
||||
if ( $this->ipsclass->forums->forum_by_id[ $this->forum['id'] ]['newest_id'] == $tid )
|
||||
{
|
||||
$sort_key = $this->ipsclass->forums->forums_by_id[ $this->forum['id'] ]['sort_key'];
|
||||
$sort_key = $this->ipsclass->forums->forum_by_id[ $this->forum['id'] ]['sort_key'];
|
||||
|
||||
$tt = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'title, tid',
|
||||
'from' => 'topics',
|
||||
'where' => 'forum_id='.$this->forum['id'].' and approved=1',
|
||||
'order' => $sort_key.' desc',
|
||||
'order' => 'start_date desc',
|
||||
'limit' => array( 0,1 )
|
||||
) );
|
||||
|
||||
@@ -972,7 +964,7 @@ class func_mod
|
||||
$newest_topic = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'title, tid',
|
||||
'from' => 'topics',
|
||||
'where' => 'forum_id='.$fid.' and approved=1',
|
||||
'order' => $sort_key.' desc',
|
||||
'order' => 'start_date desc',
|
||||
'limit' => array( 0,1 )
|
||||
) );
|
||||
|
||||
@@ -1221,7 +1213,7 @@ class func_mod
|
||||
|
||||
function sql_prune_create( $forum_id, $starter_id="", $topic_state="", $post_min="", $date_exp="", $ignore_pin="", $pergo=0, $limit=0 )
|
||||
{
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'tid', 'from' => 'topics', 'where' => 'approved=1 and forum_id='.intval($forum_id) ) );
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'tid', 'from' => 'topics', 'where' => 'forum_id='.intval($forum_id) ) );
|
||||
|
||||
$sql = $this->ipsclass->DB->cur_query;
|
||||
|
||||
@@ -1331,9 +1323,9 @@ class func_mod
|
||||
'ip_address' => $this->ipsclass->input['IP_ADDRESS'],
|
||||
'http_referer'=> htmlspecialchars($this->ipsclass->my_getenv('HTTP_REFERER')),
|
||||
'ctime' => time(),
|
||||
'topic_title' => $t_title,
|
||||
'action' => $mod_title,
|
||||
'query_string'=> htmlspecialchars($this->ipsclass->my_getenv('QUERY_STRING')),
|
||||
'topic_title' => substr( $t_title, 0, 255 ),
|
||||
'action' => substr( $mod_title, 0, 128 ),
|
||||
'query_string'=> substr( htmlspecialchars($this->ipsclass->my_getenv('QUERY_STRING')), 0, 255 ),
|
||||
) );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
+1618
-1544
File diff suppressed because it is too large.
Load diff
@@ -2,25 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-11-03 16:54:54 -0600 (Fri, 03 Nov 2006) $
|
||||
| > $Revision: 709 $
|
||||
| > $Date: 2007-05-01 14:00:44 -0400 (Tue, 01 May 2007) $
|
||||
| > $Revision: 958 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -35,7 +27,7 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -78,10 +70,10 @@ class func_taskmanager
|
||||
|
||||
function run_task()
|
||||
{
|
||||
if ( isset( $_REQUEST['ck'] ) AND $_REQUEST['ck'] )
|
||||
if ( isset( $this->ipsclass->input['ck'] ) AND $this->ipsclass->input['ck'] )
|
||||
{
|
||||
$this->type = 'cron';
|
||||
$this->cron_key = substr( trim(stripslashes($this->ipsclass->txt_alphanumerical_clean($_REQUEST['ck']))), 0, 32 );
|
||||
$this->cron_key = substr( trim(stripslashes($this->ipsclass->txt_alphanumerical_clean($this->ipsclass->input['ck']))), 0, 32 );
|
||||
}
|
||||
|
||||
if ( $this->type == 'internal' )
|
||||
@@ -209,13 +201,7 @@ class func_taskmanager
|
||||
$this_task['task_next_run'] = $this->time_now + 3600;
|
||||
}
|
||||
|
||||
$cache_array = array();
|
||||
|
||||
$cache = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key='systemvars'" ) );
|
||||
|
||||
$cache_array = unserialize(stripslashes($cache['cs_value']));
|
||||
|
||||
$cache_array['task_next_run'] = $this_task['task_next_run'];
|
||||
$this->ipsclass->cache['systemvars']['task_next_run'] = $this_task['task_next_run'];
|
||||
|
||||
$this->ipsclass->update_cache( array( 'array' => 1, 'name' => 'systemvars', 'donow' => 1, 'deletefirst' => 0 ) );
|
||||
}
|
||||
|
||||
@@ -2,26 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-03 06:14:55 -0500 (Tue, 03 Oct 2006) $
|
||||
| > $Revision: 596 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-05-02 17:29:35 -0400 (Wed, 02 May 2007) $
|
||||
| > $Revision: 959 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Topic display module
|
||||
@@ -36,8 +28,8 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class topic_display
|
||||
@@ -53,7 +45,6 @@ class topic_display
|
||||
var $topic = array();
|
||||
var $mod_action = array();
|
||||
var $poll_html = "";
|
||||
var $parser = "";
|
||||
var $mimetypes = "";
|
||||
var $nav_extra = "";
|
||||
var $read_array = array();
|
||||
@@ -200,7 +191,7 @@ class topic_display
|
||||
{
|
||||
$queued_query_bit = '';
|
||||
|
||||
if ( $this->ipsclass->input['modfilter'] == 'invisible_posts' )
|
||||
if ( isset($this->ipsclass->input['modfilter']) AND $this->ipsclass->input['modfilter'] == 'invisible_posts' )
|
||||
{
|
||||
$queued_query_bit = ' and queued=1';
|
||||
}
|
||||
@@ -418,7 +409,6 @@ class topic_display
|
||||
{
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->topic_end_first_post( array( 'TOPIC' => $this->topic, 'FORUM' => $this->forum ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -426,7 +416,6 @@ class topic_display
|
||||
//-----------------------------------------
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->TableFooter( array( 'TOPIC' => $this->topic, 'FORUM' => $this->forum ), 0, $this->ipsclass->return_md5_check() );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,25 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-26 12:58:53 -0500 (Thu, 26 Oct 2006) $
|
||||
| > $Revision: 678 $
|
||||
| > $Date: 2008-04-23 15:02:02 -0400 (Wed, 23 Apr 2008) $
|
||||
| > $Revision: 1254 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -36,8 +28,8 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class topic_display
|
||||
@@ -52,7 +44,6 @@ class topic_display
|
||||
var $topic = array();
|
||||
var $mod_action = array();
|
||||
var $poll_html = "";
|
||||
var $parser = "";
|
||||
var $mimetypes = "";
|
||||
var $nav_extra = "";
|
||||
var $mod_panel_html = "";
|
||||
@@ -307,6 +298,8 @@ class topic_display
|
||||
$poster = $return['poster'];
|
||||
$row = $return['row'];
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->RenderRow( $row, $poster );
|
||||
|
||||
//-----------------------------------------
|
||||
// Are we giving this bloke a good ignoring?
|
||||
//-----------------------------------------
|
||||
@@ -323,8 +316,6 @@ class topic_display
|
||||
}
|
||||
}
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->RenderRow( $row, $poster );
|
||||
|
||||
if ( ! $this->printed and $num_rows > 1 )
|
||||
{
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->topic_end_first_post( array( 'TOPIC' => $this->topic, 'FORUM' => $this->forum ), 1 );
|
||||
@@ -415,13 +406,13 @@ class topic_display
|
||||
|
||||
if ( $this->structured_pids[ $post['post_parent'] ][$last_id] == $post['pid'] )
|
||||
{
|
||||
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/spacer.gif" width="20" height="16">';
|
||||
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_no_children.gif" />';
|
||||
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/spacer.gif" alt="" width="20" height="16">';
|
||||
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_no_children.gif" alt="-" />';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/to_down_pipe.gif">';
|
||||
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_with_children.gif" />';
|
||||
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/to_down_pipe.gif" alt="|" />';
|
||||
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_with_children.gif" alt="-" />';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -429,8 +420,15 @@ class topic_display
|
||||
{
|
||||
if ( $this->ipsclass->vars['post_showtext_notitle'] )
|
||||
{
|
||||
$post_text = $this->lib->parser->strip_all_tags( $post['post'] );
|
||||
|
||||
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
|
||||
$this->lib->parser = new parse_bbcode();
|
||||
$this->lib->parser->ipsclass = $this->ipsclass;
|
||||
$this->lib->parser->allow_update_caches = 1;
|
||||
|
||||
$this->lib->parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
|
||||
|
||||
$post_text = $this->lib->parser->strip_all_tags( strip_tags( $this->ipsclass->my_br2nl( $post['post'] ) ) );
|
||||
|
||||
if ( strlen($post_text) > 50 )
|
||||
{
|
||||
$post['post_title'] = substr( $post_text, 0, 50 ).'...';
|
||||
@@ -457,11 +455,11 @@ class topic_display
|
||||
|
||||
$post['formatted_date'] = $this->ipsclass->get_date( $post['post_date'], 'LONG' );
|
||||
|
||||
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post_off.gif" />';
|
||||
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post_off.gif" alt="-" />';
|
||||
|
||||
if ( $post['post_date'] > $this->lib->last_read_tid )
|
||||
{
|
||||
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post.gif" />';
|
||||
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post.gif" alt="-" />';
|
||||
}
|
||||
|
||||
//$post['post_debug'] = "{ID: {$post['pid']}} Last Array Index: $last_id - Last id in tree{$this->structured_pids[ $post['post_parent'] ][$last_id]}, DEPTH: $depth, [parent: {$post['post_parent']}]";
|
||||
|
||||
@@ -2,26 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-11-28 09:41:42 -0600 (Tue, 28 Nov 2006) $
|
||||
| > $Revision: 743 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2008-04-21 17:32:17 -0400 (Mon, 21 Apr 2008) $
|
||||
| > $Revision: 1249 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > UserCP functions library
|
||||
@@ -33,9 +25,9 @@
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -149,7 +141,7 @@ class func_usercp
|
||||
|
||||
if ( ! $this->ipsclass->member['vdirs'] )
|
||||
{
|
||||
$this->ipsclass->member['vdirs'] = "in:Âõîäÿùèå|sent:Îòïðàâëåííûå";
|
||||
$this->ipsclass->member['vdirs'] = "in:{$this->ipsclass->lang['account_inbox']}|sent:{$this->ipsclass->lang['account_sent']}";
|
||||
}
|
||||
|
||||
foreach( explode( "|", $this->ipsclass->member['vdirs'] ) as $dir )
|
||||
@@ -247,7 +239,7 @@ class func_usercp
|
||||
// Passy check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( isset($forum['password']) AND $forum['password'] != "" )
|
||||
if ( ! in_array( $this->ipsclass->member['mgroup'], explode(",", $forum['password_override']) ) AND ( isset($forum['password']) AND $forum['password'] != "" ) )
|
||||
{
|
||||
if ( $this->ipsclass->forums->forums_compare_password( $forum['id'] ) != TRUE )
|
||||
{
|
||||
@@ -291,6 +283,15 @@ class func_usercp
|
||||
}
|
||||
else
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Auth check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->ipsclass->input['auth_key'] != $this->class->md5_check )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'del_post') );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Method..
|
||||
//-----------------------------------------
|
||||
@@ -323,7 +324,6 @@ class func_usercp
|
||||
|
||||
if ( $method == 'forum' )
|
||||
{
|
||||
|
||||
$this->ipsclass->DB->do_insert( 'forum_tracker', array (
|
||||
'member_id' => $this->ipsclass->member['id'],
|
||||
'forum_id' => $fid,
|
||||
@@ -394,13 +394,6 @@ class func_usercp
|
||||
|
||||
$photo = $this->lib_upload_photo();
|
||||
|
||||
if ( $photo['status'] == 'fail' )
|
||||
{
|
||||
$this->ipsclass->load_language( 'lang_profile' );
|
||||
$this->class->photo( $this->ipsclass->lang[ 'pp_' . $photo['error'] ] );
|
||||
return;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Save...
|
||||
//-----------------------------------------
|
||||
@@ -414,26 +407,33 @@ class func_usercp
|
||||
{
|
||||
# Update...
|
||||
$this->ipsclass->DB->do_update( 'profile_portal', array( 'pp_main_photo' => $photo['final_location'],
|
||||
'pp_main_width' => $photo['final_width'],
|
||||
'pp_main_height' => $photo['final_height'],
|
||||
'pp_main_width' => intval($photo['final_width']),
|
||||
'pp_main_height' => intval($photo['final_height']),
|
||||
'pp_thumb_photo' => $photo['t_final_location'],
|
||||
'pp_thumb_width' => $photo['t_final_width'],
|
||||
'pp_thumb_height' => $photo['t_final_height'],
|
||||
'pp_thumb_width' => intval($photo['t_final_width']),
|
||||
'pp_thumb_height' => intval($photo['t_final_height']),
|
||||
), 'pp_member_id='.$member_id );
|
||||
}
|
||||
else
|
||||
{
|
||||
# Insert
|
||||
$this->ipsclass->DB->do_insert( 'profile_portal', array( 'pp_main_photo' => $photo['final_location'],
|
||||
'pp_main_width' => $photo['final_width'],
|
||||
'pp_main_height' => $photo['final_height'],
|
||||
'pp_main_width' => intval($photo['final_width']),
|
||||
'pp_main_height' => intval($photo['final_height']),
|
||||
'pp_thumb_photo' => $photo['t_final_location'],
|
||||
'pp_thumb_width' => $photo['t_final_width'],
|
||||
'pp_thumb_height' => $photo['t_final_height'],
|
||||
'pp_thumb_width' => intval($photo['t_final_width']),
|
||||
'pp_thumb_height' => intval($photo['t_final_height']),
|
||||
'pp_member_id' => $member_id,
|
||||
) );
|
||||
}
|
||||
|
||||
if ( $photo['status'] == 'fail' )
|
||||
{
|
||||
$this->ipsclass->load_language( 'lang_profile' );
|
||||
$this->class->photo( $this->ipsclass->lang[ 'pp_' . $photo['error'] ] );
|
||||
return;
|
||||
}
|
||||
|
||||
$this->ipsclass->print->redirect_screen( $this->ipsclass->lang['photo_c_up'], "act=UserCP&CODE=photo" );
|
||||
}
|
||||
|
||||
@@ -489,7 +489,7 @@ class func_usercp
|
||||
// Already a dir?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! file_exists( $upload_path . "/profile" ) )
|
||||
if ( ! is_dir( $upload_path . "/profile" ) )
|
||||
{
|
||||
if ( @mkdir( $upload_path . "/profile", 0777 ) )
|
||||
{
|
||||
@@ -499,13 +499,18 @@ class func_usercp
|
||||
$upload_path .= "/profile";
|
||||
$upload_dir = "profile/";
|
||||
}
|
||||
else
|
||||
{
|
||||
$upload_dir = "";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
# Set path and dir correct
|
||||
$upload_dir = "";
|
||||
$upload_path .= "/profile";
|
||||
$upload_dir = "profile/";
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Deleting the photo?
|
||||
//-----------------------------------------
|
||||
@@ -522,21 +527,21 @@ class func_usercp
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
$this->ipsclass->DB->do_update( 'profile_portal', array( 'pp_main_photo' => '',
|
||||
'pp_main_width' => '',
|
||||
'pp_main_height' => '',
|
||||
'pp_main_width' => 0,
|
||||
'pp_main_height' => 0,
|
||||
'pp_thumb_photo' => '',
|
||||
'pp_thumb_width' => '',
|
||||
'pp_thumb_height' => '',
|
||||
'pp_thumb_width' => 0,
|
||||
'pp_thumb_height' => 0,
|
||||
), 'pp_member_id='.$member_id );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->DB->do_insert( 'profile_portal', array( 'pp_main_photo' => '',
|
||||
'pp_main_width' => '',
|
||||
'pp_main_height' => '',
|
||||
'pp_main_width' => 0,
|
||||
'pp_main_height' => 0,
|
||||
'pp_thumb_photo' => '',
|
||||
'pp_thumb_width' => '',
|
||||
'pp_thumb_height' => '',
|
||||
'pp_thumb_width' => 0,
|
||||
'pp_thumb_height' => 0,
|
||||
'pp_member_id' => $member_id
|
||||
) );
|
||||
}
|
||||
@@ -608,7 +613,7 @@ class func_usercp
|
||||
//-----------------------------------------
|
||||
|
||||
$upload->upload_process();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Error?
|
||||
//-----------------------------------------
|
||||
@@ -1623,7 +1628,7 @@ class func_usercp
|
||||
|
||||
foreach ( array('day','month','year') as $v )
|
||||
{
|
||||
if (!empty($this->ipsclass->input[$v]))
|
||||
if ( ! empty($this->ipsclass->input[$v] ) )
|
||||
{
|
||||
$c_cnt++;
|
||||
}
|
||||
@@ -1633,25 +1638,25 @@ class func_usercp
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'calendar_not_all' ) );
|
||||
}
|
||||
else if( ($c_cnt > 0) and ($c_cnt == 3) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Make sure it's a legal date
|
||||
//-----------------------------------------
|
||||
|
||||
$_year = $this->ipsclass->input['year'] ? $this->ipsclass->input['year'] : 1999;
|
||||
|
||||
if ( ! checkdate( $this->ipsclass->input['month'], $this->ipsclass->input['day'], $_year ) )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'ucp_birthday_legal_date' ) );
|
||||
}
|
||||
}
|
||||
else if( ($c_cnt > 0) and ($c_cnt == 3) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Make sure it's a legal date
|
||||
//-----------------------------------------
|
||||
|
||||
$_year = $this->ipsclass->input['year'] ? $this->ipsclass->input['year'] : 1999;
|
||||
|
||||
if ( ! checkdate( $this->ipsclass->input['month'], $this->ipsclass->input['day'], $_year ) )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'ucp_birthday_legal_date' ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! preg_match( "#^http://#", $this->ipsclass->input['WebSite'] ) )
|
||||
{
|
||||
$this->ipsclass->input['WebSite'] = 'http://'.$this->ipsclass->input['WebSite'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Start off our array
|
||||
//-----------------------------------------
|
||||
@@ -1670,7 +1675,7 @@ class func_usercp
|
||||
'location' => $this->class->parser->bad_words( $this->ipsclass->input['Location'] ),
|
||||
'interests' => $this->class->parser->bad_words( $this->ipsclass->input['Interests'] ),
|
||||
);
|
||||
|
||||
|
||||
$_gender = $this->ipsclass->input['gender'] == 'male' ? 'male' : ( $this->ipsclass->input['gender'] == 'female' ? 'female' : '' );
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -1693,7 +1698,16 @@ class func_usercp
|
||||
|
||||
$this->ipsclass->DB->do_update( 'member_extra', $bet, 'id='.$this->ipsclass->member['id'] );
|
||||
|
||||
$this->ipsclass->DB->do_update( 'profile_portal', array( 'pp_gender' => $_gender ), 'pp_member_id=' . $this->ipsclass->member['id'] );
|
||||
$check = $this->ipsclass->DB->build_and_exec_query( array( 'select' => 'pp_member_id', 'from' => 'profile_portal', 'where' => 'pp_member_id=' . $this->ipsclass->member['id'] ) );
|
||||
|
||||
if( $check['pp_member_id'] )
|
||||
{
|
||||
$this->ipsclass->DB->do_update( 'profile_portal', array( 'pp_gender' => $_gender ), 'pp_member_id=' . $this->ipsclass->member['id'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->DB->do_insert( 'profile_portal', array( 'pp_gender' => $_gender, 'pp_member_id' => $this->ipsclass->member['id'] ) );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Save the profile stuffy wuffy
|
||||
@@ -1803,7 +1817,7 @@ class func_usercp
|
||||
$this->class->parser->parse_bbcode = intval($this->ipsclass->vars['sig_allow_ibc']);
|
||||
$this->class->parser->parsing_signature = 1;
|
||||
|
||||
$this->ipsclass->input['Post'] = $this->class->parser->bad_words( $this->class->parser->pre_db_parse( $this->ipsclass->input['Post'] ) );
|
||||
$this->ipsclass->input['Post'] = $this->class->parser->bad_words( $this->class->parser->pre_display_parse( $this->class->parser->pre_db_parse( $this->ipsclass->input['Post'] ) ) );
|
||||
|
||||
if ($this->class->parser->error != "")
|
||||
{
|
||||
|
||||
@@ -1,10 +1 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
|
||||
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
|
||||
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
|
||||
</head><body>
|
||||
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
|
||||
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó «<b>Íàçàä</b>» â âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
|
||||
</body>
|
||||
</html>
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>␍
|
||||
@@ -2,24 +2,16 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Date: 2006-09-22 06:28:54 -0400 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
@@ -32,9 +24,9 @@
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -867,8 +859,8 @@ class post_parser {
|
||||
global $ibforums;
|
||||
|
||||
$used = array(
|
||||
'quote' => array( 'title' => 'Öèòàòà', 'css_top' => 'quotetop' , 'css_main' => 'quotemain' ),
|
||||
'code' => array( 'title' => 'Êîä' , 'css_top' => 'codetop' , 'css_main' => 'codemain' ),
|
||||
'quote' => array( 'title' => 'QUOTE', 'css_top' => 'quotetop' , 'css_main' => 'quotemain' ),
|
||||
'code' => array( 'title' => 'CODE' , 'css_top' => 'codetop' , 'css_main' => 'codemain' ),
|
||||
'sql' => array( 'title' => 'SQL' , 'css_top' => 'sqltop' , 'css_main' => 'sqlmain' ),
|
||||
'html' => array( 'title' => 'HTML' , 'css_top' => 'htmltop' , 'css_main' => 'htmlmain' )
|
||||
);
|
||||
|
||||
@@ -2,25 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-11-22 12:58:39 -0600 (Wed, 22 Nov 2006) $
|
||||
| > $Revision: 739 $
|
||||
| > $Date: 2007-12-28 17:06:51 -0500 (Fri, 28 Dec 2007) $
|
||||
| > $Revision: 1152 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -32,16 +24,14 @@
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class search_lib extends Search
|
||||
{
|
||||
|
||||
var $parser = "";
|
||||
var $is = "";
|
||||
var $resultlimit = "";
|
||||
|
||||
@@ -93,7 +83,7 @@ class search_lib extends Search
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'search_word_short', 'EXTRA' => $this->ipsclass->vars['min_search_word']) );
|
||||
}
|
||||
else if ( strlen(trim($keywords)) > 100 )
|
||||
else if ( $this->ipsclass->txt_mb_strlen(trim($keywords)) > 100 )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'search_word_long', 'EXTRA' => 100) );
|
||||
}
|
||||
@@ -155,6 +145,12 @@ class search_lib extends Search
|
||||
{
|
||||
$approved = 'and p.queued IN (0,1)';
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// bad magic quotes - bad
|
||||
//-----------------------------------------
|
||||
|
||||
$check_keywords = $this->ipsclass->DB->add_slashes( $check_keywords );
|
||||
|
||||
//-----------------------------------------
|
||||
// How many results?
|
||||
@@ -196,7 +192,7 @@ class search_lib extends Search
|
||||
|
||||
if ( $this->ipsclass->input['sortby'] != "relevant" )
|
||||
{
|
||||
$cache .= " ORDER BY p.post_date DESC";
|
||||
$cache .= " ORDER BY p.post_date {$this->is->sort_order}";
|
||||
}
|
||||
|
||||
$unique_id = md5(uniqid(microtime(),1));
|
||||
@@ -351,12 +347,6 @@ class search_lib extends Search
|
||||
$row['class2'] = "row1";
|
||||
$row['classposts'] = "row2";
|
||||
|
||||
$this->topics->parser->parse_html = ( $this->ipsclass->forums->forum_by_id[$row['forum_id']]['use_html'] and $this->ipsclass->cache['group_cache'][ $row['mgroup'] ]['g_dohtml'] and $row['post_htmlstate'] ) ? 1 : 0;
|
||||
$this->topics->parser->parse_wordwrap = $this->ipsclass->vars['post_wordwrap'];
|
||||
$this->topics->parser->parse_nl2br = $row['post_htmlstate'] == 2 ? 1 : 0;
|
||||
|
||||
$row['post'] = $this->topics->parser->pre_display_parse( $row['post'] );
|
||||
|
||||
if ( $this->ipsclass->input['highlite'] )
|
||||
{
|
||||
$row['post'] = $this->ipsclass->content_search_highlight( $row['post'], $this->ipsclass->input['highlite'] );
|
||||
@@ -365,15 +355,15 @@ class search_lib extends Search
|
||||
$row['forum_name'] = $this->ipsclass->forums->forum_by_id[ $row['forum_id'] ]['name'];
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_search']->RenderPostRow($row, $member);
|
||||
|
||||
//-----------------------------------------
|
||||
// Add in attachments?
|
||||
|
||||
//-----------------------------------------
|
||||
// Add in attachments?
|
||||
// Sucks we have to do this inside the loop
|
||||
// however we have to check forum view perms
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $attach_pids ) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $attach_pids ) )
|
||||
{
|
||||
if ( ! is_object( $this->class_attach ) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
@@ -396,8 +386,8 @@ class search_lib extends Search
|
||||
$this->output = $this->class_attach->render_attachments( $this->output, $attach_pids );
|
||||
}
|
||||
}
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_search']->end_results_table(array( 'SHOW_PAGES' => $this->links ) , 1 );
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_search']->end_results_table( array( 'SHOW_PAGES' => $this->links ), 1 );
|
||||
|
||||
$this->ipsclass->print->add_output("$this->output");
|
||||
$this->ipsclass->print->do_output( array( 'TITLE' => $this->ipsclass->lang['g_simple_title'], 'JS' => 0, NAV => array( $this->ipsclass->lang['g_simple_title'] ) ) );
|
||||
@@ -414,6 +404,10 @@ class search_lib extends Search
|
||||
|
||||
function do_main_search()
|
||||
{
|
||||
//-----------------------------------------
|
||||
|
||||
$forums = $this->is->get_searchable_forums();
|
||||
|
||||
//-----------------------------------------
|
||||
// Invisible topic-approval permissions?
|
||||
//-----------------------------------------
|
||||
@@ -427,24 +421,36 @@ class search_lib extends Search
|
||||
{
|
||||
if( $v['member_id'] == $this->ipsclass->member['id'] AND $v['post_q'] )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( $v['member_id'] == $this->ipsclass->member['id'] AND $v['topic_q'] )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( $v['is_group'] && ( $v['group_id'] == $this->ipsclass->member['mgroup']
|
||||
OR in_array( $v['group_id'], explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->member['mgroup_others'] ) ) ) ) && $v['post_q'] )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( $v['is_group'] && ( $v['group_id'] == $this->ipsclass->member['mgroup']
|
||||
OR in_array( $v['group_id'], explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->member['mgroup_others'] ) ) ) ) && $v['topic_q'] )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -571,10 +577,6 @@ class search_lib extends Search
|
||||
$this->is->search_in = 'titles';
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$forums = $this->is->get_searchable_forums();
|
||||
|
||||
//-----------------------------------------
|
||||
// Do we have any forums to search in?
|
||||
//-----------------------------------------
|
||||
@@ -719,7 +721,7 @@ class search_lib extends Search
|
||||
|
||||
$t_forum_query = $this->ipsclass->member['g_is_supmod'] ? "t.forum_id IN ($forums)" :
|
||||
( count($my_invisible_forums_t) ? "( (t.forum_id IN ($forums) AND t.approved=1) OR t.forum_id IN(" . implode( ",", $my_invisible_forums_t ) . ") )" :
|
||||
"t.forum_id IN ($forums)" );
|
||||
"t.forum_id IN ($forums) AND t.approved=1" );
|
||||
|
||||
if( $this->ipsclass->member['g_is_supmod'] )
|
||||
{
|
||||
@@ -756,6 +758,12 @@ class search_lib extends Search
|
||||
{
|
||||
$p_forum_query = "(t.forum_id IN ($forums) AND t.approved=1 AND p.queued=0)";
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// bad magic quotes - bad
|
||||
//-----------------------------------------
|
||||
|
||||
$keywords = $this->ipsclass->DB->add_slashes( $keywords );
|
||||
|
||||
if ($type != 'nameonly')
|
||||
{
|
||||
@@ -765,6 +773,7 @@ class search_lib extends Search
|
||||
FROM ".SQL_PREFIX."topics t
|
||||
WHERE $topics_datecut $t_forum_query
|
||||
$topics_name AND MATCH(title) AGAINST ('".trim($keywords)."' $boolean)
|
||||
ORDER BY t.last_post {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
|
||||
|
||||
@@ -773,6 +782,7 @@ class search_lib extends Search
|
||||
LEFT JOIN ".SQL_PREFIX."topics t ON ( p.topic_id=t.tid )
|
||||
WHERE $posts_datecut $p_forum_query
|
||||
$posts_name AND MATCH(post) AGAINST ('".trim($keywords)."' $boolean)
|
||||
ORDER BY p.post_date {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
}
|
||||
else
|
||||
@@ -788,6 +798,7 @@ class search_lib extends Search
|
||||
p.topic_id={$this->is->topic_id}
|
||||
AND $posts_datecut $p_forum_query
|
||||
$posts_name AND MATCH(post) AGAINST ('".trim($keywords)."' $boolean)
|
||||
ORDER BY p.post_date {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
}
|
||||
}
|
||||
@@ -798,6 +809,7 @@ class search_lib extends Search
|
||||
FROM ".SQL_PREFIX."topics t
|
||||
WHERE $topics_datecut $t_forum_query
|
||||
$topics_name
|
||||
ORDER BY t.last_post {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
|
||||
$posts_query = "SELECT p.pid, p.queued, t.approved, t.forum_id
|
||||
@@ -805,6 +817,7 @@ class search_lib extends Search
|
||||
LEFT JOIN ".SQL_PREFIX."topics t ON ( p.topic_id=t.tid )
|
||||
WHERE $posts_datecut $p_forum_query
|
||||
$posts_name
|
||||
ORDER BY p.post_date {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
}
|
||||
//print $topics_query."<br />".$posts_query; exit();
|
||||
@@ -830,7 +843,7 @@ class search_lib extends Search
|
||||
if ( ! $this->is->topic_search_only )
|
||||
{
|
||||
$this->ipsclass->DB->query($topics_query);
|
||||
|
||||
|
||||
$total_t = $this->ipsclass->DB->get_num_rows();
|
||||
|
||||
while ($row = $this->ipsclass->DB->fetch_row() )
|
||||
@@ -881,63 +894,66 @@ class search_lib extends Search
|
||||
// PID: Get 'em
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->query($posts_query);
|
||||
|
||||
$total_p = $this->ipsclass->DB->get_num_rows();
|
||||
|
||||
while ($row = $this->ipsclass->DB->fetch_row() )
|
||||
if( $this->is->search_in != 'titles' )
|
||||
{
|
||||
/*if( $row['queued'] )
|
||||
$this->ipsclass->DB->query($posts_query);
|
||||
|
||||
$total_p = $this->ipsclass->DB->get_num_rows();
|
||||
|
||||
while ($row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
if( !$this->ipsclass->member['g_is_supmod'] )
|
||||
/*if( $row['queued'] )
|
||||
{
|
||||
if( !in_array( $row['forum_id'], $my_invisible_forums_p ) )
|
||||
if( !$this->ipsclass->member['g_is_supmod'] )
|
||||
{
|
||||
continue;
|
||||
if( !in_array( $row['forum_id'], $my_invisible_forums_p ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( !$row['approved'] )
|
||||
{
|
||||
if( !$this->ipsclass->member['g_is_supmod'] )
|
||||
{
|
||||
if( !in_array( $row['forum_id'], $my_invisible_forums_t ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
//$post_tmp[ $row['pid'] ] = $row['pid'];
|
||||
$post_array[ $row['pid'] ] = $row['pid'];
|
||||
}
|
||||
|
||||
if( !$row['approved'] )
|
||||
{
|
||||
if( !$this->ipsclass->member['g_is_supmod'] )
|
||||
{
|
||||
if( !in_array( $row['forum_id'], $my_invisible_forums_t ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
//$post_tmp[ $row['pid'] ] = $row['pid'];
|
||||
$post_array[ $row['pid'] ] = $row['pid'];
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->free_result();
|
||||
|
||||
if( $total_p == $this->resultlimit )
|
||||
{
|
||||
$more = 1;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// PID Sort 'em
|
||||
//-----------------------------------------
|
||||
|
||||
/*krsort( $post_tmp );
|
||||
|
||||
foreach( $post_tmp as $id => $pid )
|
||||
{
|
||||
$p_cnt++;
|
||||
|
||||
if ( $p_cnt > $this->resultlimit )
|
||||
$this->ipsclass->DB->free_result();
|
||||
|
||||
if( $total_p == $this->resultlimit )
|
||||
{
|
||||
$more = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
$post_array[ $pid ] = $pid;
|
||||
}*/
|
||||
|
||||
//-----------------------------------------
|
||||
// PID Sort 'em
|
||||
//-----------------------------------------
|
||||
|
||||
/*krsort( $post_tmp );
|
||||
|
||||
foreach( $post_tmp as $id => $pid )
|
||||
{
|
||||
$p_cnt++;
|
||||
|
||||
if ( $p_cnt > $this->resultlimit )
|
||||
{
|
||||
$more = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
$post_array[ $pid ] = $pid;
|
||||
}*/
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -974,7 +990,7 @@ class search_lib extends Search
|
||||
'post_id' => $posts,
|
||||
'topic_max' => intval( count( $topic_array ) ),
|
||||
'post_max' => intval( count( $post_array ) ),
|
||||
'keywords' => str_replace( '"', "", $keywords ),
|
||||
'keywords' => str_replace( '"', "", str_replace( '\\\\', '\\', $keywords ) ),
|
||||
'query_cache' => $more,
|
||||
);
|
||||
|
||||
|
||||
@@ -2,25 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-11-22 12:58:39 -0600 (Wed, 22 Nov 2006) $
|
||||
| > $Revision: 739 $
|
||||
| > $Date: 2008-04-23 15:02:02 -0400 (Wed, 23 Apr 2008) $
|
||||
| > $Revision: 1254 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -32,15 +24,14 @@
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class search_lib extends Search
|
||||
{
|
||||
var $parser = "";
|
||||
var $is = "";
|
||||
var $resultlimit = "";
|
||||
|
||||
@@ -54,6 +45,12 @@ class search_lib extends Search
|
||||
$this->resultlimit = $this->is->resultlimit;
|
||||
}
|
||||
|
||||
|
||||
function do_simple_search()
|
||||
{
|
||||
return $this->do_main_search();
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Main Board Search-e-me-doo-daa
|
||||
//-----------------------------------------
|
||||
@@ -240,7 +237,7 @@ class search_lib extends Search
|
||||
|
||||
}
|
||||
|
||||
if ( strlen(trim($keywords)) > 100 )
|
||||
if ( $this->ipsclass->txt_mb_strlen(trim($keywords)) > 100 )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'search_word_long', 'EXTRA' => 100) );
|
||||
}
|
||||
@@ -302,31 +299,43 @@ class search_lib extends Search
|
||||
{
|
||||
if( $v['member_id'] == $this->ipsclass->member['id'] AND $v['post_q'] )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( $v['member_id'] == $this->ipsclass->member['id'] AND $v['topic_q'] )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( $v['is_group'] && ( $v['group_id'] == $this->ipsclass->member['mgroup']
|
||||
OR in_array( $v['group_id'], explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->member['mgroup_others'] ) ) ) ) && $v['post_q'] )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_p[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if( $v['is_group'] && ( $v['group_id'] == $this->ipsclass->member['mgroup']
|
||||
OR in_array( $v['group_id'], explode( ",", $this->ipsclass->clean_perm_string( $this->ipsclass->member['mgroup_others'] ) ) ) ) && $v['topic_q'] )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
if( in_array( $v['forum_id'], $this->is->searchable_forums ) )
|
||||
{
|
||||
$my_invisible_forums_t[] = $v['forum_id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$t_forum_query = $this->ipsclass->member['g_is_supmod'] ? "t.forum_id IN ($forums)" :
|
||||
( count($my_invisible_forums_t) ? "( (t.forum_id IN ($forums) AND t.approved=1) OR t.forum_id IN(" . implode( ",", $my_invisible_forums_t ) . ") )" :
|
||||
"t.forum_id IN ($forums)" );
|
||||
"( t.forum_id IN ($forums) AND t.approved=1)" );
|
||||
|
||||
if( $this->ipsclass->member['g_is_supmod'] )
|
||||
{
|
||||
@@ -379,6 +388,7 @@ class search_lib extends Search
|
||||
FROM ".SQL_PREFIX."topics t
|
||||
WHERE {$topic_filter}{$topics_datecut} $t_forum_query
|
||||
$topics_name AND ($title_like)
|
||||
ORDER BY t.last_post {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
|
||||
|
||||
@@ -387,6 +397,7 @@ class search_lib extends Search
|
||||
LEFT JOIN ".SQL_PREFIX."topics t on (t.tid=p.topic_id)
|
||||
WHERE {$topic_filter}{$posts_datecut} $p_forum_query
|
||||
$posts_name AND ($post_like)
|
||||
ORDER BY p.post_date {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
}
|
||||
else
|
||||
@@ -395,6 +406,7 @@ class search_lib extends Search
|
||||
FROM ".SQL_PREFIX."topics t
|
||||
WHERE $topics_datecut $t_forum_query
|
||||
$topics_name
|
||||
ORDER BY t.last_post {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
|
||||
|
||||
@@ -404,6 +416,7 @@ class search_lib extends Search
|
||||
WHERE $posts_datecut $p_forum_query
|
||||
AND p.queued=0
|
||||
$posts_name
|
||||
ORDER BY p.post_date {$this->is->sort_order}
|
||||
LIMIT {$this->resultlimit}";
|
||||
}
|
||||
|
||||
@@ -421,14 +434,14 @@ class search_lib extends Search
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->query($topics_query);
|
||||
|
||||
|
||||
$topic_max_hits = $this->ipsclass->DB->get_num_rows();
|
||||
|
||||
|
||||
if( $topic_max_hits == $this->resultlimit )
|
||||
{
|
||||
{
|
||||
$more = 1;
|
||||
}
|
||||
|
||||
|
||||
while ($row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
/*if( !$row['approved'] )
|
||||
@@ -461,7 +474,7 @@ class search_lib extends Search
|
||||
$this->ipsclass->DB->query($posts_query);
|
||||
|
||||
$post_max_hits = $this->ipsclass->DB->get_num_rows();
|
||||
|
||||
|
||||
if( $post_max_hits == $this->resultlimit )
|
||||
{
|
||||
$more = 1;
|
||||
|
||||
+129
-121
@@ -1,209 +1,217 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2003 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD НЕ ЯВЛЯЕТСЯ БЕСПЛАТНЫМ ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ!
|
||||
| Права на ПО принадлежат Invision Power Services
|
||||
| Права на перевод IBResource (http://www.ibresource.ru)
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$css_names = array(
|
||||
|
||||
'BODY' => "Содержание страницы",
|
||||
'TABLE, TR, TD' => "Таблица по умолчанию",
|
||||
'a:link, a:visited, a:active' => "Ссылка по умолчанию",
|
||||
'a:hover' => "Ссылка по умолчанию при наведении курсора",
|
||||
'.googlebottom, .googlebottom a:link, .googlebottom a:visited, .googlebottom a:active' => "Результаты простого поиска: темный",
|
||||
'.googlish, .googlish a:link, .googlish a:visited, .googlish a:active' => "Результаты простого поиска: ссылка на тему",
|
||||
'.googlesmall, .googlesmall a:link, .googlesmall a:active, .googlesmall a:visited' => "Результаты простого поиска: маленький текст",
|
||||
'option.sub' => "Форма поиска: меню выбора форумов: цвет подкатегории",
|
||||
'.caldate' => "Календарь: дата",
|
||||
'#ucpmenu' => "Личные данные пользователя: цвет меню",
|
||||
'#ucpcontent' => "Личные данные пользователя: цвет шрифта",
|
||||
'#logostrip' => "Верхняя часть форума: полоса с логотипом",
|
||||
'#submenu' => "Верхняя часть форума: полоса с иконками",
|
||||
'#submenu a:link, #submenu a:visited, #submenu a:active' => "Верхняя часть форума: полоска с иконками - цвет ссылок полосы с иконками",
|
||||
'#userlinks' => "Верхняя часть форума: меню пользователя",
|
||||
'.activeuserstrip' => 'Форумы и топики: активные пользователи',
|
||||
'.tablesubheader' => 'Глобально: подзаголовок',
|
||||
'.pformleft' => 'Глобально: левая колонка',
|
||||
'.pformleftw' => 'Глобально: ширина левой колонки',
|
||||
'.pformright' => 'Глобально: правая колонка',
|
||||
'.post1' => 'Просмотр сообщений: альтернативный цвет #1',
|
||||
'.post2' => 'Просмотр сообщений: альтернативный цвет #2',
|
||||
'.postlinksbar' => 'Просмотр сообщений: подписка на тему и другие ссылки',
|
||||
'.row1' => 'Глобально: альтернативная строка #1',
|
||||
'.row2' => 'Глобально: альтернативная строка #2',
|
||||
'.row3' => 'Глобально: альтернативная строка #3',
|
||||
'.row4' => 'Глобально: альтернативная строка #4',
|
||||
'.darkrow1' => 'Глобально: альтернативная темная строка #1',
|
||||
'.darkrow2' => 'Глобально: альтернативная темная строка #2',
|
||||
'.darkrow3' => 'Глобально: альтернативная темная строка #3',
|
||||
'.hlight' => 'Персональные сообщения: входящие — выбранная строка',
|
||||
'.dlight' => 'Персональные сообщения: входящие — невыбранная строка',
|
||||
'.tablesubheader' => 'Глобально: подзаголовок (меньший)',
|
||||
'.tablesubheader a:link, .tablesubheader a:visited, .tablesubheader a:active' =>'Глобально: ссылки подзаголовка (меньшего)',
|
||||
'.maintitle' => 'Глобально: заголовок главной таблицы',
|
||||
'.maintitle a:link, .maintitle a:visited, .maintitle a:active' => 'Глобально: ссылки заголовка главной таблицы',
|
||||
'.plainborder' => 'Глобально: альтернативная таблица #1',
|
||||
'.tableborder' => 'Глобально: цвет фона между ячейками таблицы',
|
||||
'.tablefill' => 'Глобально: альтернативная таблица #2',
|
||||
'.tablepad' => 'Глобально: альтернативная таблица #3',
|
||||
'.desc' => 'Просмотр форума: информация о последнем сообщении',
|
||||
'.signature' => 'Просмотр сообщений: подпись',
|
||||
'.normalname' => 'Просмотр сообщений: имя пользователя (зарегистрированное)',
|
||||
'.unreg' => 'Просмотр сообщений: незарегистрированное имя',
|
||||
'.searchlite' => 'Глобально: цвет подсветки ключевых слов поиска',
|
||||
'#QUOTE' => 'Блок цитаты',
|
||||
'#CODE' => 'Блок программного кода',
|
||||
'BODY' => "Web Page Body",
|
||||
'TABLE, TR, TD' => "Default table",
|
||||
'a:link, a:visited, a:active' => "Default link",
|
||||
'a:hover' => "Default link hover",
|
||||
'.googlebottom, .googlebottom a:link, .googlebottom a:visited, .googlebottom a:active' => "Simple Search Results: Dark",
|
||||
'.googlish, .googlish a:link, .googlish a:visited, .googlish a:active' => "Simple Search Results: Topic Link",
|
||||
'.googlesmall, .googlesmall a:link, .googlesmall a:active, .googlesmall a:visited' => "Simple Search Results: Small Text",
|
||||
'option.sub' => "Search Form: Select forums box: subcat colour",
|
||||
'.caldate' => "Calendar: Date",
|
||||
'#ucpmenu' => "User CP: Menu colour",
|
||||
'#ucpcontent' => "User CP: Content colour",
|
||||
'#logostrip' => "Board Header: Logo Strip",
|
||||
'#submenu' => "Board Header: Icon Strip",
|
||||
'#submenu a:link, #submenu a:visited, #submenu a:active' => "Board Header: Icon Strip link colours",
|
||||
'#userlinks' => "Board Header: Member Bar",
|
||||
'.activeuserstrip' => 'Forums & Topics: Active users bar',
|
||||
'.tablesubheader' => 'Global: Sub heading',
|
||||
'.pformleft' => 'Global: left side table cell',
|
||||
'.pformleftw' => 'Global: left side table cell wide',
|
||||
'.pformright' => 'Global: right side table cell',
|
||||
'.post1' => 'Post View: Alt colour #1',
|
||||
'.post2' => 'Post View: Alt colour #2',
|
||||
'.postlinksbar' => 'Post View: Track topic, etc links',
|
||||
'.row1' => 'Global: Alt row #1',
|
||||
'.row2' => 'Global: Alt row #2',
|
||||
'.row3' => 'Global: Alt row #3',
|
||||
'.row4' => 'Global: Alt row #4',
|
||||
'.darkrow1' => 'Global: Alt dark row #1',
|
||||
'.darkrow2' => 'Global: Alt dark row #2',
|
||||
'.darkrow3' => 'Global: Alt dark row #3',
|
||||
'.hlight' => 'Msgr: Inbox row selected',
|
||||
'.dlight' => 'Msgr: Inbox row not selected',
|
||||
'.tablesubheader' => 'Global: Sub heading (minor)',
|
||||
'.tablesubheader a:link, .tablesubheader a:visited, .tablesubheader a:active' =>'Global: Sub heading (minor) Links',
|
||||
'.maintitle' => 'Global: Main table heading',
|
||||
'.maintitle a:link, .maintitle a:visited, .maintitle a:active' => 'Global: Main table heading Links',
|
||||
'.plainborder' => 'Global: Table alt #1',
|
||||
'.tableborder' => 'Global: Table cellspacing colour',
|
||||
'.tablefill' => 'Global: Table alt #2',
|
||||
'.tablepad' => 'Global: Table alt #3',
|
||||
'.desc' => 'Forum View: Last post info',
|
||||
'.signature' => 'Post View: Signature',
|
||||
'.normalname' => 'Post View: Member name (reg)',
|
||||
'.unreg' => 'Post View: Unreg name',
|
||||
'.searchlite' => 'Global: Search highlighting',
|
||||
'#QUOTE' => 'Quote Box',
|
||||
'#CODE' => 'Code Box',
|
||||
|
||||
);
|
||||
|
||||
$skin_names = array(
|
||||
|
||||
'skin_boards' => array(
|
||||
'skin_boards (главная страница) ',
|
||||
'Элементы главной страницы форума (отображает все форумы и подфорумы), такие, как ссылки на форумы, блок активных пользователей, статистика, именинники и последние события календаря.',
|
||||
'Board Index',
|
||||
'Elements for the board index listing (shows you all the forums and is the first page you see when visiting the board) such as
|
||||
forum link HTML, active user overview HTML, board statistics overview HTML, today\'s birthdays overview HTML',
|
||||
'act=idx'
|
||||
),
|
||||
|
||||
|
||||
'skin_buddy' => array(
|
||||
'skin_buddy (помощник)',
|
||||
'Элементы окна «Помощник» включая ссылки и форму поиска.',
|
||||
'MyAssistant',
|
||||
'Elements for the myAssistant feature, including links and search boxes',
|
||||
'act=buddy',
|
||||
),
|
||||
'skin_bugtracker'=> array(
|
||||
'BugTracker',
|
||||
'Elements for the IPB BugTracker',
|
||||
''
|
||||
),
|
||||
'skin_calendar'=> array(
|
||||
'skin_calendar (календарь)',
|
||||
'Элементы календаря, включая просмотр самого календаря, дней календаря и конкретных событий.',
|
||||
'Calendar',
|
||||
'Elements for the calendar, including calendar view, view events',
|
||||
'act=calendar'
|
||||
),
|
||||
'skin_chatpara'=> array(
|
||||
'Parachat',
|
||||
'Elements for the Parachat Chat Room',
|
||||
''
|
||||
),
|
||||
'skin_chatsigma'=> array(
|
||||
'SigmaChat',
|
||||
'Elements for the SigmaChat Chat Room',
|
||||
''
|
||||
),
|
||||
'skin_editors' => array(
|
||||
'skin_editors (редактор сообщений)',
|
||||
'Элементы стандартного и rich text редакторов, используемых для создания сообщений.',
|
||||
'Post / PM Editor',
|
||||
'Elements from the standard and rich text editors used when creating a new PM or post.',
|
||||
'',
|
||||
),
|
||||
'skin_emails' => array(
|
||||
'skin_emails (контакты пользователя)',
|
||||
'Элементы различных форм контактов, такие как e-mail и жалоба пользователя на некорректное сообщение.',
|
||||
'skin_emails' => array(
|
||||
'Member Contact',
|
||||
'Elements from various contact methods, such as email form and report post to moderator form',
|
||||
'',
|
||||
),
|
||||
'skin_forum' => array(
|
||||
'skin_forum (просмотр конкретного форума)',
|
||||
'Элементы отображения конкретного форума (список тем и опросов), включая свои правила выбранного форума и т.д.',
|
||||
'Forum Index',
|
||||
'Elements for forum view (list all topics in forum). Includes forum log in window, forum rules',
|
||||
'act=SF&f=1',
|
||||
),
|
||||
'skin_global' => array(
|
||||
'skin_global (глобальные шаблоны)',
|
||||
'Различные глобальные элементы форума — верхняя (логотип с ссылками) и нижняя часть всех страниц форума, промежуточная страница переадресации, страница описания ошибки форума и т.д.',
|
||||
'All Global HTML',
|
||||
'Various HTML elements such as board header, redirect page, error page',
|
||||
),
|
||||
'skin_help' => array(
|
||||
'skin_help (помощь)',
|
||||
'Элементы раздела «Помощь».',
|
||||
'skin_help' => array(
|
||||
'Help',
|
||||
'Elements for the help screen, including search boxes and view help files',
|
||||
'act=help'
|
||||
),
|
||||
'skin_legends' => array(
|
||||
'skin_legends (вспомогательные страницы)',
|
||||
'Элементы различных вспомогательных страниц типа страницы со всеми смайликами, описанием BB кодов форума и т.д.',
|
||||
'Board Legends',
|
||||
'Elements for the "view all emoticons" windows, and the "Find User"',
|
||||
'act=legends'
|
||||
),
|
||||
'skin_login' => array(
|
||||
'skin_login (вход в форум)',
|
||||
'Элементы авторизации пользователя для входа на форум.',
|
||||
'Log In',
|
||||
'Elements for the log in form',
|
||||
'act=Login'
|
||||
),
|
||||
'skin_mlist' => array(
|
||||
'skin_mlist (список пользователей)',
|
||||
'Все элементы списка всех пользователей форума.',
|
||||
'Member List',
|
||||
'Elements for the member list views',
|
||||
'act=Members'
|
||||
),
|
||||
'skin_mod' => array(
|
||||
'skin_mod (функции модератора)',
|
||||
'Элементы для работы модераторов, такие как удаление тему, редактирование тему и т.д.',
|
||||
'Moderator Function',
|
||||
'Elements for the moderator tools such as delete topic, edit topic and the moderator CP',
|
||||
),
|
||||
'skin_msg' => array(
|
||||
'skin_msg (личные сообщения)',
|
||||
'Элементы личных сообщений, такие как входящие сообщения, написание новых личных сообщений, архивирование и т.д.',
|
||||
'Messenger',
|
||||
'Elements for the messenger, such as view inbox, view message, archive messages, etc',
|
||||
'act=Msg',
|
||||
),
|
||||
'skin_online' => array (
|
||||
'skin_online (список активных пользователей)',
|
||||
'Все элементы отображения раздела активных пользователей.',
|
||||
'Online List',
|
||||
'Elements for the "Show all online users" link',
|
||||
'act=Online',
|
||||
),
|
||||
'skin_poll' => array (
|
||||
'skin_poll (просмотр опросов)',
|
||||
'Элементы просмотра опросов, включая результаты опроса и т.д.',
|
||||
'View Poll',
|
||||
'Elements for the poll view, includes vote form and vote results',
|
||||
),
|
||||
'skin_post' => array(
|
||||
'skin_post (публикация сообщений)',
|
||||
'Элементы публикации сообщений, открытие темы и т.д.',
|
||||
'Post Screen',
|
||||
'Elements for the post screens such as new topic, reply to topic, quote post, edit post, some messenger new PM sections, some calender new event',
|
||||
),
|
||||
'skin_printpage'=> array(
|
||||
'skin_printpage (версия темы для печати)',
|
||||
'Все элементы версии темы для печати.',
|
||||
'Printable Topic',
|
||||
'Elements for displaying the "printable topic" page',
|
||||
),
|
||||
'skin_profile' => array(
|
||||
'skin_profile (просмотр профиля)',
|
||||
'Элементы просмотра профиля пользователей, данные, фотография и т.д.',
|
||||
'Profile View',
|
||||
'Elements for viewing a members profile',
|
||||
'showuser=1',
|
||||
),
|
||||
'skin_register' => array(
|
||||
'skin_register (регистрация)',
|
||||
'Элементы страниц регистрации, активации учетной записи и т.д.',
|
||||
'Register',
|
||||
'Elements for the register form, validate account form and COPPA forms',
|
||||
'act=Reg',
|
||||
),
|
||||
'skin_search' => array(
|
||||
'skin_search (поиск)',
|
||||
'Элементы формы поиска и результатыпоиска...',
|
||||
'Search',
|
||||
'Elements for the search forum and the results view',
|
||||
'act=Search',
|
||||
),
|
||||
'skin_stats' => array(
|
||||
'skin_stats (статистика)',
|
||||
'Элементы различных функций, таких как вывод администраторов и модераторов форума, активных тем и т.д.',
|
||||
'Statistics',
|
||||
'Elements for various functions such as "View Moderating Team", "View todays top 10 posts", "View Active Topics"',
|
||||
'act=Stats',
|
||||
),
|
||||
'skin_topic' => array(
|
||||
'skin_topic (просмотр темы)',
|
||||
'Элементы просмотра темы, такие как просмотр сообщений, прикрепленные файлы, форма быстрого ответа и т.д.',
|
||||
'Topic View',
|
||||
'Elements for the topic view screen, such as post view, inline attachment view, etc.',
|
||||
'showtopic=1'
|
||||
),
|
||||
|
||||
|
||||
'skin_modcp' => array(
|
||||
'skin_modcp (панель управления модератора)',
|
||||
'Элементы секций панели управления для модератора.',
|
||||
'Mod CP',
|
||||
'Elements for the moderators control panel sections.',
|
||||
'act=ModCP',
|
||||
),
|
||||
|
||||
|
||||
'skin_portal' => array(
|
||||
'skin_portal (портал)',
|
||||
'Все элементы портала для IPB.',
|
||||
'IPB Portal',
|
||||
'Elements for IPB Portal.',
|
||||
),
|
||||
|
||||
|
||||
|
||||
|
||||
'skin_ucp' => array(
|
||||
'skin_ucp (личные данные пользователя)',
|
||||
'Элементы личных данных пользователя, такие как редактирование профиля, настроек форума, подпись, аватар и т.д.',
|
||||
'User Control Panel',
|
||||
'Elements for the user control panel, such as the menu (also used in Messenger Views), edit profile, edit signature, edit avatar, etc.',
|
||||
'act=UserCP',
|
||||
),
|
||||
|
||||
|
||||
|
||||
|
||||
'skin_subscriptions' => array(
|
||||
'skin_subscriptions (менеджер подписок)',
|
||||
'Элементы менеджера подписок.',
|
||||
'Subscriptions Manager',
|
||||
'Elements for the subscription manager.',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -2,26 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-03 06:14:55 -0500 (Tue, 03 Oct 2006) $
|
||||
| > $Revision: 596 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-09-17 18:06:06 -0400 (Mon, 17 Sep 2007) $
|
||||
| > $Revision: 1106 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Tar creation and extraction module
|
||||
@@ -66,14 +58,14 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class tar {
|
||||
|
||||
var $tar_header_length = '512';
|
||||
var $tar_unpack_header = 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8chksum/a1typeflag/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155/prefix';
|
||||
var $tar_unpack_header = 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8chksum/a1typeflag/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155prefix';
|
||||
var $tar_pack_header = 'A100 A8 A8 A8 A12 A12 A8 A1 A100 A6 A2 A32 A32 A8 A8 A155';
|
||||
var $current_dir = "";
|
||||
var $unpack_dir = "";
|
||||
|
||||
Reference in new issue
Block a user