Version 2.1.7
This commit is contained in:
1 parent
0eecc172d9
commit
f73f8bff6d
941 files changed
+215301
-103093
No files matched your search
@@ -2,13 +2,24 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD INSTALLER v2.0
|
||||
| Invision Power Board 2.1.7
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| 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
|
||||
@@ -21,28 +32,61 @@ 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='pformleftw'><b>Test Var 1 (Test Var)</b></td>
|
||||
<td class='pformright'><input type='text' id='textinput' name='some_test_var' value=''></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='pformleftw'><b>Test Var 2 (Other Test)</b></td>
|
||||
<td class='pformright'><input type='text' id='textinput' name='some_other_test' value=''></td>
|
||||
$extra = "<tr>
|
||||
<td class='pformleftw'><b>Òèï òàáëèö MySQL</b><div style='color:gray'>Îáû÷íî ýòî MyISAM. Åñëè âû âûáåðèòå INNODB, âû íå ñìîæåòå èñïîëüçîâàòü ïîëíîòåêñòîâûé ïîèñê</div></td>
|
||||
<td class='pformright'><select name='mysql_tbl_type'><option value='MyISAM'>MYISAM</option><option value='INNODB'>INNODB</option></td>
|
||||
</tr>";
|
||||
|
||||
return $extra;*/
|
||||
return $extra;
|
||||
|
||||
}
|
||||
|
||||
@@ -60,14 +104,13 @@ class install_extra
|
||||
// the installer
|
||||
//-----------------------------------------
|
||||
|
||||
/*if ( ! $_REQUEST['some_test_var'] )
|
||||
if ( ! $_REQUEST['mysql_tbl_type'] )
|
||||
{
|
||||
$this->errors[] = 'You must complete the required SQL section!';
|
||||
$this->errors[] = 'Âû îáÿçàíû çàïîëíèòü âñþ SQL èíôîðìàöèþ!';
|
||||
return;
|
||||
}
|
||||
|
||||
$this->info_extra['some_test_var'] = $_REQUEST['some_test_var'];
|
||||
$this->info_extra['some_other_test'] = $_REQUEST['some_other_test'];*/
|
||||
$this->info_extra['mysql_tbl_type'] = $_REQUEST['mysql_tbl_type'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user