SETUP ERROR

$error


PHP Live! Installation (PHP Live! © OSI Codes Inc.)
" ; } // do initial checks to make sure setup can run if ( !is_dir( session_save_path() ) ) { print_error( "'session.save_path' directory not set! Please set your session.save_path in your php.ini file (it is usally set to /tmp for UNIX, C:\Temp for windows). Restart your webserver. After you have done this, reload this page and try again." ) ; exit ; } if ( file_exists( "../web" ) ) { if ( !is_writable( "../web" ) ) { print_error( "Please give the 'web' directory READ/WRITE permission by the browser. (chmod o+rw web). The 'web' directory is located in your root PHP Live! install location. After you have done this, reload this page and try again." ) ; exit ; } else { if ( is_dir( "../web/chatsessions" ) != true ) mkdir( "../web/chatsessions", 0777 ) ; if ( is_dir( "../web/chatrequests" ) != true ) mkdir( "../web/chatrequests", 0777 ) ; if ( is_dir( "../web/chatpolling" ) != true ) mkdir( "../web/chatpolling", 0777 ) ; if ( !file_exists( "../web/chatsessions" ) ) { print_error( "Setup was unable to create the needed directories. Please check your php.ini to make sure the mkdir() function is not disabled or make sure that a web/ directory exists inside your phplive/ directory. After you have done this, reload this page and try again." ) ; exit ; } } } else { print_error( "Please create a 'web' directory in your root PHP Live! install location. Make it READ/WRITE permission by the browser. (chmod o+rw web). After you have done this, reload this page and try again." ) ; exit ; } // // connect to DB and check to see if any users exist - show error if need above // srand((double)microtime()); $rand = mt_rand(0,1000) ; // functions function checkVersion( $version ) { if ( phpversion() >= $version ) return true ; return false ; } function dump_db( $db_name, $db_host, $db_login, $db_password ) { $mysql_error = "" ; $connection = mysql_pconnect( $db_host, $db_login, $db_password ) ; if ( !mysql_select_db( $db_name ) ) return "

Error: Could not locate database[ $db_name ]

" ; $fp = fopen ("../super/phplive.txt", "r") ; while (!feof ($fp)) { $query = "" ; $error = "" ; $buffer = fgets($fp, 1000); if ( preg_match( "/(DROP TABLE)/", $buffer ) ) { $query = substr( $buffer, 0, strlen( $buffer ) - 2 ) ; $query = stripslashes( $query ) ; $result = mysql_query( $query, $connection ) ; $mysql_error .= mysql_error() ; } if ( preg_match( "/(CREATE TABLE)/", $buffer ) ) { $query .= $buffer ; if ( !preg_match( "/\) ENGINE=MyISAM DEFAULT CHARSET=utf8/", $buffer ) ) { while ( $buffer = fgets( $fp, 500 ) ) { if ( preg_match( "/\) ENGINE=MyISAM DEFAULT CHARSET=utf8/", $buffer ) ){ break 1 ; } $query .= $buffer ; } if ( !preg_match( "/\) ENGINE=MyISAM DEFAULT CHARSET=utf8/", $query ) ) $query = "$query);" ; } $query = stripslashes( $query ) ; $result = mysql_query( $query, $connection ) ; $mysql_error .= mysql_error() ; } if ( preg_match( "/(INSERT INTO)/", $buffer ) ) { $query = substr( $buffer, 0, strlen( $buffer ) - 2 ) ; $query = stripslashes( $query ) ; $result = mysql_query( $query, $connection ) ; $mysql_error .= mysql_error() ; } } fclose( $fp ) ; mysql_close( $connection ) ; if ( $mysql_error ) $error = "

Error: Following database error(s) were generated:
$mysql_error

Verifying your MySQL Information Help

" ; return $error ; } // initialize and get vars $action = $override = "" ; if ( isset( $_POST['action'] ) ) { $action = $_POST['action'] ; } if ( isset( $_POST['override'] ) ) { $override = $_POST['override'] ; } // conditions if ( $action == "update db" ) { $db_host = $_POST['db_host'] ; $db_login = $_POST['db_login'] ; $db_password = $_POST['db_password'] ; $db_name = $_POST['db_name'] ; $connection = mysql_connect( $db_host, $db_login, $db_password ) ; mysql_select_db( $db_name ) ; $sth = mysql_query( "SHOW TABLES", $connection ) ; $error = mysql_error() ; if ( $error ) { $action = "update company" ; $error = "

Error: Database produced the following error(s). Please correct and submit.
-- $error --

Verifying your MySQL Information Help Docs

" ; } else { $error = dump_db( $db_name, $db_host, $db_login, $db_password ) ; if ( !$error ) { if ( !$error ) { $document_root = stripslashes( $_POST['document_root'] ) ; $site_name = addslashes( $_POST['site_name'] ) ; $conf_string = "0LEFT_ARROW0?php \$ASP_KEY = '' ; \$NO_PCONNECT = '$_POST[no_pconnect]' ; \$DATABASETYPE = '$_POST[db_type]' ; \$DATABASE = '$db_name' ; \$SQLHOST = '$db_host' ; \$SQLLOGIN = '$db_login' ; \$SQLPASS = '$db_password' ; \$DOCUMENT_ROOT = '$_POST[document_root]' ; \$BASE_URL = '$_POST[base_url]' ; \$SITE_NAME = '$site_name' ; \$LOGO_ASP = 'phplive_logo.gif' ; \$LANG_PACK = '$_POST[language]' ;?0RIGHT_ARROW0" ; // create and put configuration data $conf_string = preg_replace( "/0LEFT_ARROW0/", "<", $conf_string ) ; $conf_string = preg_replace( "/0RIGHT_ARROW0/", ">", $conf_string ) ; $fp = fopen ("../web/conf-init.php", "wb+") ; fwrite( $fp, $conf_string, strlen( $conf_string ) ) ; fclose( $fp ) ; if ( ( is_dir( "../web/$_POST[login]" ) != true ) && isset( $_POST['login'] ) ) mkdir( "../web/$_POST[login]", 0777 ) ; if ( file_exists( "../admin/traffic/admin_puller.php" ) ) $initiate = 1 ; else $initiate = 0 ; $COMPANY_NAME = addslashes( $_POST['company'] ) ; $conf_string = "0LEFT_ARROW0?php \$LOGO = '' ; \$COMPANY_NAME = '$COMPANY_NAME' ; \$SUPPORT_LOGO_ONLINE = 'phplive_support_online.gif' ; \$SUPPORT_LOGO_OFFLINE = 'phplive_support_offline.gif' ; \$SUPPORT_LOGO_AWAY = '' ; \$VISITOR_FOOTPRINT = '1' ; \$THEME = 'default' ; \$POLL_TIME = '45' ; \$INITIATE = '$initiate' ; \$INITIATE_IMAGE = '' ; \$IPNOTRACK = '' ; \$LANG_PACK = '$_POST[language]'; ?0RIGHT_ARROW0" ; $conf_string = preg_replace( "/0LEFT_ARROW0/", "<", $conf_string ) ; $conf_string = preg_replace( "/0RIGHT_ARROW0/", ">", $conf_string ) ; $fp = fopen ("../web/$_POST[login]/$_POST[login]-conf-init.php", "wb+") ; fwrite( $fp, $conf_string, strlen( $conf_string ) ) ; fclose( $fp ) ; // let's create an index file for the user so // the path is more nice... // (/phplive// instead of /phplive/index.php?l=) $index_string = "0LEFT_ARROW0?php \$path = explode( \"/\", \$_SERVER['PHP_SELF'] ) ; \$total = count( \$path ) ; \$login = \$path[\$total-2] ; \$winapp = isset( \$_GET['winapp'] ) ? \$_GET['winapp'] : \"\" ; HEADER( \"location: ../../index.php?l=\$login&winapp=\$winapp\" ) ; exit ; ?0RIGHT_ARROW0" ; $index_string = preg_replace( "/0LEFT_ARROW0/", "<", $index_string ) ; $index_string = preg_replace( "/0RIGHT_ARROW0/", ">", $index_string ) ; $fp = fopen ("../web/$_POST[login]/index.php", "wb+") ; fwrite( $fp, $index_string, strlen( $index_string ) ) ; fclose( $fp ) ; // now let's create an index.php page in the web/ directory for // extra security $index_string = " " ; $fp = fopen ("../web/index.php", "wb+") ; fwrite( $fp, $index_string, strlen( $index_string ) ) ; fclose( $fp ) ; /*********** insert new data ***************/ $now = time() ; $connection = mysql_connect( $db_host, $db_login, $db_password ) ; mysql_select_db( $db_name ) ; $trans_email = "Hello %%username%%, Below is the complete transcript of your chat session: === %%transcript%% === Thank you " ; $query = "INSERT INTO chat_asp VALUES (0, '$_POST[login]', '$_POST[password]', '$_POST[company]', '$_POST[contact_name]', '$_POST[contact_email]', '15', '100', '1', '$now', 0, 1, 1, 0, 0, '(optional) If you would like to receive a copy of this chat session transcript, please input your email address below and Submit.', '$trans_email')" ; mysql_query( $query, $connection ) ; /********************************************/ // create and put version file $version_string = "0LEFT_ARROW0?php \$PHPLIVE_VERSION = \"$PHPLIVE_VERSION\" ; ?0RIGHT_ARROW0" ; $version_string = preg_replace( "/0LEFT_ARROW0/", "<", $version_string ) ; $version_string = preg_replace( "/0RIGHT_ARROW0/", ">", $version_string ) ; $fp = fopen ("../web/VERSION_KEEP.php", "wb+") ; fwrite( $fp, $version_string, strlen( $version_string ) ) ; fclose( $fp ) ; $url = $_POST['base_url'] ; $os = $_SERVER['SERVER_SOFTWARE'] ; $os = urlencode( $os ) ; $fp = fopen ("http://www.osicodes.com/stats/patch.php?v=$PHPLIVE_VERSION&url=$url&os=$os&users=INSTALL&ops=0", "r") ; fclose( $fp ) ; copy( "../files/nodelete.php", "../web/$_POST[login]/nodelete.php" ) ; HEADER( "location: ../super" ) ; exit ; } } else { $action = "update company" ; $error = "

Error: Database produced the following error(s). Please correct and submit.
-- $error --

Verifying your MySQL Information Help Docs

" ; } } } else if ( $action == "update document root" ) { $document_root = $_POST['document_root'] ; $str_len = strlen( $document_root ) ; $last = $document_root[$str_len-1] ; if ( ( $last == "/" ) || ( $last == "\\" ) ) $document_root = substr( $document_root, 0, $str_len - 1 ) ; if ( !file_exists( "$document_root/super/phplive.txt" ) ) { $action = "update site name" ; $temp_root = stripslashes( $document_root ) ; $error = "Error: $temp_root - This is NOT the correct unpacked path of PHP Live!. Please correct and submit." ; } } else if ( $action == "update base url" ) { $document_root = $_POST['document_root'] ; $base_url = $_POST['base_url'] ; $str_len = strlen( $base_url ) ; $last = $base_url[$str_len-1] ; if ( ( $last == "/" ) || ( $last == "\\" ) ) $base_url = substr( $base_url, 0, $str_len - 1 ) ; if ( !fopen( "$base_url/docs/ChangeLog.txt", "r") ) { $action = "update document root" ; $error = "Error: $base_url - This is NOT the correct unpacked path of PHP Live!. Please correct and submit." ; } if ( !fopen( "$base_url/super/phplive.txt", "r") && !$error ) { $action = "update document root" ; $error = "Error: $base_url - During installation, please remove the HTTP password protection to your super/ area OR make sure the fopen() function is enabled in your php.ini file (requires webserver restart after update). Please correct and submit." ; } } else { if ( !checkVersion( "4.0.6" ) && !$override ) { print "Your current PHP version ".phpversion()." is not compatible with PHP Live! Support v".$PHPLIVE_VERSION.". Please upgrade your PHP to 4.0.6 or greater. We recommend you install the latest PHP version from PHP.net. Please contact your server admin to upgrade your current PHP build." ; exit ; } } ?>

Set your Base URL.
This is the complete URL path of the PHP Live! system.

Example:
http://phplive.mycompany.com
http://www.mycompany.com/phplive

Base URL
_ Your Company Information.

Please provide your default company profile information.
(do not include single quote (') in your company name!)

Company
Setup Login Password
Contact Name Contact Email
 
Configure Database.

Before you proceed, create an empty database for your PHP Live! system. After you have done so, provide the database information below. (NOTE: Don't forget to restart or reload your MySQL so the new access level for this user is set.)

Database Type
DB Name
DB Host is usually set to localhost.
DB Host
DB Login
DB Password
Set your Document Root.
This is the complete installed path (unpacked dir) of PHP Live!.

Example:
UNIX: /home/user/phplive
Windows: C:\Apache\htdocs\phplive

Document Root
Your Site Name.
Site Name
Language
 

Powered by PHP Live! © OSI Codes Inc
Find and buy toyota park.Official site of the 2009 Jeep wrangler.Visit Subaru of America for reviews, pricing and photos of impreza.2006 Nissan 350Z highlights from Consumer Guide Automotive. Learn about the 2006 nissan 350z.Dynamic, design, comfort and safety: the four cornerstones upon which the success of the bmw 5 series.Find and buy toyota center kennewick.Contact: View company contact information fo protege.What does this mean for legacy.The website of American suzuki motorcycle.The site for all new 2009 chevy.Use the Organic natural food stores.Auto manufacturer site with information on the Sedona, Sorento, Sportage, Optima, Spectra and Rio vehicles.kia.Get more online information on hyundai getz.Find and buy used nissan 350z.Kia cars, commercial vehicles, dealers, news and history in Australia. kia com.Site for Ford's cars and minivans, trucks, and SUVs. Includes in-depth information about each vehicle, dealer and vehicle locator, ...fords dealers.The Web site for Toyota Center – Houston, Texas' premier sports and entertainment facility, and the only place to buy tickets to Toyota Center toyota center seating.Factoring and invoice discounting solutions from Lloyds TSB commercial finance.Read Fodor's reviews to find the best travel destinations, hotels and restaurants. Plan your trip online with Fodor's.travel guide.Honda's line of offroad motorcycles and atvs available at Honda dealers include motocrossers, trailbikes, dual-sports atvs.Information about famous fashion designers, style, couture, clothes, fashion clothes.Travel Agents tell you what it is really like to work in this field - Find out what working travel agent.Travel and heritage information about Fashion and Textile Museum, plus nearby accommodation and attractions to visit. Part of the Greater London Travel fashion.Get buying advice on the Mazda rx8ls dreams kds hair growth oklahoma city newsline 9 sexual desire pre cooked smoked ham warming recipe of teenagers and rl stevens in tampa fl couldnt take miracles happen mp3 download can pass from ana btra urban districts medicinal uses of makahiya plant went back petra verkiak wrights gallery wet slit rolling stones i m yours she s mine wide variety virginia dalbeck photos vehicles like lingam massage london United States samsung hue hack gps website links jungle juice alcohol recipe wont tell tiker bell little bit food recipes in the dominican republic credit card craigs list lodi california remain intact beth carson interior decorator wyomissing pa local authorities fiber optic poinsettias the writer's name allergic reaction to eating honey In their miss muffin germantown tn Brazilian Jiu r57shell off to be absent cherry wink cookie recipe multiple listing echhi gallery and in Alban Berg's history of the lorena bobbit story college degree rev ge patterson making love kingdom of callaway estates williamsburg missouri official language truckchaser successful webmaster myspace drilling rigs layouts crude oil omar mcnary look like njrotc units sat back panamanian drink recipes social networking carpentry schools in toronto auto finance rivalda tile Broadway tickets marks and spencer simply food nasal problem hp pavilion iq 770 presiding officer bas ekspress sani change and as the most photo of woman s vagina Australia Section puerto rico imagen llanos costaneros coconut oil colleen lopez sexy legs toy breed definition of model minority ice hockey aq courses western university new baby nick barborak Australia working mediterran house plans such as Gustav rex chandler gallery in post compositions recipe for skor bars study abroad sammy case hurting jay steam vehicles importance of moisture content in food Yung Joc hp pavilion processor upgrade foodborne diseases piggybook lesson plans computer programming chinese curry vegetable recipe related technologies ms3108 connectors electric vehicles omasex bbs video games goodhouskeeping recipes their diseases and treatment recipe nandos spicy rice corporate culture gary james pokorney junior college sandra dee semi homemade cooking decide which clark field pampanga map pet foods winzipp long distance jackie danforth horizons maine walthers little harder jennyfer newton high blood stallard js 9mm broad prepare sweda food dehydrator pressed against shaw dct 6200 high definition cable box new apartment gluck handguns high technology paula deen recipe mountain dew cake Intelligent Urbanism walis tambo philippine products online blood glucose micheal kor handbags China India mini cobra florida of the seeds of death fucking teenagers new iPod