| | | | |
| | |
| Gast
Beiträge: n/a
| Hello Leute Ich habe ein Problem. Vielleicht nur was kleines aber ich finde es nicht seit ca 2Wochen schon. Ich habe eine Vorlage Gallery auf meinen Server geladen alles nach Plan eingestellet und nun bekomme ich die Meldung "Pfad nicht gefunden" look= www.screwy.ch/gallery/webalbum/index.php Welchen Pfad weiss ich nicht. Vielleicht nützt das ich habe eine Kopie der config.inc.php gemacht look= http://www.screwy.ch/gallery/config.inc.php Im voraus Danke. Cu heavenstr1ker |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Gast
Beiträge: n/a
| yep also ich weiss gar nicht welchen Pfad er nicht findet. code: $config['dir']['pics'] = '/images'; // root directory of your image files $config['dir']['temp'] = '/tmp'; // temp directory (must be writable for php!) habe ich eingestellt CHMOD 777 ich habe den Pfad mit den Bildern http://www.screwy.ch/gallery/webalbum/images/ |
| | |
| Gast
Beiträge: n/a
| hier: Code: <?
require('./start.inc.php');
if (isset($_GET['path'])) {
$tmppath = base64_decode($_GET['path']);
}
else {
$tmppath = '/';
}
if (isset($_GET['page'])) {
$page = $_GET['page'];
}
else {
$page = 1;
}
$cols = $config['design']['cols'];
$rows = $config['design']['rows'];
$perpage = $cols * $rows;
$path = url_path($tmppath);
$permissions = get_permissions($path['rel']);
if (!$permissions['view']) {
sendLoginForm();
}
?>
<? require('./header.inc.php'); ?>
<script type="text/javascript">
<!--
function openwin(url, width, height) {
var maxWidth = screen.width - (screen.width - screen.availWidth) * 2;
var maxHeight = screen.height - (screen.height - screen.availHeight) * 2;
if (width > maxWidth) {
width = maxWidth;
}
if (height > maxHeight) {
height = maxHeight;
}
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
window.open(url,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,left=" + left + ",top=" + top + ",height=" + height + ",width=" + width);
}
-->
</script>
<form method="post" action="index.php?path=<? echo base64_encode($path['rel']) ?>&page=<? echo $page ?>&login=1">
<table class="maxwidth" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="nav">[<? echo $lang['index.root'] ?>]
<?
$dir_tree = explode('/', $path['rel']);
for ($i = 1; $i < count($dir_tree) - 1; $i++) {
$browse_path = "/";
for ($j = 1; $j <= $i; $j++) {
$browse_path .= $dir_tree[$j] . "/";
}
if ($i < count($dir_tree) - 2) {
?> / <? echo cutoff($dir_tree[$i]) ?><?
}
else {
echo " / " . cutoff($dir_tree[$i]);
}
}
list($directories, $images) = read_dir($path['abs']);
if ($is_admin && $_GET['timestamp'] > $_SESSION['lastrenew'] && $_GET['action'] == 'renew') {
if (isset($_GET['renewimage'])) {
$relfile = base64_decode($_GET['renewimage']);
$image = url_image($relfile);
if (file_exists($image['thumb'])) {
unlink($image['thumb']);
}
}
else if (isset($_GET['renewfolder'])) {
$relpath = base64_decode($_GET['renewfolder']);
$tmp_path = url_path($relpath);
if (file_exists($tmp_path['thumb'])) {
unlink($tmp_path['thumb']);
}
}
else {
for ($i = 0; $i < count($directories); $i++) {
$relpath = $path['rel'] . $directories[$i] . '/';
$tmp_path = url_path($relpath);
if (file_exists($tmp_path['thumb'])) {
unlink($tmp_path['thumb']);
}
}
for ($i = 0; $i < count($images); $i++) {
$relfile = $path['rel'] . $images[$i];
$image = url_image($relfile);
if (file_exists($image['thumb'])) {
unlink($image['thumb']);
}
}
}
$_SESSION['lastrenew'] = $_GET['timestamp'];
}
$dir_count = count($directories);
$image_count = count($images);
$startindex = ($page - 1) * $perpage;
$endindex = min($page * $perpage, $dir_count + $image_count);
$pages = ceil(($dir_count + $image_count) / $perpage);
?>
</td>
<td class="nav" align="right">
<?
if ($pages > 1) {
if ($pages < 10) {
for ($i = 1; $i <= $pages; $i++) {
$navlinks .= ($page == $i) ? " $i " : " <a class=\"nav\" href=\"index.php?path=" . base64_encode($path['rel']) . "&page=$i\">$i</a> ";
}
}
else {
for ($i = 1; $i <= min(3, $pages); $i++) {
$navlinks .= ($page == $i) ? " $i " : " <a class=\"nav\" href=\"index.php?path=" . base64_encode($path['rel']) . "&page=$i\">$i</a> ";
}
if ($pages > 3) {
if ($page > 1 && $page < $pages) {
if ($page > 5) {
$navlinks .= ' ... ';
}
for ($i = max($page, 5) - 1; $i <= min($page, $pages - 4) + 1; $i++) {
$navlinks .= ($page == $i) ? " $i " : " <a class=\"nav\" href=\"index.php?path=" . base64_encode($path['rel']) . "&page=$i\">$i</a> ";
}
if ($page < $pages - 4) {
$navlinks .= ' ... ';
}
}
else {
$navlinks .= ' ... ';
}
}
for ($i = $pages - 2; $i <= $pages; $i++) {
$navlinks .= ($page == $i) ? " $i " : " <a class=\"nav\" href=\"index.php?path=" . base64_encode($path['rel']) . "&page=$i\">$i</a> ";
}
}
if ($page > 1) {
$navlinks = " <a class=\"nav\" href=\"index.php?path=" . base64_encode($path['rel']) . "&page=" . ($page - 1) . "\">" . $lang['index.previous'] . "</a> | " . $navlinks;
}
if ($page < $pages) {
$navlinks .= " | <a class=\"nav\" href=\"index.php?path=" . base64_encode($path['rel']) . "&page=" . ($page + 1) . "\">" . $lang['index.next'] . "</a> ";
}
}
echo $navlinks;
?>
</td>
</tr>
<tr>
<td class="nav2" align="left">
<?
if ($image_count > 1) {
$url = "slideshow.php?path=" . base64_encode($path['rel']);
?>', screen.width, screen.height); return false;"><? echo $lang['index.slideshow'] ?><?
}
if ($is_admin && $image_count + $dir_count > 0) {
?> | <? echo $lang['index.renewthumbs'] ?><?
}
if ($is_admin) {
$url = "permissions.php?action=edit&path=" . base64_encode($path['rel']);
?> | ', 500, 300); return false;"><? echo $lang['index.permissions'] ?><?
}
?>
</td>
<td class="nav2" align="right">
<?
if (isset($_SESSION["user"])) {
echo $_SESSION["user"]["user"]; ?> | <? echo $lang['index.logout'] ?><?
if ($_SESSION['user']['alterself']) {
?> | <? echo $lang['index.changepass'] ?><?
}
if ($is_admin) {
?> | <? echo $lang['index.manageusers'] ?><?
}
}
else {
?> <? echo $lang['index.user'] ?>: <input class="login" type="text" name="login_user" /> <? echo $lang['index.password'] ?>: <input class="login" type="password" name="login_pass" /> <input class="submit" type="submit" value="<? echo $lang['index.login'] ?>" /><?
}
?>
</td>
</tr>
<tr>
<td colspan="2">
<table class="maxwidth" border="0" cellspacing="10" cellpadding="0">
<?
for ($current = $startindex; $current < $endindex; $current++) {
if ($current % $cols == 0) {
echo "<tr>";
}
echo "<td style=\"width: " . $config['design']['thumbsize'] . "px; height: " . ($config['design']['thumbsize'] + 15) . "px;\">\n";
echo "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\" style=\"width: " . $config['design']['thumbsize'] . "px; height: " . $config['design']['thumbsize'] . "px;\">\n";
if ($current < $dir_count) {
$item = $directories[$current];
$relfile = $path['rel'] . $item . '/';
?>
[img]folderthumb.php?path=<? echo base64_encode($relfile) ?>[/img]
<?
}
else {
$item = $images[$current - $dir_count];
$relfile = $path['rel'] . $item;
$url = "view.php?action=count&path=" . base64_encode($relfile);
$absfile = $path['abs'] . $item;
if ($config['design']['viewinline']) {
?>
[img]thumbnail.php?path=<? echo base64_encode($relfile) ?>[/img]
<?
}
else {
$imagesize = getimagesize($absfile);
if ($config['design']['maxwidth'] > 0 && $imagesize[0] > $config['design']['maxwidth']) {
$imagesize[0] = $config['design']['maxwidth'];
}
if ($config['design']['maxheight'] > 0 && $imagesize[1] > $config['design']['maxheight']) {
$imagesize[1] = $config['design']['maxheight'];
}
?>
', <? echo $imagesize[0] + 80 ?>, <? echo $imagesize[1] + 150 ?>); return false;">[img]thumbnail.php?path=<? echo base64_encode($relfile) ?>[/img]
<?
}
}
echo "</td></tr><tr><td align=\"center\" style=\"width: " . $config['design']['thumbsize'] . "px; height: 15px;\">\n";
if ($current < $dir_count) {
if ($config['design']['showfoldernames']) {
?>
<? echo cutoff($item) ?>
<?
}
if ($is_admin) {
?>
<? echo $lang['index.renewthumb'] ?>
<?
}
}
else {
if ($config['design']['showfilenames']) {
?>
', screen.width, screen.height); return false;"><? echo cutoff($item) ?>
<?
}
if ($is_admin) {
?>
<? echo $lang['index.renewthumb'] ?>
<?
}
}
echo "</td></tr></table>\n";
echo "</td>";
if (($current + 1) % $cols == 0) {
echo "</tr>";
}
}
if ($current % $cols != 0) {
for ($i = 0; $i < $cols - ($current % $cols); $i++) {
echo "<td align=\"center\" valign=\"middle\" style=\"width: " . $config['design']['thumbsize'] . "px; height: " . ($config['design']['thumbsize'] + 15) . "px;\"></td>";
}
echo "</tr>";
}
?>
</table>
</td>
</tr>
<tr>
<td class="nav" align="left"><? echo $lang['index.generatedby'] ?> phpWebAlbum <? echo $version ?></td>
<td class="nav" align="right"><? echo $navlinks ?></td>
</tr>
</table>
</form>
<? require('./footer.inc.php'); ?>
|
| | |
| Gast
Beiträge: n/a
| Wärs vielleicht irgendjemanden wenn ich ihm meine FTP and MySql daten gebe das schnell einzurichten? Ich finde den Fehler nicht! wirite me @ mail screwy_ch@hotmail.com Cu heavenstr1ker |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| bitte hilfe! mysql fehler meldung: | basicx | PHP Tipps 2008 | 2 | 22.07.2008 16:36 |
| mysql fehler meldung: | basicx | Datenbanken | 1 | 22.07.2008 09:48 |
| [Erledigt] Mysql Syntax Fehler | Datenbanken | 3 | 06.07.2006 09:58 | |
| Frage: Suche Fehler in diesem Script... | PHP Tipps 2005-2 | 14 | 25.10.2005 19:24 | |
| unerklärlicher fehler in der registrierungssite | matthros | PHP Tipps 2005-2 | 8 | 12.06.2005 18:08 |
| [Erledigt] Seite wird nicht angezeigt, untersch. Fehler bei IE/FF/Safar | PHP-Fortgeschrittene | 19 | 31.05.2005 14:52 | |
| Blöder MySQL Fehler | PHP Tipps 2005 | 3 | 15.05.2005 03:14 | |
| Fehlermeldung - aber kein fehler... | Tschuu | HTML, Usability und Barrierefreiheit | 16 | 14.03.2005 15:56 |
| Wo liegt der fehler?? | PHP-Fortgeschrittene | 5 | 22.12.2004 09:54 | |
| [Erledigt] mysql fehler | PHP Tipps 2004 | 2 | 03.11.2004 00:32 | |
| Email prüfen - Fehler sind da....? | PHP Tipps 2004 | 5 | 20.10.2004 17:35 | |
| Hilfe ich finde den Fehler nicht! | PHP Tipps 2004 | 2 | 07.10.2004 17:40 | |
| array_push nur in begrenzter Anzahl ausführen ? | PHP Tipps 2004 | 2 | 07.09.2004 09:05 | |
| mysql_real_escape_string - Fehler | Schaelle | Datenbanken | 0 | 03.07.2004 23:32 |
| Paradox, Fehler bei Berechnung in MySQL | MrNiceGuy | Datenbanken | 0 | 23.06.2004 16:09 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| welchen pfad für webalbum, $_get [\relpath\] |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.