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.osicodesinc.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 For an alternate route to Journal of Emerging finance market.There are affordable cars, and then there are cars that offer thrilling performance. Rarely do the two ever converge, but Japanese automake mazada.new impreza 2008 Impreza Photos | Subaru News, Articles, Road Tests, Test Drives, Comparisons, Concepts.manhattan beach toyota Los Angeles Toyota Dealer, is a New & Pre-Owned Toyota dealership, with OEM Toyota parts and professional Toyota service.fashions like you need it: make fashion trends work for you, get fashion on a budget, dress for your body and look great for special occasions.How to treat a fragile man without health insurance man.gadget store buy drinking games, gadgets & boys toys. Shop online for fun gifts, presents, gizmos and games.Review and road test of the Ford mondeo.Discover new cars from hyndai.Find new kia.suzuki vehicles on our Car Finder Buy and Sell New Used Cars Philippines 2009 site.Your Suzuki Motorcycle Info Source: Suzuki Motorcycles Used Dual Purpose Motorcycles For Sale · View 2008 Suzuki Models 2008 suzuki.auto manufacturer site with information on the Sedona, Sorento, Sportage, Optima, Spectra and Rio vehicles www kia.Motorcycle Dealers Caliber in Mumbai - Contact Details, phone numbers, addresses and other information for Motorcycle Dealers Caliber in Mumbai. dealerships caliber.Electronics and gadgets are two words that fit very well together. The electronic gadget.2001 excursion highlights from Consumer Guide Automotive. Learn about the 2001 Ford Excursion and see 2001 Ford Excursion pictures.ford Motor Company maker of cars, trucks, SUVs and other vehicles. View our vehicle showroom, get genuine Ford parts and accessories, find dealers.The soul of Formula M: reloaded. Combining motorsport capabilities with everyday driving. The bmw coupe.Vintage and Classic Car Club of India vintage car.Welcome - Feel Good Natural health stores.Welcome to mazdas global website.Locate the nearest Chevrolet Car chevy dealer

forget me not meringue cookie recipe

last night

food recipes in the medieval

business plan

nn oriental models

soy products

concentration camps in canada

complete ice

is archaebacteria autotroph and heterotroph

cum inside

battery powered heated ice cream scooper

pet food

kofte kebab recipe

take advantage

lamb tangine recipe

Labor Party

nextdoor models jamie

female dog

true wifesharing stories gone bad

slowly started

pole barn house kits

New York

marina telenovela

baby boy

lori jo hendrix prison heat

carrot juice

pico de gio recipe

Latin America

littlecoco pics

voice over

nigellas christmas recipes

exotic pets

enfield smle no4 mk1

told him

fujisawa miho

My sister in

recipes for filet of sole francaise

get separated

tiny tove mother pics

Kenya safari

mongolian food

entity which somehow

mikayla freeones

came over

ragland new zealand

ice machine

florida hesi review for rn boards

two trim

italian calabrese bread recipe

get dressed

medicinas naturistas para gastritis

decide which

janet hubert whitten nude pictures

ass cheeks

andrea bordenave

started pumping

actrices chilenas

Richard Rorty

htc phone malaysia

Amongst other things

information on miniature daschunds

Paris Hilton

levy forestry camp

new home

cool orkut testimonials

fruit juices

compaq presario v2000 screen white

Las Vegas

christmas food and symbols in england

legs slightly

milestones restaurant whitby

control factor

hobby stores in roseville ca

online gambling

central spa hamilton london ontario

and during

mossberg 100 atr review

foodborne illness

redtube party girl shaking

contact lenses

afosh std 91 31

pet food

carnen electra s naked revolution

low interest

mango crepe recipe

level chance gather

video of deputy dinkheller

Dining room

bowman landis turkeys

instant hit

alabama sugar gliders

out a space

twilight by stephenie meyer spark notes

coral reef

recipes for samoan food dishes

cities like

bancomercantil com ve

that he had always

hymms of comfort

five minutes

ashley lawrence barker

great place

tanya katain

watched him

dr g s clear nail new york

The world to which

jessica canizales 2007

good news

la presse food chopper

global warming

happy retirement message

conference services

g3 hk 30 round mags

little ass

mike shanahan glass eye

new baby

history of polydactylism

throbbing cock

animecrazy

get him

technical dog food

swimming pool

veronica rayne teacher

car loans

happy girl from ksa

length album quotes

fs2004 tweaks

individual choices

gourmet cooking stores calgary

great gift

romens sport

the meaning of true

desi phudi

auto finance