Valikko

Kysely
Käytkö täällä ainakin pari kertaa viikossa ?
Kyllä
En
- Näytä tulos
Vastauksia 302

Uusimmat tiedostot
1. Speccy - (Lisätty 4/19/10)
2. VLC Media Player - (Lisätty 11/30/09)
3. CCleaner - (Lisätty 3/8/09)
4. CDBurnerXP - (Lisätty 2/19/09)
5. Sivupohja 26 - (Lisätty 1/6/09)

Ladatuimmat tiedostot
1. EVEREST Home Edition v2.20 - (Lisätty 12/25/06)
2. RevConnect - (Lisätty 5/5/07)
3. Sivupohja 15 - (Lisätty 12/21/06)
4. Adobe Photoshop CS2 - (Lisätty 12/21/06)
5. Sivupohja 05 - (Lisätty 12/19/06)
Sisältö

PafileDB opas

Opas on versiosta 3.5.3.

Helppo asennus ensin
Lataa ohjelma osoitteesta phparena.net.
Kun olet ladannut sen niin sinun tulee muokata mysql tiedostoa. (\upload\includes\db\mysql.php)

Muuta alla olevat rivit oikeiksi, jotta asennus onnituisis!!
var $host = 'SERVER'; //Mysql serverin nimi!, (yleensä localhost)
var $username = 'USERNAME'; //Mysql käyttäjän nimi
var $password = 'PASSWORD'; //Mysql salasana tähän
var $dbname = 'DATABASE'; //Mysql databasen nimi

Sitten siirrät tiedostot palvelimelle. Siirrä kansion uploadin sisältö vain sinne palvelimelle vaikka "\pafiledb\" kansioon, jotta tiedostojen polku olisis jotain "www.sivusi.com/pafiledb/". Seuraavaksi ajat tiedoston install tiedoston osoitteesta "www.sivusi.com/pafiledb/install/".
Sitten chmodaa kansiot:

uploads (kansio), 777
skins/default/compile (kansio), 777

Kun asennus on suoritettu onnistuneesti niin toimit vain tulevien ohjeiden mukaan kunnes olet saanut lataamon näkyviin onnistuneesti.

Upotus ulkoasuun:

Ota varmuus kopio index.php tiedostosta, siltä varalta että tapahtuu joku virhe upotuksessa. Avaa ulkoasu tiedosto johon haluat upottaa lataamon. Lisää seuraava koodi siihen kohtaan ulkoasua johon haluat lataamon sijoittaa:
<?php

/**
  * paFileDB 3.5
  *
  * This is the master file for paFileDB. This is the only
  * page at this time that is designed to be run straight
  * from the browser.
  *
  * Author: Todd <http://www.phparena.net>
  * Version 3.5.3
  * Copyright 2005 PHP Arena
  */

if (file_exists('install')) { die("Please remove the install directory to use paFileDB!"); }
if (
file_exists('upgrade')) { die("Please remove the upgrade directory to use paFileDB!"); }

//Start the execution timer
$starttime microtime();
$starttime explode(" ",$starttime);
$starttime $starttime[1] + $starttime[0];


//Require the important files so paFileDB isn't paUselessScript
require('./includes/smarty/Smarty.class.php');
require(
'./includes/functions.php');
require(
'./includes/db/mysql.php');

/*Get $act from the query string, set to main if $act is unset 
 (only time its unset is on the main page */
if (!isset($_GET['act'])) { $act 'main'; } else { $act $_GET['act']; }


//Load paFileDB settings into $settings array
$settings $db->fetch(array(), 'settings');
$version '3.5.3';

//This stops any l33t h4x0ring of paFileDB. Just an extra security measure
$allowed_acts = array('main''category''view''download''viewall''search''email''license''mirror''report');
if (!
in_array($act$allowed_acts))
{
    die(
"Invalid Action!");
}

//Get Smarty set up and load the right language file
$smarty = new Smarty();
$smarty->config_booleanize false;
init_smarty($settings[0]['skin']);
$smarty->config_load('english.conf');
if (
$settings[0]['lang'] != "english") { $smarty->config_load($settings[0]['lang'].'.conf'); }
$smarty->config_load('config.conf');
$smarty->assign('settings'$settings[0]);
$smarty->assign('act');
$smarty->assign('version'$version);
require(
'./includes/admin/auth.php');

//Require the file that actually does what we want
require('./includes/'.$act.'.php');

//Display the header
$smarty->display('header.tpl');

//Display the template for whatever page we're showing
$smarty->display($act.'.tpl');

//Calculate execution time
$endtime microtime();
$endtime explode(" ",$endtime);
$endtime $endtime[1] + $endtime[0];
$stime $endtime $starttime;

dropDown($settings[0]['dropdown']);
//Send exec time and queries used to Smarty
$smarty->assign('debug_info', array(count($db->queries), round($stime,5)));

//Display the footer

$smarty->display('footer.tpl');
?>
Lataamo on upotettu onnistuneesti. Tallenna tiedosto ja tallenna se nimellä index.php ja lähetä se palvelimelle "www.sivusi.com/pafiledb/".



Jos on ongelmia oppaan kanssa niin kysy apua sähköpostilla. Osoitteen löydät info osiosta.

--------------
Kirjoittanut: Hemi
Kirjautuminen
 
 

Käyttäjät online:
12 vierasta, 0 jäsentä

Hosted by: Futuron Internet

   Äänestä tätä sivua Top-100 listalle!

Pikalinkki


Kumppaneille