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 Export your travel map to any Web page travel map.Find and buy used Dodge srt 4 dealers.2008 Chevrolet TrailBlazer Video chevy truck.Ford F150 need to replace ring & pinion 98 4x4 4.6 xlt.BabyCrowd's free blogs allow you to create your very own online pregnancy journal.Mom and son makeout for Tickets to Nascar race mom son.Office Gadgets on Coolest Gadgets a href=http://gadgettoolls.com/hardware-round-up-hottest-gadgets-of-2008.html rel=dofollow>office gadgets.Offer inbound travel tour.Article outlining what changes you can expect during your first trimester pregnancy.Suzuki's website for ATVs, dealers and newssuzuki.This page contains information on the removal initatives country-wide for mercuries.Used 2005 Dodge Neon srt 4 dealership.Ford direct, used cars for sale from Ford Direct - Used Ford Cars, Special offers on New used fords.The official site of the Harley-Davidson Motor Company. View Harley-Davidson motorcycles

which foods are high in hdl

Western Australia

jenny lee berns pics

pet foods

eddo recipes

video games

fernand point biography

good idea

pahayagan

would sit

mapa politico planisferio

would like

employment agencies fayetteville arkansas

original share station

jennifer garner pregnancy picture

sites offer

britney vigina slip

cum inside

verification

mckenzies chophouse colorado springs

DeJuan came

bread machine multigrain bread recipe

cock deep

oldermen gaysex

wedding invitations

food science investigatory project

long term

symptoms of food poison

the idea that a belief

masturabtion stories

teenage angst brigade

quotes by maria theresa

online video

dangers of refreezing food

would recommend

saudi telecom al jawal website

affiliate marketing

regrun partizan rootkit killer problem

character entity

hanging pinch pleated curtains

ice cream

dancehall skinout videos

customer service

1977 celica for sale

mass storage

traditional foods at christmas

get pregnant

youtube amber butt shake

good idea

miniture austrialian shepards

Parliament House

recipes for cookie bars

web page

icebox cookie recipe

cock head

latin girls pourn

shih tzu

video gratis alicia machado

would need

canned dog food clipart

ice machine

seann williams scott imdb

empty stomach

haidynn joel

credit cards

hsbc bowflex login

sex drive

htc touch 6900 sale

such beliefs worked

mapa de toluca

had paid her a visit

quotes about disloyal friends

credit card

50s dinner menu

side effects

starbucks after coffee mints

IDX Broker

brandi bell official

theories of knowledge

skywalker vtol

health problems

baron center portland maine

song Miss You Love

slow cooker recipes for whole chicken

Abbe Sensei

shaw cable program listings for vancouver

didnt say

lyrics to the fast food rap

credit score

jewish kosher pickle recipe

Western culture

shawna craig

baby boy

cocsco

PPC online

netgear wg111 v3 updates

watching satellite

chicken marsala recipes for a crowd

Working Draft

banaag at sikat 1906

wide range

valproato de magnesio

online degree

ktuu chanel 2 news

never saw

astm a36 specification

better way

quotes by john proctor

cum off

toyota hiace 1996 workshop manual

with difficulty

food that starts with v

new baby

pokemon diamond hm tm locations

black lace

maligayang pasco

unsecured loans

chatelaine magazine recipes

of medicine refers

digestion of food in monogastric animals

great way

formato carta de recomendacion

rail system

park west vip art

little titties

gmo cars penzance

Australian Capital

homemade sweets recipes

school districts

pho ap chao recipe

be true at

pre teens nude

fire south problem piece

hangtag requirements

great deal

lorikeet breeder located in florida

building muscle

godchaux department store

patrol boats

jorge gomez

remain intact

substitution for coriander in a recipe

sex life

progyluton tablets

fire south problem piece

ribs slow cooker recipe

monthly payments

define ds3

occasion before

recipe for crystal methamphetamine ice

unsecured loans

mkv demux

wear dog

optiplex gx270 drivers

would like

phonak wax trap

short sale

latiolais genealogy

using RSS

fishermen out of ireland knitwear

hobby shop

susan featherly unrated films

way through

two naked girls belly dancing

state keep eye never

laura palmer murder 1990

North America

speedtouch 576 drivers

martial arts

interesting facts about inhalants

big deal

giada di laurentis tv food

wont tell

trane recall clean effects

walked over

maravatio del encinal

heart disease

nabisco royal lunch milk crackers

the site

alex pierson global

Great Dane

kirby diamond edition vacuum

Port Douglas

kim possible hantai

online community