Jump to content

built2go script


Recommended Posts

I need help to figure out the problem with the script below.  Here is the error message.

Warning: require(C:/wamp/www//classifieds/eng.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\classifieds\Scripts\config.php on line 88

 

Fatal error: require() [function.require]: Failed opening required 'C:/wamp/www//classifieds/eng.php' (include_path='.;C:\php5\pear') in C:\wamp\www\classifieds\Scripts\config.php on line 88

 

Here is the complete script

?php

/* $Id: config.php,v 1.0 2005-08-26 16:18:47-07 brian Exp brian $ */

// vim: expandtab sw=4 ts=4 sts=4:

########################################################################

## Built2Go PHP Classifieds v1.0                                      ##

## ----------------------------------------------------------------  ##

## Copyright © Big Resources, Inc. All Rights Reserved.              ##

## This software must be used in accordance with its licensing        ##

## terms and conditions at: http://www.built2go.com/faq.php          ##

##                                                                    ##

## This file may not be redistributed in whole or significant part.  ##

## ---------------- BUILT2GO IS NOT FREE SOFTWARE -----------------  ##

########################################################################

 

@header("Cache-control: private");

    /* Set your language...

Code: eng for english, nor for norwegian or other... */

$language = "eng";

    $version = "1.23"; // version of classified script

    /* allows you to check over links subitted before they go live

      1 = live on submit

      2 = pending

    */

    $SetPending = '2';

$siteurl = "http://www.site.com/classifieds"; // no ending slash

  /* for IIS users you will need to add this manually.

    eg: c:/Inet/www/path/script_name

or whatever your www folder is

*/

    $full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/classifieds";

    $upload_dir = "$full_path_to_public_program/pictures"; // no ending slash

 

   

    // Full url of the module directory

$module_dir = $siteurl."/modules";

    define('FLOOD_TIMEOUT',"1800");  // defines max time they have to wait before sending messages. used for slowing down spam

    define('AD_PRICE', "5.00");

    define('EXTRA_WEEK', "1.00");

    define('AD_DURATION', "5");

    /* Your emailadress. BE SURE TO SET. */

$from_address = "info@yourdomain.com";

    define('MAXFILE_SIZE',"100");  // defines max file size for images in thousands.

    define('MAXIMAGE_W_SIZE',"250");  // defines max image width size for uploaded images

    define('MAXIMAGE_H_SIZE',"250");  // defines max image height size for uploaded images

   

        /* payment processors here PAYPAL*/

    define('FROM_PAYPAL',"paypal@paypal.com");

    define('ITEM_NAME',"ClassifiedItem");

        /* Worldpay */

    define('INSTID',"123456"); // worldpay login #

        /*2Checkout*/

    define('SERIAL_ID',"123456"); // 2checkout login #

 

/* How many members do you want per page*/

  $admin_member_per_page = 25;

/* Number of ads per each page (after you have selected sub-category) */

$number_of_ads_per_page = 6;

 

/* Table names must be set here */

$admintbl = "admin";

    $cat_tbl = "categories";

$ads_tbl = "ads";

$pay_tbl = "pay_history";

$usr_tbl = "users";

$watching = "watching";

    $feedback = "feedback";

    $secure_image = "security_images";

$modules = "modules";

    $sess_tbl = "session";

    $msg_tbl = "messages";

    $faq_tbl = "faq";

/*

      1=HTTP Authentication

      0 or '' = html login

      only use this if you do not have permissions to create a .htaccess/.htpasswd files.

*/

$logintype["http"] = '';  //specifies the login type

 

      // set to on (1) it will NOT clean out the session db table automatically.

    $GLOBALS['noshutdownfunc'] = 1;

 

// Do not edit below unless you change install directory:

$full_path_to_db = "$full_path_to_public_program/adminpanel/db.php";

if (file_exists("$full_path_to_public_program/adminpanel/db.php"))

{

require($full_path_to_db);

}

require("$full_path_to_public_program/$language.php");

 

 

include_once("$full_path_to_public_program/adminpanel/func.php");

?>

Link to comment
Share on other sites

KEN 2k7 is right! You need to use those blasted code tags...and not color your code...makes me not even want to try...

but look like you dont have a file named end.php ...

 

are you keeping this file relative to where it supposed to?

 

Make sure all files are where there supposed to be all the error is really saying....

 

do y ou have an eng.php file in your classifies foldeR?

 

 

And would this technically be in violation of

"This file may not be redistributed in whole or significant part."

 

and also this might be the wrong forum since this is a 3rd party script...

 

CheerS!

Link to comment
Share on other sites

Made the change but this is what happen

 

Notice: Undefined index: name in C:\wamp\www\classifieds\Scripts\eng.php on line 42

 

Notice: Undefined index: navn in C:\wamp\www\classifieds\Scripts\eng.php on line 42

 

Notice: Undefined index: message in C:\wamp\www\classifieds\Scripts\eng.php on line 42

 

Notice: Undefined index: empost in C:\wamp\www\classifieds\Scripts\eng.php on line 42

 

Notice: Undefined variable: site_url in C:\wamp\www\classifieds\Scripts\eng.php on line 130

 

Notice: Undefined variable: site_url in C:\wamp\www\classifieds\Scripts\eng.php on line 141

 

Warning: include_once(C:/wamp/www//classifieds/adminpanel/func.php) [function.include-once]: failed to open stream: No such file or directory in C:\wamp\www\classifieds\Scripts\config.php on line 91

 

Warning: include_once() [function.include]: Failed opening 'C:/wamp/www//classifieds/adminpanel/func.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\classifieds\Scripts\config.php on line 91

 

Warning: include_once(C:/wamp/www//classifieds/session.php) [function.include-once]: failed to open stream: No such file or directory in C:\wamp\www\classifieds\Scripts\index.php on line 18

 

Warning: include_once() [function.include]: Failed opening 'C:/wamp/www//classifieds/session.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\classifieds\Scripts\index.php on line 18

 

 

My Classifieds Home

 

 

 

 

 

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\classifieds\Scripts\links.php on line 16

 

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\classifieds\Scripts\links.php on line 16

Error: Access denied for user 'ODBC'@'localhost' (using password: NO)

Link to comment
Share on other sites

Tried that but the error still remain

 

Warning: require(C:/wamp/www/classifieds/eng.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\classifieds\Scripts\config.php on line 88

 

Fatal error: require() [function.require]: Failed opening required 'C:/wamp/www/classifieds/eng.php' (include_path='.;C:\php5\pear') in C:\wamp\www\classifieds\Scripts\config.php on line 88

Link to comment
Share on other sites

Heres the

Installation:

 

Once you have downloaded the package, unzip the contents to its own folder.  Once unzipped you can upload all files and folders that are in the “scripts” folder, to your website with your favorite FTP program. All files that end in php need to be uploaded in ASCII mode. And the image folder and Century.ttf need to be uploaded in Binary mode.

 

  Now depending on how your server is set up depends on if you need a shebang line or not. A shebang line goes into your scripts as the very first line. This line tells the server where php is located so it can run it, almost the same as a perl script. If your server is setup as a cgi module than you will need this line and chmod all files to 755. If your php is installed as an ISAPI module than you do not need this line and you shouldn’t have to chmod anything. Unless your host has it setup to where you do need the shebang line.

 

First we need to edit a few files. Open config.php and set install directory (and table names if you do not want default).

 

There are some variables you need to read first.

 

This is basic language file. Feel free to change the text all you want. If your language is not English and you want to change it please feel free to edit this file and please send it to me. Full credit will be given to you for the edition to another language.

$language = "eng";

 

The main version variable, please do not change this

    $version = "1.0";

 

“SetPending” is very important. If you set it to 1 everything that is uploaded or added as far as classified ads will be LIVE on the site. If set to 2 it goes into a pending state where you can verify the payment and the quality of the classifieds.

    /* Allows you to check over links submitted before they go live

      1 = live on submit

      2 = pending

    */

    $SetPending = '2';

 

“siteurl” is also important. Please edit it to your url or domain.

 

    $siteurl = "http://www.yoursite.com/classifieds/";

 

 

 

“upload_dir” is where the pictures of the new classifiedss are stored. This folder must be set to 777 or 766 so it can be writing to. Edit “/classifieds/pictures” to reflect your directory structure. No Ending Slash

 

      $upload_dir = $_SERVER['DOCUMENT_ROOT']."/classifieds/pictures";

 

 

This is the full path to all the scripts. Edit “/classifieds” to reflect your folder structure. No Ending Slash

 

$full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/classifieds";

 

This is the module directory, no need ot change it if you do a default install.

 

$module_dir = $siteurl."/modules";

 

On sending message or contact information, you are able to set a time limit on how many they can send at a certain amount of time.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.