A ver si alguien me puede ayudar.
Se trata de una palicación para anunciar coches por medio de usuarios registrados. Quisiera poder limitar el numero de vehiculos que puede agregar un usuario. Para que no me saturen el servidor.
ARCHIVO COMPLETO AQUI
jonroig.com/freecode/openautoclassifieds/
Este es el archivo de configuración
Cita:
] <?php
//common include file
//mysql database setup
$user = "xxxxxxx";
$password = "xxxxxxx";
$db = "xxxxxx";
$server = "xxxxx";
//OPENREALTY ADMIN PASS AND LOGIN
//DEFAULTS TO MYSQL DATABASE USER/PASS
$openadmin = "admin";
$openpassword = "xaviso2003";
//SITE INFORMATION
//use city and state? 'Y' or 'N'
global $use_city_state;
$use_city_state = "Y";
//used mostly for the email a friend function...
//but may come in handy elsewhere.
$baseurl = "";
$yourname = "";
$youremail = "";
//number of listings to list at once:
$listings_per_page = 10;
//AGENT ADMINISTRATION
//use linefeed in description fields 'Y' or 'N'
$linefeeds = "Y";
//maximum number of imges for a given listing
$max_agent_images =100;
//how large can an agent image be? (n bytes)
$max_agent_upload = 3000000;
//INDIVIDUAL VEHICLE LISTING OPTIONS
//use email-a-friend option? 'Y' or 'N'
$friendmail = "Y";
//maximum numer of images for one vehicle
$max_images = 4;
//max size of vehicle images (in bytes)
$max_prop_upload = 1000000;
//available options for vehicles
//each option separated by a ||
//currently supports up to 10 options
$vehiclefeatureoptions = "ABS||Aire Acond.||Climatizador||Control Tracción||Elevalunas Elec.||Asientos Piel||GPS||Alarma||Ordenador||Airbag Delanteros||Airbags Traseros||Airbag Laterales||Lavafaros||Asientos Calefac.||Techo Solar||Faros Xenon||Sensor Lluvia||Control Velocidad||Sersor Luces||DSC||Parktronic||Tuning||Llantas aleación||4x4||Bola remolque";
//the master list of states
$stateslist = "";
//the master list of car types
$cartypeslist = "2/3 Puertas||3/4 Puertas||Cabrio||4x4||Coupé||Importacion";
//the master list of car makes
$carmakeslist = "Alfa Romeo||Audi||BMW||Bentley||Buick||Cadillac||Chevro let||Chrysler||Daewoo||Daihatsu||Daimler||Daihatsu ||Datsun||Dodge||Ferrari||Fiat||Ford||Jaguar||Hond a||Hummer||Hyundai||Isuzu||Jeep||Kia||Lamborghini| |Lexus||Lincoln||Lotus||MG||Maserati||Mazda||Merce des-Benz||SKoda||Subaru||Suzuki||Toyota||Triumph||Volk swagen||Volvo||Yugo||-----||Other";
?>
//common include file
//mysql database setup
$user = "xxxxxxx";
$password = "xxxxxxx";
$db = "xxxxxx";
$server = "xxxxx";
//OPENREALTY ADMIN PASS AND LOGIN
//DEFAULTS TO MYSQL DATABASE USER/PASS
$openadmin = "admin";
$openpassword = "xaviso2003";
//SITE INFORMATION
//use city and state? 'Y' or 'N'
global $use_city_state;
$use_city_state = "Y";
//used mostly for the email a friend function...
//but may come in handy elsewhere.
$baseurl = "";
$yourname = "";
$youremail = "";
//number of listings to list at once:
$listings_per_page = 10;
//AGENT ADMINISTRATION
//use linefeed in description fields 'Y' or 'N'
$linefeeds = "Y";
//maximum number of imges for a given listing
$max_agent_images =100;
//how large can an agent image be? (n bytes)
$max_agent_upload = 3000000;
//INDIVIDUAL VEHICLE LISTING OPTIONS
//use email-a-friend option? 'Y' or 'N'
$friendmail = "Y";
//maximum numer of images for one vehicle
$max_images = 4;
//max size of vehicle images (in bytes)
$max_prop_upload = 1000000;
//available options for vehicles
//each option separated by a ||
//currently supports up to 10 options
$vehiclefeatureoptions = "ABS||Aire Acond.||Climatizador||Control Tracción||Elevalunas Elec.||Asientos Piel||GPS||Alarma||Ordenador||Airbag Delanteros||Airbags Traseros||Airbag Laterales||Lavafaros||Asientos Calefac.||Techo Solar||Faros Xenon||Sensor Lluvia||Control Velocidad||Sersor Luces||DSC||Parktronic||Tuning||Llantas aleación||4x4||Bola remolque";
//the master list of states
$stateslist = "";
//the master list of car types
$cartypeslist = "2/3 Puertas||3/4 Puertas||Cabrio||4x4||Coupé||Importacion";
//the master list of car makes
$carmakeslist = "Alfa Romeo||Audi||BMW||Bentley||Buick||Cadillac||Chevro let||Chrysler||Daewoo||Daihatsu||Daimler||Daihatsu ||Datsun||Dodge||Ferrari||Fiat||Ford||Jaguar||Hond a||Hummer||Hyundai||Isuzu||Jeep||Kia||Lamborghini| |Lexus||Lincoln||Lotus||MG||Maserati||Mazda||Merce des-Benz||SKoda||Subaru||Suzuki||Toyota||Triumph||Volk swagen||Volvo||Yugo||-----||Other";
?>