CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

Contents Management System

Home CMS 웹CGI
[스크린샷]
35mm-5394-ja14k...
(클릭하시면 큰 화면으로 볼 수 있습니다.)

[설명]

PHP로 구현되는 갤러리 소스입니다.

아쉬운 게 있다면 하위 폴더는 안된다는 게 조금 아쉽습니다.





popup.php파일에서 이렇게 고쳐주시면 사용하기 편합니다.

print "<html>";
print "<head>";
print "<title>$t</title>";
print "</head>";
print "<body bgcolor=\"Black\" leftmargin=0 topmargin=0  marginwidth=0 marginheight=0 onload=\"self.focus();\">";
print "<a href=javascript:window.close()><img src=\"$img\" width=$w height=$h border=0 alt=close></a>";
print "</body>";

업로드는 upload.php에서 해줍니다. config.php 파일에서 한 번에 올릴 수 있는 사진 갯수를 지정할 수 있습니다.
일반 ftp에서 업로드하여도 무방합니다.

[설명2]

35mm Slide Gallery
폴더 설명과 사진 설명도 업로드할 때 넣어줄 수 있는데 이는 txt파일로 사진과 같은 디렉토리에 저장이 된다.

config.php 로그인 비밀번호 등을 설정해줄 수 있음
소스 수정하다가 줄바꿈이 되지 않도록 조심하여야 한다. 설명글이 길어서 자동 줄바꿈 옵션을 켜놓고 저장하면 오류가 생긴다.

//Slide gallery variables
$place = "."; //directory of the slide mount images, no need to change
$col = 3; //no. of columns in a page
$maxrow = 2; //no. of rows in a page
$dir="."; //directory for this script, no need to change
$thumb= true ; //setting it to TRUE will generate real thumbnails on-the-fly,supports jpg file only and requires GD library. Setting it to FALSEwill resize the original file to fit the thumbnail size, long downloadtime. Turn it off if thumbnails don't show properly.
$croptofit =true ; //TRUE will crop the thumbnail to fit the aspect ratio of theslide mount if they aren't the same. False won't crop the thumbnail butit will be distorted if both aspect ratios are not the same.
$rollover = true ;  //thumbnail rollover effect for IE only

//Upload/Delete Module variables
$LOGIN = "관리자 아이디";
$PASSWORD = "비밀번호";
$abpath = "/home/xynex/immf"; //Absolute path to where images are uploaded. No trailing slash (절대경로)
$sizelim = "no"; //Size limit, yes or no (파일 사이즈 제한 여부)
$size = "2500000"; //Size limit if there is one (위에서 제한한 크기)
$number_of_uploads = 5;  //Maximum number of uploads in one time (최대 업로드 갯수)


delete.php 생성한 이미지 디렉토리 자체를 지우는 파일. 디렉토리 내 모든 이미지가 같이 지워진다.

footer.inc
gallery.css 스타일시트 파일
GPL.TXT
header.inc
index.php 인덱스 파일
popup.php 팝업되는 창의 소스
readme.txt
rollover.txt
slide.psd 쉽게 이미지 틀을 수정하라고 psd 파일까지 동봉해놓았다
slide_01.gif
slide_02.gif
slide_04.gif
slide_05.gif
slidev.psd
slidev_01.gif
slidev_02.gif
slidev_04.gif
slidev_05.gif
thumbs.php
upload.php 이미지 업로드 파일.

폴더를 생성할 수 있다. 퍼미션 755 이상을 주어야한다

추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기