Visualizza messaggio singolo
  #1 (permalink)  
Vecchio 23-03-2004, 23.33.49
gianls gianls non è connesso
Member
 
Data registrazione: 10-07-2003
Residenza: Borgomasino
Messaggi: 30
gianls is on a distinguished road
Predefinito problemi ci settaggi al sito

Buongiorno, ho sottoscritto l'abbonamento all'advanced plan per il sito www.autostorecenter.it ho caricato tutti i file del sito che funziona molto bene in locale (utilizzo easy-php) sul server e mi trovo errori di ogni tipo, sicuramente ci? ? dovuto al settaggio sbagliato di alcuni percorsi, vi presento il file common.php che contiene i principali settaggi del sito, vi sarei grato se mi diceste cosa devo cambiare...

<?php
///////////////////////////////////////////////////
// common include file
// you will have to set your preferences below...
// please be careful with this file -- make a backup if you're at all worried
// about screwing stuff up.

$config = array();
global $config;


///////////////////////////////////////////////////
// SITE INFORMATION
// make sure this info is accurate
$config['version'] = ''; //Do Not Modify
// Your site's web address (don't forget the http://) - leave off the trailing slash
$config['baseurl'] = 'http://localhost/autostorecenter';
// The actual location of openlistings on the machine -- leave off the trailing slash
// Windows users need to use double slashes eg. c:\\www\\open-realty
$config['basepath'] = 'C:\\Programmi\\EasyPHP\\www\\autostorecenter';
$config['admin_name'] = 'gianls'; // Your name -- all email will come from this name
$config['admin_email'] = 'gianls@libero.it'; // all email which is sent from the site will come from this address
$config['site_title'] = 'Autostorecenter '.$config['version']; // Site title
$config['company_name'] = 'Autostorecenter'; // Company Name used on Legal Page.
$config['company_location'] = 'Autostorecenter'; // Company Location for header. E.g. "of Susquehanna County, Pennsylvania"
$config['company_logo'] = '/images/title.jpg'; //Location of company logo.

///////////////////////////////////////////////////
// DATABASE TYPE
// default is mysql -- make sure you edit this file
// to make sure DB settings are correct!
global $db_type;
$db_type = 'mysql';
// possible choices are: access, ado, db2, ado_access, vfp, fbsql, ibase
// firebird, borland_ibase, informix, mssql, mysql, mysqlt, maxsql, oci8
// oci8po, odbc, oracle, postgres, postgres7, sqlanywhere, sybase

$db_user = 'root'; //database user
$db_password = ''; //database password
$db_database = 'openrealty'; //database definition file
$db_server = 'localhost'; //database server -- usually localhost, but one never knows

// The following is needed only if you are going to use the builtin mysql backup untility.
// Not required for most functions in the backup utility.
$phpmyadmin = 'http://127.0.0.1/mysql/index.php'; // Path to phpMyAdmin
// The following needs to me set to no if your server does not allow you to create indexes.
$config['manage_index_permissions'] = 'Yes';
///////////////////////////////////////////////////
// Table Prefix
// this allows multiple sites to use the same database, change the value below to a unique
// value for every site. Leave it as is for single site installs.

$config['table_prefix'] = "default_";

///////////////////////////////////////////////////
// TEMPLATE DATA
//$config[template_path] = $config[basepath].'/template/generic'; // leave off the trailing slashes
//$config[template_url] = $config[baseurl].'/template/generic'; // leave off the trailing slashes
$config['template_path'] = $config['basepath'].'/template/bluebevel_mod'; // leave off the trailing slashes
$config['template_url'] = $config['baseurl'].'/template/bluebevel_mod'; // leave off the trailing slashes

include($config['template_path'].'/style.php'); // style definitions

///////////////////////////////////////////////////
//LANGUAGE FILE PATH -- USED FOR MULTI-LANGUAGE SUPPORT
include($config['basepath'].'/include/language/italian.php');

///////////////////////////////////////////////////
// DISPLAY SETTINGS
$config['listings_per_page'] = 10; //number of listings to show on one page:
$config['add_linefeeds'] = 'yes'; // convert returns to line feeds? yes or no
$config['strip_html'] = 'yes'; // Should HTML be stripped out of listings? yes or no
$config['allowed_html_tags'] ='<a>[b][i]<u>
'; // which html tags can a person input?
$config['money_sign'] = "€"; // default is dollars '$', but it could be "£" for pounds or "€" for euros
$config['show_no_photo'] = 'yes'; // if a listing doesn't have a photo, should it use the /images/nophoto.gif instead?
$config['number_format_style'] = '2'; // support for international numbering format. See the documentation for details

function money_formats ($number)
{
global $config;
// formats prices correctly
// defaults to $123, but other folks in other lands do it differently
// uncomment the correct one
$output = $number.$config['money_sign']; // usa, uk - $123,345 - $config['money_sign'].$number;
// $output = $number.$config['money_sign']; // germany, spain -- 123.456,78 ?
// $output = $config['money_sign'].' '.$number"; // honduras -- ? 123,456.78
return $output;
}

///////////////////////////////////////////////////
// UPLOAD SETTINGS
$config['max_listings_uploads'] = 5; // max # of pics for a given listing
$config['max_listings_upload_size'] = '100000'; // (in bytes)
$config['max_listings_upload_width'] = 620; // max width (in pixels)
$config['listings_upload_path'] = $config['basepath'].'/images/listing_photos'; // leave off the trailing slash
$config['listings_view_images_path'] = $config['baseurl'].'/images/listing_photos';

$config['max_user_uploads'] = 1; // max # of pics for a given user
$config['max_user_upload_size'] = '100000';
$config['max_user_upload_width'] = 620; // max width (in pixels)
$config['user_upload_path'] = $config['basepath'].'/images/user_photos'; // leave off the trailing slash
$config['user_view_images_path'] = $config['baseurl'].'/images/user_photos';

$config['allowed_upload_types'] = array('image/pjpeg','image/jpeg','image/gif','image/x-png'); // allowed file types
$config['allowed_upload_extensions'] = array('jpg','gif','png'); //possible allowed file extensions
$config['make_thumbnail'] = 'yes'; // use an external thumbnailing tool to resize images
$config['thumbnail_width'] = '87'; // max width (in pixels) of thumbnails
// This line is for GD Lib Image Support
$config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbnail_gd.php'; // path to the thumnailing tool
$config['gdversion2'] = False; // This Sets what version of gdLibs you have installed Set to tru is you have GD >= 2.0

// These two lines are for ImageMagick Support
//$config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbnail_imagemagick.php'; // path to the thumnailing tool
//$config['path_to_imagemagick'] = '/usr/X11R6/bin/convert'; // path to the convert tool, OPTIONAL! (Fill this only if you use ImageMagick)

///////////////////////////////////////////////////
// LISTING EXPIRATION SETTINGS
$config['use_expiration'] = 'yes'; // should the system use expiration? yes or no
$config['days_until_listings_expire'] = '365'; // listings should be active for this number of days

///////////////////////////////////////////////////
// USER SETTINGS
$config['allow_user_signup'] = 'yes'; // can users sign up through the web site? yes or no
$config['user_default_active'] = "yes"; // are new users active by default? yes or no
$config['user_default_agent'] = "no"; // are new users agents by default? yes or no
$config['user_default_admin'] = 'no'; // are new users admins by default? yes or no
// I recommend that you leave the following entries marked "no"... unless there's a particular
// reason you want new users to be able to do administrative tasks by default...
$config['user_default_feature'] = 'no'; // can new users insert veicle in homepage by default? yes or no
$config['user_default_moderate'] = 'no'; // can new users moderate listings by default? yes or no
$config['user_default_logview'] = 'no'; // can new users view logs by default? yes or no
$config['user_default_editForms'] = 'no'; // can new users edit forms by default? yes or no
$config['user_default_canChangeExpirations'] = 'yes'; // can users change the expiration dates of their listings? yes or no

///////////////////////////////////////////////////
// RENTAL SEARCH SETTINGS
$config['rental_step'] = '20';
$config['max_rental_price'] = '100';
$config['min_rental_price'] = '2000';

///////////////////////////////////////////////////
// MODERATION SETTINGS
$config['moderate_users'] = "no"; // should new users require moderator approval to be "active?" yes or no
$config['moderate_listings'] = "no"; // should listings require moderator approval to be "live?" yes or no
$config['email_notification_of_new_users'] = "yes"; // should the site admin receive an email notification if someone registers? yes or no
$config['email_notification_of_new_listings'] = 'yes'; // should the site admin receive an email notification if someone adds a listing? yes or no

///////////////////////////////////////////////////
// MISCELLENEOUS SETTINGS
// you shouldn't have to mess with these things unless you rename a folder, etc...

// main file location
include($config['basepath'].'/include/main.php');

// this is the setup for the ADODB library
include($config['basepath'].'/include/adodb/adodb.inc.php');
$conn = &ADONewConnection($db_type);
$conn->PConnect($db_server, $db_user, $db_password, $db_database);

// Meta setting //
// impostazioni di default dei meta tag nella pagione del sito //
$dynInfo['meta_title'] = " Auto Store Center - Il portale di compravendita automobili nuove, usate e km 0" ;
$dynInfo['meta_description'] = " Auto Store Center - Il portale per comprare e vendere automobili e veicoli commerciali presenta la sua ampia offerta di auto nuove e usate nel suo grande database. Permette a tutti di vendere e cercare gratis i propri veicoli online";
$dynInfo['meta_keywords'] = " automobile, automobili, usate, automobili, autousata, autousate, automobili online, automobili nuove, auto nuova, auto nuove, auto usate, auto usato, auto usata, auto, auto di importazione, importazione auto, automobile usata, acquisto, auto usate, acquisto automobili usate, occasioni, car, cars, annunci, inserzioni, vendita auto, vendita automobili, usate, vendita automobile usata, auto km 0, auto km zero, listino auto usate, autosaloni, compravendita auto,
macchine nuove, macchine usate, macchine, concessionarie automobili, concessionarie auto, concessionari automobili, portale, concessionari, veicolo elaborato, auto d'epoca, autoveicoli usati, autoveicolo usato, veicoli nuovi, listino automobili usate, veicoli usati, veicolo usato, database auto usate, automobili sportive, auto cabrio, mercato dell'auto, auto mercato, automercato, mercato auto usate, quotazioni automobili usate,
audi, alfa romeo, bmw, chrysler, citroen, daihatsu, lancia, ferrari, fiat, ford, hyundai, jeep, honda, kia, opel, nissan, maserati, mercedes-benz, lamborghini, mazda, peugeot, renault, rover, saab, seat, skoda, subaru, suzuki, toyota, volvo, volkswagen " ;
$dynInfo['meta_distribution'] = " Global " ;
$dynInfo['meta_robots'] = " index, follow " ;
$dynInfo['meta_rating'] = " General " ;
$dynInfo['meta_revisit'] = " 15 days " ;

?>


il programma non ? altro che una versione upgradata di openrealty un software opensource che nel vostro sito ? menzionato tra quelli che dovreste configurare automaticamente...
inoltre cercando di settare il database con phpmyadmin dal vostro cpanel non sono riuscito (altra causa di malfunzionamenti) vorrei sapere come fare per importare il file, grazie
Rispondi citando