Avatar billede jacker Nybegynder
21. oktober 2001 - 18:27 Der er 1 kommentar og
1 løsning

Er du Klog ?

Jeg har to filer, som der skal rettes til, men jeg aner ikke hvad jeg skal skrive, det ligger hos f2s, men du kan jo se filerne her :

includes.inc :

<?php

#########################
#    back-end.co.uk        #
#                        #
#    by nGen.co.uk        #
#                        #
#    Developer:            #
#    bealers@nGen.co.uk     #
#########################

# includes/includes.inc
# First Edit 29/5/00

## IMPORTANT ##
# the path to the file in this include needs editing to suit your server,
# it should have the full path to settings.inc

require(\"/usr/local/apache/htdocs/sites/local.demo.back-end.org/includes/settings.inc\");

# connect to our database
$connect = MYSQL_CONNECT($hostname,$username,$password) OR DIE (\"Unable to connect to the back-end database\");
@mysql_select_db($database) OR DIE (\"Unable to select the back-end database\");

# $includes_path is set in settings.inc, it is the full path to the includes directory
# include all of our files needed for operation
require($includes_path . \"/english.inc\");
require($includes_path . \"/arrays.inc\");
require($includes_path . \"/auth.inc\");
require($includes_path . \"/backend-html.inc\");
require($includes_path . \"/html-snippets.inc\");
require($includes_path . \"/functions.inc\");

# include the Banner code - phpAds -- http://phpwizard.net/phpAds
require($includes_path . \"/ads/acl.inc\");
require($includes_path . \"/ads/banneracl.inc\");
require($includes_path . \"/ads/view.inc\");
?>

_____________________________________________
settings.inc :

<?php

#########################
#    back-end.co.uk        #
#                        #
#    by nGen.co.uk        #
#                        #
#    Developer:            #
#    bealers@nGen.co.uk     #
#########################

# includes/settings.inc
# 29/5/00

$demo = true; # DELETE THIS

##########################################
#  I M P O R T A N T - paths and URLs  #

# the url to the htdocs/front-end folder
$front_end_url = \"http://local.demo.back-end.org\";

# the url to the back-end/adini folder
$back_end_url = \"http://local.demo.back-end.org/back-end\";

# full path to your front-end/htdocs folder, no traing slash!
$front_end_path = \"/usr/local/apache/htdocs/sites/local.demo.back-end.org/htdocs\";

# full path to your back-end/admin area, no traing slash!
$back_end_path = \"/usr/local/apache/htdocs/sites/local.demo.back-end.org/back-end\";

# full path to your includes directory, no trailing slash!
$includes_path = \"/usr/local/apache/htdocs/sites/local.demo.back-end.org/includes\";

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

$site_title = \"Demo Site\";                                        # this appears between the <title></title> tags and also as general headings
$generic_email = \"info@back-end.co.uk\";                            # a general email address for you
$admin_email = \"banner.admin@back-end.co.uk\";                     # Administors email address (used to set the FROM-address when sending email)
$email_headers = \"From: $admin_email \\n\";                         # Mail Headers for the reflection of the sender of the daily ad reports
$admin_name = \"user.Back-end.co.uk\";                             # Administrators full name (used when sending out emails)

## Database
$username = \"back_end\";
$password = \"back_end\";
$hostname = \"localhost\";
$database = \"back_end\";

$back_end_version = \"v0.3.3\";

########### phpAds ###############
# http://www.phpWizard.net/phpAds

$phpAds_insert_delayed = false;                                 # Use INSERT DELAYED in logging functions?
$phpAds_log_adviews = true;                                     # Enabled logging of adviews?
$phpAds_log_adclicks = true;                                     # Enabled logging of adclicks?
$phpAds_ignore_hosts = array();                                  # Example: array(\"slashdot.org\", \"microsoft.com\");
$phpAds_reverse_lookup = true;                                     # Reverse DNS lookup remotes hosts?
set_magic_quotes_runtime(0);                                    # Disable magic_quotes_runtime - don\'t change

$phpAds_tbl_adclicks = \"adclicks\";
$phpAds_tbl_adviews = \"adviews\";
$phpAds_tbl_banners = \"banners\";
$phpAds_tbl_clients = \"clients\";
$phpAds_tbl_session = \"session\";
$phpAds_tbl_acls = \"acls\";

?>



Hvis du kan fortælle mig hvor jeg skal rette noget og hvad det eventuelt skal rettes til så er de 97 points dine.

Hvis du har spøgsmål besvares de gerne.


..::Jacker::..
Avatar billede parazite Nybegynder
21. oktober 2001 - 19:47 #1
Det du skal ændre ligger her:
$username = \"back_end\";
$password = \"back_end\";
$hostname = \"localhost\";
$database = \"back_end\";
$username skal være dit brugernavn på F2S.
$password skal være dit database-password.
$hostname skal være db.f2s-brugernavn.f2s.com:3306
$database skal være den db du har oprettet.
Avatar billede nielsgron Nybegynder
21. oktober 2001 - 20:07 #2
Du skal formentlig også ændre \'require(\"/usr/local/apache/htdocs/sites/local.demo.back-end.org/includes/settings.inc\");\' til stien til filen settings.inc

Og du skal også ændre nogle url\'er i afsnittet \'#  I M P O R T A N T - paths and URLs  #\'
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester