⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.php

📁 个人主页音乐程序 个人主页音乐程序 个人主页音乐程序 个人主页音乐程序 个人主页音乐程序
💻 PHP
字号:
<?
/**
 * Constants.php
 * Musicbox Version 2.1
 * TeaM SCRiPTMAFiA 2005
 */
 
/**
 * Database Constants - these constants are required
 * in order for there to be a successful connection
 * to the MySQL database. Make sure the information is
 * correct.
 */
define("DB_SERVER", "localhost");
define("DB_USER", "insert your database details here");
define("DB_PASS", "insert your database details here");
define("DB_NAME", "insert your database details here");

/**
 * Database Table Constants - these constants
 * hold the names of all the database tables used
 * in the script.
 */
define("TBL_USERS", "users");
define("TBL_ACTIVE_USERS",  "active_users");
define("TBL_ACTIVE_GUESTS", "active_guests");
define("TBL_BANNED_USERS",  "banned_users");

/**
 * Special Names and Level Constants - the admin
 * page will only be accessible to the user with
 * the admin name and also to those users at the
 * admin user level. Feel free to change the names
 * and level constants as you see fit, you may
 * also add additional level specifications.
 * Levels must be digits between 0-9.
 */
define("ADMIN_NAME", "admin");
define("GUEST_NAME", "Guest");
define("ADMIN_LEVEL", 9);
define("USER_LEVEL",  1);
define("GUEST_LEVEL", 0);

/**
 * This boolean constant controls whether or
 * not the script keeps track of active users
 * and active guests who are visiting the site.
 */
define("TRACK_VISITORS", true);

/**
 * Timeout Constants - these constants refer to
 * the maximum amount of time (in minutes) after
 * their last page fresh that a user and guest
 * are still considered active visitors.
 */
define("USER_TIMEOUT", 10);
define("GUEST_TIMEOUT", 5);

/**
 * Cookie Constants - these are the parameters
 * to the setcookie function call, change them
 * if necessary to fit your website. If you need
 * help, visit www.php.net for more info.
 * <http://www.php.net/manual/en/function.setcookie.php>
 */
define("COOKIE_EXPIRE", 60*60*24*100);  //100 days by default
define("COOKIE_PATH", "/");  //Avaible in whole domain

/**
 * Email Constants - these specify what goes in
 * the from field in the emails that the script
 * sends to users, and whether to send a
 * welcome email to newly registered users.
 */
define("EMAIL_FROM_NAME", "Support");
define("EMAIL_FROM_ADDR", "youremail@emailaddress.com");
define("EMAIL_WELCOME", false);

/**
 * This constant forces all users to have
 * lowercase usernames, capital letters are
 * converted automatically.
 */
define("ALL_LOWERCASE", false);

/**
 * This constant defines the location of the 
 * avatars directory. You must set the permissions
 * of this directory so that your webserver can read
 * and write to it. Do not include a trailing slash ('/').
 */
define("AVATARS_DIR", '/home/username/public_html/musicboxv2/avatars');
/**
 * This defines the subdirectory of the avatars directory that 
 * you are storing your stock avatars in. You can use this directive
 * to prevent user's avatars from appearing on the registration and
 * edit account screens. If you want all avatars to be available,
 * leave this directive blank. If you use a stock directory you 
 * should include a trailing slash ('/') in this directive.
 */
define("AVATARS_DIR_STOCK", '');
/**
 * This constant defines the URL to prefix avatar filenames
 * with. For example, '/avatars/' or '/members/avatars/'.
 * You must include a trailing slash ('/').
 */
define("AVATARS_URL", '/musicboxv2/avatars/');
/**
 * Determines how many avatars should be displayed per row in the avatar list.
 */
define("AVATARS_PER_ROW", 8);
/**
 * Determines the required dimensions of avatars.
 */
define("AVATAR_WIDTH", 30);
define("AVATAR_HEIGHT", 30);
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -