| 1 | <? |
|---|
| 2 | include "header.php"; |
|---|
| 3 | ?> |
|---|
| 4 | |
|---|
| 5 | <div id="content" > |
|---|
| 6 | |
|---|
| 7 | <div id="main"><img src="images/main_title_skins.gif" alt="Main" /></div> |
|---|
| 8 | <div id="maincontent"> |
|---|
| 9 | <div id="subcontent"> |
|---|
| 10 | |
|---|
| 11 | <p>Skins for Licq work with the Qt-GUI plugin and are easy to make (see the <a href="SKINS.HOWTO">SKINS.HOWTO</a>) and easy to install.</p> |
|---|
| 12 | <p>To use one, simply unpack it into the qt-gui directory (/usr/local/share/licq/qt-gui or /usr/share/licq/qt-gui) or your licq directory (~/.licq) and then select it from the Skin Browser, or use the -s option to the qt-gui.</p> |
|---|
| 13 | <p>You can also test a skin by unpacking it anywhere and passing the gui the full pathname to the directory.</p> |
|---|
| 14 | |
|---|
| 15 | <h3><a href="skins.php">Skins</a> :: <a href="iconsets.php">Icons</a> :: Sounds :: Click Images to Zoom</h3> |
|---|
| 16 | |
|---|
| 17 | <? |
|---|
| 18 | |
|---|
| 19 | $filetypes = array('.gz'); |
|---|
| 20 | |
|---|
| 21 | $filelist = writetable('./skins/skin_files', $filetypes); |
|---|
| 22 | |
|---|
| 23 | function writetable($directory, $filetypes) |
|---|
| 24 | { |
|---|
| 25 | //Table start |
|---|
| 26 | |
|---|
| 27 | $handle = opendir($directory); |
|---|
| 28 | |
|---|
| 29 | $nameList = file('skins/names.txt'); |
|---|
| 30 | foreach ($nameList as $key => $value) |
|---|
| 31 | { |
|---|
| 32 | $nameList[$key] = trim($value); |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | $count =0; |
|---|
| 36 | //Get filenames |
|---|
| 37 | while (($file = readdir($handle))!==false) |
|---|
| 38 | { |
|---|
| 39 | |
|---|
| 40 | if (strcmp(".",$file)!=0 && strcmp("..",$file)!=0) |
|---|
| 41 | { |
|---|
| 42 | $filearray[$count] = $file; |
|---|
| 43 | $count++; |
|---|
| 44 | } |
|---|
| 45 | } |
|---|
| 46 | closedir($handle); |
|---|
| 47 | $count = 0; |
|---|
| 48 | |
|---|
| 49 | //Sort 'em by name |
|---|
| 50 | sort($filearray); |
|---|
| 51 | |
|---|
| 52 | //Print list |
|---|
| 53 | $counter = 0; |
|---|
| 54 | for ($i = 0; $i < count($filearray); $i++) |
|---|
| 55 | { |
|---|
| 56 | $extension = strrchr($filearray[$i], "."); |
|---|
| 57 | |
|---|
| 58 | if (in_array($extension, $filetypes)) |
|---|
| 59 | { |
|---|
| 60 | |
|---|
| 61 | $pic = split("\.", $filearray[$i]); |
|---|
| 62 | foreach ($nameList as $name) |
|---|
| 63 | { |
|---|
| 64 | $temp = split(":", $name); |
|---|
| 65 | if ($temp[0] == $pic[1]) |
|---|
| 66 | { |
|---|
| 67 | $author = $temp[1]; |
|---|
| 68 | } |
|---|
| 69 | } |
|---|
| 70 | $list .= '<div style="text-align:center; float:left; width: 90px; height: 220px;"><a href="zoom.php?skin='. $pic[1] .'"><img src="skins/thumbs/' . $pic[1] . '.jpg" style="border: 0;" alt="'. $pic[1] .'"/></a><p style="font-size: 10px;"><a href="skins/skin_files/' . $filearray[$i] . '">' . $pic[1] . '</a></p><p style="font-size: 10px;">By: ' . $author . '</p></div>'; |
|---|
| 71 | $counter++; |
|---|
| 72 | } |
|---|
| 73 | } |
|---|
| 74 | |
|---|
| 75 | return $list; |
|---|
| 76 | } |
|---|
| 77 | ?> |
|---|
| 78 | |
|---|
| 79 | <table style="text-align: center;" cellpadding="0" cellspacing="0"> |
|---|
| 80 | <tr> |
|---|
| 81 | <td><? echo $filelist ?></td> |
|---|
| 82 | </tr> |
|---|
| 83 | </table> |
|---|
| 84 | |
|---|
| 85 | </div> |
|---|
| 86 | </div> |
|---|
| 87 | |
|---|
| 88 | <div id="mainfooter"><p id="mainfooter_left"></p><!-- <img src="images/main_bg_bottomleft.gif" border="0" alt="Main" /> --></div> |
|---|
| 89 | |
|---|
| 90 | </div> |
|---|
| 91 | |
|---|
| 92 | <? include "footer.php" ?> |
|---|