Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -1,34 +1,8 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for Adresses page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for Adresses page
|
||||
*/
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for Adresses page
|
||||
*/
|
||||
|
||||
class action_address
|
||||
{
|
||||
@@ -47,13 +21,13 @@ class action_address
|
||||
/* Check Directory */
|
||||
if( ! $this->install->ipsclass->input['install_dir'] OR ! ( is_dir( $this->install->ipsclass->input['install_dir'] ) ) )
|
||||
{
|
||||
$errors[] = 'Óêàçàííûé ïóòü íå ñóùåñòâóåò â ñèñòåìå';
|
||||
$errors[] = 'The specified directory does not exist';
|
||||
}
|
||||
|
||||
/* Check URL */
|
||||
if( ! $this->install->ipsclass->input['install_url'] )
|
||||
{
|
||||
$errors[] = 'Àäðåñ óñòàíîâêè íå óêàçàí';
|
||||
$errors[] = 'You did not specify a URL';
|
||||
}
|
||||
|
||||
if( is_array( $errors ) )
|
||||
|
||||
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for admin page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for admin page
|
||||
@@ -46,24 +20,24 @@ class action_admin
|
||||
{
|
||||
if( ! $this->install->ipsclass->input['username'] )
|
||||
{
|
||||
$errors[] = 'Íåîáõîäèìî óêàçàòü èìÿ ïîëüçîâàòåëÿ ';
|
||||
$errors[] = 'You must specify a username for the admin account';
|
||||
}
|
||||
|
||||
if( ! $this->install->ipsclass->input['password'] )
|
||||
{
|
||||
$errors[] = 'Íåîáõîäèìî óêàçàòü ïàðîëü';
|
||||
$errors[] = 'You must specify a password for the admin account';
|
||||
}
|
||||
else
|
||||
{
|
||||
if( $this->install->ipsclass->input['password'] != $this->install->ipsclass->input['confirm_password'] )
|
||||
{
|
||||
$errors[] = 'Ââåäåííûå ïàðîëè íå ñîâïàäàþò';
|
||||
$errors[] = 'The admin passwords did not match';
|
||||
}
|
||||
}
|
||||
|
||||
if( ! $this->install->ipsclass->input['email'] )
|
||||
{
|
||||
$errors[] = 'Íåîáõîäèìî óêàçàòü e-mail àäðåñ';
|
||||
$errors[] = 'You must sepcify an email account for the admin account';
|
||||
}
|
||||
|
||||
if( is_array( $errors ) )
|
||||
|
||||
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for DB page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for DB page
|
||||
@@ -41,13 +15,18 @@ class action_db
|
||||
|
||||
function run()
|
||||
{
|
||||
if( isset($this->install->ipsclass->input['db_pre']) )
|
||||
{
|
||||
$this->install->ipsclass->input['db_pre'] = strtolower($this->install->ipsclass->input['db_pre']);
|
||||
}
|
||||
|
||||
/* Check input? */
|
||||
if ( $this->install->ipsclass->input['sub'] == 'check' )
|
||||
{
|
||||
/* Make sure the fields were filled out */
|
||||
if ( ! $this->install->ipsclass->input['db_host'] || ! $this->install->ipsclass->input['db_name'] || ! $this->install->ipsclass->input['db_user'] )
|
||||
{
|
||||
$errors[] = 'Ôîðìà äîëæíà áûòü ïîëíîñòüþ çàïîëíåíà';
|
||||
$errors[] = 'You must fill out the form completely';
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -110,7 +89,7 @@ class action_db
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Error check
|
||||
//-----------------------------------------
|
||||
@@ -140,7 +119,7 @@ class action_db
|
||||
|
||||
if( !count($errors) )
|
||||
{
|
||||
$errors[] = "Íå ïîëó÷èëîñü ñîåäèíèòüñÿ ñ ñåðâåðîì Áàçû Äàííûõ. Ïîæàëóéñòà ïåðåïðîâåðüòå âñþ èíôîðìàöèþ è ïîïðîáóéòå ñíîâà.";
|
||||
$errors[] = "There was a problem connecting to your SQL server. Please doublecheck your login information and try again.";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,14 +157,14 @@ class action_db
|
||||
//-----------------------------------------
|
||||
|
||||
$html = "<tr>
|
||||
<td colspan='2'>
|
||||
<div class='warning'>
|
||||
<p><strong style='color:red'>Âû ïûòàåòåñü óñòàíîâèòü ïðèëîæåíèå â áàçó ãäå óæå åñòü òàáëèöû îò ïðåäûäóùåé óñòàíîâêè.</strong>
|
||||
<br />Åñëè âû õîòèòå ïðîäîëæèòü óñòàíîâêó, òî ïîìíèòå ÷òî âñå ñóùåñòâóþùèå òàáëèöû ñ äàííûìè áóäóò óäàëåíû.
|
||||
Åñëè âû õîòèòå óñòàíîâèòü ïðèëîæåíèå ñ èñïîëüçîâàíèåì ýòîé áàçû è íå ïîòåðÿòü ñóùåñòâóþùèå òàáëèöû, èñïîëüçóéòå äðóãîé ïåðôèêñ òàáëèö.</p>
|
||||
<input type='checkbox' value='1' name='_drop_tables' /><strong>ÓÄÀËÈÒÜ ÑÓÙÅÑÒÂÓÞÙÈÅ ÒÀÁËÈÖÛ ÏÐÈ ÓÑÒÀÍÎÂÊÅ</strong>
|
||||
</div>
|
||||
</td>
|
||||
<td colspan='2'>
|
||||
<div class='warning'>
|
||||
<p><strong style='color:red'>You are attempting to install in a database that already has tables from another installation</strong>
|
||||
<br />If you wish to install in this database, all current tables will be dropped which means any existing data will be deleted.
|
||||
You can either continue, choosing to delete all current data or you can choose another SQL table prefix.</p>
|
||||
<input type='checkbox' value='1' name='_drop_tables' /><strong>DELETE ANY CURRENT TABLES BEFORE INSTALLING</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
$this->install->template->page_content = str_replace( '<!--{TOP.SQL}-->', $html, $this->install->template->page_content );
|
||||
|
||||
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for done page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for done page
|
||||
|
||||
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for EULA page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for EULA page
|
||||
|
||||
@@ -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>
|
||||
+1040
-974
File diff suppressed because it is too large.
Load diff
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for requirements page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for requirements page
|
||||
|
||||
@@ -1,355 +1,329 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Invision Installer Framework
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Invision Installer Framework
|
||||
*/
|
||||
|
||||
class class_installer
|
||||
{
|
||||
var $product_name = '';
|
||||
var $product_license = '';
|
||||
var $product_version = '';
|
||||
var $product_key = '';
|
||||
|
||||
var $build_id = '';
|
||||
|
||||
var $version_php_min = '';
|
||||
var $version_mysql_min = '';
|
||||
|
||||
var $required_dirs = array();
|
||||
var $required_files = array();
|
||||
|
||||
var $writeable_dirs = array();
|
||||
var $writeable_files = array();
|
||||
|
||||
/**
|
||||
* class_installer::set_product_info
|
||||
*
|
||||
* Set basic information about the product being installed
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $license
|
||||
* @param array $versions
|
||||
* @param string $key
|
||||
* @return void
|
||||
*/
|
||||
function set_product_info( $name, $license, $versions, $key )
|
||||
{
|
||||
$this->product_name = $name;
|
||||
$this->product_license = $license;
|
||||
$this->product_versions = $versions;
|
||||
$this->product_key = $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer:set_software_versions
|
||||
*
|
||||
* Set required software versions of php and mysql
|
||||
*
|
||||
* @param string $php_min Example: 3.0.0
|
||||
* @param string $mysql_min Example: 4.4.0
|
||||
*/
|
||||
function set_software_versions( $php_min, $mysql_min )
|
||||
{
|
||||
$this->version_php_min = explode( '.', $php_min );
|
||||
$this->version_mysql_min = $mysql_min;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::set_required
|
||||
*
|
||||
* Set what files and directories must be present for an installation
|
||||
*
|
||||
* @param array $dirs
|
||||
* @param array $files
|
||||
*/
|
||||
function set_required( $dirs, $files )
|
||||
{
|
||||
$this->required_dirs = $dirs;
|
||||
$this->required_files = $files;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::set_writeable
|
||||
*
|
||||
* Set what files and directories must be writeable
|
||||
*
|
||||
* @param array $dirs
|
||||
* @param array $files
|
||||
*/
|
||||
function set_writeable( $dirs=array(), $files=array() )
|
||||
{
|
||||
$this->writeable_dirs = $dirs;
|
||||
$this->writeable_files = $files;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::check_requirements
|
||||
*
|
||||
* Checks to make sure that all requirements are met, including software versions,
|
||||
* directories, and files.
|
||||
*
|
||||
* @return array $errors
|
||||
*/
|
||||
function check_requirements()
|
||||
{
|
||||
/* Errors Array */
|
||||
$errors = array();
|
||||
|
||||
/**
|
||||
* PHP Version Checking
|
||||
*/
|
||||
|
||||
/* Check Min PHP Version */
|
||||
$check_php = explode( '.', $this->version_php_min );
|
||||
|
||||
if ( PHP_VERSION < $this->version_php_min )
|
||||
{
|
||||
$errors[] = 'Âåðñèÿ PHP, óñòàíîâëåííàÿ íà âàøåì ñåðâåðå, íå óäîâëåòâîðÿåò ñèñòåìíûì òðåáîâàíèÿì ïðîäóêòà. Äëÿ ïðîäîëæåíèÿ óñòàíîâêè íåîáõîäèìî îáíîâèòü PHP.';
|
||||
}
|
||||
|
||||
/**
|
||||
* SQL Version Checking
|
||||
*/
|
||||
|
||||
/**
|
||||
* Required Directories/Files Checking
|
||||
*/
|
||||
if( count( $this->required_dirs ) )
|
||||
{
|
||||
foreach( $this->required_dirs as $_d )
|
||||
{
|
||||
if( ! ( is_dir( $_d) && is_readable( $_d ) ) )
|
||||
{
|
||||
$errors[] = 'Íå âîçìîæíî íàéòè òðåáóåìóþ äèðåêòîðèþ: "' . $_d . '"';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( count( $this->required_files ) )
|
||||
{
|
||||
foreach( $this->required_files as $_f )
|
||||
{
|
||||
if( ! ( file_exists( $_f) && is_readable( $_f ) ) )
|
||||
{
|
||||
$errors[] = 'Íå âîçìîæíî íàéòè òðåáóåìûé ôàéë: "' . $_f . '"';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Writeable Directories/File Checking
|
||||
*/
|
||||
if( count( $this->writeable_dirs ) )
|
||||
{
|
||||
foreach( $this->writeable_dirs as $_d )
|
||||
{
|
||||
if( ! is_writeable( $_d ) )
|
||||
{
|
||||
$errors[] = 'Äèðåêòîðèÿ «' . str_replace( INS_DOC_ROOT_PATH, '', $_d ) . '» íå äîñòóïíà äëÿ çàïèñè.<br />Ïîæàëóéñòà èçìåíèòå ïðàâà äîñòóïà (CHMOD) íà 777.';
|
||||
}
|
||||
}
|
||||
|
||||
foreach( $this->writeable_files as $_f )
|
||||
{
|
||||
if( ! is_writeable( $_f ) )
|
||||
{
|
||||
$errors[] = 'Ôàéë «' . str_replace( INS_DOC_ROOT_PATH, '', $_f ) . '» íå äîñòóïåí äëÿ çàïèñè.<br />Ïîæàëóéñòà èçìåíèòå ïðàâà äîñòóïà (CHMOD) íà 777.';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::unpack_config
|
||||
*
|
||||
* Reads and stores the information from the config.xml file
|
||||
*
|
||||
*/
|
||||
function read_config()
|
||||
{
|
||||
// Get Configuration File
|
||||
$config = implode( '', file( INS_ROOT_PATH . 'installfiles/config.xml' ) );
|
||||
$xml = new class_xml();
|
||||
|
||||
$config = $xml->xml_parse_document( $config );
|
||||
|
||||
// Set Info
|
||||
$this->product_name = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['name']['VALUE'], 'UTF-8');
|
||||
$this->product_license = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['license']['VALUE'], 'UTF-8');
|
||||
$this->product_version = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['version']['VALUE'], 'UTF-8');
|
||||
$this->product_long_version = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['versionlong']['VALUE'], 'UTF-8');
|
||||
$this->build_id = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['build']['VALUE'], 'UTF-8');
|
||||
|
||||
// Override.
|
||||
$this->product_version = IPBVERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::write_file
|
||||
*
|
||||
* Simple method for writing a file
|
||||
*
|
||||
* @param string $name Full name, including path, of file to write
|
||||
* @param string $data Contents of file
|
||||
*/
|
||||
function write_file( $name, $data )
|
||||
{
|
||||
$fh = @fopen( $name, "w" );
|
||||
@fwrite( $fh, $data, strlen( $data ) );
|
||||
@fclose( $fh );
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::create_admin_converge
|
||||
*
|
||||
* Builds converge entry for admin
|
||||
*
|
||||
* @return integer $id Converge ID
|
||||
*/
|
||||
function create_admin_converge()
|
||||
{
|
||||
/* Build Entry */
|
||||
$salt = $this->ipsclass->converge->generate_password_salt( 5 );
|
||||
$passhash = $this->ipsclass->converge->generate_compiled_passhash( $salt, md5( $this->saved_data['admin_pass'] ) );
|
||||
|
||||
$converge = array( 'converge_email' => $this->saved_data['admin_email'],
|
||||
'converge_joined' => time(),
|
||||
'converge_pass_hash' => $passhash,
|
||||
'converge_pass_salt' => str_replace( '\\', "\\\\", $salt ),
|
||||
);
|
||||
|
||||
/* Insert */
|
||||
$this->ipsclass->DB->do_insert( 'members_converge', $converge );
|
||||
|
||||
/* Return ID */
|
||||
return $this->ipsclass->DB->get_insert_id();
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::chmod_dir
|
||||
*
|
||||
* chmods all files and directories in the given path
|
||||
*
|
||||
* @param string $path
|
||||
* @param integer $mode
|
||||
*/
|
||||
function chmod_dir( $path, $mode )
|
||||
{
|
||||
/* Open directory */
|
||||
$dh = @opendir( $path );
|
||||
|
||||
while( false !== ( $f = @readdir( $dh ) ) )
|
||||
{
|
||||
if( $f != '.' && $f != '..' )
|
||||
{
|
||||
/* Full file path */
|
||||
$_path = $path . '/'. $f;
|
||||
|
||||
/* CHMOD directory and contents */
|
||||
if( @is_dir( $_path ) )
|
||||
{
|
||||
@chmod( $_path, $mode );
|
||||
$this->chmod_dir( $_path, $mode );
|
||||
}
|
||||
/* CHMOD file */
|
||||
else
|
||||
{
|
||||
@chmod( $_path, $mode );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Close directory */
|
||||
@closedir( $dh );
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::process
|
||||
*
|
||||
* Figures out what action to run
|
||||
*
|
||||
*/
|
||||
function process()
|
||||
{
|
||||
/* Require Action */
|
||||
require_once( INS_ROOT_PATH . 'core/actions/' . $this->template->page_current . '.php' );
|
||||
|
||||
/* Initialize */
|
||||
$class = 'action_' . $this->template->page_current;
|
||||
$this->action = new $class( $this );
|
||||
$this->action->run();
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Lock installer
|
||||
/*-------------------------------------------------------------------------*/
|
||||
/**
|
||||
* Lock Installer
|
||||
* Writes a lock file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function lock_installer()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Write!
|
||||
//-----------------------------------------
|
||||
|
||||
$this->write_file( INS_ROOT_PATH . 'installfiles/lock.php', 'LOCKED' );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Check lock
|
||||
/*-------------------------------------------------------------------------*/
|
||||
/**
|
||||
* Lock Installer
|
||||
* Writes a lock file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function check_lock()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Write!
|
||||
//-----------------------------------------
|
||||
|
||||
return file_exists( INS_ROOT_PATH . 'installfiles/lock.php' ) ? 1 : 0;
|
||||
}
|
||||
|
||||
/* Overridden by application specific class */
|
||||
function pre_process() {}
|
||||
function post_process() {}
|
||||
function set_requirements() {}
|
||||
|
||||
}
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Invision Installer Framework
|
||||
*/
|
||||
|
||||
class class_installer
|
||||
{
|
||||
var $product_name = '';
|
||||
var $product_license = '';
|
||||
var $product_version = '';
|
||||
var $product_key = '';
|
||||
|
||||
var $build_id = '';
|
||||
|
||||
var $version_php_min = '';
|
||||
var $version_mysql_min = '';
|
||||
|
||||
var $required_dirs = array();
|
||||
var $required_files = array();
|
||||
|
||||
var $writeable_dirs = array();
|
||||
var $writeable_files = array();
|
||||
|
||||
/**
|
||||
* class_installer::set_product_info
|
||||
*
|
||||
* Set basic information about the product being installed
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $license
|
||||
* @param array $versions
|
||||
* @param string $key
|
||||
* @return void
|
||||
*/
|
||||
function set_product_info( $name, $license, $versions, $key )
|
||||
{
|
||||
$this->product_name = $name;
|
||||
$this->product_license = $license;
|
||||
$this->product_versions = $versions;
|
||||
$this->product_key = $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer:set_software_versions
|
||||
*
|
||||
* Set required software versions of php and mysql
|
||||
*
|
||||
* @param string $php_min Example: 3.0.0
|
||||
* @param string $mysql_min Example: 4.4.0
|
||||
*/
|
||||
function set_software_versions( $php_min, $mysql_min )
|
||||
{
|
||||
$this->version_php_min = explode( '.', $php_min );
|
||||
$this->version_mysql_min = $mysql_min;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::set_required
|
||||
*
|
||||
* Set what files and directories must be present for an installation
|
||||
*
|
||||
* @param array $dirs
|
||||
* @param array $files
|
||||
*/
|
||||
function set_required( $dirs, $files )
|
||||
{
|
||||
$this->required_dirs = $dirs;
|
||||
$this->required_files = $files;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::set_writeable
|
||||
*
|
||||
* Set what files and directories must be writeable
|
||||
*
|
||||
* @param array $dirs
|
||||
* @param array $files
|
||||
*/
|
||||
function set_writeable( $dirs=array(), $files=array() )
|
||||
{
|
||||
$this->writeable_dirs = $dirs;
|
||||
$this->writeable_files = $files;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::check_requirements
|
||||
*
|
||||
* Checks to make sure that all requirements are met, including software versions,
|
||||
* directories, and files.
|
||||
*
|
||||
* @return array $errors
|
||||
*/
|
||||
function check_requirements()
|
||||
{
|
||||
/* Errors Array */
|
||||
$errors = array();
|
||||
|
||||
/**
|
||||
* PHP Version Checking
|
||||
*/
|
||||
|
||||
/* Check Min PHP Version */
|
||||
$check_php = explode( '.', $this->version_php_min );
|
||||
|
||||
if ( PHP_VERSION < $this->version_php_min )
|
||||
{
|
||||
$errors[] = 'Your PHP installation is too old to run this product, please upgrade before continuing.';
|
||||
}
|
||||
|
||||
/**
|
||||
* SQL Version Checking
|
||||
*/
|
||||
|
||||
/**
|
||||
* Required Directories/Files Checking
|
||||
*/
|
||||
if( count( $this->required_dirs ) )
|
||||
{
|
||||
foreach( $this->required_dirs as $_d )
|
||||
{
|
||||
if( ! ( is_dir( $_d) && is_readable( $_d ) ) )
|
||||
{
|
||||
$errors[] = 'A required directory could not be located: "' . $_d . '"';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( count( $this->required_files ) )
|
||||
{
|
||||
foreach( $this->required_files as $_f )
|
||||
{
|
||||
if( ! ( file_exists( $_f) && is_readable( $_f ) ) )
|
||||
{
|
||||
$errors[] = 'A required file could not be located: "' . $_f . '"';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Writeable Directories/File Checking
|
||||
*/
|
||||
if( count( $this->writeable_dirs ) )
|
||||
{
|
||||
foreach( $this->writeable_dirs as $_d )
|
||||
{
|
||||
if( ! is_writeable( $_d ) )
|
||||
{
|
||||
$errors[] = 'Can not write to directory: "' . str_replace( INS_DOC_ROOT_PATH, '', $_d ) . '", please CHMOD to 777';
|
||||
}
|
||||
}
|
||||
|
||||
foreach( $this->writeable_files as $_f )
|
||||
{
|
||||
if( ! is_writeable( $_f ) )
|
||||
{
|
||||
$errors[] = 'Can not write to file: "' . str_replace( INS_DOC_ROOT_PATH, '', $_f ) . '", please CHMOD to 777';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::unpack_config
|
||||
*
|
||||
* Reads and stores the information from the config.xml file
|
||||
*
|
||||
*/
|
||||
function read_config()
|
||||
{
|
||||
// Get Configuration File
|
||||
$config = implode( '', file( INS_ROOT_PATH . 'installfiles/config.xml' ) );
|
||||
$xml = new class_xml();
|
||||
|
||||
$config = $xml->xml_parse_document( $config );
|
||||
|
||||
// Set Info
|
||||
$this->product_name = $xml->xml_array['installdata']['package']['name']['VALUE'];
|
||||
$this->product_license = $xml->xml_array['installdata']['package']['license']['VALUE'];
|
||||
$this->product_version = $xml->xml_array['installdata']['package']['version']['VALUE'];
|
||||
$this->product_long_version = $xml->xml_array['installdata']['package']['versionlong']['VALUE'];
|
||||
$this->build_id = $xml->xml_array['installdata']['package']['build']['VALUE'];
|
||||
|
||||
// Override.
|
||||
$this->product_version = IPBVERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::write_file
|
||||
*
|
||||
* Simple method for writing a file
|
||||
*
|
||||
* @param string $name Full name, including path, of file to write
|
||||
* @param string $data Contents of file
|
||||
*/
|
||||
function write_file( $name, $data )
|
||||
{
|
||||
$fh = @fopen( $name, "w" );
|
||||
@fwrite( $fh, $data, strlen( $data ) );
|
||||
@fclose( $fh );
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::create_admin_converge
|
||||
*
|
||||
* Builds converge entry for admin
|
||||
*
|
||||
* @return integer $id Converge ID
|
||||
*/
|
||||
function create_admin_converge()
|
||||
{
|
||||
/* Build Entry */
|
||||
$salt = $this->ipsclass->converge->generate_password_salt( 5 );
|
||||
$passhash = $this->ipsclass->converge->generate_compiled_passhash( $salt, md5( $this->saved_data['admin_pass'] ) );
|
||||
|
||||
$converge = array( 'converge_email' => $this->saved_data['admin_email'],
|
||||
'converge_joined' => time(),
|
||||
'converge_pass_hash' => $passhash,
|
||||
'converge_pass_salt' => str_replace( '\\', "\\\\", $salt ),
|
||||
);
|
||||
|
||||
/* Insert */
|
||||
$this->ipsclass->DB->do_insert( 'members_converge', $converge );
|
||||
|
||||
/* Return ID */
|
||||
return $this->ipsclass->DB->get_insert_id();
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::chmod_dir
|
||||
*
|
||||
* chmods all files and directories in the given path
|
||||
*
|
||||
* @param string $path
|
||||
* @param integer $mode
|
||||
*/
|
||||
function chmod_dir( $path, $mode )
|
||||
{
|
||||
/* Open directory */
|
||||
$dh = @opendir( $path );
|
||||
|
||||
while( false !== ( $f = @readdir( $dh ) ) )
|
||||
{
|
||||
if( $f != '.' && $f != '..' )
|
||||
{
|
||||
/* Full file path */
|
||||
$_path = $path . '/'. $f;
|
||||
|
||||
/* CHMOD directory and contents */
|
||||
if( @is_dir( $_path ) )
|
||||
{
|
||||
@chmod( $_path, $mode );
|
||||
$this->chmod_dir( $_path, $mode );
|
||||
}
|
||||
/* CHMOD file */
|
||||
else
|
||||
{
|
||||
@chmod( $_path, $mode );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Close directory */
|
||||
@closedir( $dh );
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::process
|
||||
*
|
||||
* Figures out what action to run
|
||||
*
|
||||
*/
|
||||
function process()
|
||||
{
|
||||
/* Require Action */
|
||||
require_once( INS_ROOT_PATH . 'core/actions/' . $this->template->page_current . '.php' );
|
||||
|
||||
/* Initialize */
|
||||
$class = 'action_' . $this->template->page_current;
|
||||
$this->action = new $class( $this );
|
||||
$this->action->run();
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Lock installer
|
||||
/*-------------------------------------------------------------------------*/
|
||||
/**
|
||||
* Lock Installer
|
||||
* Writes a lock file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function lock_installer()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Write!
|
||||
//-----------------------------------------
|
||||
|
||||
$this->write_file( INS_ROOT_PATH . 'installfiles/lock.php', 'LOCKED' );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Check lock
|
||||
/*-------------------------------------------------------------------------*/
|
||||
/**
|
||||
* Lock Installer
|
||||
* Writes a lock file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function check_lock()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Write!
|
||||
//-----------------------------------------
|
||||
|
||||
return file_exists( INS_ROOT_PATH . 'installfiles/lock.php' ) ? 1 : 0;
|
||||
}
|
||||
|
||||
/* Overridden by application specific class */
|
||||
function pre_process() {}
|
||||
function post_process() {}
|
||||
function set_requirements() {}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
+868
-879
File diff suppressed because it is too large.
Load diff
@@ -18,8 +18,8 @@ define( 'INS_ROOT_PATH', str_replace( "//", "/", preg_replace( "#/core$#is", "",
|
||||
*
|
||||
* @since 2.0.0.2005-01-01
|
||||
*/
|
||||
define ( 'IPBVERSION', '2.2.2' );
|
||||
define ( 'IPB_LONG_VERSION', '22011' );
|
||||
define ( 'IPBVERSION', '2.3.6' );
|
||||
define ( 'IPB_LONG_VERSION', '23010' );
|
||||
|
||||
/**
|
||||
* DOC ROOT PATH
|
||||
|
||||
@@ -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>
|
||||
@@ -1,25 +1,16 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 01 Nov 2005 14:38:09 GMT
|
||||
| Release: 68ff9281c6fdcce88910e08cec1045a3
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2005-10-10 16:01:09 +0100 (Mon, 10 Oct 2005) $
|
||||
| > $Revision: 5 $
|
||||
@@ -341,7 +332,7 @@ class ipsclass {
|
||||
// Char set
|
||||
//-----------------------------------------
|
||||
|
||||
$this->vars['gb_char_set'] = $this->vars['gb_char_set'] ? $this->vars['gb_char_set'] : 'windows-1251';
|
||||
$this->vars['gb_char_set'] = $this->vars['gb_char_set'] ? $this->vars['gb_char_set'] : 'iso-8859-1';
|
||||
|
||||
//-----------------------------------------
|
||||
// PHP API
|
||||
@@ -496,7 +487,7 @@ class ipsclass {
|
||||
* @return void
|
||||
*/
|
||||
|
||||
function init_db_connection( $db, $user, $pass, $host, $pre, $cp, $driver='mysql' )
|
||||
function init_db_connection( $db, $user, $pass, $host, $pre, $driver='mysql' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
@@ -512,8 +503,8 @@ class ipsclass {
|
||||
{
|
||||
$file = str_replace( '<%driver%>', $driver, INS_SQL_FILE );
|
||||
}
|
||||
|
||||
$classname = "db_driver_".$driver;
|
||||
|
||||
$classname = "db_driver_".$driver;
|
||||
|
||||
$this->DB = new $classname;
|
||||
|
||||
@@ -521,8 +512,7 @@ class ipsclass {
|
||||
$this->DB->obj['sql_user'] = $user;
|
||||
$this->DB->obj['sql_pass'] = $pass;
|
||||
$this->DB->obj['sql_host'] = $host;
|
||||
$this->DB->obj['sql_tbl_prefix'] = $pre;
|
||||
$this->DB->obj['mysql_codepage'] = $cp;
|
||||
$this->DB->obj['sql_tbl_prefix'] = $pre;
|
||||
$this->DB->obj['use_shutdown'] = 0;
|
||||
|
||||
if ( $file )
|
||||
@@ -918,31 +908,11 @@ class ipsclass {
|
||||
{
|
||||
if ( $v['donow'] )
|
||||
{
|
||||
if ( $this->vars['sql_driver'] == 'mysql' )
|
||||
{
|
||||
$this->DB->query( "REPLACE INTO ".SQL_PREFIX."cache_store SET cs_key='{$v['name']}', cs_value='$value', cs_array=".intval($v['array']) );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->DB->simple_construct( array( 'delete' => 'cache_store', 'where' => "cs_key='{$v['name']}'" ) );
|
||||
$this->DB->simple_exec();
|
||||
|
||||
$this->DB->do_insert( 'cache_store', array( 'cs_array' => intval($v['array']), 'cs_key' => $v['name'], 'cs_value' => $value ) );
|
||||
}
|
||||
$this->DB->do_replace_into( 'cache_store', array( 'cs_array' => intval($v['array']), 'cs_key' => $v['name'], 'cs_value' => $value ), array( 'cs_key' ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $this->vars['sql_driver'] == 'mysql' )
|
||||
{
|
||||
$this->DB->query( "REPLACE INTO ".SQL_PREFIX."cache_store SET cs_key='{$v['name']}', cs_value='$value', cs_array=".intval($v['array']) );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->DB->simple_construct( array( 'delete' => 'cache_store', 'where' => "cs_key='{$v['name']}'" ) );
|
||||
$this->DB->simple_shutdown_exec();
|
||||
|
||||
$this->DB->do_shutdown_insert( 'cache_store', array( 'cs_array' => intval($v['array']), 'cs_key' => $v['name'], 'cs_value' => $value ) );
|
||||
}
|
||||
$this->DB->do_shutdown_replace_into( 'cache_store', array( 'cs_array' => intval($v['array']), 'cs_key' => $v['name'], 'cs_value' => $value ), array( 'cs_key' ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1003,54 +973,7 @@ class ipsclass {
|
||||
|
||||
$this->DB->close_db();
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Convert string between char-sets
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Convert a string between charsets
|
||||
*
|
||||
* @param string Input String
|
||||
* @param string Current char set
|
||||
* @param string Destination char set
|
||||
* @return string Parsed string
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function txt_convert_charsets($t, $original_cset, $destination_cset="")
|
||||
{
|
||||
$original_cset = strtolower($original_cset);
|
||||
$text = $t;
|
||||
|
||||
//-----------------------------------------
|
||||
// Did we pass a destination?
|
||||
//-----------------------------------------
|
||||
|
||||
$destination_cset = strtolower($destination_cset) ? strtolower($destination_cset) : strtolower($this->vars['gb_char_set']);
|
||||
// echo $destination_cset; exit;
|
||||
//-----------------------------------------
|
||||
// Not the same?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $destination_cset == $original_cset )
|
||||
{
|
||||
return $t;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Do the convert
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! is_object( $this->class_convert_charset ) )
|
||||
{
|
||||
require_once( INS_KERNEL_PATH.'/class_convert_charset.php' );
|
||||
$this->class_convert_charset = new class_convert_charset();
|
||||
}
|
||||
|
||||
$text = $this->class_convert_charset->convert_charset( $text, $original_cset, $destination_cset );
|
||||
|
||||
return $text ? $text : $t;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// txt_alphanumerical_clean
|
||||
// ------------------
|
||||
|
||||
@@ -35,11 +35,11 @@ class install_template
|
||||
|
||||
if ( file_exists( INS_ROOT_PATH . 'installfiles/sequence.xml' ) )
|
||||
{
|
||||
$config = implode( '', file( INS_ROOT_PATH . 'installfiles/sequence.xml' ) );
|
||||
$xml = new class_xml();
|
||||
|
||||
$config = $xml->xml_parse_document( $config );
|
||||
|
||||
$config = implode( '', file( INS_ROOT_PATH . 'installfiles/sequence.xml' ) );
|
||||
$xml = new class_xml();
|
||||
|
||||
$config = $xml->xml_parse_document( $config );
|
||||
|
||||
//-----------------------------------------
|
||||
// Loop through and sort out settings...
|
||||
//-----------------------------------------
|
||||
@@ -54,11 +54,11 @@ class install_template
|
||||
|
||||
foreach( $_pages as $position => $data )
|
||||
{
|
||||
$this->install_pages[ $data['file'] ] = $this->ipsclass->txt_convert_charsets( $data['menu'], 'UTF-8' );
|
||||
$this->install_pages[ $data['file'] ] = $data['menu'];
|
||||
}
|
||||
}
|
||||
|
||||
$this->install_pages['done'] = 'Çàâåðøåíèå';
|
||||
$this->install_pages['done'] = 'Finish';
|
||||
|
||||
/* Set Current Page */
|
||||
$this->page_current = ( $this->ipsclass->input['p'] ) ? $this->ipsclass->input['p'] : 'requirements';
|
||||
@@ -145,8 +145,7 @@ echo <<<EOF
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=windows-1251">
|
||||
<title>Ìàñòåð óñòàíîâêè ïðîäóêòîâ Invision Power Services</title>
|
||||
<title>IPS Installer</title>
|
||||
<style type='text/css' media='all'>
|
||||
@import url('install.css');
|
||||
</style>
|
||||
@@ -168,7 +167,7 @@ echo <<<EOF
|
||||
<div id='ipswrapper'>
|
||||
<div class='main_shell'>
|
||||
|
||||
<h1><img src='images/package_icon.gif' align='absmiddle' /> Óñòàíîâùèê ïðîäóêòîâ Invision Power Services</h1>
|
||||
<h1><img src='images/package_icon.gif' align='absmiddle' /> Welcome to the IPS Product Installer</h1>
|
||||
<div class='content_shell'>
|
||||
<div class='package'>
|
||||
<div>
|
||||
@@ -195,7 +194,7 @@ echo <<<EOF
|
||||
</div>
|
||||
|
||||
<div style='vertical-align: middle'>
|
||||
<h2>Óñòàíîâêà {$this->product_name}</h2>
|
||||
<h2>{$this->product_name} Installation</h2>
|
||||
<strong>{$this->product_version}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@@ -210,7 +209,7 @@ echo <<<EOF
|
||||
<div class='hr'></div>
|
||||
<div style='padding-top: 17px; padding-right: 15px; padding-left: 15px'>
|
||||
<div style='float: left'>
|
||||
<input type='button' class='nav_button' value='Ïðåêðàòèòü óñòàíîâêó' onclick="window.location='index.php';return false;" />
|
||||
<input type='button' class='nav_button' value='Cancel Installation' onclick="window.location='index.php';return false;" />
|
||||
</div>
|
||||
|
||||
<div style='float: right'>
|
||||
@@ -221,7 +220,7 @@ if( ! $this->hide_next )
|
||||
if( $this->next_action == 'disabled' )
|
||||
{
|
||||
echo <<<EOF
|
||||
<input type='submit' class='nav_button' value='Óñòàíîâêà íå çàâåðøåíà...' disabled='disabled' />
|
||||
<input type='submit' class='nav_button' value='Install can not continue...' disabled='disabled' />
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
@@ -231,11 +230,11 @@ if( !$this->next_action )
|
||||
$back = $this->ipsclass->my_getenv('HTTP_REFERER');
|
||||
|
||||
echo <<<EOF
|
||||
<input type='button' class='nav_button' value='< Íàçàä' onclick="window.location='{$back}';return false;" />
|
||||
<input type='button' class='nav_button' value='< Back' onclick="window.location='{$back}';return false;" />
|
||||
EOF;
|
||||
}
|
||||
echo <<<EOF
|
||||
<input type='submit' class='nav_button' value='Äàëüøå >' />
|
||||
<input type='submit' class='nav_button' value='Next >' />
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
@@ -251,7 +250,7 @@ echo <<<EOF
|
||||
EOF;
|
||||
echo date("Y");
|
||||
echo <<<EOF
|
||||
Invision Power Services, Inc. & IBresource, LTD
|
||||
Invision Power Services, Inc.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -278,16 +277,16 @@ return <<<EOF
|
||||
<img src='images/wizard.gif' align='absmiddle' />
|
||||
</div>
|
||||
<div>
|
||||
Âàñ ïðèâåòñòâóåò óñòàíîâùèê {$this->product_name}. Äàííûé ìàñòåð ïîìîæåò âàì óñòàíîâèòü íîâóþ âåðñèþ ïðîäóêòà.
|
||||
Welcome to the installer for {$this->product_name}. This wizard will guide you through the installation process.
|
||||
</div>
|
||||
</div>
|
||||
<br/><br/>
|
||||
|
||||
<h3>Ñèñòåìíûå òðåáîâàíèÿ:</h3>
|
||||
<h3>System Requirements</h3>
|
||||
|
||||
<br />
|
||||
<strong>PHP:</strong> v{$php_version} èëè âûøå<br />
|
||||
<strong>SQL:</strong> mySQL v$sql_version èëè âûøå
|
||||
<strong>PHP:</strong> v{$php_version} or better<br />
|
||||
<strong>SQL:</strong> mySQL v$sql_version or better
|
||||
<br /><br />
|
||||
EOF;
|
||||
}
|
||||
@@ -309,7 +308,7 @@ check_eula = function()
|
||||
}
|
||||
else
|
||||
{
|
||||
alert( 'Âû äîëæíû ïðèíÿòü ïîëüçîâàòåëüñêîå ñîãëàøåíèå, ïðåæäå ÷åì ïðîäîëæèòü óñòàíîâêó' );
|
||||
alert( 'You must agree to the license before continuing' );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -318,13 +317,13 @@ document.getElementById( 'install-form' ).onsubmit = check_eula;
|
||||
|
||||
</script>
|
||||
|
||||
Ïîæàëóéñòà ïðî÷èòàéòå è ïðèìèòå ïîëüçîâàòåëüñêîå ñîãëàøåíèå.<br /><br />
|
||||
Please read and agree to the End User License Agreement before continuing.<br /><br />
|
||||
|
||||
|
||||
<div class='eula'>
|
||||
$eula
|
||||
</div>
|
||||
<input type='checkbox' name='eula' id='eula'><strong> ß ïðèíèìàþ</strong>
|
||||
<input type='checkbox' name='eula' id='eula'><strong> I agree to the license agreement</strong>
|
||||
|
||||
|
||||
EOF;
|
||||
@@ -339,16 +338,16 @@ return <<<EOF
|
||||
<div id='warn-message' style='display:none;'><center><div id='warn-message-content'></div></center></div>
|
||||
|
||||
<fieldset>
|
||||
<legend><img src='images/addresses.gif' align='absmiddle' /> Äèðåêòîðèè óñòàíîâêè</legend>
|
||||
<legend><img src='images/addresses.gif' align='absmiddle' /> Address details</legend>
|
||||
|
||||
<table style='width: 100%; border: 0px; padding:0px' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='30%' class='title'>Ïóòü óñòàíîâêè:</td>
|
||||
<td width='30%' class='title'>Install Directory:</td>
|
||||
<td width='70%' class='content'><input type='text' class='sql_form' name='install_dir' value='{$dir}'></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='30%' class='title'>Àäðåñ óñòàíîâêè:</td>
|
||||
<td width='30%' class='title'>Install Address:</td>
|
||||
<td width='70%' class='content'><input type='text' class='sql_form' name='install_url' value='{$url}'></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -377,14 +376,14 @@ return <<<EOF
|
||||
<div class='info' style='margin-top: 4px;'>
|
||||
<div class='float_img'><img src='images/help.gif' /></div>
|
||||
|
||||
<div>Ïîæàëóéñòà óêàæèòå êàêóþ áàçà äàííûõ áóäåò èñïîëüçîâàòüñÿ.</div>
|
||||
<div>Please select which database engine you wish to use.</div>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend><img src='images/db.gif' align='absmiddle' /> Áàçû Äàííûõ</legend>
|
||||
<legend><img src='images/db.gif' align='absmiddle' /> Database Engine</legend>
|
||||
<table style='width: 100%; border: 0px; padding:0px' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='30%' class='title'>SQL Äðàéâåð:</td>
|
||||
<td width='30%' class='title'>SQL Driver:</td>
|
||||
<td width='70%' class='content'>
|
||||
<select name='sql_driver' class='sql_form'>$_drivers</select>
|
||||
</td>
|
||||
@@ -405,39 +404,39 @@ return <<<EOF
|
||||
<div class='info' style='margin-top: 4px;'>
|
||||
<div class='float_img'><img src='images/help.gif' /></div>
|
||||
|
||||
<div>Åñëè âû íå óâåðåíû èëè íå çíàåòå äàííûõ, íåîáõîäèìûõ äëÿ äàííîãî øàãà, óòî÷íèòå ó âàøåãî õîñòèíã ïðîâàéäåðà...</div>
|
||||
<div>Ask your webhost if you are unsure about any of these settings. You must create the database before installing..</div>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend><img src='images/db.gif' align='absmiddle' /> Ñåðâåð Áàçû Äàííûõ (ÁÄ)</legend>
|
||||
<legend><img src='images/db.gif' align='absmiddle' /> Database details</legend>
|
||||
<table style='width: 100%; border: 0px; padding:0px' cellspacing='0'>
|
||||
<!--{TOP.SQL}-->
|
||||
<tr>
|
||||
<td width='30%' class='title'>Àäðåñ ñåðâåðà:</td>
|
||||
<td width='30%' class='title'>SQL Host:</td>
|
||||
<td width='70%' class='content'>
|
||||
<input type='text' class='sql_form' value='localhost' name='db_host'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'>Èìÿ áàçû äàííûõ:</td>
|
||||
<td class='title'>Database Name:</td>
|
||||
<td class='content'>
|
||||
<input type='text' class='sql_form' name='db_name' value='{$_REQUEST['db_name']}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'>Ïîëüçîâàòåëü ÁÄ:</td>
|
||||
<td class='title'>SQL Username:</td>
|
||||
<td class='content'>
|
||||
<input type='text' class='sql_form' name='db_user' value='{$_REQUEST['db_user']}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'>Ïàðîëü ÁÄ:</td>
|
||||
<td class='title'>SQL Password:</td>
|
||||
<td class='content'>
|
||||
<input type='password' class='sql_form' name='db_pass'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'>Ïðåôèêñ òàáëèö:</td>
|
||||
<td class='title'>SQL Table Prefix:</td>
|
||||
<td class='content'>
|
||||
<input type='text' class='sql_form' name='db_pre' value='$prefix'>
|
||||
</td>
|
||||
@@ -456,24 +455,24 @@ EOF;
|
||||
{
|
||||
return <<<EOF
|
||||
<fieldset>
|
||||
<legend><img src='images/admin.gif' align='absmiddle' /> Ó÷åòíàÿ çàïèñü Àäìèíèñòðàòîðà</legend>
|
||||
<legend><img src='images/admin.gif' align='absmiddle' /> Your administrative account</legend>
|
||||
<table style='width: 100%; border: 0px; padding:0px' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='30%' class='title'>Èìÿ ïîëüçîâàòåëÿ:</td>
|
||||
<td width='30%' class='title'>Username:</td>
|
||||
|
||||
<td width='70%' class='content'><input type='text' class='sql_form' name='username'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'>Ïàðîëü:</td>
|
||||
<td class='title'>Password:</td>
|
||||
<td class='content'><input type='password' class='sql_form' name='password'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'>Ïîäòâåðæäåíèå ïàðîëÿ:</td>
|
||||
<td class='title'>Confirm Password:</td>
|
||||
|
||||
<td class='content'><input type='password' class='sql_form' name='confirm_password'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'>E-mail àäðåñ:</td>
|
||||
<td class='title'>E-mail Address:</td>
|
||||
<td class='content'><input type='text' class='sql_form' name='email'></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -488,11 +487,12 @@ EOF;
|
||||
function install_page()
|
||||
{
|
||||
return <<<EOF
|
||||
Ìàñòåð ñîáðàë âñå äàííûå è ãîòîâ íà÷àòü óñòàíîâêó {$this->product_name}. Íàæìèòå <strong>Íà÷àòü óñòàíîâêó</strong> äëÿ çàïóñêà àâòîìàòè÷åñêîãî ïðîöåññà óñòàíîâêè!<br /><br />
|
||||
The installer is now ready to complete the installation of your {$this->product_name}. Click <strong>Start</strong> to
|
||||
begin the automatic process!<br /><br />
|
||||
|
||||
|
||||
<div style='float: right'>
|
||||
<input type='submit' class='nav_button' value='Íà÷àòü óñòàíîâêó...'>
|
||||
<input type='submit' class='nav_button' value='Start installation...'>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
@@ -527,7 +527,7 @@ $HTML .= <<<EOF
|
||||
</ul>
|
||||
<br />
|
||||
<div style='float: right'>
|
||||
<input type='submit' class='nav_button' value='Íàæìèòå ñþäà, åñëè âàñ íå ïåðåìåñòèëî àâòîìàòè÷åñêè...' />
|
||||
<input type='submit' class='nav_button' value='Click here if not forwarded' />
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
@@ -568,23 +568,22 @@ EOF;
|
||||
{
|
||||
$extra = "<div class='warning'>
|
||||
<div style='float: left; margin-right: 7px; margin-left: 5px'><img src='images/warning.gif' /></div>
|
||||
<p>ÓÑÒÀÍÎÂÙÈÊ ÍÅ ÇÀÁËÎÊÈÐÎÂÀÍ<br />Ïîæàëóéñòà ïåðåèìåíóéòå èëè óäàëèòå 'install/index.php' êàê ìîæíî áûñòðåå!</p>
|
||||
<p>INSTALLER NOT LOCKED<br />Please disable or remove 'install/index.php' immediately!</p>
|
||||
</div>";
|
||||
}
|
||||
|
||||
$HTML .= <<<EOF
|
||||
<br />
|
||||
|
||||
<img src='images/install_done.gif' align='absmiddle' /> <span class='done_text'>Óñòàíîâêà çàâåðøåíà!</span><Br /><Br />
|
||||
Ïîçäðàâëÿåì, óñòàíîâêà <a href='$url'>{$this->product_name}</a> çàâåðøåíà! Íèæå ïðèâåäåíû íåñêîëüêî ïîëåçíûõ ññûëîê, êîòîðûå ïîìîãóò â âàøåé ðàáîòå.<br /><br />
|
||||
<img src='images/install_done.gif' align='absmiddle' /> <span class='done_text'>Installation complete!</span><Br /><Br />
|
||||
Congratulations, your <a href='$url'>{$this->product_name}</a> is now installed and ready to use! Below are some
|
||||
links you may find useful.<br /><br /><br />
|
||||
$extra
|
||||
<h3>Ïîëåçíûå ññûëêè:</h3>
|
||||
<h3>Useful Links</h3>
|
||||
<ul id='links'>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.iblink.ru/clientarea'>Êëèåíò-öåíòð</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.iblink.ru/docs-ipb'>Äîêóìåíòàöèÿ</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.iblink.ru/forums'>Ôîðóìû êîìïàíèè IBresource</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.iblink.ru/wiki'>Invison Power Book</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.ipslink.com/ipboard22/landing/?p=forums'>Ôîðóìû êîìïàíèè IPS</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.ipslink.com/ipboard22/landing/?p=clientarea'>Client area</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.ipslink.com/ipboard22/landing/?p=docs-ipb'>Documentation</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.ipslink.com/ipboard22/landing/?p=forums'>IPS Company Forum</a></li>
|
||||
</ul>
|
||||
|
||||
EOF;
|
||||
|
||||
+418
-390
@@ -1,391 +1,419 @@
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Invision Installer Framework
|
||||
*/
|
||||
|
||||
class application_installer extends class_installer
|
||||
{
|
||||
/**
|
||||
* application_installer::set_requirements
|
||||
*
|
||||
* Sets the requirements for this app
|
||||
*
|
||||
*/
|
||||
function set_requirements()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$wfiles = array();
|
||||
$wdirs = array( 0 => INS_ROOT_PATH . 'installfiles' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Basics
|
||||
//-----------------------------------------
|
||||
|
||||
$this->version_php_min = '4.3.0';
|
||||
$this->version_mysql_min = '4.0.0';
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab XML file and check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( file_exists( INS_ROOT_PATH . 'installfiles/writeablefiles.xml' ) )
|
||||
{
|
||||
$config = implode( '', file( INS_ROOT_PATH . 'installfiles/writeablefiles.xml' ) );
|
||||
$xml = new class_xml();
|
||||
|
||||
$config = $xml->xml_parse_document( $config );
|
||||
|
||||
//-----------------------------------------
|
||||
// Loop through and sort out settings...
|
||||
//-----------------------------------------
|
||||
|
||||
foreach( $xml->xml_array['installdata']['file'] as $id => $entry )
|
||||
{
|
||||
if ( preg_match( "#\.\w{3,}$#si", $entry['path']['VALUE'] ) )
|
||||
{
|
||||
$wfiles[] = INS_DOC_ROOT_PATH . $entry['path']['VALUE'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$wdirs[] = INS_DOC_ROOT_PATH . $entry['path']['VALUE'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->set_writeable( $wdirs, $wfiles );
|
||||
}
|
||||
|
||||
/**
|
||||
* application_installer::write_configuration
|
||||
*
|
||||
* Writes the configuration files for this app
|
||||
*
|
||||
*/
|
||||
function write_configuration()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Safe mode?
|
||||
//-----------------------------------------
|
||||
|
||||
$safe_mode = 0;
|
||||
|
||||
if ( @get_cfg_var('safe_mode') )
|
||||
{
|
||||
$safe_mode = @get_cfg_var('safe_mode');
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Set info array
|
||||
//-----------------------------------------
|
||||
|
||||
$INFO = array(
|
||||
'sql_driver' => $this->saved_data['sql_driver'],
|
||||
'sql_host' => $this->saved_data['db_host'],
|
||||
'sql_database' => $this->saved_data['db_name'],
|
||||
'sql_user' => $this->saved_data['db_user'],
|
||||
'sql_pass' => $this->saved_data['db_pass'],
|
||||
'sql_tbl_prefix' => $this->saved_data['db_pre'],
|
||||
'sql_debug' => 1,
|
||||
|
||||
'board_start' => time(),
|
||||
'installed' => 1,
|
||||
|
||||
'php_ext' => 'php',
|
||||
'safe_mode' => $safe_mode,
|
||||
|
||||
'board_url' => $this->saved_data['install_url'],
|
||||
|
||||
'banned_group' => '5',
|
||||
'admin_group' => '4',
|
||||
'guest_group' => '2',
|
||||
'member_group' => '3',
|
||||
'auth_group' => '1',
|
||||
);
|
||||
|
||||
//-----------------------------------
|
||||
// Any "extra" configs required for this driver?
|
||||
//-----------------------------------
|
||||
|
||||
foreach( $this->saved_data as $k => $v )
|
||||
{
|
||||
if ( preg_match( "#^__sql__#", $k ) )
|
||||
{
|
||||
$k = str_replace( "__sql__", "", $k );
|
||||
|
||||
$INFO[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------
|
||||
// Write to disk
|
||||
//-----------------------------------
|
||||
|
||||
$core_conf = "<"."?php\n";
|
||||
|
||||
foreach( $INFO as $k => $v )
|
||||
{
|
||||
$core_conf .= '$INFO['."'".$k."'".']'."\t\t\t=\t'".$v."';\n";
|
||||
}
|
||||
|
||||
$core_conf .= "\n".'?'.'>';
|
||||
|
||||
/* Write Configuration Files */
|
||||
$output[] = 'Ñîõðàíåíèå êîíôèãóðàöèîííûõ ôàéëîâ...<br />';
|
||||
|
||||
$this->write_file( $this->saved_data['install_dir'] . '/conf_global.php' , $core_conf );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* application_installer::create_admin_account
|
||||
*
|
||||
* Creates the local app admin entry
|
||||
*
|
||||
*/
|
||||
function create_admin_account()
|
||||
{
|
||||
/* Create Converge Entry */
|
||||
$converge_id = $this->create_admin_converge();
|
||||
|
||||
//-----------------------------------
|
||||
// Members...
|
||||
//-----------------------------------
|
||||
|
||||
$member_record = array( 'id' => $converge_id,
|
||||
'name' => $this->saved_data['admin_user'],
|
||||
'members_l_display_name' => strtolower( $this->saved_data['admin_user'] ),
|
||||
'members_l_username' => strtolower( $this->saved_data['admin_user'] ),
|
||||
'members_display_name' => $this->saved_data['admin_user'],
|
||||
'mgroup' => 4,
|
||||
'email' => $this->saved_data['admin_email'],
|
||||
'joined' => time(),
|
||||
'ip_address' => $this->ipsclass->my_getenv('REMOTE_ADDR'),
|
||||
'posts' => 1,
|
||||
'title' => 'Àäìèíèñòðàòîð',
|
||||
'last_visit' => time(),
|
||||
'last_activity' => time(),
|
||||
'member_login_key' => md5( uniqid( microtime) ),
|
||||
);
|
||||
|
||||
$this->ipsclass->DB->do_insert( 'members', $member_record );
|
||||
|
||||
//-----------------------------------
|
||||
// Member Extra...
|
||||
//-----------------------------------
|
||||
|
||||
$member_extra_record = array ( 'id' => 1,
|
||||
'signature' => '',
|
||||
'vdirs' => '',
|
||||
);
|
||||
|
||||
$this->ipsclass->DB->do_insert( 'member_extra', $member_extra_record );
|
||||
}
|
||||
|
||||
/**
|
||||
* application_installer::cache_and_cleanup
|
||||
*
|
||||
* Final install step, allows for any remaining app specific functions
|
||||
*
|
||||
*/
|
||||
function cache_and_cleanup()
|
||||
{
|
||||
//-----------------------------------
|
||||
// Get ACP library
|
||||
//-----------------------------------
|
||||
|
||||
if( !defined("CACHE_PATH") )
|
||||
{
|
||||
define( 'CACHE_PATH', INS_ROOT_PATH."../" );
|
||||
}
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà øàáëîíîâ...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/lib/admin_cache_functions.php' );
|
||||
$acp = new admin_cache_functions();
|
||||
$acp->ipsclass =& $this->ipsclass;
|
||||
$acp->_rebuild_all_caches( array(2) );
|
||||
unset( $acp );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Forum cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ôîðóìîâ...";
|
||||
|
||||
$ignore_me = array( 'redirect_url', 'redirect_loc', 'rules_text', 'permission_custom_error', 'notify_modq_emails' );
|
||||
|
||||
if ( $this->ipsclass->vars['forum_cache_minimum'] )
|
||||
{
|
||||
$ignore_me[] = 'description';
|
||||
$ignore_me[] = 'rules_title';
|
||||
}
|
||||
|
||||
$this->ipsclass->cache['forum_cache'] = array();
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'forums',
|
||||
'order' => 'parent_id, position'
|
||||
) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
while( $f = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$fr = array();
|
||||
|
||||
$perms = unserialize(stripslashes($f['permission_array']));
|
||||
|
||||
//-----------------------------------------
|
||||
// Stuff we don't need...
|
||||
//-----------------------------------------
|
||||
|
||||
foreach( $f as $k => $v )
|
||||
{
|
||||
if ( in_array( $k, $ignore_me ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $v != "" )
|
||||
{
|
||||
$fr[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$fr['read_perms'] = $perms['read_perms'];
|
||||
$fr['reply_perms'] = $perms['reply_perms'];
|
||||
$fr['start_perms'] = $perms['start_perms'];
|
||||
$fr['upload_perms'] = $perms['upload_perms'];
|
||||
$fr['show_perms'] = $perms['show_perms'];
|
||||
|
||||
unset($fr['permission_array']);
|
||||
|
||||
$this->ipsclass->cache['forum_cache'][ $fr['id'] ] = $fr;
|
||||
}
|
||||
|
||||
$this->ipsclass->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1, 'donow' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Group Cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ãðóïï...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/groups.php' );
|
||||
$lib = new ad_groups();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->rebuild_group_cache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Systemvars
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ñèñòåìíûõ ïåðåìåííûõ...";
|
||||
|
||||
$this->ipsclass->cache['systemvars'] = array();
|
||||
|
||||
$result = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
|
||||
|
||||
$this->ipsclass->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
|
||||
$this->ipsclass->cache['systemvars']['task_next_run'] = time() + 3600;
|
||||
|
||||
$this->ipsclass->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Stats
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ñòàòèñòèêè...";
|
||||
|
||||
$this->ipsclass->cache['stats'] = array();
|
||||
|
||||
$this->ipsclass->cache['stats']['total_replies'] = 0;
|
||||
$this->ipsclass->cache['stats']['total_topics'] = 1;
|
||||
$this->ipsclass->cache['stats']['mem_count'] = 1;
|
||||
|
||||
$r = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'id, name',
|
||||
'from' => 'members',
|
||||
'order' => 'id DESC',
|
||||
'limit' => '0,1'
|
||||
) );
|
||||
|
||||
$this->ipsclass->cache['stats']['last_mem_name'] = $r['name'];
|
||||
$this->ipsclass->cache['stats']['last_mem_id'] = $r['id'];
|
||||
|
||||
$this->ipsclass->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Ranks
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà çâàíèé ïîëüçîâàòåëåé...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/member.php' );
|
||||
$lib = new ad_member();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->titles_recache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SETTINGS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà íàñòðîåê ôîðóìà...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/settings.php' );
|
||||
$lib = new ad_settings();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->setting_rebuildcache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// EMOTICONS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ñìàéëèêîâ...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/emoticons.php' );
|
||||
$lib = new ad_emoticons();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->emoticon_rebuildcache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// LANGUAGES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå ÿçûêîâîãî êåøà...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/languages.php' );
|
||||
$lib = new ad_languages();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->rebuild_cache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// ATTACHMENT TYPES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà òèïîâ ôàéëîâ...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/attachments.php' );
|
||||
$lib = new ad_attachments();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->attach_type_rebuildcache();
|
||||
unset( $lib );
|
||||
|
||||
$output[] = "Êåø-ñèñòåìà èíèöèàëèçèðîâàíà, íàæìèòå 'Äàëüøå' äëÿ ïðîäîëæåíèÿ...";
|
||||
|
||||
$this->saved_data['admin_url'] = $this->saved_data['install_url'] . '/index.php';
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Invision Installer Framework
|
||||
*/
|
||||
|
||||
class application_installer extends class_installer
|
||||
{
|
||||
/**
|
||||
* application_installer::set_requirements
|
||||
*
|
||||
* Sets the requirements for this app
|
||||
*
|
||||
*/
|
||||
function set_requirements()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$wfiles = array();
|
||||
$wdirs = array( 0 => INS_ROOT_PATH . 'installfiles' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Basics
|
||||
//-----------------------------------------
|
||||
|
||||
$this->version_php_min = '4.3.0';
|
||||
$this->version_mysql_min = '4.0.0';
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab XML file and check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( file_exists( INS_ROOT_PATH . 'installfiles/writeablefiles.xml' ) )
|
||||
{
|
||||
$config = implode( '', file( INS_ROOT_PATH . 'installfiles/writeablefiles.xml' ) );
|
||||
$xml = new class_xml();
|
||||
|
||||
$config = $xml->xml_parse_document( $config );
|
||||
|
||||
//-----------------------------------------
|
||||
// Loop through and sort out settings...
|
||||
//-----------------------------------------
|
||||
|
||||
foreach( $xml->xml_array['installdata']['file'] as $id => $entry )
|
||||
{
|
||||
if ( preg_match( "#\.\w{3,}$#si", $entry['path']['VALUE'] ) )
|
||||
{
|
||||
$wfiles[] = INS_DOC_ROOT_PATH . $entry['path']['VALUE'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$wdirs[] = INS_DOC_ROOT_PATH . $entry['path']['VALUE'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->set_writeable( $wdirs, $wfiles );
|
||||
}
|
||||
|
||||
/**
|
||||
* application_installer::write_configuration
|
||||
*
|
||||
* Writes the configuration files for this app
|
||||
*
|
||||
*/
|
||||
function write_configuration()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Safe mode?
|
||||
//-----------------------------------------
|
||||
|
||||
$safe_mode = 0;
|
||||
|
||||
if ( @get_cfg_var('safe_mode') )
|
||||
{
|
||||
$safe_mode = @get_cfg_var('safe_mode');
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Set info array
|
||||
//-----------------------------------------
|
||||
|
||||
$INFO = array(
|
||||
'sql_driver' => $this->saved_data['sql_driver'],
|
||||
'sql_host' => $this->saved_data['db_host'],
|
||||
'sql_database' => $this->saved_data['db_name'],
|
||||
'sql_user' => $this->saved_data['db_user'],
|
||||
'sql_pass' => $this->saved_data['db_pass'],
|
||||
'sql_tbl_prefix' => $this->saved_data['db_pre'],
|
||||
'sql_debug' => 1,
|
||||
|
||||
'board_start' => time(),
|
||||
'installed' => 1,
|
||||
|
||||
'php_ext' => 'php',
|
||||
'safe_mode' => $safe_mode,
|
||||
|
||||
'board_url' => $this->saved_data['install_url'],
|
||||
|
||||
'banned_group' => '5',
|
||||
'admin_group' => '4',
|
||||
'guest_group' => '2',
|
||||
'member_group' => '3',
|
||||
'auth_group' => '1',
|
||||
);
|
||||
|
||||
//-----------------------------------
|
||||
// Any "extra" configs required for this driver?
|
||||
//-----------------------------------
|
||||
|
||||
foreach( $this->saved_data as $k => $v )
|
||||
{
|
||||
if ( preg_match( "#^__sql__#", $k ) )
|
||||
{
|
||||
$k = str_replace( "__sql__", "", $k );
|
||||
|
||||
$INFO[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------
|
||||
// Write to disk
|
||||
//-----------------------------------
|
||||
|
||||
$core_conf = "<"."?php\n";
|
||||
|
||||
foreach( $INFO as $k => $v )
|
||||
{
|
||||
$core_conf .= '$INFO['."'".$k."'".']'."\t\t\t=\t'".$v."';\n";
|
||||
}
|
||||
|
||||
$core_conf .= "\n".'?'.'>';
|
||||
|
||||
/* Write Configuration Files */
|
||||
$output[] = 'Writing configuration files...<br />';
|
||||
|
||||
$this->write_file( $this->saved_data['install_dir'] . '/conf_global.php' , $core_conf );
|
||||
|
||||
//-----------------------------------
|
||||
// Check that it wrote
|
||||
//-----------------------------------
|
||||
|
||||
if( !file_exists( $this->saved_data['install_dir'] . '/conf_global.php' ) )
|
||||
{
|
||||
$this->template->hide_next = 1;
|
||||
$this->template->warning( array( "We were unable to write your configuration information to the conf_global.php file. Please verify that this file has full read and write privileges." ) );
|
||||
$this->template->output( $this->product_name, $this->product_version );
|
||||
|
||||
exit();
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($INFO);
|
||||
|
||||
require_once( $this->saved_data['install_dir'] . '/conf_global.php' );
|
||||
|
||||
if( !is_array($INFO) )
|
||||
{
|
||||
$this->template->hide_next = 1;
|
||||
$this->template->warning( array( "We were unable to write your configuration information to the conf_global.php file. Please verify that this file has full read and write privileges." ) );
|
||||
$this->template->output( $this->product_name, $this->product_version );
|
||||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* application_installer::create_admin_account
|
||||
*
|
||||
* Creates the local app admin entry
|
||||
*
|
||||
*/
|
||||
function create_admin_account()
|
||||
{
|
||||
/* Create Converge Entry */
|
||||
$converge_id = $this->create_admin_converge();
|
||||
|
||||
//-----------------------------------
|
||||
// Members...
|
||||
//-----------------------------------
|
||||
|
||||
$member_record = array( 'id' => $converge_id,
|
||||
'name' => $this->saved_data['admin_user'],
|
||||
'members_l_display_name' => strtolower( $this->saved_data['admin_user'] ),
|
||||
'members_l_username' => strtolower( $this->saved_data['admin_user'] ),
|
||||
'members_display_name' => $this->saved_data['admin_user'],
|
||||
'mgroup' => 4,
|
||||
'email' => $this->saved_data['admin_email'],
|
||||
'joined' => time(),
|
||||
'ip_address' => $this->ipsclass->my_getenv('REMOTE_ADDR'),
|
||||
'posts' => 1,
|
||||
'title' => 'Administrator',
|
||||
'last_visit' => time(),
|
||||
'last_activity' => time(),
|
||||
'member_login_key' => md5( uniqid( microtime) ),
|
||||
);
|
||||
|
||||
$this->ipsclass->DB->do_insert( 'members', $member_record );
|
||||
|
||||
//-----------------------------------
|
||||
// Member Extra...
|
||||
//-----------------------------------
|
||||
|
||||
$member_extra_record = array ( 'id' => 1,
|
||||
'signature' => '',
|
||||
'vdirs' => '',
|
||||
);
|
||||
|
||||
$this->ipsclass->DB->do_insert( 'member_extra', $member_extra_record );
|
||||
}
|
||||
|
||||
/**
|
||||
* application_installer::cache_and_cleanup
|
||||
*
|
||||
* Final install step, allows for any remaining app specific functions
|
||||
*
|
||||
*/
|
||||
function cache_and_cleanup()
|
||||
{
|
||||
//-----------------------------------
|
||||
// Get ACP library
|
||||
//-----------------------------------
|
||||
|
||||
if( !defined("CACHE_PATH") )
|
||||
{
|
||||
define( 'CACHE_PATH', INS_ROOT_PATH."../" );
|
||||
}
|
||||
|
||||
$output[] = "Rebuild skin templates...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/lib/admin_cache_functions.php' );
|
||||
$acp = new admin_cache_functions();
|
||||
$acp->ipsclass =& $this->ipsclass;
|
||||
$acp->_rebuild_all_caches( array(2) );
|
||||
unset( $acp );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Forum cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding forum cache...";
|
||||
|
||||
$ignore_me = array( 'redirect_url', 'redirect_loc', 'rules_text', 'permission_custom_error', 'notify_modq_emails' );
|
||||
|
||||
if ( $this->ipsclass->vars['forum_cache_minimum'] )
|
||||
{
|
||||
$ignore_me[] = 'description';
|
||||
$ignore_me[] = 'rules_title';
|
||||
}
|
||||
|
||||
$this->ipsclass->cache['forum_cache'] = array();
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'forums',
|
||||
'order' => 'parent_id, position'
|
||||
) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
while( $f = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$fr = array();
|
||||
|
||||
$perms = unserialize(stripslashes($f['permission_array']));
|
||||
|
||||
//-----------------------------------------
|
||||
// Stuff we don't need...
|
||||
//-----------------------------------------
|
||||
|
||||
foreach( $f as $k => $v )
|
||||
{
|
||||
if ( in_array( $k, $ignore_me ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $v != "" )
|
||||
{
|
||||
$fr[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$fr['read_perms'] = $perms['read_perms'];
|
||||
$fr['reply_perms'] = $perms['reply_perms'];
|
||||
$fr['start_perms'] = $perms['start_perms'];
|
||||
$fr['upload_perms'] = $perms['upload_perms'];
|
||||
$fr['show_perms'] = $perms['show_perms'];
|
||||
|
||||
unset($fr['permission_array']);
|
||||
|
||||
$this->ipsclass->cache['forum_cache'][ $fr['id'] ] = $fr;
|
||||
}
|
||||
|
||||
$this->ipsclass->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1, 'donow' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Group Cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding group cache...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/groups.php' );
|
||||
$lib = new ad_groups();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->rebuild_group_cache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Systemvars
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding system variables cache...";
|
||||
|
||||
$this->ipsclass->cache['systemvars'] = array();
|
||||
|
||||
$result = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
|
||||
|
||||
$this->ipsclass->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
|
||||
$this->ipsclass->cache['systemvars']['task_next_run'] = time() + 3600;
|
||||
|
||||
$this->ipsclass->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Stats
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding statistics cache...";
|
||||
|
||||
$this->ipsclass->cache['stats'] = array();
|
||||
|
||||
$this->ipsclass->cache['stats']['total_replies'] = 0;
|
||||
$this->ipsclass->cache['stats']['total_topics'] = 1;
|
||||
$this->ipsclass->cache['stats']['mem_count'] = 1;
|
||||
|
||||
$r = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'id, name',
|
||||
'from' => 'members',
|
||||
'order' => 'id DESC',
|
||||
'limit' => '0,1'
|
||||
) );
|
||||
|
||||
$this->ipsclass->cache['stats']['last_mem_name'] = $r['name'];
|
||||
$this->ipsclass->cache['stats']['last_mem_id'] = $r['id'];
|
||||
|
||||
$this->ipsclass->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Ranks
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding member ranks cache...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/member.php' );
|
||||
$lib = new ad_member();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->titles_recache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SETTINGS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding settings cache...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/settings.php' );
|
||||
$lib = new ad_settings();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->setting_rebuildcache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// EMOTICONS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding emoticons cache...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/emoticons.php' );
|
||||
$lib = new ad_emoticons();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->emoticon_rebuildcache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// LANGUAGES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding languages cache...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/languages.php' );
|
||||
$lib = new ad_languages();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->rebuild_cache();
|
||||
unset( $lib );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// ATTACHMENT TYPES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Rebuilding attachment types cache...";
|
||||
|
||||
require_once( INS_DOC_ROOT_PATH.'sources/action_admin/attachments.php' );
|
||||
$lib = new ad_attachments();
|
||||
$lib->ipsclass =& $this->ipsclass;
|
||||
$lib->attach_type_rebuildcache();
|
||||
unset( $lib );
|
||||
|
||||
$output[] = "All caches rebuilt, click 'Next' below...";
|
||||
|
||||
$this->saved_data['admin_url'] = $this->saved_data['install_url'] . '/index.php';
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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>
|
||||
Binary file not shown.
@@ -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>␍
|
||||
@@ -1,33 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+--------------------------------------------------------------------------
|
||||
|
|
||||
| > Script written by Matthew Mecham
|
||||
| > Date started: 19th March 2004
|
||||
| > Updated for 2.1: 23 June 2005
|
||||
|
|
||||
+--------------------------------------------------------------------------
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Invision Installer Framework
|
||||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
@@ -51,7 +25,7 @@ $INFO = array();
|
||||
require INS_ROOT_PATH . 'core/ipsclass.php';
|
||||
require INS_KERNEL_PATH . 'class_converge.php';
|
||||
require INS_ROOT_PATH . 'core/template.php';
|
||||
require INS_KERNEL_PATH . 'class_xml.php';
|
||||
require_once INS_KERNEL_PATH . 'class_xml.php';
|
||||
require INS_ROOT_PATH . 'core/class_tar.php';
|
||||
|
||||
# Initiate super-class
|
||||
@@ -97,7 +71,7 @@ if ( $ipsclass->input['p'] != 'done' )
|
||||
if ( $got_lock )
|
||||
{
|
||||
$install->template->hide_next = 1;
|
||||
$install->template->warning( array( "Ñêðèïò óñòàíîâêè çàáëîêèðîâàí!<br><br>Åñëè âàì íåîáõîäèìî ïîâòîðèòü óñòàíîâêó, ïîæàëóéñòà, óäàëèòå ôàéë 'installfiles/lock.php' è îáíîâèòå ñòðàíèöó." ) );
|
||||
$install->template->warning( array( "This installer is locked. Via FTP please delete the file 'installfiles/lock.php' and then refresh this page." ) );
|
||||
$install->template->output( $install->product_name, $install->product_version );
|
||||
|
||||
exit();
|
||||
@@ -113,8 +87,8 @@ if ( file_exists( INS_DOC_ROOT_PATH.'conf_global.php.dist') AND ! file_exists( I
|
||||
if ( ! @rename( INS_DOC_ROOT_PATH.'conf_global.php.dist', INS_DOC_ROOT_PATH.'conf_global.php' ) )
|
||||
{
|
||||
$install->template->hide_next = 1;
|
||||
$install->template->warning( array( "<strong>Äëÿ ïðîäîëæåíèÿ óñòàíîâêè âàì íåîáõîäèìî ïåðåèìåíîâàòü ôàéë 'conf_global.<b style='color:red'>php.dist</b>' â 'conf_global.<b style='color:red'>php</b>'.</strong>
|
||||
Ýòîò ôàéë ìîæíî íàéòè â êîðíåâîé äèðåêòîðèè ôîðóìà, òàì æå ãäå íàõîäÿòñÿ 'admin.php' è 'index.php'." ) );
|
||||
$install->template->warning( array( "<strong>You MUST rename the file 'conf_global.<b style='color:red'>php.dist</b>' TO 'conf_global.<b style='color:red'>php</b>' before continuing.</strong>
|
||||
This file can be found in the root forum directory on your FTP server, the same directory where 'admin.php' and 'index.php' are stored." ) );
|
||||
$install->template->output( $install->product_name, $install->product_version );
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -1,69 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<installdata>
|
||||
<package>
|
||||
<name>русской версии Invision Power Board</name>
|
||||
<version>2.2.1</version>
|
||||
<versionlong>22101</versionlong>
|
||||
<name>Invision Power Board</name>
|
||||
<version>2.2 BETA 1</version>
|
||||
<versionlong>22001</versionlong>
|
||||
<build>1134742970</build>
|
||||
<license>Мы настоятельно рекомендуем вам внимательно ознакомиться с данным документом. В нем содержится информация о том, какие правила будут регламентировать права и обязанности сторон, подписавших данное соглашение. Обратите внимание на выполнение обязательных условий при использовании нашего продукта, как при самостоятельной установке, так и при обращении в службу технической поддержки.
|
||||
<license>Invision Power Services, Inc.
|
||||
Invision Power Board Software
|
||||
End User License Agreement (Version 2.3.x)
|
||||
|
||||
Invision Power Services, Inc.
|
||||
Продукт: Invision Power Board
|
||||
Лицензионное соглашение (для версии 2.2.x)
|
||||
LICENSE
|
||||
Invision Power Services (IPS) grants you a non-exclusive license to use the Software on one installation to be accessible by one URL (web address) subject to the provisions in all sections of this Agreement.
|
||||
|
||||
ЛИЦЕНЗИЯ
|
||||
В рамках данного лицензионного соглашения покупатель (далее Заказчик) программного обеспечения Invision Power Board (далее Система) получает право на однократную установку Системы только на один URL адрес сайта (далее Адрес), указанный при заказе.
|
||||
Исключительные права на Систему остаются у компании Invision Power Services Inc. (далее Исполнитель).
|
||||
TERM
|
||||
Invision Power Board is offered under yearly and lifetime licensing. Both license terms feature technical support and service plus access to upgrades to the software as they are available. In the event a one year license expires without being renewed, the software will remain completely functional but will be unsupported and no access to upgrades will be made available.
|
||||
|
||||
СРОКИ
|
||||
Invision Power Board имеет годовую лицензию. В нее входит техническая поддержка сроком на один год, а также доступ к дистрибутиву Системы и ее обновлениям (по мере их публикации) сроком на один год. После истечении срока действия лицензии Система останется полностью функциональной, но вы уже не будете иметь доступа к технической поддержке и обновлениям.
|
||||
SCOPE OF GRANT
|
||||
|
||||
Права и обязанности сторон
|
||||
You may:
|
||||
|
||||
Вы имеете право:
|
||||
|
||||
* изменять дизайн и структуру программного продукта, в соответствии с нуждами вашего сайта, но не нарушая других условий данного соглашения.
|
||||
* разрабатывать и распространять инструкции по созданным вами модификациям, стилям и другим дополнительным компонентам к Системе, но в них должно указываться на настоящего разработчика Системы до ваших модификаций, т.е. на Исполнителя. Модификации, произведенные вами самостоятельно, не являются собственностью Исполнителя, если не содержат исходный код Системы.
|
||||
* создавать приложения, интерфейс которых будет успешно работать с Системой, указав, что это ваш оригинальный продукт.
|
||||
* customize the Software's design and operation to suit the internal needs of your web site except to the extent not permitted in this Agreement
|
||||
* produce and distribute modification instructions, Skin packs, or Language packs provided that they contain notification that the Skin and Language packs were exported from and originally created by Invision Power Board and/or IPS. The modifications instructions you personally create are not owned by IPS so long as they contain no proprietary coding from Invision Power Board.
|
||||
* create applications which interface with the operation of the Software provided said application is an original work
|
||||
|
||||
|
||||
Вы не имеете право:
|
||||
You may not:
|
||||
|
||||
* передавать права на использование Системы третьим лицам, кроме случаев перечисленных выше.
|
||||
* изменять структуру исходного кода, функции программы или создавать собственные продукты, базирующиеся на исходном коде Системы, либо использовать Систему вне вашего сайта.
|
||||
* использовать Систему для пропагандирования терроризма, развития пиратского программного обеспечения и других нелегальных материалов.
|
||||
* изменять или удалять любые упоминания об авторских правах (copyrights) в Системе, указываемые в нижней части каждой страницы форума (кроме случаев, когда вы приобрели разрешение на удаление этих строк), а также указанные в верхней части исходного кода каждого файла.
|
||||
* распространять Систему.
|
||||
* распространять индивидуальные копии файлов, библиотек и другого исходного кода Системы.
|
||||
* распространять или модифицировать любую графику, HTML, CSS Системы в вашем индивидуальном программном обеспечении, отличном от Системы, а также на вашем сайте.
|
||||
* модифицировать Систему для работы одного комплекта исходных файлов сразу на нескольких Адресах (URL, доменах, поддоменах, и т.д.). Для каждого форума требуется отдельная лицензия.
|
||||
* permit other individuals to use the Software except under the terms listed above
|
||||
* reverse engineer, disassemble, or create derivative works based on the Software for distribution or usage outside your web site
|
||||
* use the Software in such as way as to condone or encourage terrorism, promote or provide pirated Software, or any other form of illegal or damaging activity
|
||||
* modify and/or remove any copyright notices or labels on the Software on each page (unless copyright output removal license is purchased) and in the header of each script source file
|
||||
* distribute the Software
|
||||
* distribute individual copies of files, libraries, or other programming material in the Software package
|
||||
* distribute or modify proprietary graphics, HTML, or CSS packaged with the Software for use in Software applications other than Invision Power Board or web sites without written permission from IPS
|
||||
* modify the software to function in more than one instance or location (URL, domain, subdomain, etc.) from a single set of source program files unless each location is separately licensed
|
||||
|
||||
|
||||
ГАРАНТИЙНОЕ ОБЯЗАТЕЛЬСТВО
|
||||
Система распространяется в соответствии с условием «AS IS» (как есть), без гарантий любого рода, включая отсутствие ограничения гарантий на продажу, приобретение частей или целого не сертифицированного продукта. Весь риск за совершение данной сделки по отношению к качеству продукта ложится на вас. Если вы приобретаете Систему, то вы, а не Исполнитель, должны оплачивать техническую поддержку и исправление неполадок по работе вашего сервера и форума. В дополнение мы хотим отметить, что механизмы безопасности, установленные в Системе, имеют известные ограничения, и вы должны быть ознакомлены с отсутствием абсолютных гарантий от взлома вашего сайта или форума хакерами. Этот отказ от гарантий является одной из составных частей нашего лицензионного соглашения.
|
||||
DISCLAIMER OF WARRANTY
|
||||
The Software is provided on an "AS IS" basis, without warranty of any kind, including without limitation the warranties of merchantability, fitness for a particular purpose, and non-infringement. The entire risk as to the quality and performance of the Software is borne by you. Should the Software prove defective, you and not IPS assume the entire cost of any service and repair. In addition, the security mechanisms implemented by IPS Software have inherent limitations, and you must determine that the Software sufficiently meets your requirements. This disclaimer of warranty constitutes an essential part of the Agreement.
|
||||
|
||||
ЗАГОЛОВКИ
|
||||
Заголовки, права владельца и права на интеллектуальную собственность принадлежат Исполнителю. Система защищена законом об авторских правах. Заголовки и содержание страниц, создаваемых Системой, любые публикуемые оригинальные материалы и связанные с этим права на них, также как и материалы, создаваемые в результате использования Системы, являются собственностью покупателя Системы и защищены законом. Мы не несем никакой ответственности за содержание ваших сайтов и форумов. Данная лицензия не передает Invision Power Services Inc. права на вашу интеллектуальную собственность.
|
||||
TITLE
|
||||
Title, ownership rights, and intellectual property rights in the Software shall remain with IPS. The Software is protected by copyright laws and treaties. Title and related rights in the content generated through the Software is the property of the applicable content owner and may be protected by applicable law. This License gives IPS no rights to such content.
|
||||
|
||||
РАСТОРЖЕНИЕ ЛИЦЕНЗИОННОГО СОГЛАШЕНИЯ
|
||||
Данное соглашение расторгается автоматически, если вы нарушаете его условия. После расторжения вы обязуетесь уничтожить все имеющиеся у вас Системы в течение 48 часов. Расторжение лицензионного соглашения лицензии из-за нарушения его условий не приводит к выплатам покупателю за лицензию.
|
||||
TERMINATION
|
||||
This Agreement will terminate automatically upon failure to comply with the limitations described herein or on written notice from an authorized representative of IPS. On termination, you must destroy all copies of the Software within 48 hours. Termination of the license due to noncompliance will not result in any refunds of license fees.
|
||||
|
||||
СОДЕРЖАНИЕ
|
||||
Исполнитель оставляет за собой право публиковать списки избранных клиентов своих программных продуктов. Исполнитель оставляет за собой право в любое время изменять условия данного лицензионного соглашения, но данные действия не имеют и не будут иметь обратной силы. Изменения данного договора будут отправлены клиентам по электронной почте. Отсутствие у клиентов письма с уведомлением не является причиной невыполнения изменившихся условий использования наших программных продуктов. Копия данного лицензионного соглашения и его изменения будут доступны на сайте Исполнителя.
|
||||
MISCELLANEOUS
|
||||
IPS reserves the right to publish a selected list of users of the Software. IPS reserves the right to change the terms of this Agreement at any time. Changes to the Agreement will be announced via email using the IPS email notification list. Failure to receive notification of a change does not make those changes invalid. A current copy of this Agreement will be available on the Invision Power Board web site.
|
||||
|
||||
Пакеты стилей и языковые пакеты также защищены договорами, как и наши программные коды, тексты файлов и графика, если вы получили их с нашего сайта.
|
||||
Skin packs and Language packs are defined as the group of code, text, and graphics that are exported from the Software using the provided functions of the Software Administration Control Panel. Integrated add-ons for Invision Power Board are released under this Agreement. Purchasing or downloading integrated add-ons constitute an additional, separate instance of this Agreement.
|
||||
|
||||
Наши гарантии и техническая поддержка не распространяются на модификации, произведенные третьей стороной, включая изменения исходного кода Системы, стиля и языковых пакетов, как и на изменения перечисленных частей владельцем лицензии самостоятельно. Если Система изменена вами или третьей стороной, то Исполнитель вправе отказать вам в технической поддержке.
|
||||
Technical support will not be provided for third-party modifications to the Software including modifications to code, Skin packs, and Language packs to any license holder. If the Software is modified using a third-party modification instruction or otherwise, technical support may be refused to any license holder.
|
||||
|
||||
УПОМИНАНИЕ ОБ АВТОРСКИХ ПРАВАХ
|
||||
Разрешение на удаление упоминаний об авторских правах может быть дано клиенту от Исполнителя за определенную плату. Это разрешение дает право на удаление упоминаний об авторских правах на страницах форума, но не дает право удалять их из файлов с исходным кодом.
|
||||
PROPRIETARY LABELS
|
||||
Authorization to remove or modify output of copyright notices can be obtained from IPS for a fee. This fee authorizes you to remove the output of copyright notices: it does not give you authorization to remove any copyright notices in the program source files or any other rights.
|
||||
|
||||
ЗАКОН ОБ ИСПОЛЬЗОВАНИИ
|
||||
Данное лицензионное соглашение находится в полном соответствии с законами штата Virginia, США.
|
||||
Любые нарушения данного соглашения являются предметом судебного разбирательства, как авторских прав.
|
||||
GOVERNING LAW
|
||||
This Agreement shall be governed by the Laws of the Commonwealth of Virginia and the Laws of the United States of America. Any action in regard to this Agreement or arising out of its terms and conditions shall be instituted and litigated in the Circuit Court of Bedford County. Each of the parties consents to jurisdiction in such Court and agrees that service of process as provided by the states and rules of civil procedures of the Commonwealth of Virginia shall be sufficient. (FTB)
|
||||
|
||||
ПРОИЗВОДИТЕЛЬ
|
||||
Invision Power Services, Inc., United States, 1115 Vista Park Drive Suite C, Forest, VA 24551.
|
||||
По всем вопросам, пишите на e-mail info@invisionpower.com, на наш адрес sales@ibresource.ru, или звоните +1-434-316-7201.</license>
|
||||
MANUFACTURER
|
||||
Invision Power Services, Inc., 1115 Vista Park Drive Suite C, Forest, VA 24551. For questions, write to the above address, email info@invisionpower.com, or call 434-316-7201.</license>
|
||||
</package>
|
||||
</installdata>
|
||||
@@ -22,7 +22,7 @@
|
||||
<g_use_pm>0</g_use_pm>
|
||||
<g_is_supmod>0</g_is_supmod>
|
||||
<g_access_cp>0</g_access_cp>
|
||||
<g_title>Неактивированные</g_title>
|
||||
<g_title>Validating</g_title>
|
||||
<g_can_remove>0</g_can_remove>
|
||||
<g_append_edit>1</g_append_edit>
|
||||
<g_access_offline>0</g_access_offline>
|
||||
@@ -74,7 +74,7 @@
|
||||
<g_use_pm>0</g_use_pm>
|
||||
<g_is_supmod>0</g_is_supmod>
|
||||
<g_access_cp>0</g_access_cp>
|
||||
<g_title>Гости</g_title>
|
||||
<g_title>Guests</g_title>
|
||||
<g_can_remove>0</g_can_remove>
|
||||
<g_append_edit>0</g_append_edit>
|
||||
<g_access_offline>0</g_access_offline>
|
||||
@@ -126,7 +126,7 @@
|
||||
<g_use_pm>1</g_use_pm>
|
||||
<g_is_supmod>0</g_is_supmod>
|
||||
<g_access_cp>0</g_access_cp>
|
||||
<g_title>Пользователи</g_title>
|
||||
<g_title>Members</g_title>
|
||||
<g_can_remove>0</g_can_remove>
|
||||
<g_append_edit>1</g_append_edit>
|
||||
<g_access_offline>0</g_access_offline>
|
||||
@@ -178,7 +178,7 @@
|
||||
<g_use_pm>1</g_use_pm>
|
||||
<g_is_supmod>1</g_is_supmod>
|
||||
<g_access_cp>1</g_access_cp>
|
||||
<g_title>Главные администраторы</g_title>
|
||||
<g_title>Root Admin</g_title>
|
||||
<g_can_remove>0</g_can_remove>
|
||||
<g_append_edit>1</g_append_edit>
|
||||
<g_access_offline>1</g_access_offline>
|
||||
@@ -230,7 +230,7 @@
|
||||
<g_use_pm>0</g_use_pm>
|
||||
<g_is_supmod>0</g_is_supmod>
|
||||
<g_access_cp>0</g_access_cp>
|
||||
<g_title>Заблокированные</g_title>
|
||||
<g_title>Banned</g_title>
|
||||
<g_can_remove>0</g_can_remove>
|
||||
<g_append_edit>0</g_append_edit>
|
||||
<g_access_offline>0</g_access_offline>
|
||||
@@ -282,7 +282,7 @@
|
||||
<g_use_pm>1</g_use_pm>
|
||||
<g_is_supmod>1</g_is_supmod>
|
||||
<g_access_cp>1</g_access_cp>
|
||||
<g_title>Администраторы</g_title>
|
||||
<g_title>Administrators</g_title>
|
||||
<g_can_remove>0</g_can_remove>
|
||||
<g_append_edit>1</g_append_edit>
|
||||
<g_access_offline>1</g_access_offline>
|
||||
|
||||
@@ -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>
|
||||
@@ -3,8 +3,8 @@
|
||||
<group>
|
||||
<row>
|
||||
<login_id>1</login_id>
|
||||
<login_title>Внутренняя авторизация IPB</login_title>
|
||||
<login_description>Стандартный метод авторизации</login_description>
|
||||
<login_title>IPB Internal</login_title>
|
||||
<login_description>The standard method of authentication</login_description>
|
||||
<login_folder_name>internal</login_folder_name>
|
||||
<login_maintain_url></login_maintain_url>
|
||||
<login_register_url></login_register_url>
|
||||
@@ -24,8 +24,8 @@
|
||||
|
||||
<row>
|
||||
<login_id>2</login_id>
|
||||
<login_title>LDAP Авторизация</login_title>
|
||||
<login_description>LDAP / Active Directory Авторизация</login_description>
|
||||
<login_title>LDAP Authentication</login_title>
|
||||
<login_description>LDAP / Active Directory Authentication</login_description>
|
||||
<login_folder_name>ldap</login_folder_name>
|
||||
<login_maintain_url></login_maintain_url>
|
||||
<login_register_url></login_register_url>
|
||||
@@ -45,8 +45,8 @@
|
||||
|
||||
<row>
|
||||
<login_id>3</login_id>
|
||||
<login_title>Внешняя авторизация</login_title>
|
||||
<login_description>Авторизация с использованием внешней базы данных</login_description>
|
||||
<login_title>External Database</login_title>
|
||||
<login_description>Authentication via an external database</login_description>
|
||||
<login_folder_name>external</login_folder_name>
|
||||
<login_maintain_url></login_maintain_url>
|
||||
<login_register_url></login_register_url>
|
||||
@@ -67,7 +67,7 @@
|
||||
<row>
|
||||
<login_id>4</login_id>
|
||||
<login_title>IP.Converge</login_title>
|
||||
<login_description>Для внутреннего использования</login_description>
|
||||
<login_description>Internal Use Only</login_description>
|
||||
<login_folder_name>ipconverge</login_folder_name>
|
||||
<login_maintain_url></login_maintain_url>
|
||||
<login_register_url></login_register_url>
|
||||
|
||||
@@ -1,33 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<installdata>
|
||||
<action>
|
||||
<file>requirements</file>
|
||||
<menu><![CDATA[Требования]]></menu>
|
||||
<menu>Requirements</menu>
|
||||
<position>0</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>eula</file>
|
||||
<menu><![CDATA[Cоглашение]]></menu>
|
||||
<menu>EULA</menu>
|
||||
<position>1</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>address</file>
|
||||
<menu><![CDATA[Директории]]></menu>
|
||||
<menu>Addresses</menu>
|
||||
<position>2</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>db</file>
|
||||
<menu><![CDATA[База данных]]></menu>
|
||||
<menu>DB Details</menu>
|
||||
<position>3</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>admin</file>
|
||||
<menu><![CDATA[Учетная запись]]></menu>
|
||||
<menu>Admin Account</menu>
|
||||
<position>4</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>install</file>
|
||||
<menu><![CDATA[Установка]]></menu>
|
||||
<menu>Installation</menu>
|
||||
<position>5</position>
|
||||
</action>
|
||||
</installdata>
|
||||
@@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<installdata>
|
||||
<file>
|
||||
<path>cache</path>
|
||||
@@ -11,6 +12,9 @@
|
||||
<file>
|
||||
<path>uploads</path>
|
||||
</file>
|
||||
<file>
|
||||
<path>style_images</path>
|
||||
</file>
|
||||
<file>
|
||||
<path>conf_global.php</path>
|
||||
</file>
|
||||
|
||||
@@ -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>␍
|
||||
@@ -1,33 +1,5 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+--------------------------------------------------------------------------
|
||||
|
|
||||
| > Script written by Matthew Mecham
|
||||
| > Date started: 12th August 2004
|
||||
| > MYSQL EXTRA CONFIG / INSTALL FILE
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$INDEX[] = "alter table ibf_posts ADD FULLTEXT(post)";
|
||||
$INDEX[] = "alter table ibf_topics ADD FULLTEXT(title)";
|
||||
|
||||
|
||||
@@ -1,33 +1,5 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+--------------------------------------------------------------------------
|
||||
|
|
||||
| > Script written by Matthew Mecham
|
||||
| > Date started: 12th August 2004
|
||||
| > MYSQL EXTRA CONFIG / INSTALL FILE
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('skin_id_cache', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('bbcode', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('moderators', '', '', 1);";
|
||||
@@ -53,7 +25,7 @@ $INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array)
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('rss_export', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('rss_calendar', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('announcements', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('portal', 'a:6:{s:5:\"blogs\";a:5:{s:8:\"pc_title\";s:30:\"Invision Power Community Blogs\";s:7:\"pc_desc\";s:39:\"Âûâîä èíôîðìàöèè èç IPB Blog íà ïîðòàëå\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"blogs_show_last_updated_x\";a:2:{i:0;s:25:\"blogs_show_last_updated_x\";i:1;s:54:\"Âûâåñòè áëîê ñ íàçâàíèÿìè ïîñëåäíèõ îáíîâëåííûõ áëîãîâ\";}}s:6:\"pc_key\";s:5:\"blogs\";}s:8:\"calendar\";a:5:{s:8:\"pc_title\";s:16:\"Êàëåíäàðü ôîðóìà\";s:7:\"pc_desc\";s:37:\"Âûâîä ìèíè-êàëåíäàðÿ íà òåêóùèé ìåñÿö\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:27:\"calendar_show_current_month\";a:2:{i:0;s:27:\"calendar_show_current_month\";i:1;s:42:\"Âûâåñòè áëîê ñ êàëåíäàðåì íà òåêóùèé ìåñÿö\";}}s:6:\"pc_key\";s:8:\"calendar\";}s:7:\"gallery\";a:5:{s:8:\"pc_title\";s:22:\"Invision Power Gallery\";s:7:\"pc_desc\";s:53:\"Âûâîä èíôîðìàöèè èç Invision Power Gallery íà ïîðòàëå\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"gallery_show_random_image\";a:2:{i:0;s:25:\"gallery_show_random_image\";i:1;s:63:\"Âûâåñòè áëîê ñî ñëó÷àéíûìè èçîáðàæåíèÿìè èç ãàëåðåé ïîëüçîâàòåé\";}}s:6:\"pc_key\";s:7:\"gallery\";}s:12:\"online_users\";a:5:{s:8:\"pc_title\";s:22:\"Ïîëüçîâàòåëè â îí-ëàéí\";s:7:\"pc_desc\";s:58:\"Âûâîä ÷èñëà ïîëüçîâàòåëåé è èõ èìåí, íàõîäÿùèõñÿ â îí-ëàéí\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:17:\"online_users_show\";a:2:{i:0;s:17:\"online_users_show\";i:1;s:36:\"Âûâåñòè áëîê ïîëüçîâàòåëåé â îí-ëàéí\";}}s:6:\"pc_key\";s:12:\"online_users\";}s:4:\"poll\";a:5:{s:8:\"pc_title\";s:14:\"Îïðîñ ñ ôîðóìà\";s:7:\"pc_desc\";s:43:\"Âûâîäèò âûáðàííûé ñ ôîðóìà îïðîñ íà ïîðòàëå\";s:19:\"pc_settings_keyword\";s:11:\"portal_poll\";s:18:\"pc_exportable_tags\";a:1:{s:14:\"poll_show_poll\";a:2:{i:0;s:14:\"poll_show_poll\";i:1;s:22:\"Âûâåñòè áëîê ñ îïðîñîì\";}}s:6:\"pc_key\";s:4:\"poll\";}s:13:\"recent_topics\";a:5:{s:8:\"pc_title\";s:23:\"Ïîñëåäíèå òåìû ñ ôîðóìà\";s:7:\"pc_desc\";s:49:\"Âûâîäèò ïîñëåäíèå òåìû ñ ïåðâûì ñîîáùåíèåì èç íèõ\";s:19:\"pc_settings_keyword\";s:20:\"portal_recent_topics\";s:18:\"pc_exportable_tags\";a:2:{s:20:\"recent_topics_last_x\";a:2:{i:0;s:20:\"recent_topics_last_x\";i:1;s:56:\"Âûâåñòè áëîê ñ ïîñëåäíèìè òåìàìè èç îïðåäåëåííûõ ôîðóìîâ\";}s:32:\"recent_topics_discussions_last_x\";a:2:{i:0;s:32:\"recent_topics_discussions_last_x\";i:1;s:48:\"Âûâåñòè áëîê ñ ïîñëåäíèìè òåìàìè èç âñåõ ôîðóìîâ\";}}s:6:\"pc_key\";s:13:\"recent_topics\";}}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('portal', 'a:6:{s:5:\"blogs\";a:5:{s:8:\"pc_title\";s:30:\"Invision Power Community Blogs\";s:7:\"pc_desc\";s:40:\"Shows IPB Blog information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"blogs_show_last_updated_x\";a:2:{i:0;s:25:\"blogs_show_last_updated_x\";i:1;s:30:\"Shows the last X updated blogs\";}}s:6:\"pc_key\";s:5:\"blogs\";}s:8:\"calendar\";a:5:{s:8:\"pc_title\";s:29:\"Invision Power Board Calendar\";s:7:\"pc_desc\";s:46:\"Displays a mini calendar for the current month\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:27:\"calendar_show_current_month\";a:2:{i:0;s:27:\"calendar_show_current_month\";i:1;s:38:\"Shows a calendar for the current month\";}}s:6:\"pc_key\";s:8:\"calendar\";}s:7:\"gallery\";a:5:{s:8:\"pc_title\";s:22:\"Invision Power Gallery\";s:7:\"pc_desc\";s:54:\"Shows Invision Power Gallery information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"gallery_show_random_image\";a:2:{i:0;s:25:\"gallery_show_random_image\";i:1;s:44:\"Shows a random image from a member\'s gallery\";}}s:6:\"pc_key\";s:7:\"gallery\";}s:12:\"online_users\";a:5:{s:8:\"pc_title\";s:33:\"Invision Power Board Online Users\";s:7:\"pc_desc\";s:49:\"Shows the current name and number of online users\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:17:\"online_users_show\";a:2:{i:0;s:17:\"online_users_show\";i:1;s:22:\"Shows the online users\";}}s:6:\"pc_key\";s:12:\"online_users\";}s:4:\"poll\";a:5:{s:8:\"pc_title\";s:25:\"Invision Power Board Poll\";s:7:\"pc_desc\";s:23:\"Shows the selected poll\";s:19:\"pc_settings_keyword\";s:11:\"portal_poll\";s:18:\"pc_exportable_tags\";a:1:{s:14:\"poll_show_poll\";a:2:{i:0;s:14:\"poll_show_poll\";i:1;s:22:\"Shows the request poll\";}}s:6:\"pc_key\";s:4:\"poll\";}s:13:\"recent_topics\";a:5:{s:8:\"pc_title\";s:34:\"Invision Power Board Recent Topics\";s:7:\"pc_desc\";s:47:\"Shows IPB recent topics with topic\'s first post\";s:19:\"pc_settings_keyword\";s:20:\"portal_recent_topics\";s:18:\"pc_exportable_tags\";a:2:{s:20:\"recent_topics_last_x\";a:2:{i:0;s:20:\"recent_topics_last_x\";i:1;s:63:\"Shows the last X topics with full post from the selected forums\";}s:32:\"recent_topics_discussions_last_x\";a:2:{i:0;s:32:\"recent_topics_discussions_last_x\";i:1;s:54:\"Shows the last X topic titles from ALL viewable forums\";}}s:6:\"pc_key\";s:13:\"recent_topics\";}}', '', 1);";
|
||||
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable, emo_set) VALUES (1, ':mellow:', 'mellow.gif', 1, 'default');";
|
||||
@@ -78,26 +50,25 @@ $INSERT[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable, emo_set) VA
|
||||
$INSERT[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable, emo_set) VALUES (20, ':ph34r:', 'ph34r.gif', 0, 'default');";
|
||||
|
||||
# FORUMS: Last field: newest_id
|
||||
$INSERT[] = "INSERT INTO ibf_forums VALUES (2, 1, 1, <%time%>, 1, '<%admin_name%>', 'Òåñòîâûé ôîðóì', 'Òåñòîâûé ôîðóì ìîæåò áûòü óäàëåí â ëþáîå âðåìÿ', 1, 1, 0, 1, '', '', 'Äîáðî ïîæàëîâàòü!', 1, 'last_post', 'Z-A', 100, 'all', 0, 0, 1, 1, 1, NULL, 1, 1, '', 0, 0, '', '', '', '', '', 1, '', 'a:6:{s:11:\"start_perms\";s:1:\"*\";s:11:\"reply_perms\";s:1:\"*\";s:10:\"read_perms\";s:1:\"*\";s:12:\"upload_perms\";s:1:\"*\";s:14:\"download_perms\";s:1:\"*\";s:10:\"show_perms\";s:1:\"*\";}', 0, 0, 0, 0, 1, '', 0);";
|
||||
$INSERT[] = "INSERT INTO ibf_forums VALUES (1, 0, 0, 0, 0, '', 'Òåñòîâàÿ êàòåãîðèÿ', 'Òåñòîâàÿ êàòåãîðèÿ ìîæåò áûòü óäàëåíà â ëþáîå âðåìÿ' , 1, 1, 0, 1, '', '', '', 0, 'last_post', 'Z-A', 30, 'all', 0, 0, 1, 1, 1, NULL, -1, 0, '', 0, 0, '', '', '', '', '', 0, '', 'a:5:{s:11:\"start_perms\";s:0:\"\";s:11:\"reply_perms\";s:0:\"\";s:10:\"read_perms\";s:0:\"\";s:12:\"upload_perms\";s:0:\"\";s:10:\"show_perms\";s:1:\"*\";}', 1, 0, 0, 1, 1, '', 0);";
|
||||
$INSERT[] = "INSERT INTO ibf_forums VALUES (2, 1, 1, <%time%>, 1, '<%admin_name%>', 'A Test Forum', 'A test forum that may be removed at any time', 1, 1, 0, 1, '', '', 'Welcome!', 1, 'last_post', 'Z-A', 100, 'all', 0, 0, 1, 1, 1, NULL, 1, 1, '', 0, 0, '', '', '', '', '', 1, '', 'a:6:{s:11:\"start_perms\";s:1:\"*\";s:11:\"reply_perms\";s:1:\"*\";s:10:\"read_perms\";s:1:\"*\";s:12:\"upload_perms\";s:1:\"*\";s:14:\"download_perms\";s:1:\"*\";s:10:\"show_perms\";s:1:\"*\";}', 0, 0, 0, 0, 1, '', 0);";
|
||||
$INSERT[] = "INSERT INTO ibf_forums VALUES (1, 0, 0, 0, 0, '', 'A Test Category', 'A test category that may be removed at any time' , 1, 1, 0, 1, '', '', '', 0, 'last_post', 'Z-A', 30, 'all', 0, 0, 1, 1, 1, NULL, -1, 0, '', 0, 0, '', '', '', '', '', 0, '', 'a:5:{s:11:\"start_perms\";s:0:\"\";s:11:\"reply_perms\";s:0:\"\";s:10:\"read_perms\";s:0:\"\";s:12:\"upload_perms\";s:0:\"\";s:10:\"show_perms\";s:1:\"*\";}', 1, 0, 0, 1, 1, '', 0);";
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Ìàñêà íåàêòèâèðîâàííûõ', perm_id=1";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Ìàñêà ïîëüçîâàòåëåé', perm_id=3";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Ìàñêà ãîñòåé', perm_id=2";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Ìàñêà àäìèíèñòðàòîðîâ', perm_id=4";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Ìàñêà çàáëîêèðîâàííûõ', perm_id=5";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Validating Forum Set', perm_id=1";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Member Forum Set', perm_id=3";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Guest Forum Set', perm_id=2";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Admin Forum Set', perm_id=4";
|
||||
$INSERT[] = "INSERT INTO ibf_forum_perms SET perm_name='Banned Forum Set', perm_id=5";
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_languages (lid, ldir, lname, lauthor, lemail) VALUES (1, 'ru', 'Ðóññêèé', 'IBResource.ru', 'support@ibresource.ru');";
|
||||
$INSERT[] = "INSERT INTO ibf_languages (lid, ldir, lname, lauthor, lemail) VALUES (2, 'en', 'English', 'Invision Power Board', 'languages@invisionboard.com');";
|
||||
$INSERT[] = "INSERT INTO ibf_languages (lid, ldir, lname, lauthor, lemail) VALUES (1, 'en', 'English', 'Invision Power Board', 'languages@invisionboard.com');";
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_posts (pid, append_edit, edit_time, author_id, author_name, use_sig, use_emo, ip_address, post_date, icon_id, post, queued, topic_id, post_title, new_topic, edit_name, post_key, post_parent, post_htmlstate) VALUES (1, 0, NULL, 1, 'IBResource Team', 0, 1, '127.0.0.1', <%time%>, 0, 'Äîáðî ïîæàëîâàòü â âàø íîâûé ôîðóì — Invision Power Board! <br /><br /> Ñïàñèáî çà ïðèîáðåòåíèå ðóññêîé âåðñèè Invision Power Board. Ïîæàëóéñòà, îçíàêîìüòåñü ñ äîêóìåíòàöèåé àäìèíèñòàòîðà IP.Board. Â íåé âû íàéäåòå âñþ èíôîðìàöèþ î âîçìîæíîñòÿõ è íàñòðîéêàõ ôîðóìà. <br /><br /> Ñîçäàííûå ðàçäåë, ôîðóì è ýòî ñîîáùåíèå - òåñòîâûå, âû ìîæåòå óäàëèòü èõ â ëþáîå âðåìÿ. <br /><br /> <a href=\"http://external.iblink.ru/docs-ipb\" target=\"_blank\">Ïåðåéòè ê äîêóìåíòàöèè...</a>', 0, 1, NULL, 1, NULL, '0', 0, 0);";
|
||||
$INSERT[] = "INSERT INTO ibf_posts (pid, append_edit, edit_time, author_id, author_name, use_sig, use_emo, ip_address, post_date, icon_id, post, queued, topic_id, post_title, new_topic, edit_name, post_key, post_parent, post_htmlstate) VALUES (1, 0, NULL, 1, 'Invision Power Board Team', 0, 1, '127.0.0.1', <%time%>, 0, 'Welcome to your new Invision Power Board!<br /><br /> <br /><br /> Congratulations on your purchase of our software and setting up your community. Please take some time and read through the Getting Started Guide and Administrator Documentation. The Getting Started Guide will walk you through some of the necessary steps to setting up an IP.Board and starting your community. The Administrator Documentation takes you through the details of the capabilities of IP.Board.<br /><br /> <br /><br /> You can remove this message, topic, forum or even category at any time.<br /><br /> <br /><br /> <a href=\"http://external.ipslink.com/ipboard22/landing/?p=docs-ipb\" target=\"_blank\">Go to the documentation now...</a>', 0, 1, NULL, 1, NULL, '0', 0, 0);";
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_titles (id, posts, title, pips) VALUES (1, 0, 'Íîâè÷îê', '1');";
|
||||
$INSERT[] = "INSERT INTO ibf_titles (id, posts, title, pips) VALUES (2, 10, 'Ó÷àñòíèê', '2');";
|
||||
$INSERT[] = "INSERT INTO ibf_titles (id, posts, title, pips) VALUES (4, 30, 'Àêòèâíûé ó÷àñòíèê', '3');";
|
||||
$INSERT[] = "INSERT INTO ibf_titles (id, posts, title, pips) VALUES (1, 0, 'Newbie', '1');";
|
||||
$INSERT[] = "INSERT INTO ibf_titles (id, posts, title, pips) VALUES (2, 10, 'Member', '2');";
|
||||
$INSERT[] = "INSERT INTO ibf_titles (id, posts, title, pips) VALUES (4, 30, 'Advanced Member', '3');";
|
||||
|
||||
# TOPICS: topic_rating_hits
|
||||
$INSERT[] = "INSERT INTO ibf_topics VALUES (1, 'Äîáðî ïîæàëîâàòü', '', 'open', 0, 1, <%time%>, 1, <%time%>, 0, '<%admin_name%>', '<%admin_name%>', '0', 0, 1, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0);";
|
||||
$INSERT[] = "INSERT INTO ibf_topics VALUES (1, 'Welcome', '', 'open', 0, 1, <%time%>, 1, <%time%>, 0, '<%admin_name%>', '<%admin_name%>', '0', 0, 1, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0);";
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_subscription_currency SET subcurrency_code='USD', subcurrency_desc='United States Dollars', subcurrency_exchange='1.00', subcurrency_default=1;";
|
||||
$INSERT[] = "INSERT INTO ibf_subscription_currency SET subcurrency_code='GBP', subcurrency_desc='United Kingdom Pounds', subcurrency_exchange=' 0.550776', subcurrency_default=0;";
|
||||
@@ -112,7 +83,7 @@ $INSERT[] = "INSERT INTO ibf_subscription_methods (submethod_id, submethod_title
|
||||
$INSERT[] = "INSERT INTO ibf_subscription_methods (submethod_id, submethod_title, submethod_name, submethod_email, submethod_sid, submethod_custom_1, submethod_custom_2, submethod_custom_3, submethod_custom_4, submethod_custom_5, submethod_is_cc, submethod_is_auto, submethod_desc, submethod_logo, submethod_active, submethod_use_currency) VALUES (5, 'Safshop', 'safshop', '', '', NULL, NULL, NULL, NULL, NULL, 0, 1, 'Accepts all major credit cards', NULL, 1, 'USD');";
|
||||
$INSERT[] = "INSERT INTO ibf_subscription_methods (submethod_id, submethod_title, submethod_name, submethod_email, submethod_sid, submethod_custom_1, submethod_custom_2, submethod_custom_3, submethod_custom_4, submethod_custom_5, submethod_is_cc, submethod_is_auto, submethod_desc, submethod_logo, submethod_active, submethod_use_currency) VALUES (6, 'Protx', 'protx', '', '', '', '', '', '', '', 1, 1, 'Accepts all major credit cards', '', 1, 'GBP');";
|
||||
|
||||
$INSERT[] ="INSERT INTO ibf_cal_calendars (cal_id, cal_title, cal_moderate, cal_position, cal_event_limit, cal_bday_limit, cal_rss_export, cal_rss_export_days, cal_rss_export_max, cal_rss_update, cal_rss_update_last, cal_rss_cache, cal_permissions) VALUES (1, 'Îñíîâíîé êàëåíäàðü', 1, 0, 2, 1, 1, 14, 20, 1440, <%time%>, '', 'a:3:{s:9:\"perm_read\";s:1:\"*\";s:9:\"perm_post\";s:3:\"4,3\";s:10:\"perm_nomod\";s:0:\"\";}');";
|
||||
$INSERT[] ="INSERT INTO ibf_cal_calendars (cal_id, cal_title, cal_moderate, cal_position, cal_event_limit, cal_bday_limit, cal_rss_export, cal_rss_export_days, cal_rss_export_max, cal_rss_update, cal_rss_update_last, cal_rss_cache, cal_permissions) VALUES (1, 'Community Calendar', 1, 0, 2, 1, 1, 14, 20, 1440, <%time%>, '', 'a:3:{s:9:\"perm_read\";s:1:\"*\";s:9:\"perm_post\";s:3:\"4,3\";s:10:\"perm_nomod\";s:0:\"\";}');";
|
||||
|
||||
$INSERT[] = "INSERT INTO ibf_upgrade_history (upgrade_version_id, upgrade_version_human, upgrade_date, upgrade_mid, upgrade_notes) VALUES ('".IPB_LONG_VERSION."', '".IPBVERSION."', '0', '0', '');";
|
||||
|
||||
|
||||
@@ -1,124 +1,107 @@
|
||||
<?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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+--------------------------------------------------------------------------
|
||||
|
|
||||
| > Script written by Matthew Mecham
|
||||
| > Date started: 12th August 2004
|
||||
| > MYSQL EXTRA CONFIG / INSTALL FILE
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
class install_extra
|
||||
{
|
||||
var $errors = array();
|
||||
var $info_extra = array();
|
||||
var $ipsclass = "";
|
||||
|
||||
function install_extra()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_create: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: CREATE TABLE
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_create( $query )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Tack on the end the chosen table type
|
||||
//-----------------------------------------
|
||||
|
||||
$table_type = $this->ipsclass->vars['mysql_tbl_type'];
|
||||
$codepage = $this->ipsclass->vars['mysql_codepage'];
|
||||
|
||||
return preg_replace( "#\);$#", ") TYPE=".$table_type." /*!40100 DEFAULT CHARACTER SET ".$codepage." */;", $query );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_index: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: INDEX
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_index( $query )
|
||||
{
|
||||
return $query;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_index: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: INSERT
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_insert( $query )
|
||||
{
|
||||
return $query;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// WHEN SHOWING THE FORM....
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function install_form_extra()
|
||||
{
|
||||
$extra = "<tr>
|
||||
<td class='title'><b>Êîäèðîâêà MySQL</b><div style='color:gray; font-weight:normal;'>Íå èçìåíÿéòå, åñëè íå óâåðåíû.</div></td>
|
||||
<td class='content'><input type='text' name='mysql_codepage' class='sql_form' value='cp1251'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'><b>Òèï MySQL òàáëèö</b><div style='color:gray; font-weight:normal;'>Íå èçìåíÿéòå, åñëè íå óâåðåíû.</div></td>
|
||||
<td class='content'><select name='mysql_tbl_type' class='sql_form'><option value='MyISAM'>MYISAM</option><option value='INNODB'>INNODB</option></select></td>
|
||||
</tr>";
|
||||
|
||||
return $extra;
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// WHEN SAVING TO CONF GLOBAL
|
||||
// Return errors in $errors[]
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function install_form_process()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// When processed, return all vars to save
|
||||
// in conf_global in the array $this->info_extra
|
||||
// This will also be saved into $INFO[] for
|
||||
// the installer
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $_REQUEST['mysql_tbl_type'] OR ! $_REQUEST['mysql_codepage'] )
|
||||
{
|
||||
$this->errors[] = 'Âû îáÿçàíû çàïîëíèòü âñþ èíôîðìàöèþ î SQL ñåðâåðå!';
|
||||
return;
|
||||
}
|
||||
|
||||
$this->info_extra['mysql_tbl_type'] = $_REQUEST['mysql_tbl_type'];
|
||||
$this->info_extra['mysql_codepage'] = $_REQUEST['mysql_codepage'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD INSTALLER v2.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
+--------------------------------------------------------------------------
|
||||
|
|
||||
| > Script written by Matthew Mecham
|
||||
| > Date started: 12th August 2004
|
||||
| > MYSQL EXTRA CONFIG / INSTALL FILE
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
class install_extra
|
||||
{
|
||||
var $errors = array();
|
||||
var $info_extra = array();
|
||||
var $ipsclass = "";
|
||||
|
||||
function install_extra()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_create: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: CREATE TABLE
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_create( $query )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Tack on the end the chosen table type
|
||||
//-----------------------------------------
|
||||
|
||||
$table_type = $this->ipsclass->vars['mysql_tbl_type'];
|
||||
|
||||
return preg_replace( "#\);$#", ") TYPE=".$table_type.";", $query );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_index: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: INDEX
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_index( $query )
|
||||
{
|
||||
return $query;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_index: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: INSERT
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_insert( $query )
|
||||
{
|
||||
return $query;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// WHEN SHOWING THE FORM....
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function install_form_extra()
|
||||
{
|
||||
$extra = "<tr>
|
||||
<td class='title'><b>MySQL Table Type</b><div style='color:gray'>Use MyISAM if unsure</div></td>
|
||||
<td class='content'><select name='mysql_tbl_type' class='sql_form'><option value='MyISAM'>MYISAM</option><option value='INNODB'>INNODB</option></td>
|
||||
</tr>";
|
||||
|
||||
return $extra;
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// WHEN SAVING TO CONF GLOBAL
|
||||
// Return errors in $errors[]
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function install_form_process()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// When processed, return all vars to save
|
||||
// in conf_global in the array $this->info_extra
|
||||
// This will also be saved into $INFO[] for
|
||||
// the installer
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $_REQUEST['mysql_tbl_type'] )
|
||||
{
|
||||
$this->errors[] = 'You must complete the required SQL section!';
|
||||
return;
|
||||
}
|
||||
|
||||
$this->info_extra['mysql_tbl_type'] = $_REQUEST['mysql_tbl_type'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
+1350
-1295
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user