| 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>Icons for Licq work with the Qt-GUI plugin and are 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. Emoticon packs must be put in the emoticons directory of the forementioned directories.</p> |
|---|
| 13 | |
|---|
| 14 | <h3><a href="skins.php">Skins</a> :: <a href="iconsets.php">Icons</a> :: Sounds</h3> |
|---|
| 15 | |
|---|
| 16 | <? |
|---|
| 17 | |
|---|
| 18 | $filetypes = array('.gz'); |
|---|
| 19 | |
|---|
| 20 | $filelist = writetable('./iconsets/iconfiles', $filetypes); |
|---|
| 21 | |
|---|
| 22 | function writetable($directory, $filetypes) |
|---|
| 23 | { |
|---|
| 24 | //Table start |
|---|
| 25 | |
|---|
| 26 | $handle = opendir($directory); |
|---|
| 27 | |
|---|
| 28 | $nameList = file('iconsets/names.txt'); |
|---|
| 29 | foreach ($nameList as $key => $value) |
|---|
| 30 | { |
|---|
| 31 | $nameList[$key] = trim($value); |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | $count =0; |
|---|
| 35 | //Get filenames |
|---|
| 36 | while (($file = readdir($handle))!==false) |
|---|
| 37 | { |
|---|
| 38 | |
|---|
| 39 | if (strcmp(".",$file)!=0 && strcmp("..",$file)!=0) |
|---|
| 40 | { |
|---|
| 41 | $filearray[$count] = $file; |
|---|
| 42 | $count++; |
|---|
| 43 | } |
|---|
| 44 | } |
|---|
| 45 | closedir($handle); |
|---|
| 46 | $count = 0; |
|---|
| 47 | |
|---|
| 48 | //Sort 'em by name |
|---|
| 49 | sort($filearray); |
|---|
| 50 | |
|---|
| 51 | //Print list |
|---|
| 52 | $counter = 0; |
|---|
| 53 | for ($i = 0; $i < count($filearray); $i++) |
|---|
| 54 | { |
|---|
| 55 | $extension = strrchr($filearray[$i], "."); |
|---|
| 56 | |
|---|
| 57 | if (in_array($extension, $filetypes)) |
|---|
| 58 | { |
|---|
| 59 | |
|---|
| 60 | $pic = split("\.", $filearray[$i]); |
|---|
| 61 | foreach ($nameList as $name) |
|---|
| 62 | { |
|---|
| 63 | $temp = split(":", $name); |
|---|
| 64 | if ($temp[0] == $pic[1]) |
|---|
| 65 | { |
|---|
| 66 | $author = $temp[1]; |
|---|
| 67 | } |
|---|
| 68 | } |
|---|
| 69 | $list .= '<div style="text-align:center; float:left; width: 90px; height: 220px;"><a href="iconsets/iconfiles/' . $filearray[$i] . '"><img src="iconsets/thumbs/' . $pic[1] . '.jpg" style="border: 0;" alt="'. $pic[1] .'"/></a><p style="font-size: 10px;"><a href="iconsets/iconfiles/' . $filearray[$i] . '">' . $pic[1] . '</a></p><p style="font-size: 10px;">By: ' . $author . '</p></div>'; |
|---|
| 70 | $counter++; |
|---|
| 71 | } |
|---|
| 72 | } |
|---|
| 73 | |
|---|
| 74 | return $list; |
|---|
| 75 | } |
|---|
| 76 | ?> |
|---|
| 77 | |
|---|
| 78 | <table style="text-align: center;" cellpadding="0" cellspacing="0"> |
|---|
| 79 | <tr> |
|---|
| 80 | <td><? echo $filelist ?></td> |
|---|
| 81 | </tr> |
|---|
| 82 | </table> |
|---|
| 83 | |
|---|
| 84 | </div> |
|---|
| 85 | </div> |
|---|
| 86 | |
|---|
| 87 | <div id="mainfooter"><p id="mainfooter_left"></p><!-- <img src="images/main_bg_bottomleft.gif" border="0" alt="Main" /> --></div> |
|---|
| 88 | |
|---|
| 89 | </div> |
|---|
| 90 | |
|---|
| 91 | <? include "footer.php" ?> |
|---|