Jump to content

Recommended Posts

im almost done, the only thing is this with this innerframe thing. when you press the gallery link, the new page takes over. if you look at for example, click the calendar link..thats is how its supposed to look when you press gallery link...

 

anyone who can assist me with this one??

 

my page...  www.slybullit.com

Link to comment
https://forums.phpfreaks.com/topic/50048-wohoo-almost/
Share on other sites

ok heres the code

 

<?php

 

require_once("../../class2.php");

require_once(HEADERF);

 

function crawlFolder($dir='.'){ // c:/test/

  if (is_dir($dir)) {

    if ($dh = opendir($dir)) {

      while (($file = readdir($dh)) !== false) {           

            if($file!='images' && $file!='.' && $file!='..' && $file!='js' && $file!='admin' && $file!='cache' && $file!='license' && $file!='lang' && is_dir($file)){

              $num = opendir($file);

              $c=0;

              while (($g = readdir($num)) !== false) {

                    if($g!='.' &&$g!='..' &&$g!='description.txt' &&$g!='cache.txt' && $g!='cache'  && $g!='Thumbs.db') {$c++;$pics[$file][]=$g;}                   

                }

              $data[]=array($file,$c);

            }

        }

        closedir($dh);

        sort($data);

        reset($data);

    }

  }

  return array($data,$pics);

}

 

 

 

require 'config.php';

require 'class.core.php';

include 'version.php';

$stylesheet=(is_numeric($_GET['s']))?'GalStyle'.$_GET['s'].'.css':$stylesheet;

$styleAdd=(is_numeric($_GET['s']))?'&s='.$_GET['s']:'';

echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>

<title>QuickGal</title>

<meta http-equiv="imagetoolbar" content="no">

<script type="text/javascript" src="js/prototype.js"></script>

<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>

<script type="text/javascript" src="js/lightbox.js"></script>

<link rel="stylesheet" href="'.$stylesheet.'" type="text/css" media="screen" />

</head><body><center>

<div id="QuickGcontainer">

        <table id="QuickGal" width="95%"><tr><td><h1>'.$lc_galleries.'</h1><br></td></tr>';

 

list($get,$pics)= crawlFolder();

$folders=array();

foreach ($get as $k=>$v) {

if($v[1]==0) echo '<tr><td height="25" class="indextab" style="padding-left:28px;"><strike>'.$v[0].'</strike> '.$lc_emptyfolder.'</td></tr>';

else echo '<tr><td height="25" class="indextab" style="padding-left:28px;"><a href="QuickGal.php?album='.urlencode($v[0]).'/'.$styleAdd.'">'.$v[0].'</a> ('.$v[1].' '.$lc_pictures.')</td></tr>';

$folders[]=$v[0];

}

 

 

$QG=new QuickGal(1,'./');

list($_thumb,$_img,$_fold)=$QG->rand($folders,$pics,$system);

        $img=@getimagesize($_fold.'/'.$_img);     

        $width= ($img[0]>$maxImgWidth)?$maxImgWidth:$img[0];

        if($width!=0)  $height= round($img[1]/($img[0]/$width));

        $height= ($height>$maxImgHeight)?$maxImgHeight:$height;

 

//// Random pic

echo '<tr><td align="center"><br>

<b>' .$lc_randompicture .'</b><br>

<table alin="center">

<tr><td><a href="thumb.php?img='.$_img.'&w='.$width.'&h='.$height.'&f='.$_fold.'/" rel="lightbox[]" title="' .$lc_randompicture .'"><div class="p-shadow"><div><p><img src="'.$_thumb.'" width="150" height="100" border="0"></p></div></div></a></td></tr>

<tr><td><center>' .$lc_gallery .': <a href="QuickGal.php?album='.$_fold.'/'.$styleAdd.'">'.$_fold.'</a></center></td></tr>

</td></tr></table>

</td></tr>

';

 

echo '</table>

<br><table id="QuickGalFooter">

<tr><td style="height:25px">

<a href="http://www.andyydev.com"><span style="float:right;width:45px;height:10px;"> </span></a>

</td></tr>

</table>

</div>

</center></body></html>';

 

require_once(FOOTERF);

 

 

?>

 

obnoxious big page

Link to comment
https://forums.phpfreaks.com/topic/50048-wohoo-almost/#findComment-245669
Share on other sites

why wont this page open nicely inframe like for example calendar link does? it takes over the whole page. thats my question. i just copied the reqonce class2 and reqonce headerf/footerf from calendar.php

 

i know im dead wrong but i have to try so i eventually learn and see my mistakes

Link to comment
https://forums.phpfreaks.com/topic/50048-wohoo-almost/#findComment-245680
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.