| Code: |
| <?php
/******************************************************* * Copyright (C) 2006 http://p3net.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ******************************************************/ session_start(); // define our application directory define('SPACES_DIRECTORY', 'http://www.newso.frihost.net'); // the astrospaces path define('SPACES_PATH', 'http://www.newso.frihost.net'); // define smarty lib directory define('SMARTY_DIR', SPACES_DIRECTORY . 'http://www.newso.frihost.net'); ini_set('include_path', SPACES_DIRECTORY . 'http://www.newso.frihost.net'); // include the setup script require("libs/spaces_setup.php"); $spaces =& new Spaces or die("Could not define <i>Spaces</i> class"); $ProfileChanges =&new ProfileChanges or die("Could not define <i>ProfileChanges</i> class"); ?> |
The piece of code above is what im struggling with. All my files are stored in the public html folder. my domain is newso.frih.net
can anyone tell me what needs to be put there for me to get my script working. Im struggling, with this.
These are the help files given to me
| Quote: |
| 1) Open /definitions.php
2) Locate the line "define('SPACES_DIRECTORY', 'EDITME');". 3) Edit with the FULL path of your web directory (usually something like wwwroot/username/domainname/htdocs/). If you are unsure, contact your webhost. BE SURE TO INCLUDE TRAILING SLASH! 4) Locate the line "define('SPACES_PATH', 'EDITME');". 5) Edit with the domain name and path that AstroSPACES will be accessible from. For example, if you access AstroSPACES at http://mydomain.com/astrospaces, put http://mydomain.com/astrospaces in place of EDITME. BE SURE TO INCLUDE THE TRAILING SLASH! **NOTE: IF THIS IS NOT CORRECT, NOBODY WILL BE ABLE TO ACTIVATE THEMSELVES!!!** |
