root/branches/licq/website/skins.php

Revision 4129, 3.7 kB (checked in by anonymous, 4 years ago)

This commit was manufactured by cvs2svn to create branch 'licq'.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • 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>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>
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, or use the -s option to the qt-gui.</p>
23          <p>You can also test a skin by unpacking it anywhere and passing the gui the full pathname to the directory.</p>
24
25          <h3><a href="skins.php">Skins</a> :: <a href="iconsets.php">Icons</a> :: Sounds :: Click Images to Zoom</h3>
26           
27            <?
28
29            $filetypes = array('.gz');
30
31            $filelist = writetable('./skins/skin_files', $filetypes);
32
33            function writetable($directory, $filetypes) 
34            {
35              //Table start
36 
37              $handle = opendir($directory);
38
39              $nameList = file('skins/names.txt');
40              foreach ($nameList as $key => $value)
41                {
42                  $nameList[$key] = trim($value);
43                }
44
45              $count =0;
46              //Get filenames
47              while (($file = readdir($handle))!==false)
48              {
49
50                if (strcmp(".",$file)!=0 && strcmp("..",$file)!=0)
51                {
52                  $filearray[$count] = $file;
53                  $count++;
54                }
55              }   
56              closedir($handle); 
57              $count = 0;
58
59              //Sort 'em by name
60              sort($filearray);
61             
62              //Print list
63              $counter = 0;
64              for ($i = 0; $i < count($filearray); $i++)
65              { 
66                $extension = strrchr($filearray[$i], ".");
67
68                if (in_array($extension, $filetypes))
69                {
70                     
71                    $pic = split("\.", $filearray[$i]);
72                    foreach ($nameList as $name)
73                    {
74                      $temp = split(":", $name);
75                      if ($temp[0] == $pic[1])
76                      {
77                        $author = $temp[1];
78                      }
79                    }
80                    $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>';
81                    $counter++;
82                  }
83                 }
84 
85              return $list;
86            }
87          ?>
88       
89            <table style="text-align: center;" cellpadding="0" cellspacing="0">
90              <tr>
91                <td><? echo $filelist ?></td>
92              </tr>
93            </table>
94     
95          </div>
96        </div>
97
98        <div id="mainfooter"><p id="mainfooter_left"></p><!-- <img src="images/main_bg_bottomleft.gif" border="0" alt="Main" /> --></div>
99
100            </div>
101
102<? include "footer.php" ?>
Note: See TracBrowser for help on using the browser.