Fixed : Installer
This commit is contained in:
parent
c1e6530cfd
commit
5ebbf8d60a
6 changed files with 16 additions and 5248 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -3,14 +3,14 @@
|
||||||
-- http://www.phpmyadmin.net
|
-- http://www.phpmyadmin.net
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- Host: localhost
|
||||||
-- Generation Time: Mar 03, 2010 at 03:01 PM
|
-- Generation Time: Mar 23, 2010 at 03:01 PM
|
||||||
-- Server version: 5.1.36
|
-- Server version: 5.1.36
|
||||||
-- PHP Version: 5.3.0
|
-- PHP Version: 5.3.0
|
||||||
|
|
||||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Database: `ClipBucket Clean`
|
-- Database: `ClipBucket 2.0.6`
|
||||||
--
|
--
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -166,6 +166,20 @@ switch($step)
|
||||||
$db->update($prefix."config",array("value"),array(VERSION)," name='version'");
|
$db->update($prefix."config",array("value"),array(VERSION)," name='version'");
|
||||||
$db->update($prefix."config",array("value"),array(STATE)," name='type'");
|
$db->update($prefix."config",array("value"),array(STATE)," name='type'");
|
||||||
|
|
||||||
|
$sess_key = $this->create_session_key($_COOKIE['PHPSESSID'],'admin');
|
||||||
|
$sess_code = $this->create_session_code();
|
||||||
|
|
||||||
|
$query_field[] = "doj";
|
||||||
|
$query_val[] = now();
|
||||||
|
|
||||||
|
$query_field[] = "user_session_key";
|
||||||
|
$query_val[] = $sess_key;
|
||||||
|
|
||||||
|
$query_field[] = "user_session_code";
|
||||||
|
$query_val[] = $sess_code;
|
||||||
|
|
||||||
|
$db->update($prefix."users",$query_field,$query_val," username='admin' ");
|
||||||
|
|
||||||
copy("install.loc",SCRIPT_DIR.'/files/install.loc');
|
copy("install.loc",SCRIPT_DIR.'/files/install.loc');
|
||||||
copy("clipbucket.php",SCRIPT_DIR."/includes/clipbucket.php");
|
copy("clipbucket.php",SCRIPT_DIR."/includes/clipbucket.php");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue