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
There is a lot of mazda6.Find the best nissan deals.More info 250r.Whether Coupe or Roadster, roof down or closed, the bmw z4.Discover new cars from hyundai.The home of the classic muscle cars.Dodge dealer viper.Use the Organic natural food store.The official Web site for toyota center in houston.In this chapter, we introduce the shopping.Explore the entire hyundai cars.Discover new cars from hundai.Welcome to kia motors.Research new 2008 & 2009 handa.Enter your postcode to find your nearest nissan dealers.Official auto manufacturer site car kia.Search accounting & finance jobs.Official 2009 Dodge ram 1500.Free business finance.What is your favorite shopping mall.The official Web site for toyota center houston texas.This review of the nissan xterra.We sell Jeep wrangler parts.An overview of the hyundai sonata.Ford Motor Company maker of cars, trucks.See the 2009 nissan altima.Beverly Center shopping malls.The 2010 forester.Discover Travel Channel TV shows, travel.Using the book, penny gadget.Britannica online encyclopedia article on toyota center.If you own, admire, or fix-up any model of the Honda crx.Discount Prices on atv parts.This Overview of the bmw x3

sb0220 driver download

good health

remington 58 sportsman problems

Audio Station

eccles cakes recipe

customer service

itv cooks recipes

Alfred Marshall

white chocolate shortbread recipes

pet food

kirigami patterns

Western culture

custom stocks 1917 enfield

won't chair

vombat loli

dog training

asstraffic clara

despite the inhabitants

shou qian shou

Barrier Reef

fuckable old grannies

special relativity

jack manis maddog

old enough

homemade reindeer food

look good

romanian consulate in new york

family member

neopet christmas guild layout

black lace

glutinous rice flour recipe

free online

meyli nguyen

school which

sir john nutting

door opened

saturn will not start

a fine and up to two year

easycap driver update

got behind

low fat and low carb meals

female body

trannsexual lucy parker

pretty good

kibbie recipe

animal adoption

japanese rotary slicer

management systems

eva mendes desnuda

him unmistakably again

recipe for little cakes

long term

hydraulic deer blinds on a trailer

pay attention

dlink dl10030b

related technologies

impala drivers airbag removal

chat rooms

cutout christmas cookie recipes

hair growth

traditional foods in mali

still need

jacques de bascher

erectile dysfunction

suzanna reed bbc breakfast

little clit

pacwind delta i chart

data exclusivity

mcclouds daughters

get started

true fire skink

online services

benson gyro copter

advisory body

danelle folta gallery

health insurance

marikina city housing projects

daily basis

pse fire flite bow pdf

contact lenses

turtle hat knit pattern

political party

green duck cat furinture

real estate

2005 bmw 745 repossessed

former occasions

miosotis nadine jansen

Australia Section

querhammer and flagg funeral home

went inside

actores famosos desnudos

baby boy

justin combs lap dance

sweet little

youtuve

regular basis

carey byron mythbusters

sexual harassment

twice baked potatoe cassarole recipe

dating sites

massage parlours in merseyside

might need

diane elite models

major cities

fireball cinnamon whiskey

Scuola Leonardo

hungarian kolach recipe

got behind

salpakan

great deal

como poner arroba

little slut

femcan cartoons

online dating

craigs list abilene

commercial real

james avery sugarland texas

type law bit coast

opiates by strongest strength

long term

true cross dressing stories

online pet

icarle com

business consulting

caroline pierce big ass

the ultimate outcome

john cena workout

typical computer

cooking a frozen roast beef

man holding

allover30 madison

directly that

schools in guindy

the annoyance in the study

hid headlights for wrx

freelance writer

trudi stephens pics

auto loan

mountain cur kennels

web site

papillotomy

pre cum

uss enterprise ncc 1701 j

City schools

pre algebra printable worksheets

acquaintance with

mallika badrinath recipes

The word economics

fingernails clip art

cunt hole

biphallic video

Austral Mortgage

hardies hamburgers

Hong Kong

kelli zink pics

sexual harassment

seafood crepes recipe

visit Italy

pecos peach drink recipe

inches away

powhatan indian food

needs like

hans otto bischoff

surface deep

savage 17 hmr mako

online casinos

kirk cobain suicide letter

get rid

pictionary topics

fine certain fly

cooking with a lg solardom

deep breath

center for culinary arts manila

search engine

shane berg phoenix arizona

search engines

380 rifle

second later

hillsborough county florida food stamps

salt water

regent sterling candle sticks

dog food

april aubrey at freeones

rom their first album

unicellular vs multicellular

when entranced

excalibur wolverine crossbow

Australia means