Hints to the DLM:
- The DLM is completely freeware! Reselling or rental is prohibited
and punishable.
- The code can be changed, and if you get a really good result send
it to -|MC|Cracken-
- Everybody who uses the DLM can include a banner on his page and
can be registered on my page, for more details visit : http://dlm.webinteraktiv.de/user.php
- Remember to change the username god to something different
(don't delete it if you don't have a new user already created!)
- If you find still errors, please notify me on this page : http://dlm.webinteraktiv.de/feedback.php
!
- If something doesn't work or you think you destroyed something read
the Forum first
, THEN write me!
- Write the Author
something nice ;-)
Contact:
Requirements:
- PHP 4 or higher
- MySQL Database
- PHP must be able to parse <? and ?>
- PHP must be able to parse .php-files
- All the pages which are supposed to have the statistic on them should
have a .php-extension.
- You should use includes for header and footer, for the statistics!
Hint : There are known problems with some FTP-Servers.
Preparation:
- Check your server if there's already a file with a name similar to
one of the Download Manager ! If this is the case change the name of
the DLM's file and also change it in the file dlm_config.php
(look at /* Adresses& e-Mails */)
- Go to your phpMyAdmin and install the Querries (tables) from the install.sql. (more details)
- Open the dlm_config.php and set up you server details. (also
see Configuration and Header
& Footer)
- You don't have to upload this files: index.php, install.html, GNU_license.txt, install.sql
- Upload all other files, pictures included, to a folder on your server!
Header and Footer:
Header and Footer Includes are files which are displayed in every page
on the top and the bottom. They contain everything that is the same on
all the pages.
Therefore the header includes for example <HTML>, the HTML-Header,
the menu or the CSS definitions.
The footer contains the right menu, if one is used.
These files have to be written in the dlm_config , at /* Design */.
- Header and Footer ,set up in the config.
- Header Include, open :
- <LINK href="dlmanager.css" type="text/css"
rel="stylesheet">
in the line after the CSS definitions. (Design Setup
)
- If the name of the Download or of the Download Page is supposed
to be displayed in the top line:
<? if ($pagetitle) { echo $pagetitle; } ?>
enter past the "real" page title, but still in <TITLE>
(have a look at the next example)
- <?
if ($refresh_url) {
echo "<meta http-equiv=\"refresh\" content=\"5;
URL=".$refresh_url."\">";
}
?>
into the line after Meta Definitions.
- Statistics function, how to use it:
<? include("dlm_statistik.php"); ?>
doesn't matter where you put it, but BEFORE the menu.
- The dlmheader.inc.php contains everything how it is meant
to be. Here are the first lines, as example :
<HTML>
<HEAD>
<TITLE>Download Manager Base<? if ($pagetitle) { echo $pagetitle;
} ?></TITLE>
<LINK href="base.css" type="text/css" rel="stylesheet">
<LINK href="dlmanager.css" type="text/css"
rel="stylesheet">
<?
if ($refresh_url) {
echo "<meta http-equiv=\"refresh\" content=\"5;
URL=".$refresh_url."\">";
}
?>
<? include("dlm_statistik.php"); ?>
</HEAD>
...
Statistics:
There are several statistic-functions. They are included in the dlm_statistik.php
which is used in the header.
If you know php really well, then you can edit the statistics display
in the way you want. In the standard mode everything is written on a seperate
line. (before it you could have pictures, lists, tables, ...etc.).
To remind you again, this has to be in the header : <? include("dlm_statistik.php");
?>
How do I include them and which statistics do I have :
- Open header.
- <? statistik (anzeige["statistik"; "added";
"downloads"; "lastdownload"], kategorie[int], limit[int],
period[int]); ?>
enter this where you want the statistic to be.
Explanation and parameters for anzeige:
- statistik - Shows the statistic of the Database for all
files. (6 lines)
- added - The newest Downloads (10 lines)
- downloads - The 10 most popular Downloads (10 lines)
- lastdownload - The 1- latest Downloads (10 lines)
Explanation and parameters for kategorie:
- This number is the ID of the statistic to be displayed. You could,
for example, have a php category and only display the Top10 of this
one category. Sub-categories are included!
Explanation and parameters for limit:
- Number of Downloads to be displayed.
Explanation and parameters for period:
- Gives the time period , how long the statistic is displayed !
Some variables are predefined:
- $p_hour - 1 hour
- $p_day - 1 day
- $p_week - 1 week
- $p_moth - 1 month
- $p_year - 1 year
Of course you can use own parameters. With them you could display
the most popular DL's from last week..
- Examples:
- statistik("statistik") - Displays the complete
statistic of the Database.
- statistik("downloads", 0, 20, $p_week) - The
20 most popular files of the last week in all categories.
- statistik("lastdownload", 2) - The 10 last
downloads of category 2.
- If the lines of the downloads are too long, then change the entry
$max_length in the config to something less.
- Design Setup of the statistic:
- dlm_statistik.php ,open and change the lines that have
/* -- Stat-Display -- */ after them.
Configuration:
In general all changes can be done in the dlm_config.php!
Here are the areas of the config explained, but better explanation is
IN the config file.
- MySQL Data - Enter your database data here.
- SQL Table Names - Here you have the possibility to change
the table names of the database, in case you have more than one DLM
on your server. I suggest not to do that though, just make an own category
for each one of them ;)
- FTP-Browser - Enter the data of your ftp here.In case this
is a sharing server and you are in a sub dir enter the relative path.
Many times people have problems with there FTP-Servers. PHP can't connect to the Server. If there is a error message but your config is correct, switch the FTP Browser in the Config off.
- Server-Browser - Here you enter all the data for a server
browser. If you want to use the folder where your DLM is in as the file-folder,
set $dlm_serv_base to "";
- Adresses & e-Mails - Here you can enter the contact adresses.
Also here you change the file names if there ar some!
- Design - Here's everything that didn't fit anywhere else..
Header and Footer see top.
Design Setup:
The setup oft your DLM Design can be done in the dlmanager.css
and with the function layout in the dlm_public.php
This function should only be changed by php-artists (freaks ;) , and that
only if you've made a backup!
It's easy to change the CSS. It has comments and you can do many things
if you have the ideas. First you should always change the colors, the
other things are not as important!
The Design of the Statistik can be changed,
too. More to that see Statistic.
First Steps:
You uploaded all the files and set them up ? Then you can start to add
users and categories..
- Go to index.php and watch out if there are error messages at the left. If yes, read the error messages!
- Surf to admin.php (if you didn't change the name) and enter
god in the username box and password in the password box.
- Go to the member data and edit god to your needs, also change
the password!
- Set up more users or new categories. It's explanied in the admin.php!
- Delete the first (default) download.
Tips & Tricks:
- All your data is also available in your phpMyAdmin. So everybody could
see your passwords. Use .htaccess to protect your data.!
- You have to decide what you want to use as standard in your file overview,
files.php (folder overview- good overview for few or less interlaced
categories) or categ.php (Level overview - Good overview for
many categories) . PreSetup standard is files.php. to change
that just open the dlm_config.php and the variable $files_html
needs to be set to the path of "categ.php".
phpMyAdmin:
- Download at phpWizard.net: Download
- A guide to install the phpMyAdmin is in the package.
- Enter the phpMyAdmin and click on your Datebase in the left frame. On the right side you can see the tables in this database. Scroll down until you see a textfield with the header "Execute Query". Beneath it you can see a file field. Add your install.sql there. Confirm with OK. When you see the site again there are 4 new tables, all with dlm_ . If not, contact the author :)
|