root/branches/licq/website/iconsets.php

Revision 4124, 3.5 kB (checked in by emostar, 4 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?
2  include "header.php";
3
4  if (file_exists("/home/groups/l/li/licq/htdocs/zorbstats/zorblogs.php"))
5    include("/home/groups/l/li/licq/htdocs/zorbstats/zorblogs.php");
6  if (file_exists("/home/groups/l/li/licq/htdocs/zorbstats/zorblogspages.php"))
7  {
8    include ("/home/groups/l/li/licq/htdocs/zorbstats/zorblogspages.php");
9    $pagename = substr($PHP_SELF, 1);
10    $dispname = substr($PHP_SELF, 1, -4);
11    countpage($pagename, $dispname);
12  }
13?>
14     
15      <div id="content" >
16
17                <div id="main"><img src="images/main_title_skins.gif" alt="Main" /></div>
18        <div id="maincontent">
19          <div id="subcontent">
20
21          <p>Icons for Licq work with the Qt-GUI plugin and are easy to install.</p>
22          <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>
23
24          <h3><a href="skins.php">Skins</a> :: <a href="iconsets.php">Icons</a> :: Sounds</h3>
25           
26            <?
27
28            $filetypes = array('.gz');
29
30            $filelist = writetable('./iconsets/iconfiles', $filetypes);
31
32            function writetable($directory, $filetypes) 
33            {
34              //Table start
35 
36              $handle = opendir($directory);
37
38              $nameList = file('iconsets/names.txt');
39              foreach ($nameList as $key => $value)
40                {
41                  $nameList[$key] = trim($value);
42                }
43
44              $count =0;
45              //Get filenames
46              while (($file = readdir($handle))!==false)
47              {
48
49                if (strcmp(".",$file)!=0 && strcmp("..",$file)!=0)
50                {
51                  $filearray[$count] = $file;
52                  $count++;
53                }
54              }   
55              closedir($handle); 
56              $count = 0;
57
58              //Sort 'em by name
59              sort($filearray);
60             
61              //Print list
62              $counter = 0;
63              for ($i = 0; $i < count($filearray); $i++)
64              { 
65                $extension = strrchr($filearray[$i], ".");
66
67                if (in_array($extension, $filetypes))
68                {
69                     
70                    $pic = split("\.", $filearray[$i]);
71                    foreach ($nameList as $name)
72                    {
73                      $temp = split(":", $name);
74                      if ($temp[0] == $pic[1])
75                      {
76                        $author = $temp[1];
77                      }
78                    }
79                    $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>';
80                    $counter++;
81                  }
82                 }
83 
84              return $list;
85            }
86          ?>
87       
88            <table style="text-align: center;" cellpadding="0" cellspacing="0">
89              <tr>
90                <td><? echo $filelist ?></td>
91              </tr>
92            </table>
93     
94          </div>
95        </div>
96
97        <div id="mainfooter"><p id="mainfooter_left"></p><!-- <img src="images/main_bg_bottomleft.gif" border="0" alt="Main" /> --></div>
98
99            </div>
100
101<? include "footer.php" ?>
Note: See TracBrowser for help on using the browser.