TODO: Write a project description
TODO: Describe the installation process
| <?php | |
| // -------------------------------------------------------------------------------- | |
| // PhpConcept Library - Zip Module 1.3 | |
| // -------------------------------------------------------------------------------- | |
| // License GNU/LGPL - Vincent Blavet - January 2003 | |
| // http://www.phpconcept.net | |
| // -------------------------------------------------------------------------------- | |
| // | |
| // Presentation : | |
| // PclZip is a PHP library that manage ZIP archives. |
| <?php | |
| function Zip($source, $destination) | |
| { | |
| if (!extension_loaded('zip') || !file_exists($source)) { | |
| return false; | |
| } | |
| $zip = new ZipArchive(); | |
| if (!$zip->open($destination, ZIPARCHIVE::CREATE)) { | |
| return false; |
| javascript: | |
| var CSSRefresh = { | |
| styleSheets: [], | |
| init: function() { | |
| var links = document.getElementsByTagName("link"), | |
| lastModified; |
| /** | |
| * Pobiera dane ze wskazanego adresu URL poprzez cURL. | |
| * | |
| * @todo Ta funkcja jest zbyt ogólna, by znajdować się w komendach czata. | |
| * @param string $url Adres URL. | |
| * @param array $headers Nagłówki, jakie należy przesłać razem z zapytaniem. | |
| * @param bool $isPost Informacja, czy zapytanie ma zostać zadane metodą POST. Jeśli false, będzie użytwa metoda GET. | |
| * @param mixed $data Dane do przesłania metodą post. | |
| * @return string | |
| */ |
| .hide-parent { | |
| float: right; | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| } | |
| .hide-parent:hover { | |
| color: #fff !important; | |
| border: 0 !important; | |
| } |
| <?php | |
| function gist_shortcode($atts) { | |
| return sprintf( | |
| '<script src="https://gist.github.com/%s.js%s"></script>', | |
| $atts['id'], | |
| $atts['file'] ? '?file=' . $atts['file'] : '' | |
| ); |