Advertisement
Advertisement
| 01.17.2008 at 10:50PM PST, ID: 23092664 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: |
<?php
$hostname = "localhost";
$database = "eliteorg_carsok";
$username = "eliteorg_xadmin";
$password = "asdzxc8";
$ftp_server = "elite-motors.org";
$ftp_user_name = "eliteorg";
$ftp_user_pass = "wv=;+Dc563=Q";
$display_count_main = 10;
$site = "";
if (!($mysql = mysql_pconnect($hostname, $username, $password))) {
print "<br><br>error connecting to mySQL server!<br><br>\n";
exit();
}
if (!($select = mysql_select_db($database, $mysql))) {
print "<br><br>error selecting database!<br>\n";
exit();
}
$conn_id = ftp_connect($ftp_server); // set up basic connection
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass)
or die("<h2>You do not have access to this ftp server!</h2>");
if ((!$conn_id) || (!$login_result)) {
echo "FTP connection has failed! <br />";
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
exit;
}
$sql = "select company_name,company_email,address,phone,fax,metatag from ".$site."_admin";
$result = mysql_query($sql);
list ($webmaster_name,$webmaster_email,$webmaster_address,$webmaster_phone,$webmaster_fax,$webmaster_search) = mysql_fetch_row($result);
$sql = "select currency from ".$site."_currency";
$result = mysql_query($sql);
list ($default_currency) = mysql_fetch_row($result);
error_reporting(1);
#
foreach ($_GET as $key => $val) $$key=$val;
foreach ($_POST as $key => $val) $$key=$val;
foreach ($_SERVER as $key => $val) $$key=$val;
foreach ($_FILES as $key => $val) $$key=$val;
foreach ($_SESSION as $key => $val) $$key=$val;
foreach ($HTTP_SESSION_VARS as $key => $val) $$key=$val;
#
if ( strstr( $PHP_SELF,"admin/")) {
include_once "../language/english.php";
} else {
include_once "./language/english.php";
}
?>
|