//================================================================================ // PLEASE DO NOT REMOVE THIS HEADER!!! // // COPYRIGHT NOTICE // This script is licensed under the GPL // // Copyright 2007-2008 Alias 454 Studios and Brandon Keep (c) All rights reserved. // Created 11/18/2007 // Brandon Keep, http://www.openautoclassifieds.com // http://www.alias454studios.com/scripts/ // // Last Modified 03-17-2008 by // Brandon Keep, bkeep@alias454studios.com //================================================================================ // This software IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR // OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // OTHER DEALINGS IN THE SOFTWARE. //================================================================================ Usage and system requirements: I created this to work with Linux as I use .htaccess files for some small amount of security I would not recommend using this on a windows server by any means. This has been tested with PHP4, PHP5, MySQL4, and MySQL5 on Linux. You also need to have the GD image libs installed for profile and listing images to work. Use at your own risk. Installation: Unpack the files onto your local hard drive. create a database using cpanel or whichever control panel you use on your server. use the sql file located in the SQL folder openauto_auto.sql Edit the db.inc.php file located in the /Includes/configs/ folder change the database configuration variables Set your referrers ALSO! otherwise your contact form will not work (most likely your domain name) Upload all the files into you public html folder on your web host except the SQL folder and the DOCS folder. You need to set permissions for 6 folders: chmod +777 /admin/templates/templates_c chmod +777 /admin/templates/cache chmod +777 /templates/templates_c chmod +777 /templates/cache chmod +777 /images/users chmod +777 /images/listings Change the permissions on the error text .txt chmod +777 /error.txt login with default username and password (you should change this immediately) if you do not you run an even greater risk of getting your site sacked. username == admin password == password Once logged in go to the site settings section and edit to suit your configuration. As of version 1.3.0 I have added in a zip code search using an existing opensource class from Micah Carrick http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html In the existing package there are some instructions to be followed I have modified them slightly to work seamlessly with my script. Setting up the Database There are 6 files in the /SQL directory which contain SQL statements intended for a MySQL database (though they should work just fine for any SQL database). The zip code database consists of over 40,000 records which would be too large a file for many configurations of phpMyAdmin. Therefore, the data is broken into multiple files each consisting of 10,000 records, resulting in 5 files. In phpMyAdmin, you can import these 6 files 1 at a time using the 'Import' tab. You MUST import the 'openauto_auto.sql' file first if you have not already done so, then each of the data files. openauto_auto.sql zip_data_1.sql zip_data_2.sql zip_data_3.sql zip_data_4.sql zip_data_5.sql