phpBB + uploaden

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 06 apr 2006, 11:20

Ik denk niet dat je dat hoeft in te stellen, je moet alleen de map /files/ op CHMOD 777 zetten

Je hebt dus onjuiste informatie gegeven over de CHMOD 777 die op "alle bestanden" van toepassing was (trouwens ook niet ideaal, maargoed)
... Maar ik modereer (nog) niet.

Jade
Berichten: 24
Lid geworden op: 03 feb 2003, 13:18
Contacteer:

Bericht door Jade » 06 apr 2006, 12:42

OK jullie moeten veel geduld met me hebben, sorry, maar in de map file staat een ding index.php en in kladblok kan ik niets vinden;
<?
/*
* getDownNow - Directory Browser
* Copyright (C) 2001 Ray Lopez (http://www.TheDreaming.com)
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

/*
*********************** CONFIGURE BELOW THIS LINE ***********************
*/
error_reporting (E_ERROR | E_WARNING | E_PARSE);
/*
** CSS (Style Sheet) Definition Begginning
*/

$scriptLocation = ""; // Point this to a refernce to a style sheet (Embeeded CSS will be ingnorned)

$scriptCSS = "
<style>
BODY {
margin: 1em;
font-family: Arial;
line-height: 1.1;
background: #3f3f3f;
color: #999999;
}

A:link { color: #cccccc;} /* unvisited link */
A:visited { color: #cccccc;} /* visited links */
A:active { color: #555555; background: #999999;} /* active links */
A:hover { color: #cccccc; background: #555555;}

TD { background: #555555 }

INPUT.SUBMIT { background: #999999; }
</style>
";
/*
** CSS (Style Sheet) Definition Finished
*/


/*
** Display Disk Space Usagae and Free
*/
$scriptStats = "1"; // 1 for Yes - 0 for No

define('IN_PHPBB', true);
$phpbb_root_path = './../../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_REGISTER);
init_userprefs($userdata);

if ((!$userdata['session_logged_in']) && ($userdata['user_level'] != ADMIN))
{
redirect(append_sid("index.$phpEx", true));
}

/*
*********************** DO NOT MODIFY BELOW THIS LINE ***********************
*/
function dirHeader() {
$content = "<table width=100% nowrap>";
return $content;
}

function dirTable() {
$content = "<tr><td><b><font size=-1>Type</font></b></td><td width=50%><b><font size=-1>Name</font></b></td><td><b><font size=-1>Size</font></b></td><td><b><font size=-1>Modified</font></b></td></tr>";
return $content;
}


function dirFooter() {
$content = "</table>";
return $content;
}

function fType($file) {
$varFileType = filetype($file);
if($varFileType != "dir") {
$curdir = getcwd();
$pInfo = pathinfo("$curdir/$file");
$varFileType = $pInfo["extension"];
}
return $varFileType;
}


function fileView($file) {
$varType = strtolower(fType($file));
$varJSSettings = "width=300,height=300,resizable=1,scrollbars=1,menubar=0,status=0,titlebar=0,toolbar=0,hotkeys=0,locationbar=0";
$txtArray[] = "txt";
$txtArray[] = "nfo";
$txtArray[] = "diz";
$txtArray[] = "now";
$txtArray[] = "bmp";
$txtArray[] = "jpg";
$txtArray[] = "gif";
$txtArray[] = "doc";
$txtArray[] = "1st";
$txtArray[] = "now";
$txtArray[] = "me";
if(in_array($varType, $txtArray)) {
$content = " - (<a href=\"#\" onClick=\"window.open('$file', 'viewer','$varJSSettings');\">view</a>)";
}
return $content;
}
function display_size($file_size){
if($file_size >= 1073741824) {
$file_size = round($file_size / 1073741824 * 100) / 100 . "g";
} elseif($file_size >= 1048576) {
$file_size = round($file_size / 1048576 * 100) / 100 . "m";
} elseif($file_size >= 1024) {
$file_size = round($file_size / 1024 * 100) / 100 . "k";
} else {
$file_size = $file_size . "b";
}
return $file_size;
}

function dirGather() {
$handle=opendir(".");
$content = "";
//while (false!=($file = readdir($handle))) {
while ($file = readdir($handle)) {
if(($file != "index.txt") && ($file != "index.php") && ($file != "index.html") && ($file != "index.htm") && ($file != ".htaccess")) {
$filetype = fType($file);
if($filetype == "dir") {
$dirtext[] = "$file";
} else {
$context[] = "$file";
}
}
}
if($dirtext) {
sort($dirtext);
for($i=0; $i<count($dirtext); $i++) {
$file = $dirtext[$i];
$lastchanged = filectime($file);
$changeddate = date("d-m-Y H:i:s", $lastchanged);
$filesize = display_size(filesize($file));
$filetype = fType($file);
$viewfile = fileView($file);
$content .= "<tr><td><font size=-1>$filetype</font></td>";
$content .= "<td><font size=-1><a href=\"$file\">$file</a> $viewfile</font></td>";
$content .= "<td><font size=-1>$filesize</font></td>";
$content .= "<td><font size=-1>$changeddate</font></td></tr>";
}
}
if($context) {
sort($context);
for($i=0; $i<count($context); $i++) {
$file = $context[$i];
$lastchanged = filectime($file);
$changeddate = date("d-m-Y H:i:s", $lastchanged);
$filesize = display_size(filesize($file));
$filetype = fType($file);
$viewfile = fileView($file);
$content .= "<tr><td><font size=-1>$filetype</font></td>";
$content .= "<td><font size=-1><a href=\"$file\">$file</a> $viewfile</font></td>";
$content .= "<td><font size=-1>$filesize</font></td>";
$content .= "<td><font size=-1>$changeddate</font></td></tr>";
}
}
return $content;
}

function diskStats($scriptStats) {
if($scriptStats) {
// $diskTotal = display_size(disk_total_space("/"));
$diskFree = display_size(diskfreespace("/"));
$content = "<table width=100%>";
$content .= "<tr><td width=150><b><font size=-1>Free Disk Space:</font></b></td><td><font size=-1>$diskFree</font></td></tr>";
// $content .= "<tr><td width=150><b><font size=-1>Total Disk Space:</font></b></td><td><font size=-1>$diskFree</font></td></tr>";
$content .= "</table>";
print($content);
}
}
?>
<html>
<head>

<? if($scriptLocation == "") {
print($scriptCSS);
} else {
print("<LINK REL=stylesheet HREF=\"$scriptLocation\" TYPE=\"text/css\">");
} ?>
</head>
<body>
<?

diskStats($scriptStats);
print(dirHeader());
print(dirTable());
print(dirGather());
print(dirTable());
print(dirFooter());
diskStats($scriptStats);
@include("index.txt");
print("<table width=100%><tr><td><fonr size=-1>Directory listing generated by: <a href=\"http://www.TheDreaming.com\">getDownNow</a> ver. 0.9.5</font></td></tr></table>");
?>
</body>
</html>
Wel heb ik dit gelijk op 777 gezet toen Paul dat aangaf;
Afbeelding

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 06 apr 2006, 13:00

Hoe is dat bestand daar gekomen. Kan mij niet herinneren dat dat bij de Attachment Mod is meegeleverd.
... Maar ik modereer (nog) niet.

Jade
Berichten: 24
Lid geworden op: 03 feb 2003, 13:18
Contacteer:

Bericht door Jade » 06 apr 2006, 13:13

Ik heb dit hier vandaan;
http://www.phpbb2.de/dload.php?action=file&file_id=803
Is dit verkeerd?

Jade
Berichten: 24
Lid geworden op: 03 feb 2003, 13:18
Contacteer:

Bericht door Jade » 06 apr 2006, 15:25

Moet ik dit dan weghalen en even opnieuw erop zetten?

Jade
Berichten: 24
Lid geworden op: 03 feb 2003, 13:18
Contacteer:

Bericht door Jade » 06 apr 2006, 15:30

Helaas heb file weggehaald en opnieuw geupt, op 777 gezet en nu werkt het nog nier :?
Ik heb het idee dat het gewoon iets smpels is in het admin panel.

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 06 apr 2006, 16:53

Niet het bestand index.php op 777, maar de map files op 777.
... Maar ik modereer (nog) niet.

Jade
Berichten: 24
Lid geworden op: 03 feb 2003, 13:18
Contacteer:

Bericht door Jade » 06 apr 2006, 17:58

Jeetje wat een gedoe, je moet er maar opkomen, en ik maar zoeken sorry mensen maar het is nu opgelost de map stond op 0 en nu op 777 en alles werkt :thumb:
Bedankt voor jullie meedenken en hulp :bier: Speciaal Bee

Gesloten