commit fc503adc666cc827f2377e2f37cf3d2144f33283 Author: Alenka Date: Wed Aug 16 14:16:19 2017 +0200 Initial commit diff --git a/SNA - Navodila za namestitev aplikacije.pdf b/SNA - Navodila za namestitev aplikacije.pdf new file mode 100644 index 0000000..ba5593d Binary files /dev/null and b/SNA - Navodila za namestitev aplikacije.pdf differ diff --git a/SNA - Navodila za uporabo.pdf b/SNA - Navodila za uporabo.pdf new file mode 100644 index 0000000..fa50a7d Binary files /dev/null and b/SNA - Navodila za uporabo.pdf differ diff --git a/digital_atlas.sql b/digital_atlas.sql new file mode 100644 index 0000000..9a88544 --- /dev/null +++ b/digital_atlas.sql @@ -0,0 +1,360 @@ +-- phpMyAdmin SQL Dump +-- version 4.5.4.1deb2ubuntu2 +-- http://www.phpmyadmin.net +-- +-- Gostitelj: localhost +-- Čas nastanka: 12. avg 2017 ob 12.57 +-- Različica strežnika: 5.7.19-0ubuntu0.16.04.1 +-- Različica PHP: 7.0.22-0ubuntu0.16.04.1 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Zbirka podatkov: `digital_atlas` +-- +CREATE DATABASE IF NOT EXISTS `digital_atlas` DEFAULT CHARACTER SET utf8 COLLATE utf8_slovenian_ci; +USE `digital_atlas`; + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `dialects` +-- + +CREATE TABLE `dialects` ( + `id` int(11) NOT NULL, + `name` varchar(255) COLLATE utf8_slovenian_ci NOT NULL, + `type` tinyint(4) NOT NULL COMMENT '/1-skupina, 2-narecje, 3-podnarecje', + `id_parent` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- +-- Odloži podatke za tabelo `dialects` +-- + +INSERT INTO `dialects` (`id`, `name`, `type`, `id_parent`) VALUES +(1, 'gorenjska narečna skupina', 1, NULL), +(2, 'gorenjsko narečje', 2, 1), +(3, 'vzhodnogorenjsko podnarečje', 3, 2), +(4, 'selško narečje', 2, 1), +(5, 'dolenjska narečna skupina', 1, NULL), +(6, 'dolenjsko narečje', 2, 5), +(7, 'vzhodnodolenjsko podnarečje', 3, 6), +(8, 'severnobelokranjsko narečje', 2, 5), +(9, 'južnobelokranjsko narečje', 2, 5), +(10, 'kostelsko narečje', 2, 5), +(11, 'mešani kočevski govori', 2, 5), +(12, 'štajerska narečna skupina', 1, NULL), +(13, 'srednjesavinjsko narečje', 2, 12), +(14, 'zgornjesavinjsko narečje', 2, 12), +(15, 'solčavsko podnarečje', 3, 14), +(16, 'srednještajersko narečje', 2, 12), +(17, 'južnopohorsko narečje', 2, 12), +(18, 'kozjaško podnarečje', 3, 17), +(19, 'kozjansko-bizeljsko narečje', 2, 12), +(20, 'posavsko narečje', 2, 12), +(21, 'zagorsko-trboveljsko podnarečje', 3, 20), +(22, 'laško podnarečje ', 3, 20), +(23, 'sevniško-krško podnarečje', 3, 20), +(24, 'panonska narečna skupina', 1, NULL), +(25, 'prekmursko narečje ', 2, 24), +(26, 'slovenskogoriško narečje', 2, 24), +(27, 'prleško narečje ', 2, 24), +(28, 'haloško narečje', 2, 24), +(29, 'koroška narečna skupina', 1, NULL), +(30, 'severnopohorsko-remšniško narečje', 2, 29), +(31, 'mežiško narečje', 2, 29), +(32, 'podjunsko narečje', 2, 29), +(33, 'rožansko narečje', 2, 29), +(34, 'obirsko narečje', 2, 29), +(35, 'ziljsko narečje', 2, 29), +(36, 'kranjskogorsko podnarečje', 3, 35), +(37, 'primorska narečna skupina', 1, NULL), +(38, 'rezijansko narečje', 2, 37), +(39, 'obsoško narečje', 2, 37), +(40, 'tersko narečje', 2, 37), +(41, 'nadiško narečje', 2, 37), +(42, 'briško narečje', 2, 37), +(43, 'kraško narečje', 2, 37), +(44, 'banjško podnarečje', 3, 43), +(45, 'istrsko narečje', 2, 37), +(46, 'rižansko podnarečje', 3, 45), +(47, 'šavrinsko podnarečje', 3, 45), +(48, 'notranjsko narečje', 2, 37), +(49, 'čiško narečje', 2, 37), +(50, 'rovtarska narečna skupina', 1, NULL), +(51, 'tolminsko narečje', 2, 50), +(52, 'baško podnarečje', 3, 51), +(53, 'cerkljansko narečje', 2, 50), +(54, 'poljansko narečje', 2, 50), +(55, 'škofjeloško narečje', 2, 50), +(56, 'črnovrško narečje', 2, 50), +(57, 'horjulsko narečje', 2, 50); + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `lexems` +-- + +CREATE TABLE `lexems` ( + `id` int(11) NOT NULL, + `title` varchar(255) COLLATE utf8_slovenian_ci NOT NULL, + `icon` varchar(500) COLLATE utf8_slovenian_ci NOT NULL, + `id_word` int(11) NOT NULL, + `icon_color` varchar(255) COLLATE utf8_slovenian_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `locations` +-- + +CREATE TABLE `locations` ( + `id` int(11) NOT NULL, + `name` varchar(255) COLLATE utf8_slovenian_ci NOT NULL DEFAULT '', + `short_name` varchar(50) COLLATE utf8_slovenian_ci NOT NULL DEFAULT '', + `lat` decimal(10,6) NOT NULL, + `long` decimal(10,6) NOT NULL, + `id_dialect` int(11) NOT NULL, + `id_subdialect` int(11) NOT NULL, + `id_subsubdialect` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `subjects` +-- + +CREATE TABLE `subjects` ( + `id` int(1) NOT NULL, + `title` varchar(255) COLLATE utf8_slovenian_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `subject_locations` +-- + +CREATE TABLE `subject_locations` ( + `id` int(11) NOT NULL, + `id_subject` int(11) DEFAULT NULL, + `id_location` int(11) NOT NULL, + `checked` tinyint(4) NOT NULL DEFAULT '1' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `transcriptions` +-- + +CREATE TABLE `transcriptions` ( + `id` int(11) NOT NULL, + `phonetic_writing` varchar(255) COLLATE utf8_slovenian_ci NOT NULL DEFAULT '', + `audio` varchar(255) COLLATE utf8_slovenian_ci NOT NULL DEFAULT '', + `id_lexem` int(1) NOT NULL, + `id_location` int(11) NOT NULL, + `trans_text` text COLLATE utf8_slovenian_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `users` +-- + +CREATE TABLE `users` ( + `id` int(1) NOT NULL, + `username` varchar(255) COLLATE utf8_slovenian_ci NOT NULL, + `name` varchar(255) COLLATE utf8_slovenian_ci NOT NULL, + `lastname` varchar(255) COLLATE utf8_slovenian_ci NOT NULL, + `password_hash` varchar(255) COLLATE utf8_slovenian_ci NOT NULL, + `sess_expiration` int(60) NOT NULL DEFAULT '60' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- +-- Odloži podatke za tabelo `users` +-- + +INSERT INTO `users` (`id`, `username`, `name`, `lastname`, `password_hash`, `sess_expiration`) VALUES +(1, 'admin', 'Admin', '', '$2y$10$bvfsnL9h3A5Dt6IaRT.m7eh/4GXmSgA/5s6wBUHJYrGgBtjDVoxYq', 60); + +-- -------------------------------------------------------- + +-- +-- Struktura tabele `words` +-- + +CREATE TABLE `words` ( + `id` int(11) NOT NULL, + `title` varchar(255) COLLATE utf8_slovenian_ci NOT NULL DEFAULT '', + `image` varchar(255) COLLATE utf8_slovenian_ci NOT NULL DEFAULT '', + `comment` varchar(255) COLLATE utf8_slovenian_ci NOT NULL DEFAULT '', + `id_subject` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovenian_ci; + +-- +-- Indeksi zavrženih tabel +-- + +-- +-- Indeksi tabele `dialects` +-- +ALTER TABLE `dialects` + ADD PRIMARY KEY (`id`), + ADD KEY `FK_dialects_dialects` (`id_parent`); + +-- +-- Indeksi tabele `lexems` +-- +ALTER TABLE `lexems` + ADD PRIMARY KEY (`id`), + ADD KEY `FK_leksems_words` (`id_word`); + +-- +-- Indeksi tabele `locations` +-- +ALTER TABLE `locations` + ADD PRIMARY KEY (`id`), + ADD KEY `FK_locations_dialects` (`id_dialect`), + ADD KEY `FK_locations_dialects_2` (`id_subdialect`), + ADD KEY `FK_locations_dialects_3` (`id_subsubdialect`); + +-- +-- Indeksi tabele `subjects` +-- +ALTER TABLE `subjects` + ADD PRIMARY KEY (`id`); + +-- +-- Indeksi tabele `subject_locations` +-- +ALTER TABLE `subject_locations` + ADD PRIMARY KEY (`id`), + ADD KEY `FK_subject_locations_locations` (`id_location`), + ADD KEY `FK_subject_locations_subjects` (`id_subject`); + +-- +-- Indeksi tabele `transcriptions` +-- +ALTER TABLE `transcriptions` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `id_location_uniq` (`id_location`,`id_lexem`), + ADD KEY `id_word` (`id_lexem`), + ADD KEY `id_location` (`id_location`); + +-- +-- Indeksi tabele `users` +-- +ALTER TABLE `users` + ADD PRIMARY KEY (`id`); + +-- +-- Indeksi tabele `words` +-- +ALTER TABLE `words` + ADD PRIMARY KEY (`id`), + ADD KEY `id_subject` (`id_subject`); + +-- +-- AUTO_INCREMENT zavrženih tabel +-- + +-- +-- AUTO_INCREMENT tabele `dialects` +-- +ALTER TABLE `dialects` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58; +-- +-- AUTO_INCREMENT tabele `lexems` +-- +ALTER TABLE `lexems` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; +-- +-- AUTO_INCREMENT tabele `locations` +-- +ALTER TABLE `locations` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; +-- +-- AUTO_INCREMENT tabele `subjects` +-- +ALTER TABLE `subjects` + MODIFY `id` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; +-- +-- AUTO_INCREMENT tabele `subject_locations` +-- +ALTER TABLE `subject_locations` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; +-- +-- AUTO_INCREMENT tabele `transcriptions` +-- +ALTER TABLE `transcriptions` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; +-- +-- AUTO_INCREMENT tabele `users` +-- +ALTER TABLE `users` + MODIFY `id` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; +-- +-- AUTO_INCREMENT tabele `words` +-- +ALTER TABLE `words` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; +-- +-- Omejitve tabel za povzetek stanja +-- + +-- +-- Omejitve za tabelo `dialects` +-- +ALTER TABLE `dialects` + ADD CONSTRAINT `FK_dialects_dialects` FOREIGN KEY (`id_parent`) REFERENCES `dialects` (`id`); + +-- +-- Omejitve za tabelo `lexems` +-- +ALTER TABLE `lexems` + ADD CONSTRAINT `FK_leksems_words` FOREIGN KEY (`id_word`) REFERENCES `words` (`id`); + +-- +-- Omejitve za tabelo `locations` +-- +ALTER TABLE `locations` + ADD CONSTRAINT `FK_locations_dialects` FOREIGN KEY (`id_dialect`) REFERENCES `dialects` (`id`), + ADD CONSTRAINT `FK_locations_dialects_2` FOREIGN KEY (`id_subdialect`) REFERENCES `dialects` (`id`), + ADD CONSTRAINT `FK_locations_dialects_3` FOREIGN KEY (`id_subsubdialect`) REFERENCES `dialects` (`id`); + +-- +-- Omejitve za tabelo `subject_locations` +-- +ALTER TABLE `subject_locations` + ADD CONSTRAINT `FK_subject_locations_locations` FOREIGN KEY (`id_location`) REFERENCES `locations` (`id`), + ADD CONSTRAINT `FK_subject_locations_subjects` FOREIGN KEY (`id_subject`) REFERENCES `subjects` (`id`) ON DELETE SET NULL ON UPDATE SET NULL; + +-- +-- Omejitve za tabelo `transcriptions` +-- +ALTER TABLE `transcriptions` + ADD CONSTRAINT `FK_transcriptions_leksems` FOREIGN KEY (`id_lexem`) REFERENCES `lexems` (`id`), + ADD CONSTRAINT `FK_transcriptions_locations` FOREIGN KEY (`id_location`) REFERENCES `locations` (`id`); + +-- +-- Omejitve za tabelo `words` +-- +ALTER TABLE `words` + ADD CONSTRAINT `FK_words_subjects` FOREIGN KEY (`id_subject`) REFERENCES `subjects` (`id`); + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..5c3558e --- /dev/null +++ b/readme.txt @@ -0,0 +1,8 @@ +Projekt SNA (Slovenski narečni atlas / Slovenian dialectal atlas) + +Direktorij projekta vsebuje: +- to datoteko readme.txt +- kodo aplikacije v direktoriju sna +- začetno podatkovno bazo v datoteki digital_atlas.sql +- navodila za namestitev aplikacije +- navodila za uporabo aplikacije diff --git a/sna/.editorconfig b/sna/.editorconfig new file mode 100644 index 0000000..39f48d9 --- /dev/null +++ b/sna/.editorconfig @@ -0,0 +1,15 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Matches multiple files with brace expansion notation +# Set default charset +[*] +charset = utf-8 + +# Tab indentation (no size specified) +indent_style = tab diff --git a/sna/.htaccess b/sna/.htaccess new file mode 100644 index 0000000..6cce04f --- /dev/null +++ b/sna/.htaccess @@ -0,0 +1,9 @@ +RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteCond %{REQUEST_FILENAME} !-f + +RewriteCond %{REQUEST_URI} !/assets + +RewriteRule ^(.*)$ index.php/$1 [L] \ No newline at end of file diff --git a/sna/COPYING.gpl-3.0.htm b/sna/COPYING.gpl-3.0.htm new file mode 100644 index 0000000..4096ab1 --- /dev/null +++ b/sna/COPYING.gpl-3.0.htm @@ -0,0 +1,696 @@ + + + + + + GNU General Public License v3.0 - GNU Project - Free Software Foundation (FSF) + + + +

GNU GENERAL PUBLIC LICENSE

+

Version 3, 29 June 2007

+ +

Copyright © 2007 Free Software Foundation, Inc. + <http://fsf.org/>

+ Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed.

+ +

Preamble

+ +

The GNU General Public License is a free, copyleft license for +software and other kinds of works.

+ +

The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too.

+ +

When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things.

+ +

To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others.

+ +

For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights.

+ +

Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it.

+ +

For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions.

+ +

Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users.

+ +

Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free.

+ +

The precise terms and conditions for copying, distribution and +modification follow.

+ +

TERMS AND CONDITIONS

+ +

0. Definitions.

+ +

“This License” refers to version 3 of the GNU General Public License.

+ +

“Copyright” also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks.

+ +

“The Program” refers to any copyrightable work licensed under this +License. Each licensee is addressed as “you”. “Licensees” and +“recipients” may be individuals or organizations.

+ +

To “modify” a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a “modified version” of the +earlier work or a work “based on” the earlier work.

+ +

A “covered work” means either the unmodified Program or a work based +on the Program.

+ +

To “propagate” a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well.

+ +

To “convey” a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying.

+ +

An interactive user interface displays “Appropriate Legal Notices” +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion.

+ +

1. Source Code.

+ +

The “source code” for a work means the preferred form of the work +for making modifications to it. “Object code” means any non-source +form of a work.

+ +

A “Standard Interface” means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language.

+ +

The “System Libraries” of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +“Major Component”, in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it.

+ +

The “Corresponding Source” for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work.

+ +

The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source.

+ +

The Corresponding Source for a work in source code form is that +same work.

+ +

2. Basic Permissions.

+ +

All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law.

+ +

You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you.

+ +

Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary.

+ +

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

+ +

No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures.

+ +

When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures.

+ +

4. Conveying Verbatim Copies.

+ +

You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program.

+ +

You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee.

+ +

5. Conveying Modified Source Versions.

+ +

You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions:

+ + + +

A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +“aggregate” if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate.

+ +

6. Conveying Non-Source Forms.

+ +

You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways:

+ + + +

A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work.

+ +

A “User Product” is either (1) a “consumer product”, which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, “normally used” refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product.

+ +

“Installation Information” for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made.

+ +

If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM).

+ +

The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network.

+ +

Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying.

+ +

7. Additional Terms.

+ +

“Additional permissions” are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions.

+ +

When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission.

+ +

Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms:

+ + + +

All other non-permissive additional terms are considered “further +restrictions” within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying.

+ +

If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms.

+ +

Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way.

+ +

8. Termination.

+ +

You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11).

+ +

However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation.

+ +

Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice.

+ +

Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10.

+ +

9. Acceptance Not Required for Having Copies.

+ +

You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so.

+ +

10. Automatic Licensing of Downstream Recipients.

+ +

Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License.

+ +

An “entity transaction” is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts.

+ +

You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it.

+ +

11. Patents.

+ +

A “contributor” is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's “contributor version”.

+ +

A contributor's “essential patent claims” are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, “control” includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License.

+ +

Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version.

+ +

In the following three paragraphs, a “patent license” is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To “grant” such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party.

+ +

If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. “Knowingly relying” means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid.

+ +

If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it.

+ +

A patent license is “discriminatory” if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007.

+ +

Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law.

+ +

12. No Surrender of Others' Freedom.

+ +

If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program.

+ +

13. Use with the GNU Affero General Public License.

+ +

Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such.

+ +

14. Revised Versions of this License.

+ +

The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns.

+ +

Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License “or any later version” applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation.

+ +

If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program.

+ +

Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version.

+ +

15. Disclaimer of Warranty.

+ +

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

+ +

16. Limitation of Liability.

+ +

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES.

+ +

17. Interpretation of Sections 15 and 16.

+ +

If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee.

+ +

END OF TERMS AND CONDITIONS

+ +

How to Apply These Terms to Your New Programs

+ +

If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms.

+ +

To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the “copyright” line and a pointer to where the full notice is found.

+ +
    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+ +

Also add information on how to contact you by electronic and paper mail.

+ +

If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode:

+ +
    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+ +

The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an “about box”.

+ +

You should also get your employer (if you work as a programmer) or school, +if any, to sign a “copyright disclaimer” for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>.

+ +

The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>.

+ + diff --git a/sna/COPYING.gpl-3.0.txt b/sna/COPYING.gpl-3.0.txt new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/sna/COPYING.gpl-3.0.txt @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/sna/CodeIgniter.contributing.md b/sna/CodeIgniter.contributing.md new file mode 100644 index 0000000..2037e04 --- /dev/null +++ b/sna/CodeIgniter.contributing.md @@ -0,0 +1,95 @@ +# Contributing to CodeIgniter + + +CodeIgniter is a community driven project and accepts contributions of code and documentation from the community. These contributions are made in the form of Issues or [Pull Requests](http://help.github.com/send-pull-requests/) on the [CodeIgniter repository](https://github.com/bcit-ci/CodeIgniter>) on GitHub. + +Issues are a quick way to point out a bug. If you find a bug or documentation error in CodeIgniter then please check a few things first: + +1. There is not already an open Issue +2. The issue has already been fixed (check the develop branch, or look for closed Issues) +3. Is it something really obvious that you can fix yourself? + +Reporting issues is helpful but an even better approach is to send a Pull Request, which is done by "Forking" the main repository and committing to your own copy. This will require you to use the version control system called Git. + +## Guidelines + +Before we look into how, here are the guidelines. If your Pull Requests fail +to pass these guidelines it will be declined and you will need to re-submit +when you’ve made the changes. This might sound a bit tough, but it is required +for us to maintain quality of the code-base. + +### PHP Style + +All code must meet the [Style Guide](https://codeigniter.com/user_guide/general/styleguide.html), which is +essentially the [Allman indent style](https://en.wikipedia.org/wiki/Indent_style#Allman_style), underscores and readable operators. This makes certain that all code is the same format as the existing code and means it will be as readable as possible. + +### Documentation + +If you change anything that requires a change to documentation then you will need to add it. New classes, methods, parameters, changing default values, etc are all things that will require a change to documentation. The change-log must also be updated for every change. Also PHPDoc blocks must be maintained. + +### Compatibility + +CodeIgniter recommends PHP 5.4 or newer to be used, but it should be +compatible with PHP 5.2.4 so all code supplied must stick to this +requirement. If PHP 5.3 (and above) functions or features are used then +there must be a fallback for PHP 5.2.4. + +### Branching + +CodeIgniter uses the [Git-Flow](http://nvie.com/posts/a-successful-git-branching-model/) branching model which requires all pull requests to be sent to the "develop" branch. This is +where the next planned version will be developed. The "master" branch will always contain the latest stable version and is kept clean so a "hotfix" (e.g: an emergency security patch) can be applied to master to create a new version, without worrying about other features holding it up. For this reason all commits need to be made to "develop" and any sent to "master" will be closed automatically. If you have multiple changes to submit, please place all changes into their own branch on your fork. + +One thing at a time: A pull request should only contain one change. That does not mean only one commit, but one change - however many commits it took. The reason for this is that if you change X and Y but send a pull request for both at the same time, we might really want X but disagree with Y, meaning we cannot merge the request. Using the Git-Flow branching model you can create new branches for both of these features and send two requests. + +### Signing + +You must sign your work, certifying that you either wrote the work or otherwise have the right to pass it on to an open source project. git makes this trivial as you merely have to use `--signoff` on your commits to your CodeIgniter fork. + +`git commit --signoff` + +or simply + +`git commit -s` + +This will sign your commits with the information setup in your git config, e.g. + +`Signed-off-by: John Q Public ` + +If you are using [Tower](http://www.git-tower.com/) there is a "Sign-Off" checkbox in the commit window. You could even alias git commit to use the `-s` flag so you don’t have to think about it. + +By signing your work in this manner, you certify to a "Developer's Certificate of Origin". The current version of this certificate is in the `DCO.txt` file in the root of this repository. + + +## How-to Guide + +There are two ways to make changes, the easy way and the hard way. Either way you will need to [create a GitHub account](https://github.com/signup/free). + +Easy way GitHub allows in-line editing of files for making simple typo changes and quick-fixes. This is not the best way as you are unable to test the code works. If you do this you could be introducing syntax errors, etc, but for a Git-phobic user this is good for a quick-fix. + +Hard way The best way to contribute is to "clone" your fork of CodeIgniter to your development area. That sounds like some jargon, but "forking" on GitHub means "making a copy of that repo to your account" and "cloning" means "copying that code to your environment so you can work on it". + +1. Set up Git (Windows, Mac & Linux) +2. Go to the CodeIgniter repo +3. Fork it +4. Clone your CodeIgniter repo: git@github.com:/CodeIgniter.git +5. Checkout the "develop" branch At this point you are ready to start making changes. +6. Fix existing bugs on the Issue tracker after taking a look to see nobody else is working on them. +7. Commit the files +8. Push your develop branch to your fork +9. Send a pull request [http://help.github.com/send-pull-requests/](http://help.github.com/send-pull-requests/) + +The Reactor Engineers will now be alerted about the change and at least one of the team will respond. If your change fails to meet the guidelines it will be bounced, or feedback will be provided to help you improve it. + +Once the Reactor Engineer handling your pull request is happy with it they will merge it into develop and your patch will be part of the next release. + +### Keeping your fork up-to-date + +Unlike systems like Subversion, Git can have multiple remotes. A remote is the name for a URL of a Git repository. By default your fork will have a remote named "origin" which points to your fork, but you can add another remote named "codeigniter" which points to `git://github.com/bcit-ci/CodeIgniter.git`. This is a read-only remote but you can pull from this develop branch to update your own. + +If you are using command-line you can do the following: + +1. `git remote add codeigniter git://github.com/bcit-ci/CodeIgniter.git` +2. `git pull codeigniter develop` +3. `git push origin develop` + +Now your fork is up to date. This should be done regularly, or before you send a pull request at least. \ No newline at end of file diff --git a/sna/CodeIgniter.readme.rst b/sna/CodeIgniter.readme.rst new file mode 100644 index 0000000..f5d7370 --- /dev/null +++ b/sna/CodeIgniter.readme.rst @@ -0,0 +1,70 @@ +################### +What is CodeIgniter +################### + +CodeIgniter is an Application Development Framework - a toolkit - for people +who build web sites using PHP. Its goal is to enable you to develop projects +much faster than you could if you were writing code from scratch, by providing +a rich set of libraries for commonly needed tasks, as well as a simple +interface and logical structure to access these libraries. CodeIgniter lets +you creatively focus on your project by minimizing the amount of code needed +for a given task. + +******************* +Release Information +******************* + +This repo contains in-development code for future releases. To download the +latest stable release please visit the `CodeIgniter Downloads +`_ page. + +************************** +Changelog and New Features +************************** + +You can find a list of all changes for each release in the `user +guide change log `_. + +******************* +Server Requirements +******************* + +PHP version 5.6 or newer is recommended. + +It should work on 5.3.7 as well, but we strongly advise you NOT to run +such old versions of PHP, because of potential security and performance +issues, as well as missing features. + +************ +Installation +************ + +Please see the `installation section `_ +of the CodeIgniter User Guide. + +******* +License +******* + +Please see the `license +agreement `_. + +********* +Resources +********* + +- `User Guide `_ +- `Language File Translations `_ +- `Community Forums `_ +- `Community Wiki `_ +- `Community IRC `_ + +Report security issues to our `Security Panel `_ +or via our `page on HackerOne `_, thank you. + +*************** +Acknowledgement +*************** + +The CodeIgniter team would like to thank EllisLab, all the +contributors to the CodeIgniter project and you, the CodeIgniter user. diff --git a/sna/MIT-license.txt b/sna/MIT-license.txt new file mode 100644 index 0000000..934e126 --- /dev/null +++ b/sna/MIT-license.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 - 2017, British Columbia Institute of Technology + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/sna/application/.htaccess b/sna/application/.htaccess new file mode 100644 index 0000000..f009ced --- /dev/null +++ b/sna/application/.htaccess @@ -0,0 +1,9 @@ +#RewriteEngine On + +#RewriteCond %{REQUEST_FILENAME} !-d + +#RewriteCond %{REQUEST_FILENAME} !-f + +#RewriteCond %{REQUEST_URI} !/assets + +#RewriteRule ^(.*)$ index.php/$1 [L] \ No newline at end of file diff --git a/sna/application/cache/.htaccess b/sna/application/cache/.htaccess new file mode 100644 index 0000000..6c63ed4 --- /dev/null +++ b/sna/application/cache/.htaccess @@ -0,0 +1,6 @@ + + Require all denied + + + Deny from all + \ No newline at end of file diff --git a/sna/application/cache/index.html b/sna/application/cache/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/cache/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/config/autoload.php b/sna/application/config/autoload.php new file mode 100644 index 0000000..f0dee80 --- /dev/null +++ b/sna/application/config/autoload.php @@ -0,0 +1,135 @@ + 'ua'); +*/ +$autoload['libraries'] = array('session'); + +/* +| ------------------------------------------------------------------- +| Auto-load Drivers +| ------------------------------------------------------------------- +| These classes are located in system/libraries/ or in your +| application/libraries/ directory, but are also placed inside their +| own subdirectory and they extend the CI_Driver_Library class. They +| offer multiple interchangeable driver options. +| +| Prototype: +| +| $autoload['drivers'] = array('cache'); +| +| You can also supply an alternative property name to be assigned in +| the controller: +| +| $autoload['drivers'] = array('cache' => 'cch'); +| +*/ +$autoload['drivers'] = array(); + +/* +| ------------------------------------------------------------------- +| Auto-load Helper Files +| ------------------------------------------------------------------- +| Prototype: +| +| $autoload['helper'] = array('url', 'file'); +*/ +$autoload['helper'] = array('url','function'); + +/* +| ------------------------------------------------------------------- +| Auto-load Config files +| ------------------------------------------------------------------- +| Prototype: +| +| $autoload['config'] = array('config1', 'config2'); +| +| NOTE: This item is intended for use ONLY if you have created custom +| config files. Otherwise, leave it blank. +| +*/ +$autoload['config'] = array(); + +/* +| ------------------------------------------------------------------- +| Auto-load Language files +| ------------------------------------------------------------------- +| Prototype: +| +| $autoload['language'] = array('lang1', 'lang2'); +| +| NOTE: Do not include the "_lang" part of your file. For example +| "codeigniter_lang.php" would be referenced as array('codeigniter'); +| +*/ +$autoload['language'] = array(); + +/* +| ------------------------------------------------------------------- +| Auto-load Models +| ------------------------------------------------------------------- +| Prototype: +| +| $autoload['model'] = array('first_model', 'second_model'); +| +| You can also supply an alternative model name to be assigned +| in the controller: +| +| $autoload['model'] = array('first_model' => 'first'); +*/ +$autoload['model'] = array(); diff --git a/sna/application/config/config.php b/sna/application/config/config.php new file mode 100644 index 0000000..c234d42 --- /dev/null +++ b/sna/application/config/config.php @@ -0,0 +1,530 @@ +]+$/i +| +| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! +| +*/ +$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; + +/* +|-------------------------------------------------------------------------- +| Enable Query Strings +|-------------------------------------------------------------------------- +| +| By default CodeIgniter uses search-engine friendly segment based URLs: +| example.com/who/what/where/ +| +| You can optionally enable standard query string based URLs: +| example.com?who=me&what=something&where=here +| +| Options are: TRUE or FALSE (boolean) +| +| The other items let you set the query string 'words' that will +| invoke your controllers and its functions: +| example.com/index.php?c=controller&m=function +| +| Please note that some of the helpers won't work as expected when +| this feature is enabled, since CodeIgniter is designed primarily to +| use segment based URLs. +| +*/ +$config['enable_query_strings'] = FALSE; +$config['controller_trigger'] = 'c'; +$config['function_trigger'] = 'm'; +$config['directory_trigger'] = 'd'; + +/* +|-------------------------------------------------------------------------- +| Allow $_GET array +|-------------------------------------------------------------------------- +| +| By default CodeIgniter enables access to the $_GET array. If for some +| reason you would like to disable it, set 'allow_get_array' to FALSE. +| +| WARNING: This feature is DEPRECATED and currently available only +| for backwards compatibility purposes! +| +*/ +$config['allow_get_array'] = TRUE; + +/* +|-------------------------------------------------------------------------- +| Error Logging Threshold +|-------------------------------------------------------------------------- +| +| You can enable error logging by setting a threshold over zero. The +| threshold determines what gets logged. Threshold options are: +| +| 0 = Disables logging, Error logging TURNED OFF +| 1 = Error Messages (including PHP errors) +| 2 = Debug Messages +| 3 = Informational Messages +| 4 = All Messages +| +| You can also pass an array with threshold levels to show individual error types +| +| array(2) = Debug Messages, without Error Messages +| +| For a live site you'll usually only enable Errors (1) to be logged otherwise +| your log files will fill up very fast. +| +*/ +$config['log_threshold'] = 0; + +/* +|-------------------------------------------------------------------------- +| Error Logging Directory Path +|-------------------------------------------------------------------------- +| +| Leave this BLANK unless you would like to set something other than the default +| application/logs/ directory. Use a full server path with trailing slash. +| +*/ +$config['log_path'] = ''; + +/* +|-------------------------------------------------------------------------- +| Log File Extension +|-------------------------------------------------------------------------- +| +| The default filename extension for log files. The default 'php' allows for +| protecting the log files via basic scripting, when they are to be stored +| under a publicly accessible directory. +| +| Note: Leaving it blank will default to 'php'. +| +*/ +$config['log_file_extension'] = ''; + +/* +|-------------------------------------------------------------------------- +| Log File Permissions +|-------------------------------------------------------------------------- +| +| The file system permissions to be applied on newly created log files. +| +| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal +| integer notation (i.e. 0700, 0644, etc.) +*/ +$config['log_file_permissions'] = 0644; + +/* +|-------------------------------------------------------------------------- +| Date Format for Logs +|-------------------------------------------------------------------------- +| +| Each item that is logged has an associated date. You can use PHP date +| codes to set your own date formatting +| +*/ +$config['log_date_format'] = 'Y-m-d H:i:s'; + +/* +|-------------------------------------------------------------------------- +| Error Views Directory Path +|-------------------------------------------------------------------------- +| +| Leave this BLANK unless you would like to set something other than the default +| application/views/errors/ directory. Use a full server path with trailing slash. +| +*/ +$config['error_views_path'] = ''; + +/* +|-------------------------------------------------------------------------- +| Cache Directory Path +|-------------------------------------------------------------------------- +| +| Leave this BLANK unless you would like to set something other than the default +| application/cache/ directory. Use a full server path with trailing slash. +| +*/ +$config['cache_path'] = ''; + +/* +|-------------------------------------------------------------------------- +| Cache Include Query String +|-------------------------------------------------------------------------- +| +| Whether to take the URL query string into consideration when generating +| output cache files. Valid options are: +| +| FALSE = Disabled +| TRUE = Enabled, take all query parameters into account. +| Please be aware that this may result in numerous cache +| files generated for the same page over and over again. +| array('q') = Enabled, but only take into account the specified list +| of query parameters. +| +*/ +$config['cache_query_string'] = FALSE; + +/* +|-------------------------------------------------------------------------- +| Encryption Key +|-------------------------------------------------------------------------- +| +| If you use the Encryption class, you must set an encryption key. +| See the user guide for more info. +| +| https://codeigniter.com/user_guide/libraries/encryption.html +| +*/ +$config['encryption_key'] = ''; + +/* +|-------------------------------------------------------------------------- +| Session Variables +|-------------------------------------------------------------------------- +| +| 'sess_driver' +| +| The storage driver to use: files, database, redis, memcached +| +| 'sess_cookie_name' +| +| The session cookie name, must contain only [0-9a-z_-] characters +| +| 'sess_expiration' +| +| The number of SECONDS you want the session to last. +| Setting to 0 (zero) means expire when the browser is closed. +| +| 'sess_save_path' +| +| The location to save sessions to, driver dependent. +| +| For the 'files' driver, it's a path to a writable directory. +| WARNING: Only absolute paths are supported! +| +| For the 'database' driver, it's a table name. +| Please read up the manual for the format with other session drivers. +| +| IMPORTANT: You are REQUIRED to set a valid save path! +| +| 'sess_match_ip' +| +| Whether to match the user's IP address when reading the session data. +| +| WARNING: If you're using the database driver, don't forget to update +| your session table's PRIMARY KEY when changing this setting. +| +| 'sess_time_to_update' +| +| How many seconds between CI regenerating the session ID. +| +| 'sess_regenerate_destroy' +| +| Whether to destroy session data associated with the old session ID +| when auto-regenerating the session ID. When set to FALSE, the data +| will be later deleted by the garbage collector. +| +| Other session cookie settings are shared with the rest of the application, +| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here. +| +*/ +$config['sess_driver'] = 'files'; +$config['sess_cookie_name'] = 'ci_session'; +$config['sess_expiration'] = 7200; +$config['sess_save_path'] = NULL; +$config['sess_match_ip'] = FALSE; +$config['sess_time_to_update'] = 300; +$config['sess_regenerate_destroy'] = FALSE; + +/* +|-------------------------------------------------------------------------- +| Cookie Related Variables +|-------------------------------------------------------------------------- +| +| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions +| 'cookie_domain' = Set to .your-domain.com for site-wide cookies +| 'cookie_path' = Typically will be a forward slash +| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists. +| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript) +| +| Note: These settings (with the exception of 'cookie_prefix' and +| 'cookie_httponly') will also affect sessions. +| +*/ +$config['cookie_prefix'] = ''; +$config['cookie_domain'] = ''; +$config['cookie_path'] = '/'; +$config['cookie_secure'] = FALSE; +$config['cookie_httponly'] = FALSE; + +/* +|-------------------------------------------------------------------------- +| Standardize newlines +|-------------------------------------------------------------------------- +| +| Determines whether to standardize newline characters in input data, +| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value. +| +| WARNING: This feature is DEPRECATED and currently available only +| for backwards compatibility purposes! +| +*/ +$config['standardize_newlines'] = FALSE; + +/* +|-------------------------------------------------------------------------- +| Global XSS Filtering +|-------------------------------------------------------------------------- +| +| Determines whether the XSS filter is always active when GET, POST or +| COOKIE data is encountered +| +| WARNING: This feature is DEPRECATED and currently available only +| for backwards compatibility purposes! +| +*/ +$config['global_xss_filtering'] = FALSE; + +/* +|-------------------------------------------------------------------------- +| Cross Site Request Forgery +|-------------------------------------------------------------------------- +| Enables a CSRF cookie token to be set. When set to TRUE, token will be +| checked on a submitted form. If you are accepting user data, it is strongly +| recommended CSRF protection be enabled. +| +| 'csrf_token_name' = The token name +| 'csrf_cookie_name' = The cookie name +| 'csrf_expire' = The number in seconds the token should expire. +| 'csrf_regenerate' = Regenerate token on every submission +| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks +*/ +$config['csrf_protection'] = FALSE; +$config['csrf_token_name'] = 'csrf_test_name'; +$config['csrf_cookie_name'] = 'csrf_cookie_name'; +$config['csrf_expire'] = 7200; +$config['csrf_regenerate'] = TRUE; +$config['csrf_exclude_uris'] = array(); + +/* +|-------------------------------------------------------------------------- +| Output Compression +|-------------------------------------------------------------------------- +| +| Enables Gzip output compression for faster page loads. When enabled, +| the output class will test whether your server supports Gzip. +| Even if it does, however, not all browsers support compression +| so enable only if you are reasonably sure your visitors can handle it. +| +| Only used if zlib.output_compression is turned off in your php.ini. +| Please do not use it together with httpd-level output compression. +| +| VERY IMPORTANT: If you are getting a blank page when compression is enabled it +| means you are prematurely outputting something to your browser. It could +| even be a line of whitespace at the end of one of your scripts. For +| compression to work, nothing can be sent before the output buffer is called +| by the output class. Do not 'echo' any values with compression enabled. +| +*/ +$config['compress_output'] = FALSE; + +/* +|-------------------------------------------------------------------------- +| Master Time Reference +|-------------------------------------------------------------------------- +| +| Options are 'local' or any PHP supported timezone. This preference tells +| the system whether to use your server's local time as the master 'now' +| reference, or convert it to the configured one timezone. See the 'date +| helper' page of the user guide for information regarding date handling. +| +*/ +$config['time_reference'] = 'local'; + +/* +|-------------------------------------------------------------------------- +| Rewrite PHP Short Tags +|-------------------------------------------------------------------------- +| +| If your PHP installation does not have short tag support enabled CI +| can rewrite the tags on-the-fly, enabling you to utilize that syntax +| in your view files. Options are TRUE or FALSE (boolean) +| +| Note: You need to have eval() enabled for this to work. +| +*/ +$config['rewrite_short_tags'] = FALSE; + +/* +|-------------------------------------------------------------------------- +| Reverse Proxy IPs +|-------------------------------------------------------------------------- +| +| If your server is behind a reverse proxy, you must whitelist the proxy +| IP addresses from which CodeIgniter should trust headers such as +| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify +| the visitor's IP address. +| +| You can use both an array or a comma-separated list of proxy addresses, +| as well as specifying whole subnets. Here are a few examples: +| +| Comma-separated: '10.0.1.200,192.168.5.0/24' +| Array: array('10.0.1.200', '192.168.5.0/24') +*/ +$config['proxy_ips'] = ''; diff --git a/sna/application/config/constants.php b/sna/application/config/constants.php new file mode 100644 index 0000000..18d3b4b --- /dev/null +++ b/sna/application/config/constants.php @@ -0,0 +1,85 @@ +db->last_query() and profiling of DB queries. +| When you run a query, with this setting set to TRUE (default), +| CodeIgniter will store the SQL statement for debugging purposes. +| However, this may cause high memory usage, especially if you run +| a lot of SQL queries ... disable this to avoid that problem. +| +| The $active_group variable lets you choose which connection group to +| make active. By default there is only one group (the 'default' group). +| +| The $query_builder variables lets you determine whether or not to load +| the query builder class. +*/ +$active_group = 'default'; +$query_builder = TRUE; + +$db['default'] = array( + 'dsn' => '', + 'hostname' => 'localhost', + 'username' => 'my-username', + 'password' => 'my-passwd', + 'database' => 'digital_atlas', + 'dbdriver' => 'mysqli', + 'dbprefix' => '', + 'pconnect' => FALSE, + 'db_debug' => (ENVIRONMENT !== 'production'), + 'cache_on' => FALSE, + 'cachedir' => '', + 'char_set' => 'utf8', + 'dbcollat' => 'utf8_general_ci', + 'swap_pre' => '', + 'encrypt' => FALSE, + 'compress' => FALSE, + 'stricton' => FALSE, + 'failover' => array(), + 'save_queries' => TRUE +); diff --git a/sna/application/config/doctypes.php b/sna/application/config/doctypes.php new file mode 100644 index 0000000..59a7991 --- /dev/null +++ b/sna/application/config/doctypes.php @@ -0,0 +1,24 @@ + '', + 'xhtml1-strict' => '', + 'xhtml1-trans' => '', + 'xhtml1-frame' => '', + 'xhtml-basic11' => '', + 'html5' => '', + 'html4-strict' => '', + 'html4-trans' => '', + 'html4-frame' => '', + 'mathml1' => '', + 'mathml2' => '', + 'svg10' => '', + 'svg11' => '', + 'svg11-basic' => '', + 'svg11-tiny' => '', + 'xhtml-math-svg-xh' => '', + 'xhtml-math-svg-sh' => '', + 'xhtml-rdfa-1' => '', + 'xhtml-rdfa-2' => '' +); diff --git a/sna/application/config/foreign_chars.php b/sna/application/config/foreign_chars.php new file mode 100644 index 0000000..ac406e3 --- /dev/null +++ b/sna/application/config/foreign_chars.php @@ -0,0 +1,103 @@ + 'ae', + '/ö|œ/' => 'oe', + '/ü/' => 'ue', + '/Ä/' => 'Ae', + '/Ü/' => 'Ue', + '/Ö/' => 'Oe', + '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A', + '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a', + '/Б/' => 'B', + '/б/' => 'b', + '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', + '/ç|ć|ĉ|ċ|č/' => 'c', + '/Д/' => 'D', + '/д/' => 'd', + '/Ð|Ď|Đ|Δ/' => 'Dj', + '/ð|ď|đ|δ/' => 'dj', + '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E', + '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e', + '/Ф/' => 'F', + '/ф/' => 'f', + '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G', + '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g', + '/Ĥ|Ħ/' => 'H', + '/ĥ|ħ/' => 'h', + '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I', + '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i', + '/Ĵ/' => 'J', + '/ĵ/' => 'j', + '/Ķ|Κ|К/' => 'K', + '/ķ|κ|к/' => 'k', + '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L', + '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l', + '/М/' => 'M', + '/м/' => 'm', + '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N', + '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n', + '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O', + '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o', + '/П/' => 'P', + '/п/' => 'p', + '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R', + '/ŕ|ŗ|ř|ρ|р/' => 'r', + '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S', + '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's', + '/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T', + '/ț|ţ|ť|ŧ|т/' => 't', + '/Þ|þ/' => 'th', + '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U', + '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u', + '/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y', + '/ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y', + '/В/' => 'V', + '/в/' => 'v', + '/Ŵ/' => 'W', + '/ŵ/' => 'w', + '/Ź|Ż|Ž|Ζ|З/' => 'Z', + '/ź|ż|ž|ζ|з/' => 'z', + '/Æ|Ǽ/' => 'AE', + '/ß/' => 'ss', + '/IJ/' => 'IJ', + '/ij/' => 'ij', + '/Œ/' => 'OE', + '/ƒ/' => 'f', + '/ξ/' => 'ks', + '/π/' => 'p', + '/β/' => 'v', + '/μ/' => 'm', + '/ψ/' => 'ps', + '/Ё/' => 'Yo', + '/ё/' => 'yo', + '/Є/' => 'Ye', + '/є/' => 'ye', + '/Ї/' => 'Yi', + '/Ж/' => 'Zh', + '/ж/' => 'zh', + '/Х/' => 'Kh', + '/х/' => 'kh', + '/Ц/' => 'Ts', + '/ц/' => 'ts', + '/Ч/' => 'Ch', + '/ч/' => 'ch', + '/Ш/' => 'Sh', + '/ш/' => 'sh', + '/Щ/' => 'Shch', + '/щ/' => 'shch', + '/Ъ|ъ|Ь|ь/' => '', + '/Ю/' => 'Yu', + '/ю/' => 'yu', + '/Я/' => 'Ya', + '/я/' => 'ya' +); diff --git a/sna/application/config/hooks.php b/sna/application/config/hooks.php new file mode 100644 index 0000000..a8f38a5 --- /dev/null +++ b/sna/application/config/hooks.php @@ -0,0 +1,13 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/config/memcached.php b/sna/application/config/memcached.php new file mode 100644 index 0000000..5c23b39 --- /dev/null +++ b/sna/application/config/memcached.php @@ -0,0 +1,19 @@ + array( + 'hostname' => '127.0.0.1', + 'port' => '11211', + 'weight' => '1', + ), +); diff --git a/sna/application/config/migration.php b/sna/application/config/migration.php new file mode 100644 index 0000000..4b585a6 --- /dev/null +++ b/sna/application/config/migration.php @@ -0,0 +1,84 @@ +migration->current() this is the version that schema will +| be upgraded / downgraded to. +| +*/ +$config['migration_version'] = 0; + +/* +|-------------------------------------------------------------------------- +| Migrations Path +|-------------------------------------------------------------------------- +| +| Path to your migrations folder. +| Typically, it will be within your application path. +| Also, writing permission is required within the migrations path. +| +*/ +$config['migration_path'] = APPPATH.'migrations/'; diff --git a/sna/application/config/mimes.php b/sna/application/config/mimes.php new file mode 100644 index 0000000..0176533 --- /dev/null +++ b/sna/application/config/mimes.php @@ -0,0 +1,183 @@ + array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'), + 'cpt' => 'application/mac-compactpro', + 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'), + 'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'), + 'dms' => 'application/octet-stream', + 'lha' => 'application/octet-stream', + 'lzh' => 'application/octet-stream', + 'exe' => array('application/octet-stream', 'application/x-msdownload'), + 'class' => 'application/octet-stream', + 'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'), + 'so' => 'application/octet-stream', + 'sea' => 'application/octet-stream', + 'dll' => 'application/octet-stream', + 'oda' => 'application/oda', + 'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'), + 'ai' => array('application/pdf', 'application/postscript'), + 'eps' => 'application/postscript', + 'ps' => 'application/postscript', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'mif' => 'application/vnd.mif', + 'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'), + 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'), + 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'), + 'wbxml' => 'application/wbxml', + 'wmlc' => 'application/wmlc', + 'dcr' => 'application/x-director', + 'dir' => 'application/x-director', + 'dxr' => 'application/x-director', + 'dvi' => 'application/x-dvi', + 'gtar' => 'application/x-gtar', + 'gz' => 'application/x-gzip', + 'gzip' => 'application/x-gzip', + 'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'), + 'php4' => 'application/x-httpd-php', + 'php3' => 'application/x-httpd-php', + 'phtml' => 'application/x-httpd-php', + 'phps' => 'application/x-httpd-php-source', + 'js' => array('application/x-javascript', 'text/plain'), + 'swf' => 'application/x-shockwave-flash', + 'sit' => 'application/x-stuffit', + 'tar' => 'application/x-tar', + 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'), + 'z' => 'application/x-compress', + 'xhtml' => 'application/xhtml+xml', + 'xht' => 'application/xhtml+xml', + 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'), + 'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'), + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mpga' => 'audio/mpeg', + 'mp2' => 'audio/mpeg', + 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'), + 'aif' => array('audio/x-aiff', 'audio/aiff'), + 'aiff' => array('audio/x-aiff', 'audio/aiff'), + 'aifc' => 'audio/x-aiff', + 'ram' => 'audio/x-pn-realaudio', + 'rm' => 'audio/x-pn-realaudio', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'ra' => 'audio/x-realaudio', + 'rv' => 'video/vnd.rn-realvideo', + 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'), + 'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'), + 'gif' => 'image/gif', + 'jpeg' => array('image/jpeg', 'image/pjpeg'), + 'jpg' => array('image/jpeg', 'image/pjpeg'), + 'jpe' => array('image/jpeg', 'image/pjpeg'), + 'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'png' => array('image/png', 'image/x-png'), + 'tiff' => 'image/tiff', + 'tif' => 'image/tiff', + 'css' => array('text/css', 'text/plain'), + 'html' => array('text/html', 'text/plain'), + 'htm' => array('text/html', 'text/plain'), + 'shtml' => array('text/html', 'text/plain'), + 'txt' => 'text/plain', + 'text' => 'text/plain', + 'log' => array('text/plain', 'text/x-log'), + 'rtx' => 'text/richtext', + 'rtf' => 'text/rtf', + 'xml' => array('application/xml', 'text/xml', 'text/plain'), + 'xsl' => array('application/xml', 'text/xsl', 'text/xml'), + 'mpeg' => 'video/mpeg', + 'mpg' => 'video/mpeg', + 'mpe' => 'video/mpeg', + 'qt' => 'video/quicktime', + 'mov' => 'video/quicktime', + 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'), + 'movie' => 'video/x-sgi-movie', + 'doc' => array('application/msword', 'application/vnd.ms-office'), + 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'), + 'dot' => array('application/msword', 'application/vnd.ms-office'), + 'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'), + 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'), + 'word' => array('application/msword', 'application/octet-stream'), + 'xl' => 'application/excel', + 'eml' => 'message/rfc822', + 'json' => array('application/json', 'text/json'), + 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'), + 'p10' => array('application/x-pkcs10', 'application/pkcs10'), + 'p12' => 'application/x-pkcs12', + 'p7a' => 'application/x-pkcs7-signature', + 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), + 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), + 'p7r' => 'application/x-pkcs7-certreqresp', + 'p7s' => 'application/pkcs7-signature', + 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'), + 'crl' => array('application/pkix-crl', 'application/pkcs-crl'), + 'der' => 'application/x-x509-ca-cert', + 'kdb' => 'application/octet-stream', + 'pgp' => 'application/pgp', + 'gpg' => 'application/gpg-keys', + 'sst' => 'application/octet-stream', + 'csr' => 'application/octet-stream', + 'rsa' => 'application/x-pkcs7', + 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'), + '3g2' => 'video/3gpp2', + '3gp' => array('video/3gp', 'video/3gpp'), + 'mp4' => 'video/mp4', + 'm4a' => 'audio/x-m4a', + 'f4v' => array('video/mp4', 'video/x-f4v'), + 'flv' => 'video/x-flv', + 'webm' => 'video/webm', + 'aac' => 'audio/x-acc', + 'm4u' => 'application/vnd.mpegurl', + 'm3u' => 'text/plain', + 'xspf' => 'application/xspf+xml', + 'vlc' => 'application/videolan', + 'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'), + 'au' => 'audio/x-au', + 'ac3' => 'audio/ac3', + 'flac' => 'audio/x-flac', + 'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'), + 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'), + 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'), + 'ics' => 'text/calendar', + 'ical' => 'text/calendar', + 'zsh' => 'text/x-scriptzsh', + '7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'), + 'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'), + 'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'), + 'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'), + 'svg' => array('image/svg+xml', 'application/xml', 'text/xml'), + 'vcf' => 'text/x-vcard', + 'srt' => array('text/srt', 'text/plain'), + 'vtt' => array('text/vtt', 'text/plain'), + 'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'), + 'odc' => 'application/vnd.oasis.opendocument.chart', + 'otc' => 'application/vnd.oasis.opendocument.chart-template', + 'odf' => 'application/vnd.oasis.opendocument.formula', + 'otf' => 'application/vnd.oasis.opendocument.formula-template', + 'odg' => 'application/vnd.oasis.opendocument.graphics', + 'otg' => 'application/vnd.oasis.opendocument.graphics-template', + 'odi' => 'application/vnd.oasis.opendocument.image', + 'oti' => 'application/vnd.oasis.opendocument.image-template', + 'odp' => 'application/vnd.oasis.opendocument.presentation', + 'otp' => 'application/vnd.oasis.opendocument.presentation-template', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', + 'odt' => 'application/vnd.oasis.opendocument.text', + 'odm' => 'application/vnd.oasis.opendocument.text-master', + 'ott' => 'application/vnd.oasis.opendocument.text-template', + 'oth' => 'application/vnd.oasis.opendocument.text-web' +); diff --git a/sna/application/config/profiler.php b/sna/application/config/profiler.php new file mode 100644 index 0000000..3db22e3 --- /dev/null +++ b/sna/application/config/profiler.php @@ -0,0 +1,14 @@ + my_controller/index +| my-controller/my-method -> my_controller/my_method +*/ +$route['default_controller'] = 'home'; +$route['404_override'] = ''; +$route['admin'] = 'admin/index'; +$route['home']='/'; + +$route['translate_uri_dashes'] = FALSE; diff --git a/sna/application/config/smileys.php b/sna/application/config/smileys.php new file mode 100644 index 0000000..abf9a89 --- /dev/null +++ b/sna/application/config/smileys.php @@ -0,0 +1,64 @@ + array('grin.gif', '19', '19', 'grin'), + ':lol:' => array('lol.gif', '19', '19', 'LOL'), + ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), + ':)' => array('smile.gif', '19', '19', 'smile'), + ';-)' => array('wink.gif', '19', '19', 'wink'), + ';)' => array('wink.gif', '19', '19', 'wink'), + ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), + ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), + ':-S' => array('confused.gif', '19', '19', 'confused'), + ':wow:' => array('surprise.gif', '19', '19', 'surprised'), + ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), + ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), + '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), + ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), + ':P' => array('raspberry.gif', '19', '19', 'raspberry'), + ':blank:' => array('blank.gif', '19', '19', 'blank stare'), + ':long:' => array('longface.gif', '19', '19', 'long face'), + ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), + ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), + ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), + '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), + ':down:' => array('downer.gif', '19', '19', 'downer'), + ':red:' => array('embarrassed.gif', '19', '19', 'red face'), + ':sick:' => array('sick.gif', '19', '19', 'sick'), + ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), + ':-/' => array('hmm.gif', '19', '19', 'hmmm'), + '>:(' => array('mad.gif', '19', '19', 'mad'), + ':mad:' => array('mad.gif', '19', '19', 'mad'), + '>:-(' => array('angry.gif', '19', '19', 'angry'), + ':angry:' => array('angry.gif', '19', '19', 'angry'), + ':zip:' => array('zip.gif', '19', '19', 'zipper'), + ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), + ':ahhh:' => array('shock.gif', '19', '19', 'shock'), + ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), + ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), + ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), + ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), + ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), + ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), + ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), + ':snake:' => array('snake.gif', '19', '19', 'snake'), + ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), + ':question:' => array('question.gif', '19', '19', 'question') + +); diff --git a/sna/application/config/user_agents.php b/sna/application/config/user_agents.php new file mode 100644 index 0000000..798086b --- /dev/null +++ b/sna/application/config/user_agents.php @@ -0,0 +1,214 @@ + 'Windows 10', + 'windows nt 6.3' => 'Windows 8.1', + 'windows nt 6.2' => 'Windows 8', + 'windows nt 6.1' => 'Windows 7', + 'windows nt 6.0' => 'Windows Vista', + 'windows nt 5.2' => 'Windows 2003', + 'windows nt 5.1' => 'Windows XP', + 'windows nt 5.0' => 'Windows 2000', + 'windows nt 4.0' => 'Windows NT 4.0', + 'winnt4.0' => 'Windows NT 4.0', + 'winnt 4.0' => 'Windows NT', + 'winnt' => 'Windows NT', + 'windows 98' => 'Windows 98', + 'win98' => 'Windows 98', + 'windows 95' => 'Windows 95', + 'win95' => 'Windows 95', + 'windows phone' => 'Windows Phone', + 'windows' => 'Unknown Windows OS', + 'android' => 'Android', + 'blackberry' => 'BlackBerry', + 'iphone' => 'iOS', + 'ipad' => 'iOS', + 'ipod' => 'iOS', + 'os x' => 'Mac OS X', + 'ppc mac' => 'Power PC Mac', + 'freebsd' => 'FreeBSD', + 'ppc' => 'Macintosh', + 'linux' => 'Linux', + 'debian' => 'Debian', + 'sunos' => 'Sun Solaris', + 'beos' => 'BeOS', + 'apachebench' => 'ApacheBench', + 'aix' => 'AIX', + 'irix' => 'Irix', + 'osf' => 'DEC OSF', + 'hp-ux' => 'HP-UX', + 'netbsd' => 'NetBSD', + 'bsdi' => 'BSDi', + 'openbsd' => 'OpenBSD', + 'gnu' => 'GNU/Linux', + 'unix' => 'Unknown Unix OS', + 'symbian' => 'Symbian OS' +); + + +// The order of this array should NOT be changed. Many browsers return +// multiple browser types so we want to identify the sub-type first. +$browsers = array( + 'OPR' => 'Opera', + 'Flock' => 'Flock', + 'Edge' => 'Spartan', + 'Chrome' => 'Chrome', + // Opera 10+ always reports Opera/9.80 and appends Version/ to the user agent string + 'Opera.*?Version' => 'Opera', + 'Opera' => 'Opera', + 'MSIE' => 'Internet Explorer', + 'Internet Explorer' => 'Internet Explorer', + 'Trident.* rv' => 'Internet Explorer', + 'Shiira' => 'Shiira', + 'Firefox' => 'Firefox', + 'Chimera' => 'Chimera', + 'Phoenix' => 'Phoenix', + 'Firebird' => 'Firebird', + 'Camino' => 'Camino', + 'Netscape' => 'Netscape', + 'OmniWeb' => 'OmniWeb', + 'Safari' => 'Safari', + 'Mozilla' => 'Mozilla', + 'Konqueror' => 'Konqueror', + 'icab' => 'iCab', + 'Lynx' => 'Lynx', + 'Links' => 'Links', + 'hotjava' => 'HotJava', + 'amaya' => 'Amaya', + 'IBrowse' => 'IBrowse', + 'Maxthon' => 'Maxthon', + 'Ubuntu' => 'Ubuntu Web Browser' +); + +$mobiles = array( + // legacy array, old values commented out + 'mobileexplorer' => 'Mobile Explorer', +// 'openwave' => 'Open Wave', +// 'opera mini' => 'Opera Mini', +// 'operamini' => 'Opera Mini', +// 'elaine' => 'Palm', + 'palmsource' => 'Palm', +// 'digital paths' => 'Palm', +// 'avantgo' => 'Avantgo', +// 'xiino' => 'Xiino', + 'palmscape' => 'Palmscape', +// 'nokia' => 'Nokia', +// 'ericsson' => 'Ericsson', +// 'blackberry' => 'BlackBerry', +// 'motorola' => 'Motorola' + + // Phones and Manufacturers + 'motorola' => 'Motorola', + 'nokia' => 'Nokia', + 'palm' => 'Palm', + 'iphone' => 'Apple iPhone', + 'ipad' => 'iPad', + 'ipod' => 'Apple iPod Touch', + 'sony' => 'Sony Ericsson', + 'ericsson' => 'Sony Ericsson', + 'blackberry' => 'BlackBerry', + 'cocoon' => 'O2 Cocoon', + 'blazer' => 'Treo', + 'lg' => 'LG', + 'amoi' => 'Amoi', + 'xda' => 'XDA', + 'mda' => 'MDA', + 'vario' => 'Vario', + 'htc' => 'HTC', + 'samsung' => 'Samsung', + 'sharp' => 'Sharp', + 'sie-' => 'Siemens', + 'alcatel' => 'Alcatel', + 'benq' => 'BenQ', + 'ipaq' => 'HP iPaq', + 'mot-' => 'Motorola', + 'playstation portable' => 'PlayStation Portable', + 'playstation 3' => 'PlayStation 3', + 'playstation vita' => 'PlayStation Vita', + 'hiptop' => 'Danger Hiptop', + 'nec-' => 'NEC', + 'panasonic' => 'Panasonic', + 'philips' => 'Philips', + 'sagem' => 'Sagem', + 'sanyo' => 'Sanyo', + 'spv' => 'SPV', + 'zte' => 'ZTE', + 'sendo' => 'Sendo', + 'nintendo dsi' => 'Nintendo DSi', + 'nintendo ds' => 'Nintendo DS', + 'nintendo 3ds' => 'Nintendo 3DS', + 'wii' => 'Nintendo Wii', + 'open web' => 'Open Web', + 'openweb' => 'OpenWeb', + + // Operating Systems + 'android' => 'Android', + 'symbian' => 'Symbian', + 'SymbianOS' => 'SymbianOS', + 'elaine' => 'Palm', + 'series60' => 'Symbian S60', + 'windows ce' => 'Windows CE', + + // Browsers + 'obigo' => 'Obigo', + 'netfront' => 'Netfront Browser', + 'openwave' => 'Openwave Browser', + 'mobilexplorer' => 'Mobile Explorer', + 'operamini' => 'Opera Mini', + 'opera mini' => 'Opera Mini', + 'opera mobi' => 'Opera Mobile', + 'fennec' => 'Firefox Mobile', + + // Other + 'digital paths' => 'Digital Paths', + 'avantgo' => 'AvantGo', + 'xiino' => 'Xiino', + 'novarra' => 'Novarra Transcoder', + 'vodafone' => 'Vodafone', + 'docomo' => 'NTT DoCoMo', + 'o2' => 'O2', + + // Fallback + 'mobile' => 'Generic Mobile', + 'wireless' => 'Generic Mobile', + 'j2me' => 'Generic Mobile', + 'midp' => 'Generic Mobile', + 'cldc' => 'Generic Mobile', + 'up.link' => 'Generic Mobile', + 'up.browser' => 'Generic Mobile', + 'smartphone' => 'Generic Mobile', + 'cellphone' => 'Generic Mobile' +); + +// There are hundreds of bots but these are the most common. +$robots = array( + 'googlebot' => 'Googlebot', + 'msnbot' => 'MSNBot', + 'baiduspider' => 'Baiduspider', + 'bingbot' => 'Bing', + 'slurp' => 'Inktomi Slurp', + 'yahoo' => 'Yahoo', + 'ask jeeves' => 'Ask Jeeves', + 'fastcrawler' => 'FastCrawler', + 'infoseek' => 'InfoSeek Robot 1.0', + 'lycos' => 'Lycos', + 'yandex' => 'YandexBot', + 'mediapartners-google' => 'MediaPartners Google', + 'CRAZYWEBCRAWLER' => 'Crazy Webcrawler', + 'adsbot-google' => 'AdsBot Google', + 'feedfetcher-google' => 'Feedfetcher Google', + 'curious george' => 'Curious George', + 'ia_archiver' => 'Alexa Crawler', + 'MJ12bot' => 'Majestic-12', + 'Uptimebot' => 'Uptimebot' +); diff --git a/sna/application/controllers/Admin.php b/sna/application/controllers/Admin.php new file mode 100644 index 0000000..c583328 --- /dev/null +++ b/sna/application/controllers/Admin.php @@ -0,0 +1,2801 @@ +. +*/ + + +defined('BASEPATH') OR exit('No direct script access allowed'); + +class Admin extends CI_Controller { + + function __construct() + { + parent::__construct(); + + $this->url=base_url().'admin/'; + + $this->load->model('admin_model'); + $this->load->model('home_model'); + } + + public function index() + { + $data=array( + 'title'=>'Nadzorna plošča', + ); + + $this->check_user(); + + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['subjects']=$this->home_model->subjects(false); + $data['tab']='my_profile'; + + //check session + + if(isset($_SESSION['errfields'])) + { + $data['errfields'] = $_SESSION['errfields']; + unset($_SESSION['errfields']); + } + + if(isset($_SESSION['status'])) + { + $data['status'] = $_SESSION['status']; + unset($_SESSION['status']); + } + + + $this->load_master_view('admin/edit_my_profile_view.php',$data); + } + + function login() + { + $data=array( + 'title'=>'Prijava', + 'uri'=>$this->url.'post_login', + 'error'=>'', + ); + + $this->load_master_view('admin/login_view.php',$data); + } + + function post_login() + { + $data['username']=$this->input->post('username',true); + $data['password']=$this->input->post('password',true); + + //check if user is in db + $user=$this->admin_model->perform_login($data['username'],$data['password']); + + if($user) + { + //user exists - create session and redirect + $this->session->set_userdata(array( + 'uid'=>$user['id'], + 'name'=>$user['name'], + 'lastname'=>$user['lastname'], + 'username'=>$user['username'], + 'sess_expiration'=>$user['sess_expiration'], + )); + + redirect('admin'); + } + else + { + //user doesn't exist, return error + $data=array( + 'title'=>'Prijava', + 'uri'=>$this->url.'post_login', + 'errfields'=>'Vnesli ste napačno uporabniško ime ali geslo!', + ); + + $this->load_master_view('admin/login_view.php',$data); + } + } + + function logout() + { + //destroy session and redirect to login + $this->session->sess_destroy(); + + redirect('admin/login'); + } + + function post_edit_my_profile() + { + $pass1=(string)$this->input->post('pass1',true); + $pass2=(string)$this->input->post('pass2',true); + $id_user=$this->input->post('id_user',true); + + if($pass1=='' or $pass2=='') + { + $data['errfields']['not_equal']='Obe vnosni polji za geslo morata biti izpolnjeni!'; + } + else + { + if(strcmp($pass1,$pass2)!==0) + { + $data['errfields']['not_equal']='Gesli se ne ujemata!'; + } + else + { + if(strlen($pass1)<6) + { + $data['errfields']['pass_short']='Geslo mora vsebovati najmanj 6 znakov!'; + } + } + } + + if(!isset($data['errfields'])) + { + //make hash + $hash=password_hash($pass1,PASSWORD_DEFAULT); + + //update db + $this->db->where('id',$id_user); + $this->db->update('users',array('password_hash'=>$hash)); + + $data['status']='ok'; + + //set to session + $_SESSION['status']=$data['status']; + } + else + { + //set to session + $_SESSION['errfields']=$data['errfields']; + } + + redirect($this->url); + } + + + function edit_content() + { + $this->check_user(); + + $data=array( + 'title'=>'Urejanje vsebine', + ); + + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['subjects']=$this->home_model->subjects(false); + $data['tab']='subjects_words'; + + if(isset($_SESSION['status'])) + { + $data['status'] = $_SESSION['status']; + unset($_SESSION['status']); + } + + + $this->load_master_view('admin/subjects_view.php',$data); + } + + function add_subject() + { + $this->check_user(); + + //load basic data + $data['title']='Dodajanje teme'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='subjects_words'; + + $data['errfields']=$this->session->flashdata('errfields'); + + $data['subject']=array('title'=>''); + + $this->load_master_view('admin/add_subject_view.php',$data); + } + + function post_add_subject() + { + + $title=$this->input->post('title',true); + $save_close=$this->input->post('save_close',true); + + //save post to session + $data=array( + 'title'=>$title, + ); + + $this->session->set_flashdata('add_subject',$data); + + //check + + if(!$title) + { + $data['errfields']['no_title']='Naziv teme je prazen!'; + } + else + { + $exists=$this->admin_model->subject_title_exists($title,0); + if($exists) + { + $data['errfields']['title_exists']='Tema s tem nazivom že obstaja!'; + } + } + + + if(!isset($data['errfields'])) + { + $this->db->insert('subjects',$data); + $id_subject=$this->db->insert_id(); + + $data['status']='ok'; + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'edit_content/'); + } + else + { + redirect($this->url.'edit_subject/'.$id_subject); + } + + + } + else + { + + $this->session->set_flashdata('errfields',$data['errfields']); + + redirect($this->url.'add_subject/'); + } + } + + + function edit_subject() + { + $this->check_user(); + + $id_subject=$this->uri->segment(3); + + //load basic data + $data['title']='Urejanje teme'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + + $data['subject']=$this->admin_model->subject($id_subject); + $data['tab']='subjects_words'; + + if($data['subject']) + { + //load words + $data['words']=$this->home_model->subject_words($id_subject,false); + + foreach($data['words'] as &$word) + { + $word['modal_image_target']='#modal_image-'.$word['id']; + $word['modal_comment_target']='#modal_comment-'.$word['id']; + } + + $data['view_images']=$this->load->view('admin/image_popup_view.php',$data,true); + $data['view_comments']=$this->load->view('admin/comment_popup_view.php',$data,true); + + if(isset($_SESSION['errfields'])) + { + $data['errfields'] = $_SESSION['errfields']; + unset($_SESSION['errfields']); + } + + if(isset($_SESSION['status'])) + { + $data['status'] = $_SESSION['status']; + unset($_SESSION['status']); + } + + + $this->load_master_view('admin/edit_subject_view.php',$data); + } + else + { + $data['tab']='words_subjects'; + $data['text']='Izbran vnos teme ne obstaja!'; + $data['link_back']=$this->url.'edit_content'; + $this->load_Master_view('no_content_error.php',$data); + } + } + + function subject_delete() + { + $this->check_user(); + + $id_subject=$this->uri->segment(3); + + //check links + $subject_links=$this->admin_model->subject_links($id_subject); + + if($subject_links) + { + $data['errfields']['links']="Tema ima povezave:
    +
  • Besede: ".$subject_links."
  • +
"; + } + + if(!isset($data['errfields'])) + { + //delete possible subject_locations + $this->db->select('*'); + $this->db->from('subject_locations'); + $this->db->where('id_subject',$id_subject); + $subject_locations=$this->db->get()->result_array(); + + foreach($subject_locations as $entry) + { + $this->db->where('id',$entry['id']); + $this->db->delete('subject_locations'); + } + + //remove subject + $this->db->where('id',$id_subject); + $this->db->delete('subjects'); + + $data['status']='ok'; + + $_SESSION['status']=$data['status']; + + redirect($this->url.'edit_content/'); + } + else + { + $_SESSION['errfields']=$data['errfields']; + + redirect($this->url.'/edit_subject/'.$id_subject); + } + } + + function add_word() + { + $this->check_user(); + + $id_subject=$this->uri->segment(3); + + //load basic data + $data['title']='Dodajanje besede'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='subjects_words'; + + //subject data + $data['subject']=$this->admin_model->subject($id_subject); + + $data['errfields']=$this->session->flashdata('errfields'); + + $data['word']=array( + 'title'=>'', + 'image'=>'', + 'comment'=>'', + 'id_subject'=>$id_subject, + ); + + $this->load_master_view('admin/add_word_view.php',$data); + } + + function post_add_word() + { + $this->check_user(); + + $id_subject=$this->input->post('id_subject',true); + $title=$this->input->post('title',true); + $save_close=$this->input->post('save_close',true); + + if($title=='') + { + $data['errfields']['no_title']='Naziv besede je prazen!'; + } + else + { + $exists=$this->admin_model->words_title_exists($title,$id_word,$id_subject); + if($exists) + { + $data['errfields']['title_exists']='Beseda s tem nazivom v tej temi že obstaja!'; + } + } + + if($_FILES and !isset($data['errfields'])) + { + //image + if($_FILES['image_file']['size']) + { + $image_file_type = pathinfo($_FILES["image_file"]["name"],PATHINFO_EXTENSION); + + $file_name = preg_replace('/[^a-zA-Z0-9\-\._]/','', $title); + $file_name = preg_replace('/\s+/', '_', $file_name); + $image_dir = "images/words/"; + $image_file = $image_dir.basename(strtolower($file_name).'_'.time().'.'.$image_file_type); + $image_upload_ok = 1; + + // Check if image file is a actual image or fake image + if(isset($_POST["submit"])) + { + $check = getimagesize($_FILES["image_file"]["tmp_name"]); + if($check === false) { + $data['errfields']['not_image']='Izbrana slika ni slika!'; + $image_upload_ok = 0; + } + } + if (file_exists($image_file)) + { + $data['errfields']['image_exists']='Slika že obstaja!'; + $image_upload_ok = 0; + } + //velikost datoteke + if ($_FILES["image_file"]["size"] > 5000000) { + $data['errfields']['image_size']='Slika je prevelika, največja velikost slike je 5 MB!'; + $image_upload_ok = 0; + } + //tip datoteke + if($image_file_type != "jpg" && $image_file_type != "png" && $image_file_type != "jpeg" + && $image_file_type != "gif" ) { + $data['errfields']['image_format']='Izbrana slika ni ustreznega slikovnega formata! Dovoljeni so jpg, png, jpeg in gif formati.'; + $image_upload_ok = 0; + } + // + if ($image_upload_ok != 0) + { + if(move_uploaded_file($_FILES["image_file"]["tmp_name"], $image_file)) + { + $data['image']=$image_file; + } + else + { + $data['errfields']['image_not_uploaded']='Slika se ni pravilno naložila!'; + } + } + } + + //comment + if($_FILES['comment_file']['size']) + { + $comment_file_type = pathinfo($_FILES["comment_file"]["name"],PATHINFO_EXTENSION); + $file_name = preg_replace('/[^a-zA-Z0-9\-\._]/','', $title); + $file_name = preg_replace('/\s+/', '_', $file_name); + $comment_dir = "comments/"; + $comment_file = $comment_dir.basename(strtolower($file_name).'_'.time().'.'.$comment_file_type); + $comment_upload_ok = 1; + + // Check if image file is a actual image or fake image + if (file_exists($comment_file)) + { + $data['errfields']['comment_exists']='Komentar že obstaja!'; + $comment_upload_ok = 0; + } + //velikost datoteke + if ($_FILES["comment_file"]["size"] > 10000000) { + $data['errfields']['comment_size']='Komentar je prevelik, največja velikost datoteke je 10 MB!'; + $comment_upload_ok = 0; + } + //tip datoteke + if($comment_file_type != "pdf" && $comment_file_type != "PDF") { + $data['errfields']['comment_format']='Izbrani komentar ni ustreznega formata! Dovoljen je samo PDF format.'; + $comment_upload_ok = 0; + } + // + if ($comment_upload_ok != 0) + { + if(move_uploaded_file($_FILES["comment_file"]["tmp_name"], $comment_file)) + { + $data['comment']=$comment_file; + } + else + { + $data['errfields']['comment_not_uploaded']='Komentar se ni pravilno naložil!'; + } + } + } + } + + if(!isset($data['errfields'])) + { + $data['id_subject']=$id_subject; + $data['title']=$title; + + //update + $this->db->insert('words',$data); + $id_word=$this->db->insert_id(); + + $data['status']='ok'; + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'edit_subject/'.$id_subject); + } + else + { + redirect($this->url.'edit_word/'.$id_word); + } + + } + else + { + $this->session->set_flashdata('errfields',$data['errfields']); + redirect($this->url.'add_word/'.$id_subject); + } + + + } + + function edit_word() + { + $this->check_user(); + + $id_word=$this->uri->segment(3); + + //load basic data + $data['title']='Urejanje besede'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='subjects_words'; + + $data['word']=$this->admin_model->word($id_word); + + if($data['word']) + { + $data['subject']=$this->admin_model->subject($data['word']['id_subject']); + + + //next request + if(isset($_SESSION['errfields'])) + { + $data['errfields'] = $_SESSION['errfields']; + unset($_SESSION['errfields']); + } + if(isset($_SESSION['status'])) + { + $data['status'] = $_SESSION['status']; + unset($_SESSION['status']); + } + + $this->load_master_view('admin/edit_word_view.php',$data); + } + else + { + $data['text']='Izbran vnos besede ne obstaja!'; + $data['link_back']=$this->url.'edit_content'; + $this->load_master_view('no_content_error.php',$data); + } + } + + function post_edit_word() + { + $this->check_user(); + + $id_word=$this->input->post('id_word',true); + $id_subject=$this->input->post('id_subject',true); + $title=$this->input->post('title',true); + $save_close=$this->input->post('save_close',true); + + if($title=='') + { + $data['errfields']['no_title']='Naziv besede je prazen!'; + } + else + { + $exists=$this->admin_model->words_title_exists($title,$id_word,$id_subject); + if($exists) + { + $data['errfields']['title_exists']='Beseda s tem nazivom v tej temi že obstaja!'; + } + } + + if($_FILES and !isset($data['errfields'])) + { + //image + if($_FILES['image_file']['size']) + { + $image_file_type = pathinfo($_FILES["image_file"]["name"],PATHINFO_EXTENSION); + $file_name = preg_replace('/[^a-zA-Z0-9\-\._]/','', $title); + $file_name = preg_replace('/\s+/', '_', $file_name); + $image_dir = "images/words/"; + $image_file = $image_dir.basename(strtolower($file_name).'_'.time().'.'.$image_file_type); + $image_upload_ok = 1; + + // Check if image file is a actual image or fake image + if(isset($_POST["submit"])) + { + $check = getimagesize($_FILES["image_file"]["tmp_name"]); + if($check === false) { + $data['errfields']['not_image']='Izbrana slika ni slika!'; + $image_upload_ok = 0; + } + } + if (file_exists($image_file)) + { + $data['errfields']['image_exists']='Slika že obstaja!'; + $image_upload_ok = 0; + } + //velikost datoteke + if ($_FILES["image_file"]["size"] > 5000000) { + $data['errfields']['image_size']='Slika je prevelika, največja velikost slike je 5 MB!'; + $image_upload_ok = 0; + } + //tip datoteke + if($image_file_type != "jpg" && $image_file_type != "png" && $image_file_type != "jpeg" + && $image_file_type != "gif" ) { + $data['errfields']['image_format']='Izbrana slika ni ustreznega slikovnega formata! Dovoljeni so jpg, png, jpeg in gif formati.'; + $image_upload_ok = 0; + } + // + if ($image_upload_ok != 0) + { + if(move_uploaded_file($_FILES["image_file"]["tmp_name"], $image_file)) + { + //dodaj še v bazo + $this->db->where('id',$id_word); + $this->db->update('words',array('image'=>$image_file)); + } + else + { + $data['errfields']['image_not_uploaded']='Slika se ni pravilno naložila!'; + } + } + } + + //comment + if($_FILES['comment_file']['size']) + { + $comment_file_type = pathinfo($_FILES["comment_file"]["name"],PATHINFO_EXTENSION); + $file_name = preg_replace('/[^a-zA-Z0-9\-\._]/','', $title); + $file_name = preg_replace('/\s+/', '_', $file_name); + $comment_dir = "comments/"; + $comment_file = $comment_dir.basename(strtolower($file_name).'_'.time().'.'.$comment_file_type); + $comment_upload_ok = 1; + + // Check if image file is a actual image or fake image + if (file_exists($comment_file)) + { + $data['errfields']['comment_exists']='Komentar že obstaja!'; + $comment_upload_ok = 0; + } + //velikost datoteke + if ($_FILES["comment_file"]["size"] > 10000000) { + $data['errfields']['comment_size']='Komentar je prevelik, največja velikost datoteke je 10 MB!'; + $comment_upload_ok = 0; + } + //tip datoteke + if($comment_file_type != "pdf" && $comment_file_type != "PDF") { + $data['errfields']['comment_format']='Izbrani komentar ni ustreznega formata! Dovoljen je samo PDF format.'; + $comment_upload_ok = 0; + } + // + if ($comment_upload_ok != 0) + { + if(move_uploaded_file($_FILES["comment_file"]["tmp_name"], $comment_file)) + { + //dodaj še v bazo + $this->db->where('id',$id_word); + $this->db->update('words',array('comment'=>$comment_file)); + } + else + { + $data['errfields']['comment_not_uploaded']='Komentar se ni pravilno naložil!'; + } + } + } + } + + + + if(!isset($data['errfields'])) + { + //update + $this->db->where('id',$id_word); + $this->db->update('words',array('title'=>$title)); + + $data['status']='ok'; + + $_SESSION['status']=$data['status']; + + if(isset($save_close)) + { + redirect($this->url.'edit_subject/'.$id_subject); + } + } + else + { + $_SESSION['errfields']=$data['errfields']; + } + + redirect($this->url.'edit_word/'.$id_word); + + } + + function word_delete() + { + $this->check_user(); + + $id_word=$this->uri->segment(3); + + $word=$this->admin_model->word($id_word); + + if($word) + { + $links=$this->admin_model->word_links($id_word); + + if($links) + { + $data['errfields']['links']="Beseda ima povezave (lekseme):
    "; + foreach($links as $link) + { + $data['errfields']['links'].="
  • ".$link['title']."
  • "; + } + + $data['errfields']['links'].='
'; + } + + if(!isset($data['errfields'])) + { + //remove file + if($word['image']) + { + if(unlink($word['image'])) + { + //empty field in db + $this->db->where('id',$id_word); + $this->db->update('words',array('image'=>'')); + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju slike!'; + } + } + + if($word['comment']) + { + if(unlink($word['comment'])) + { + //empty field in db + $this->db->where('id',$id_word); + $this->db->update('words',array('comment'=>'')); + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju komentarja!'; + } + } + + + if(!isset($data['errfields'])) + { + //perform delete + $this->db->where('id',$id_word); + $this->db->delete('words'); + + $data['status']='ok'; + $_SESSION['status']=$data['status']; + + redirect($this->url.'edit_subject/'.$word['id_subject']); + } + else + { + $_SESSION['errfields']=$data['errfields']; + redirect($this->url.'edit_word/'.$id_word); + } + } + else + { + $_SESSION['errfields']=$data['errfields']; + redirect($this->url.'edit_word/'.$id_word); + } + } + else + { + $data['tab']='words_subjects'; + $data['text']='Izbran vnos besede ne obstaja!'; + $data['link_back']=$this->url.'edit_content'; + $this->load_Master_view('no_content_error.php',$data); + } + } + + + function transcriptions() + { + $this->check_user(); + + $data=array( + 'title'=>'Fonetični zapisi', + ); + + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + + $data['id_subject']=$this->session->flashdata('id_subject_trans'); + $data['id_word']=$this->session->flashdata('id_word_trans'); + $data['id_lexem']=$this->session->flashdata('id_lexem_trans'); + $data['id_location']=$this->session->flashdata('id_location_trans'); + + //load transcriptions + $data['transcriptions']=$this->admin_model->transcriptions($data['id_word'],$data['id_location'],$data['id_subject'],0,$data['id_lexem']); + + //load view + $data['view']=$this->load->view('admin/transcriptions_list_view.php',$data,true); + + $data['subjects']=array(0=>'Izberite temo')+$this->home_model->subjects('select'); + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($data['id_subject'],'select'); + $data['lexems']=array(0=>'Izberite leksem')+$this->admin_model->titles($data['id_word']); + $data['locations']=array(0=>'Izberite kraj')+$this->admin_model->locations($data['id_subject']); + $data['tab']='transcriptions'; + + $data['status']=$this->session->flashdata('status'); + + $this->load_master_view('admin/transcriptions_view.php',$data); + } + + function add_transcription() + { + $this->check_user(); + + //load basic data + $data['title']='Dodajanje fonetičnega zapisa'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='transcriptions'; + + //get dialects + $transcription=$this->session->flashdata('add_transcription'); + + $data['subjects']=array(0=>'Izberite temo')+$this->home_model->subjects('select'); + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($transcription['id_subject'],'select'); + $data['lexems']=array(0=>'Izberite leksem')+$this->admin_model->word_lexems($transcription['id_word'],'select'); + $data['locations']=array(0=>'Izberite kraj')+$this->admin_model->locations($transcription['id_subject']); + + + $data['errfields']=$this->session->flashdata('errfields'); + + if($transcription) + { + $data['transcription']=$transcription; + } + else + { + $data['transcription']=array( + 'trans_text'=>'', + 'phonetic_writing'=>'', + 'id_subject'=>0, + 'id_word'=>0, + 'id_lexem'=>0, + 'id_location'=>0, + ); + } + + $this->load_master_view('admin/add_transcription_view.php',$data); + } + + function post_add_transcription() + { + $id_word=$this->input->post('words',true); + $id_subject=$this->input->post('subjects',true); + $id_lexem=$this->input->post('lexems_select',true); + $id_location=$this->input->post('locations',true); + $phonetic_writing=$this->input->post('phonetic_writing',true); + $trans_text=$this->input->post('trans_text',true); + $save_close=$this->input->post('save_close',true); + + //save post to session + $data=array( + 'id_word'=>$id_word, + 'id_subject'=>$id_subject, + 'id_lexem'=>$id_lexem, + 'id_location'=>$id_location, + 'phonetic_writing'=>$phonetic_writing, + 'trans_text'=>$trans_text, + ); + + $this->session->set_flashdata('add_transcription',$data); + + //check + if($phonetic_writing=='') + { + $data['errfields']['no_phonetic_writing']='Fonetični zapis je prazen!'; + } + if(!$id_word) + { + $data['errfields']['no_word']='Izberite besedo!'; + } + if(!$id_lexem) + { + $data['errfields']['no_lexem']='Izberite leksem!'; + } + if(!$id_location) + { + $data['errfields']['no_location']='Izberite kraj!'; + } + + //check if transcription for this place and this word exists + if(!isset($data['errfields'])) + { + $exists=$this->admin_model->transcriptions($id_word,$id_location,0,0,$id_lexem); + } + + if($exists) + { + $data['errfields']['word_location_exists']='Fonetični zapis za to besedo in leksem na tej lokaciji že obstaja!'; + } + + if($_FILES and !isset($data['errfields'])) + { + //audio + if(isset($_FILES['audio_file']) and $_FILES['audio_file']['size']) + { + $audio_file_type = pathinfo($_FILES["audio_file"]["name"],PATHINFO_EXTENSION); + + $file_name = preg_replace('/[^a-zA-Z0-9\-\._]/','', $phonetic_writing); + $file_name = preg_replace('/\s+/', '_', $file_name); + $audio_dir = "audio/"; + $audio_file = $audio_dir.basename(strtolower($file_name).'_'.time().'.'.$audio_file_type); + $audio_upload_ok = 1; + + // Check if image file is a actual image or fake image + if (file_exists($audio_file)) + { + $data['errfields']['audio_exists']='Ta zvočna datoteka že obstaja!'; + $audio_upload_ok = 0; + } + //velikost datoteke + if ($_FILES["audio_file"]["size"] > 50000000) { + $data['errfields']['audio_size']='Zvočna datoteka je prevelika, največja velikost datoteke je 50 MB!'; + $audio_upload_ok = 0; + } + //tip datoteke + if($audio_file_type != "mp3" && $audio_file_type != "MP3") { + $data['errfields']['audio_format']='Izbrana zvočna datoteka ni ustreznega formata! Dovoljen je samo mp3 format.'; + $audio_upload_ok = 0; + } + // + if ($audio_upload_ok != 0) + { + if(move_uploaded_file($_FILES["audio_file"]["tmp_name"], $audio_file)) + { + $data['audio']=$audio_file; + } + else + { + $data['errfields']['audio_not_uploaded']='Zvočan datoteka se ni pravilno naložila!'; + } + } + } + } + + if(!isset($data['errfields'])) + { + unset($data['id_subject']); + unset($data['id_word']); + + $this->db->insert('transcriptions',$data); + $id_transcription=$this->db->insert_id(); + + $data['status']='ok'; + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'transcriptions/'); + } + else + { + redirect($this->url.'edit_transcription/'.$id_transcription); + } + } + else + { + $this->session->set_flashdata('errfields',$data['errfields']); + + redirect($this->url.'add_transcription/'); + } + } + + + + function edit_transcription() + { + $this->check_user(); + + $id_transcription=$this->uri->segment(3); + + $data['transcription']=$this->admin_model->transcription($id_transcription); + + //load basic data + $data['title']='Urejanje fonetičnega zapisa'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='transcriptions'; + + if($data['transcription']) + { + //load data + $data['subjects']=array(0=>'Izberite temo')+$this->home_model->subjects('select'); + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($data['transcription']['id_subject'],'select'); + $data['lexems']=array(0=>'Izberite besedo')+$this->admin_model->word_lexems($data['transcription']['id_word'],'select'); + $data['locations']=array(0=>'Izberite kraj')+$this->admin_model->locations($data['transcription']['id_subject']); + + $data['errfields']=$this->session->flashdata('errfields'); + $data['status']=$this->session->flashdata('status'); + + $this->load_master_view('admin/edit_transcription_view.php',$data); + } + else + { + $data['tab']='transcriptions'; + $data['text']='Izbran vnos fonetičnega zapisa ne obstaja!'; + $data['link_back']=$this->url.'transcriptions'; + $this->load_Master_view('no_content_error.php',$data); + } + } + + function post_edit_transcription() + { + $this->check_user(); + $data=array(); + + $id=$this->input->post('id',true); + $id_word=$this->input->post('words',true); + $id_subject=$this->input->post('subjects',true); + $id_lexem=$this->input->post('lexems_select',true); + $id_location=$this->input->post('locations',true); + $phonetic_writing=$this->input->post('phonetic_writing',true); + $trans_text=$this->input->post('trans_text',true); + $save_close=$this->input->post('save_close',true); + + if($phonetic_writing=='') + { + $data['errfields']['no_phonetic_writing']='Fonetični zapis je prazen!'; + } + if(!$id_word) + { + $data['errfields']['no_word']='Izberite besedo!'; + } + if(!$id_lexem) + { + $data['errfields']['no_lexem']='Izberite leksem!'; + } + if(!$id_location) + { + $data['errfields']['no_location']='Izberite lokacijo!'; + } + + //check if transcription for this place and this lexem exists + if(!isset($data['errfields'])) + { + $exists=$this->admin_model->transcriptions($id_word,$id_location,0,$id,$id_lexem); + } + + if($exists) + { + $data['errfields']['word_location_exists']='Fonetični zapis za to besedo in leksem na tej lokaciji že obstaja!'; + } + + + if($_FILES and !isset($data['errfields'])) + { + //audio + if(isset($_FILES['audio_file']) and $_FILES['audio_file']['size']) + { + $audio_file_type = pathinfo($_FILES["audio_file"]["name"],PATHINFO_EXTENSION); + + $file_name = preg_replace('/[^a-zA-Z0-9\-\._]/','', $phonetic_writing); + $file_name = preg_replace('/\s+/', '_', $file_name); + $audio_dir = "audio/"; + $audio_file = $audio_dir.basename(strtolower($file_name).'_'.time().'.'.$audio_file_type); + $audio_upload_ok = 1; + // Check if image file is a actual image or fake image + if (file_exists($audio_file)) + { + $data['errfields']['audio_exists']='Ta zvočna datoteka že obstaja!'; + $audio_upload_ok = 0; + } + //velikost datoteke + if ($_FILES["audio_file"]["size"] > 50000000) { + $data['errfields']['audio_size']='Zvočna datoteka je prevelika, največja velikost datoteke je 50 MB!'; + $audio_upload_ok = 0; + } + //tip datoteke + if($audio_file_type != "mp3" && $audio_file_type != "MP3") { + $data['errfields']['audio_format']='Izbrana zvočna datoteka ni ustreznega formata! Dovoljen je samo mp3 format.'; + $audio_upload_ok = 0; + } + // + if ($audio_upload_ok != 0) + { + if(move_uploaded_file($_FILES["audio_file"]["tmp_name"], $audio_file)) + { + //dodaj še v bazo + $data['audio']=$audio_file; + } + else + { + $data['errfields']['audio_not_uploaded']='Zvočan datoteka se ni pravilno naložila!'; + } + } + } + } + + if(!isset($data['errfields'])) + { + $db_data=array( + 'phonetic_writing'=>$phonetic_writing, + 'id_lexem'=>$id_lexem, + 'id_location'=>$id_location, + 'trans_text'=>$trans_text, + ); + + //update + $this->db->where('id',$id); + $this->db->update('transcriptions',$db_data+$data); + + $data['status']='ok'; + + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'transcriptions'); + } + } + else + { + $this->session->set_flashdata('errfields',$data['errfields']); + } + + redirect($this->url.'edit_transcription/'.$id); + + } + + function transcription_delete() + { + $this->check_user(); + + $id_transcription=$this->uri->segment(3); + + $data=$this->admin_model->transcription($id_transcription); + + if($data) + { + //unlink audio + if($data['audio']) + { + unlink($data['audio']); + } + + //remove transcription + $this->db->where('id',$id_transcription); + $this->db->delete('transcriptions'); + + $data['status']='ok'; + //to session + $_SESSION['status']=$data['status']; + + redirect($this->url.'transcriptions'); + } + else + { + $data['tab']='transcriptions'; + $data['text']='Izbran vnos fonetičenga zapisa ne obstaja!'; + $data['link_back']=$this->url.'transcriptions'; + $this->load_Master_view('no_content_error.php',$data); + } + } + + function locations() + { + $this->check_user(); + + $data=array( + 'title'=>'Lokacije', + ); + + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + + $data['locations']=$this->admin_model->locations_all(); + $data['tab']='locations'; + + if(isset($_SESSION['status'])) + { + $data['status'] = $_SESSION['status']; + unset($_SESSION['status']); + } + + $this->load_master_view('admin/locations_view.php',$data); + } + + function add_location() + { + $this->check_user(); + + //load basic data + $data['title']='Dodajanje lokacije'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='locations'; + + //get dialects + $location=$this->session->flashdata('add_location'); + + $data['dialects']=array(0=>'Izberite narečno skupino')+$this->admin_model->dialects('options'); + $data['subdialects']=array(0=>'Izberite narečje')+$this->admin_model->subdialects($location['id_dialect'],'options'); + $data['subsubdialects']=array(0=>'Izberite podnarečje')+$this->admin_model->subsubdialects($location['id_subdialect'],'options'); + + $data['subjects']=$this->admin_model->subjects(); + + $data['errfields']=$this->session->flashdata('errfields'); + + if($location) + { + $data['location']=$location; + } + else + { + $data['location']=array( + 'name'=>'', + 'short_name'=>'', + 'lat'=>'', + 'long'=>'', + 'id_dialect'=>0, + 'id_subdialect'=>0, + 'id_subsubdialect'=>0, + ); + } + + $this->load_master_view('admin/add_location_view.php',$data); + } + + function post_add_location() + { + $name=$this->input->post('name',true); + $short_name=$this->input->post('short_name',true); + $lat=$this->input->post('lat',true); + $long=$this->input->post('long',true); + $id_dialect=$this->input->post('dialects',true); + $id_subdialect=$this->input->post('subdialects',true); + $id_subsubdialect=$this->input->post('subsubdialects',true); + $save_close=$this->input->post('save_close',true); + + $subjects=$this->input->post('subjects',true); + + //save post to session + $data=array( + 'name'=>$name, + 'short_name'=>$short_name, + 'lat'=>$lat, + 'long'=>$long, + 'id_dialect'=>$id_dialect, + 'id_subdialect'=>$id_subdialect, + 'id_subsubdialect'=>$id_subsubdialect, + ); + + $this->session->set_flashdata('add_location',$data); + + if(!$name) + { + $data['errfields']['name']='Ime kraja je prazno!'; + } + elseif($this->admin_model->location_exists('name',$name)) + { + $data['errfields']['name']='Ime kraja že obstaja!'; + } + + if(!$short_name) + { + $data['errfields']['short_name']='Kratek naziv kraja je prazen!'; + } + elseif($this->admin_model->location_short_name_exists($short_name)) + { + $data['errfields']['short_name']='Kratek naziv kraja kraja že obstaja!'; + } + + if(!$lat) + { + $data['errfields']['lat']='Zemljepisna širina (lat) je prazna!'; + } + else + { + $lat=str_replace(',','.',$lat); + + if((int)$lat==0) + { + $data['errfields']['lat']='Zemljepisna širina (lat) ne sme biti 0!'; + } + if(!is_numeric($lat)) + { + $data['errfields']['lat']='Zemljepisna širina (lat) mora biti številska vrednost!'; + } + } + if(!$long) + { + $data['errfields']['long']='Zemljepisna dolžina (long) je prazna!'; + } + else + { + $long=str_replace(',','.',$long); + + if((int)$long==0) + { + $data['errfields']['long']='Zemljepisna dolžina (long) ne sme biti 0!'; + } + if(!is_numeric($long)) + { + $data['errfields']['long']='Zemljepisna dolžina (long) mora biti številska vrednost!'; + } + } + if($lat and $long) + { + if($this->admin_model->coordinates_exists($lat,$long,$id_location)) + { + $data['errfields']['coordinates']='Na teh koordinatah že obstaja kraj!'; + } + } + + if(!$id_dialect) + { + $data['errfields']['id_dialect']='Izberite narečno skupino!'; + } + if(!$id_subdialect) + { + $data['errfields']['id_subdialect']='Izberite narečje!'; + } + + if(!isset($data['errfields'])) + { + if($data['id_subsubdialect']==0) + { + $data['id_subsubdialect']=NULL; + } + $this->db->insert('locations',$data); + $id_location=$this->db->insert_id(); + + //add possible subject_locations + + foreach($subjects as $key=>$id_subject) + { + $db_data=array( + 'id_location'=>$id_location, + 'id_subject'=>$id_subject, + 'checked'=>1, + ); + $this->db->insert('subject_locations',$db_data); + } + + $data['status']='ok'; + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'locations/'); + } + else + { + redirect($this->url.'edit_location/'.$id_location); + } + + } + else + { + + $this->session->set_flashdata('errfields',$data['errfields']); + + redirect($this->url.'add_location/'); + } + } + + function edit_location() + { + $this->check_user(); + + $id_location=$this->uri->segment(3); + + $data['location']=$this->admin_model->location($id_location); + + //load basic data + $data['title']='Urejanje lokacije'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='locations'; + + if($data['location']) + { + $data['dialects']=array(0=>'Izberite narečno skupino')+$this->admin_model->dialects('options'); + $data['subdialects']=array(0=>'Izberite narečje')+$this->admin_model->subdialects($data['location']['id_dialect'],'options'); + $data['subsubdialects']=array(0=>'Izberite podnarečje')+$this->admin_model->subsubdialects($data['location']['id_subdialect'],'options'); + + $data['subjects']=$this->admin_model->subjects(); + + $data['subject_locations']=$this->admin_model->subject_locations($id_location); + + + $data['errfields']=$this->session->flashdata('errfields'); + $data['status']=$this->session->flashdata('status'); + + $this->load_master_view('admin/edit_location_view.php',$data); + } + else + { + $data['tab']='locations'; + $data['text']='Izbran vnos lokacije ne obstaja!'; + $data['link_back']=$this->url.'locations'; + $this->load_Master_view('no_content_error.php',$data); + } + } + + function post_edit_location() + { + $this->check_user(); + + $id_location=$this->input->post('id',true); + $name=$this->input->post('name',true); + $short_name=$this->input->post('short_name',true); + $lat=$this->input->post('lat',true); + $long=$this->input->post('long',true); + $id_dialect=$this->input->post('dialects',true); + $id_subdialect=$this->input->post('subdialects',true); + $id_subsubdialect=$this->input->post('subsubdialects',true); + $save_close=$this->input->post('save_close',true); + + $subjects=$this->input->post('subjects',true); + + if(!$name) + { + $data['errfields']['name']='Ime kraja je prazno!'; + } + elseif($this->admin_model->location_exists('name',$name,$id_location)) + { + $data['errfields']['name']='Ime kraja že obstaja!'; + } + + if(!$short_name) + { + $data['errfields']['short_name']='Kratek naziv kraja je prazen!'; + } + elseif($this->admin_model->location_short_name_exists($short_name,$id_location)) + { + $data['errfields']['short_name']='Kratek naziv kraja kraja že obstaja!'; + } + + if(!$lat) + { + $data['errfields']['lat']='Zemljepisna širina (lat) je prazna!'; + } + else + { + $lat=str_replace(',','.',$lat); + + if((int)$lat==0) + { + $data['errfields']['lat']='Zemljepisna širina (lat) ne sme biti 0!'; + } + + //check again + if(!is_numeric($lat)) + { + $data['errfields']['lat']='Zemljepisna širina (lat) mora biti številska vrednost!'; + } + } + if(!$long) + { + $data['errfields']['long']='Zemljepisna dolžina (long) je prazna!'; + } + else + { + $long=str_replace(',','.',$long); + + if((int)$long==0) + { + $data['errfields']['long']='Zemljepisna dolžina (long) ne sme biti 0!'; + } + if(!is_numeric($long)) + { + $data['errfields']['long']='Zemljepisna dolžina (long) mora biti številska vrednost!'; + } + } + if($lat and $long) + { + if($this->admin_model->coordinates_exists($lat,$long,$id_location)) + { + $data['errfields']['coordinates']='Na teh koordinatah že obstaja kraj!'; + } + } + + if(!isset($data['errfields'])) + { + //get all + $this->db->select('*'); + $this->db->from('subject_locations'); + $this->db->where('id_location',$id_location); + $subject_locations=$this->db->get()->result_array(); + + $all_locations=array(); + foreach($subject_locations as $subject_location) + { + $all_locations[$subject_location['id']]=$subject_location['id']; + } + + foreach($subjects as $key=>$id_subject) + { + //check if this exists + $this->db->select('*'); + $this->db->from('subject_locations'); + $this->db->where('id_location',$id_location); + $this->db->where('id_subject',$id_subject); + $exist=$this->db->get()->row_array(); + + if($exist) + { + $this->db->where('id',$exist['id']); + $this->db->update('subject_locations',array('checked'=>1)); + + unset($all_locations[$exist['id']]); + } + else //insert new + { + $db_data=array( + 'id_location'=>$id_location, + 'id_subject'=>$id_subject, + 'checked'=>1, + ); + $this->db->insert('subject_locations',$db_data); + } + } + + //check if any entries have to be deleted + foreach($all_locations as $id=>$location) + { + $this->db->where('id',$id); + $this->db->delete('subject_locations'); + } + + + $db_data=array( + 'name'=>$name, + 'short_name'=>$short_name, + 'lat'=>$lat, + 'long'=>$long, + 'id_dialect'=>$id_dialect, + 'id_subdialect'=>$id_subdialect, + 'id_subsubdialect'=>$id_subsubdialect?$id_subsubdialect:NULL, + ); + + //update + $this->db->where('id',$id_location); + $this->db->update('locations',$db_data); + + //get data + $data['location']=$this->admin_model->location($id_location); + + $data['status']='ok'; + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'locations'); + } + + } + else + { + $this->session->set_flashdata('errfields',$data['errfields']); + } + + redirect($this->url.'edit_location/'.$id_location); + } + + function location_delete() + { + $this->check_user(); + + $id_location=$this->uri->segment(3); + + //get links + $links=$this->admin_model->locations_links($id_location); + + if($links) + { + $data['errfields']['links']="Lokacija ima povezave (fonetične zapise):
    "; + foreach($links as $link) + { + $data['errfields']['links'].="
  • ".$link['phonetic_writing']."
  • "; + } + + $data['errfields']['links'].='
'; + } + + if(!isset($data['errfields'])) + { + //delete possible subject_locations + $this->db->select('*'); + $this->db->from('subject_locations'); + $this->db->where('id_location',$id_location); + $subject_locations=$this->db->get()->result_array(); + + foreach($subject_locations as $entry) + { + $this->db->where('id',$entry['id']); + $this->db->delete('subject_locations'); + } + + //perform delete + $this->db->where('id',$id_location); + $this->db->delete('locations'); + + $data['status']='ok'; + $this->session->set_flashdata('status',$data['status']); + + redirect($this->url.'locations'); + } + else + { + $this->session->set_flashdata('errfields',$data['errfields']); + redirect($this->url.'edit_location/'.$id_location); + } + } + + function users() + { + $this->check_user(); + + $data=array( + 'title'=>'Uporabniki', + ); + + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['users']=$this->admin_model->users(); + $data['tab']='my_profile'; + + if(isset($_SESSION['status'])) + { + $data['status'] = $_SESSION['status']; + unset($_SESSION['status']); + } + + $this->load_master_view('admin/users_view.php',$data); + } + + function add_user() + { + $this->check_user(); + + $data = array( + 'username' =>'', + 'sess_expiration'=>60, + ); + + $this->db->insert('users', $data); + $id_user=$this->db->insert_id(); + + redirect($this->url.'edit_user/'.$id_user); + } + + function edit_user() + { + $this->check_user(); + + $id_user=$this->uri->segment(3); + + //load basic data + $data['title']='Urejanje uporabnika'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + + $data['user']=$this->admin_model->user($id_user); + $data['tab']='my_profile'; + + if($data['user']) + { + + if(isset($_SESSION['errfields'])) + { + $data['errfields'] = $_SESSION['errfields']; + unset($_SESSION['errfields']); + } + + if(isset($_SESSION['status'])) + { + $data['status'] = $_SESSION['status']; + unset($_SESSION['status']); + } + + + $this->load_master_view('admin/edit_user_view.php',$data); + } + else + { + $data['text']='Izbran vnos uporabnika ne obstaja!'; + $data['link_back']=$this->url.'users'; + $this->load_Master_view('no_content_error.php',$data); + } + + } + + function post_edit_user() + { + $username=(string)$this->input->post('username',true); + $name=(string)$this->input->post('name',true); + $lastname=(string)$this->input->post('lastname',true); + $pass1=(string)$this->input->post('pass1',true); + $pass2=(string)$this->input->post('pass2',true); + $id_user=$this->input->post('id_user',true); + + if($username=='') + { + $data['errfields']['no_username']='Uporabniško ime je prazno!'; + } + else + { + //check if profile with this username exists + if($this->admin_model->username_exists($id_user,$username)) + { + $data['errfields']['username_exists']='Uporabnik s tem uporabniškim imenom že obstaja!'; + } + } + + if($pass1=='' or $pass2=='') + { + $data['errfields']['not_equal']='Obe vnosni polji za geslo morata biti izpolnjeni!'; + } + else + { + if(strcmp($pass1,$pass2)!==0) + { + $data['errfields']['not_equal']='Gesli se ne ujemata!'; + } + else + { + if(strlen($pass1)<6) + { + $data['errfields']['pass_short']='Geslo mora vsebovati najmanj 6 znakov!'; + } + } + } + + if(!isset($data['errfields'])) + { + //make hash + $hash=password_hash($pass1,PASSWORD_DEFAULT); + + $db_data=array( + 'password_hash'=>$hash, + 'username'=>$username, + 'name'=>$name, + 'lastname'=>$lastname, + ); + + //update db + $this->db->where('id',$id_user); + $this->db->update('users',$db_data); + + $data['status']='ok'; + + //set to session + $_SESSION['status']=$data['status']; + } + else + { + //set to session + $_SESSION['errfields']=$data['errfields']; + } + + redirect($this->url.'edit_user/'.$id_user); + } + + function user_delete() + { + $this->check_user(); + + $id_user=$this->uri->segment(3); + + if($id_user!=1) + { + //remove subject + $this->db->where('id',$id_user); + $this->db->delete('users'); + + $data['status']='ok'; + + $_SESSION['status']=$data['status']; + + redirect($this->url.'users/'); + } + else + { + $_SESSION['errfields']='Tega uporabnika ni mogoče izbrisati (admin)!'; + + redirect($this->url.'/edit_user/'.$id_user); + } + } + + function lexems() + { + $this->check_user(); + + $data=array( + 'title'=>'Leksemi', + ); + + $data['id_subject']=$this->session->flashdata('id_subject_lexems'); + + $data['subjects']=array(0=>'Izberite temo')+$this->home_model->subjects('select'); + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($data['id_subject'],'select'); + + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + + $data['lexems']=$this->admin_model->lexems(); + $data['tab']='lexems'; + + $data['view']=$this->load->view('admin/lexems_list_view.php',$data,true); + + $data['status']=$this->session->flashdata('status'); + + $this->load_master_view('admin/lexems_view.php',$data); + } + + function add_lexem() + { + $this->check_user(); + + //load basic data + $data['title']='Dodajanje leksema'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='lexems'; + + //get data from session + $lexem=$this->session->flashdata('add_lexem'); + + //load words, subjects + $data['subjects']=array(0=>'Izberite temo')+$this->home_model->subjects('select'); + + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($lexem['id_subject'],'select'); + + $data['errfields']=$this->session->flashdata('errfields'); + + if($lexem) + { + $data['lexem']=$lexem; + } + else + { + $data['lexem'] = array( + 'title' => '', + 'id_word'=>0, + 'id_subject'=>0, + 'icon'=>'', + 'icon_color'=>'', + ); + } + + $this->load_master_view('admin/lexem_add_view.php',$data); + } + + function post_add_lexem() + { + $id_word=$this->input->post('words',true); + $id_subject=$this->input->post('subjects',true); + $title=$this->input->post('title',true); + $icon=$this->input->post('icon',true); + $icon_color=$this->input->post('icon_color',true); + $save_close=$this->input->post('save_close',true); + + //save post to session + $data=array( + 'title'=>$title, + 'id_word'=>$id_word, + 'id_subject'=>$id_subject, + 'icon'=>$icon, + 'icon_color'=>$icon_color, + ); + + $this->session->set_flashdata('add_lexem',$data); + + //check + + if(!$title) + { + $data['errfields']['no_title']="Leksem je prazen!"; + } + + if(!$id_word) + { + $data['errfields']['no_word']="Izberite besedo!"; + } + + if(!$icon) + { + $data['errfields']['no_icon']="Simbol leksema je prazen!"; + } + else + { + $icon=preg_replace('/\s+/', '', $icon); + } + + if(!$icon_color) + { + $icon_color="#000000"; + } + + if(!isset($data['errfields'])) + { + if($this->admin_model->lexem_title_exists(0,$data['title'],$data['id_subject'],$data['id_word'])) + { + $data['errfields']['title_exists']="Tak leksem za to besedo že obstaja!"; + } + } + + if(!isset($data['errfields'])) + { + unset($data['id_subject']); + $this->db->insert('lexems',$data); + $id_lexem=$this->db->insert_id(); + + + $data['status']='ok'; + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'lexems/'); + } + else + { + redirect($this->url.'edit_lexem/'.$id_lexem); + } + + + } + else + { + + $this->session->set_flashdata('errfields',$data['errfields']); + + redirect($this->url.'add_lexem/'); + } + } + + function edit_lexem() + { + $this->check_user(); + + $id=$this->uri->segment(3); + + //load basic data + $data['title']='Urejanje leksema'; + $data['user_title']=$this->session->userdata['name'].' '.$this->session->userdata['lastname']; + $data['user']=$this->admin_model->user($this->session->userdata['uid']); + $data['tab']='lexems'; + + $data['lexem']=$this->admin_model->lexem($id); + + if($data['lexem']) + { + //load words, subjects + $data['subjects']=array(0=>'Izberite temo')+$this->home_model->subjects('select'); + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($data['lexem']['id_subject'],'select'); + + $data['errfields']=$this->session->flashdata('errfields'); + $data['status']=$this->session->flashdata('status'); + + $this->load_master_view('admin/lexem_edit_view.php',$data); + } + else + { + $data['text']='Izbran vnos leksema ne obstaja!'; + $data['link_back']=$this->url.'lexems'; + $this->load_master_view('no_content_error.php',$data); + } + } + + function post_edit_lexem() + { + $id=$this->input->post('id',true); + $id_word=$this->input->post('words',true); + $title=$this->input->post('title',true); + $icon=$this->input->post('icon',true); + $icon_color=$this->input->post('icon_color',true); + $save_close=$this->input->post('save_close',true); + + //check + if(!$title) + { + $data['errfields']['no_title']="Leksem je prazen!"; + } + + if(!$id_word) + { + $data['errfields']['no_word']="Izberite besedo!"; + } + + if(!$icon) + { + $data['errfields']['no_icon']="Simbol leksema je prazen!"; + } + else + { + $icon=preg_replace('/\s+/', '', $icon); + } + + if(!$icon_color) + { + $icon_color="#000000"; + } + + if(!isset($data['errfields'])) + { + if($this->admin_model->lexem_title_exists(0,$title,$id_subject,$id_word)) + { + $data['errfields']['title_exists']="Tak leksem za to besedo že obstaja!"; + } + } + + if(!isset($data['errfields'])) + { + $db_data=array( + 'title'=>$title, + 'id_word'=>$id_word, + 'icon'=>$icon, + 'icon_color'=>$icon_color, + ); + + $this->db->where('id',$id); + $this->db->update('lexems',$db_data); + + $data['status']='ok'; + + $this->session->set_flashdata('status',$data['status']); + + if(isset($save_close)) + { + redirect($this->url.'lexems/'); + } + } + else + { + + $this->session->set_flashdata('errfields',$data['errfields']); + } + + redirect($this->url.'edit_lexem/'.$id); + } + + function lexem_delete() + { + $this->check_user(); + + $id=$this->uri->segment(3); + + //get links + $links=$this->admin_model->lexem_links($id); + + if($links) + { + $data['errfields']['links']="Leksem ima povezave (fonetične zapise):
    "; + foreach($links as $link) + { + $data['errfields']['links'].="
  • ".$link['phonetic_writing']."
  • "; + } + + $data['errfields']['links'].='
'; + } + + if(!isset($data['errfields'])) + { + //perform delete + $this->db->where('id',$id); + $this->db->delete('lexems'); + + $data['status']='ok'; + $this->session->set_flashdata('status',$data['status']); + + redirect($this->url.'lexems'); + } + else + { + $this->session->set_flashdata('errfields',$data['errfields']); + redirect($this->url.'edit_lexem/'.$id); + } + } + + + function ajax_lexem_delete() + { + $this->check_user(); + + $id=(int)$this->input->post('id_lexem',true); + + //check links + $links=$this->admin_model->lexem_links($id); + + if($links) + { + $data['errfields']['links']="Leksem ima povezave (fonetične zapise):
    "; + foreach($links as $link) + { + $data['errfields']['links'].="
  • ".$link['phonetic_writing']."
  • "; + } + + $data['errfields']['links'].='
'; + } + + if(!isset($data['errfields'])) + { + //remove location + $this->db->where('id',$id); + $this->db->delete('lexems'); + + $data['status']='ok'; + } + + echo json_encode($data); + } + + + function ajax_edit_subject_save() + { + $this->check_user(); + + $id_subject=(int)$this->input->post('id',true); + $title=$this->input->post('title',true); + + if($title=='') + { + $data['errfields']['no_title']='Naziv teme je prazen!'; + } + else + { + $exists=$this->admin_model->subject_title_exists($title,$id_subject); + if($exists) + { + $data['errfields']['title_exists']='Tema s tem nazivom že obstaja!'; + } + } + + if(!isset($data['errfields'])) + { + //update + $this->db->where('id',$id_subject); + $this->db->update('subjects',array('title'=>$title)); + + $data['status']='ok'; + } + + echo json_encode($data); + } + + function ajax_word_delete() + { + $this->check_user(); + + $id_word=(int)$this->input->post('id_word',true); + + $word=$this->admin_model->word($id_word); + + //check links + $links=$this->admin_model->word_links($id_word); + + if($links) + { + $data['errfields']['links']="Beseda ima povezave (lekseme):
    "; + foreach($links as $link) + { + $data['errfields']['links'].="
  • ".$link['title']."
  • "; + } + + $data['errfields']['links'].='
'; + } + + if(!isset($data['errfields'])) + { + if($word['image']) + { + //remove file + if(unlink($word['image'])) + { + //empty field in db + $this->db->where('id',$id_word); + $this->db->update('words',array('image'=>'')); + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju slike!'; + } + } + + if($word['comment']) + { + if(unlink($word['comment'])) + { + //empty field in db + $this->db->where('id',$id_word); + $this->db->update('words',array('comment'=>'')); + + $data['status']='ok'; + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju komentarja!'; + } + } + + if(!isset($data['errfields'])) + { + //remove image + $this->db->where('id',$id_word); + $this->db->delete('words'); + + $data['status']='ok'; + } + } + + echo json_encode($data); + } + + function ajax_image_delete() + { + $this->check_user(); + + $id_word=(int)$this->input->post('id_word',true); + $image=(string)$this->input->post('image',true); + + + if(!$id_word) + { + $data['errfields']['no_id']='Neveljaven vnos!'; + } + if(!$image) + { + $data['errfields']['image']='Ni obstoječe slike!'; + } + + if(!isset($data['errfields'])) + { + chmod($image,0755); + //remove file + if(unlink($image)) + { + //empty field in db + $this->db->where('id',$id_word); + $this->db->update('words',array('image'=>'')); + + $data['status']='ok'; + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju!'; + } + } + + echo json_encode($data); + } + + function ajax_comment_delete() + { + $this->check_user(); + + $id_word=(int)$this->input->post('id_word',true); + $comment=(string)$this->input->post('comment',true); + + + if(!$id_word) + { + $data['errfields']['no_id']='Neveljaven vnos!'; + } + if(!$comment) + { + $data['errfields']['comment']='Ni obstoječega komentarja!'; + } + + if(!isset($data['errfields'])) + { + + if(unlink($comment)) + { + //empty field in db + $this->db->where('id',$id_word); + $this->db->update('words',array('comment'=>'')); + + $data['status']='ok'; + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju!'; + } + } + + echo json_encode($data); + } + + function ajax_icon_delete() + { + $this->check_user(); + + $id_transcription=(int)$this->input->post('id_transcription',true); + $icon=(string)$this->input->post('icon',true); + + + if(!$id_transcription) + { + $data['errfields']['no_id']='Neveljaven vnos!'; + } + if(!$icon) + { + $data['errfields']['image']='Ni obstoječe slike!'; + } + + if(!isset($data['errfields'])) + { + //remove file + if(unlink($icon)) + { + //empty field in db + $this->db->where('id',$id_transcription); + $this->db->update('transcriptions',array('icon'=>'')); + + $data['status']='ok'; + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju!'; + } + } + + echo json_encode($data); + } + + function ajax_change_subject_lexems() + { + $id_subject=$this->input->post('id_subject',true); + + $this->session->set_flashdata('id_subject_lexems',$id_subject); + + //load words + $data=array(); + + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($id_subject,'select'); + + //load transcriptions + $data['lexems']=$this->admin_model->lexems(0,$id_subject); + + //load view + $data['view']=$this->load->view('admin/lexems_list_view.php',$data,true); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_change_word_lexems() + { + $id_word=$this->input->post('id_word',true); + $id_subject=$this->input->post('id_subject',true); + + //load transcriptions + $data['lexems']=$this->admin_model->lexems($id_word,$id_subject); + + //load view + $data['view']=$this->load->view('admin/lexems_list_view.php',$data,true); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_change_subject() + { + $id_subject=$this->input->post('id_subject',true); + $id_location=$this->input->post('id_location',true); + + //save to session + $this->session->set_flashdata('id_subject_trans',$id_subject); + + //load words + $data=array(); + + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($id_subject,'select'); + $data['locations']=array(0=>'Izberite kraj')+$this->admin_model->locations($id_subject); + /* + $data['locations']=array(); + foreach($locations as $id=>$location) + { + $data['locations'][$id]=array( + 'id'=>$id, + 'title'=>$location, + ); + } + */ + + //load transcriptions + $data['transcriptions']=$this->admin_model->transcriptions(0,$id_location,$id_subject); + + //load view + $data['view']=$this->load->view('admin/transcriptions_list_view.php',$data,true); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_load_transcriptions() + { + $id_word=$this->input->post('id_word',true); + $id_subject=$this->input->post('id_subject',true); + $id_location=$this->input->post('id_location',true); + + + //save to session + $this->session->set_flashdata('id_word_trans',$id_word); + + //load transcriptions + $data['transcriptions']=$this->admin_model->transcriptions($id_word,$id_location,$id_subject); + + //load titles + $data['titles']=array(0=>'Izberite leksem')+$this->admin_model->titles($id_word); + + //load view + $data['view']=$this->load->view('admin/transcriptions_list_view.php',$data,true); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_update_transcriptions_titles() + { + $id_lexem=$this->input->post('id_lexem',false); + $id_word=$this->input->post('id_word',true); + $id_subject=$this->input->post('id_subject',true); + $id_location=$this->input->post('id_location',true); + + //save to session + $this->session->set_flashdata('id_lexem_trans',$id_word); + + //load transcriptions + $data['transcriptions']=$this->admin_model->transcriptions($id_word,$id_location,$id_subject,0,$id_lexem); + + //load view + $data['view']=$this->load->view('admin/transcriptions_list_view.php',$data,true); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_change_location() + { + $id_lexem=$this->input->post('id_lexem',false); + $id_word=$this->input->post('id_word',true); + $id_subject=$this->input->post('id_subject',true); + $id_location=$this->input->post('id_location',true); + + //save to session + $this->session->set_flashdata('id_location_trans',$id_word); + + //load transcriptions + $data['transcriptions']=$this->admin_model->transcriptions($id_word,$id_location,$id_subject,0,$id_lexem); + + //load view + $data['view']=$this->load->view('admin/transcriptions_list_view.php',$data,true); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_update_words() + { + $id_subject=$this->input->post('id_subject',true); + + //load words + $data=array(); + + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($id_subject,'select'); + $data['locations']=array(0=>'Izberite kraj')+$this->admin_model->locations($id_subject); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_update_lexems() + { + $id_word=$this->input->post('id_word',true); + $id_subject=$this->input->post('id_subject',true); + + //load words + $data=array(); + + $data['lexems']=array(0=>'Izberite leksem')+$this->admin_model->word_lexems($id_word,$id_subject,'select'); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_location_delete() + { + $this->check_user(); + + $id_location=(int)$this->input->post('id_location',true); + + //check links + $links=$this->admin_model->locations_links($id_location); + + if($links) + { + $data['errfields']['links']="Lokacija ima povezave (fonetične zapise):
    "; + foreach($links as $link) + { + $data['errfields']['links'].="
  • ".$link['phonetic_writing']."
  • "; + } + + $data['errfields']['links'].='
'; + } + + if(!isset($data['errfields'])) + { + //delete possible subject_locations + $this->db->select('*'); + $this->db->from('subject_locations'); + $this->db->where('id_location',$id_location); + $subject_locations=$this->db->get()->result_array(); + + foreach($subject_locations as $entry) + { + $this->db->where('id',$entry['id']); + $this->db->delete('subject_locations'); + } + + //remove location + $this->db->where('id',$id_location); + $this->db->delete('locations'); + + $data['status']='ok'; + } + + echo json_encode($data); + } + + function ajax_transcription_delete() + { + $this->check_user(); + + $id_transcription=(int)$this->input->post('id_transcription',true); + + $transcription=$this->admin_model->transcription($id_transcription); + + //remove audio and icon + if($transcription['audio']) + { + unlink($transcription['audio']); + } + + //remove transcription + $this->db->where('id',$id_transcription); + $this->db->delete('transcriptions'); + + $data['status']='ok'; + + + echo json_encode($data); + } + + function ajax_audio_delete() + { + $this->check_user(); + + $id_transcription=(int)$this->input->post('id_transcription',true); + $audio=(string)$this->input->post('audio',true); + + + if(!$id_transcription) + { + $data['errfields']['no_id']='Neveljaven vnos!'; + } + if(!$audio) + { + $data['errfields']['audio']='Ni obstoječega zvočenga posnetka!'; + } + + if(!isset($data['errfields'])) + { + + if(unlink($audio)) + { + //empty field in db + $this->db->where('id',$id_transcription); + $this->db->update('transcriptions',array('audio'=>'')); + + $data['status']='ok'; + } + else + { + $data['errfields']['no_delete']='Prišlo je do napake pri brisanju!'; + } + } + + echo json_encode($data); + } + + function ajax_update_subdialects() + { + $id_dialect=$this->input->post('id_dialect',true); + + //load words + $data=array(); + + $data['subdialects']=array(0=>'Izberite narečje')+$this->admin_model->subdialects($id_dialect,'options'); + + $data['status']='ok'; + + echo json_encode($data); + } + + function ajax_update_subsubdialects() + { + $id_subdialect=$this->input->post('id_subdialect',true); + + //load words + $data=array(); + + $data['subsubdialects']=array(0=>'Izberite podnarečje')+$this->admin_model->subsubdialects($id_subdialect,'options'); + + $data['status']='ok'; + + echo json_encode($data); + } + + private function load_master_view($page,$data) + { + $this->load->view('header.php',$data); + $this->load->view($page,$data); + $this->load->view('footer.php',$data); + } + + private function check_user() + { + if(!isset($this->session->userdata['uid'])) + { + redirect('admin/login'); + } + } + + function fill_dialects() + { + $dialects=array( + 'gorenjska narečna skupina'=>array( + 'gorenjsko narečje'=>array( + 'vzhodnogorenjsko podnarečje'=>'vzhodnogorenjsko podnarečje', + ), + 'selško narečje'=>array(), + ), + 'dolenjska narečna skupina'=>array( + 'dolenjsko narečje'=>array( + 'vzhodnodolenjsko podnarečje'=>'vzhodnodolenjsko podnarečje', + ), + 'severnobelokranjsko narečje'=>array(), + 'južnobelokranjsko narečje'=>array(), + 'kostelsko narečje'=>array(), + 'mešani kočevski govori'=>array(), + ), + 'štajerska narečna skupina'=>array( + 'srednjesavinjsko narečje'=>array(), + 'zgornjesavinjsko narečje'=>array( + 'solčavsko podnarečje'=>'solčavsko podnarečje', + ), + 'srednještajersko narečje'=>array(), + 'južnopohorsko narečje'=>array( + 'kozjaško podnarečje'=>'kozjaško podnarečje', + ), + 'kozjansko-bizeljsko narečje'=>array(), + 'posavsko narečje'=>array( + 'zagorsko-trboveljsko podnarečje'=>'zagorsko-trboveljsko podnarečje', + 'laško podnarečje '=>'laško podnarečje ', + 'sevniško-krško podnarečje'=>'sevniško-krško podnarečje', + ), + ), + 'panonska narečna skupina'=>array( + 'prekmursko narečje '=>array(), + 'slovenskogoriško narečje'=>array(), + 'prleško narečje '=>array(), + 'haloško narečje'=>array(), + ), + 'koroška narečna skupina'=>array( + 'severnopohorsko-remšniško narečje'=>array(), + 'mežiško narečje'=>array(), + 'podjunsko narečje'=>array(), + 'rožansko narečje'=>array(), + 'obirsko narečje'=>array(), + 'ziljsko narečje'=>array( + 'kranjskogorsko podnarečje'=>'kranjskogorsko podnarečje', + ), + ), + 'primorska narečna skupina'=>array( + 'rezijansko narečje'=>array(), + 'obsoško narečje'=>array(), + 'tersko narečje'=>array(), + 'nadiško narečje'=>array(), + 'briško narečje'=>array(), + 'kraško narečje'=>array( + 'banjško podnarečje'=>'banjško podnarečje', + ), + 'istrsko narečje'=>array( + 'rižansko podnarečje'=>'rižansko podnarečje', + 'šavrinsko podnarečje'=>'šavrinsko podnarečje', + ), + 'notranjsko narečje'=>array(), + 'čiško narečje'=>array(), + ), + 'rovtarska narečna skupina'=>array( + 'tolminsko narečje'=>array( + 'baško podnarečje'=>'baško podnarečje', + ), + 'cerkljansko narečje'=>array(), + 'poljansko narečje'=>array(), + 'škofjeloško narečje'=>array(), + 'črnovrško narečje'=>array(), + 'horjulsko narečje'=>array(), + ), + ); + + foreach($dialects as $key=>$dialect) + { + //insert main + $db_data=array( + 'name'=>$key, + 'type'=>1, + 'id_parent'=>NULL, + ); + $this->db->insert('dialects',$db_data); + $id_dialect=$this->db->insert_id(); + + foreach($dialect as $subkey=>$subdialect) + { + //insert sub + $db_data=array( + 'name'=>$subkey, + 'type'=>2, + 'id_parent'=>$id_dialect, + ); + $this->db->insert('dialects',$db_data); + $id_subdialect=$this->db->insert_id(); + + foreach($subdialect as $subsubkey=>$subsubdialect) + { + //insert + $db_data=array( + 'name'=>$subsubkey, + 'type'=>3, + 'id_parent'=>$id_subdialect, + ); + $this->db->insert('dialects',$db_data); + } + } + } + + echo "done!"; + } +} diff --git a/sna/application/controllers/Home.php b/sna/application/controllers/Home.php new file mode 100644 index 0000000..57227b0 --- /dev/null +++ b/sna/application/controllers/Home.php @@ -0,0 +1,109 @@ +. +*/ +defined('BASEPATH') OR exit('No direct script access allowed'); + +class Home extends CI_Controller { + + function __construct() + { + parent::__construct(); + + $this->url=base_url().'home/'; + + $this->load->model('home_model'); + } + + public function index() + { + $data=array( + 'title'=>'Slovenski narečni atlas', + ); + + $data['subjects']=array(0=>'Izberite temo')+$this->home_model->subjects('select'); + $data['words']=array(0=>'Izberite besedo'); + + $this->load_master_view('home/index_view.php',$data); + } + + function ajax_change_subject() + { + $id_subject=$this->input->post('id_subject',true); + + //load words + $data=array(); + + $data['words']=array(0=>'Izberite besedo')+$this->home_model->subject_words($id_subject,'select'); + + $data['status']='ok'; + + echo json_encode($data); + + } + + function ajax_add_locations() + { + $id_word=$this->input->post('id_word',true); + $id_subject=$this->input->post('id_subject',true); + + //get transprictions and locations + $result=$this->home_model->words_trascriptions($id_word,$id_subject); + + $data['words_transcriptions']=$result['transcriptions']; + $data['word']=$this->home_model->word($id_word); + $data['legend']=$result['legend']; + $data['transcriptions_count']=$this->home_model->transcriptions_count($id_word); + + //load views + $data['view_legend']=$this->load->view('home/legend_view.php',$data,true); + $data['view_modals']=$data['view']=$this->load->view('home/transcription_popup_view.php',$data,true); + + $data['status']='ok'; + + echo json_encode($data); + + } + + function ajax_update_word_data() + { + $id_word=$this->input->post('id_word',true); + + + + + $data['status']='ok'; + + echo json_encode($data); + } + + function about() + { + $data=array( + 'title'=>'O spletni aplikaciji', + ); + + $this->load_master_view('home/about.php',$data); + } + + function load_master_view($page,$data) + { + $this->load->view('header.php',$data); + $this->load->view($page); + $this->load->view('footer.php',$data); + } +} diff --git a/sna/application/controllers/index.html b/sna/application/controllers/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/controllers/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/core/index.html b/sna/application/core/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/core/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/helpers/index.html b/sna/application/helpers/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/helpers/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/hooks/index.html b/sna/application/hooks/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/hooks/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/index.html b/sna/application/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/language/english/index.html b/sna/application/language/english/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/language/english/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/language/index.html b/sna/application/language/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/language/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/libraries/Googlemaps.php b/sna/application/libraries/Googlemaps.php new file mode 100644 index 0000000..5f549f8 --- /dev/null +++ b/sna/application/libraries/Googlemaps.php @@ -0,0 +1,2263 @@ + section. The library will try to create the file if it does not exist already. Please ensure the destination file is writeable + var $kmlLayerURL = ''; // A URL to publicly available KML or GeoRSS data for displaying geographic information. Multiple KML layers can be passed in by using an array of URL's. Note, if using multiple you'll probably have to set $kmlLayerPreserveViewport to true and manually set map center and zoom + var $kmlLayerPreserveViewport = FALSE; // Specifies whether the map should be adjusted to the bounds of the KmlLayer's contents. By default the map is zoomed and positioned to show the entirety of the layer's contents + var $language = ''; // The map will by default load in the language of the browser. This can be overriden however here. For a full list of codes see https://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1 + var $loadAsynchronously = FALSE; // Load the map and API asynchronously once the page has loaded + var $map_div_id = "map_canvas"; // The ID of the
that is output which contains the map + var $map_height = "450px"; // The height of the map container. Any units (ie 'px') can be used. If no units are provided 'px' will be presumed + var $map_name = "map"; // The JS reference to the map. Currently not used but to be used in the future when multiple maps are supported + var $map_type = "ROADMAP"; // The default MapType. Values accepted are 'HYBRID', 'ROADMAP', 'SATELLITE' or 'TERRAIN' + var $map_types_available = array(); // The other MapTypes available for selection on the map + var $map_width = "100%"; // The width of the map container. Any units (ie 'px') can be used. If no units are provided 'px' will be presumed + var $maps_loaded = 0; // Counter which keeps track of how many maps have been created to avoid standard functions being output twice + var $mapTypeControlPosition = ''; // The position of the MapType control, eg. 'BOTTOM_RIGHT' + var $mapTypeControlStyle = ''; // The style of the MapType control. blank, 'DROPDOWN_MENU' or 'HORIZONTAL_BAR' values accepted. + var $minzoom = ''; // The minimum zoom level which will be displayed on the map + var $maxzoom = ''; // The maximum zoom level which will be displayed on the map + var $minifyJS = FALSE; // If TRUE will run the JavaScript through Jsmin.php (this file and PHP5+ required) to minify the code + var $noClear = FALSE; // If TRUE do not clear the contents of the map div + var $onboundschanged = ''; // The JavaScript action to perform when the viewport bounds have changed + var $oncenterchanged = ''; // The JavaScript action to perform when themap center property changes + var $onclick = ''; // The JavaScript action to perform when the map is clicked + var $ondblclick = ''; // The JavaScript action to perform when the map is double-clicked + var $ondrag = ''; // The JavaScript action to perform while the map is dragged + var $ondragend = ''; // The JavaScript action to perform when the user stops dragging the map + var $ondragstart = ''; // The JavaScript action to perform when the user starts dragging the map + var $onidle = ''; // The JavaScript action to perform when the map becomes idle after panning or zooming + var $onload = ''; // The JavaScript action to perform when the map first loads. This library hi-jacks the window.load event so add any bespoke code using this option + var $onmousemove = ''; // The JavaScript action to perform when the user's mouse moves over the map container + var $onmouseout = ''; // The JavaScript action to perform when the user's mouse exits the map container + var $onmouseover = ''; // The JavaScript action to perform when the user's mouse enters the map container + var $onresize = ''; // The JavaScript action to perform when the maps div changes size + var $onrightclick = ''; // The JavaScript action to perform when the map is right-clicked + var $ontilesloaded = ''; // The JavaScript action to perform when the visible tiles have finished loading + var $onzoomchanged = ''; // The JavaScript action to perform when the maps zoom property changes + var $panoramio = FALSE; // If TRUE will add photos from Panoramio as a layer to your maps as a series of large and small photo icons + var $panoramioTag = ''; // Restrict the set of Panoramio photos shown to those matching a certain textual tag + var $panoramioUser = ''; // Restrict the set of Panoramio photos shown to those matching a particular user + var $region = ''; // Country code top-level domain (eg "uk") within which to search. Useful if supplying addresses rather than lat/longs + var $scaleControlPosition = ''; // The position of the Scale control, eg. 'BOTTOM_RIGHT' + var $scrollwheel = TRUE; // If set to FALSE will disable zooming by scrolling of the mouse wheel + var $sensor = FALSE; // Set to TRUE if being used on a device that can detect a users location + var $streetViewAddressControl = TRUE; // If set to FALSE will hide the Address control + var $streetViewAddressPosition = ''; // The position of the Address control, eg. 'BOTTOM' + var $streetViewControlPosition = ''; // The position of the Street View control when viewing normal aerial map, eg. 'BOTTOM_RIGHT' + var $streetViewCloseButton = FALSE; // If set to TRUE will show the close button in the top right. The close button allows users to return to the aerial map + var $streetViewLinksControl = TRUE; // If set to FALSE will hide the Links control + var $streetViewPanControl = TRUE; // If set to FALSE will hide the Pan control + var $streetViewPanPosition = ''; // The position of the Scale control, eg. 'TOP_RIGHT' + var $streetViewPovHeading = 0; // The Street View camera heading in degrees relative to true north. True north is 0, east is 90, south is 180, west is 270 + var $streetViewPovPitch = 0; // The Street View camera pitch in degrees, relative to the street view vehicle. Directly upwards is 90, Directly downwards is -90. + var $streetViewPovZoom = 0; // The Street View zoom level. Fully zoomed-out is level 0, zooming in increases the zoom level. + var $streetViewZoomControl = TRUE; // If set to FALSE will hide the Zoom control + var $streetViewZoomPosition = ''; // The position of the Scale control, eg. 'TOP_RIGHT' + var $streetViewZoomStyle = ''; // The size of the Street View zoom control. blank, 'SMALL' or 'LARGE' values accepted. + var $styles = array(); // An array of styles used to colour aspects of the map and turn points of interest on and off + var $stylesAsMapTypes = false; // If applying styles, whether to apply them to the default map or add them as additional map types + var $stylesAsMapTypesDefault = ''; // If $stylesAsMapTypes is true the default style. Should contain the 'Name' of the style + var $tilt = 0; // The angle of tilt. Currently only supports the values 0 and 45 in SATELLITE and HYBRID map types and at certain zoom levels + var $trafficOverlay = FALSE; // If set to TRUE will overlay traffic information onto the map by default + var $version = "3"; // Version of the API being used. Not currently used in the library + var $zoom = 13; // The default zoom level of the map. If set to "auto" will autozoom/center to fit in all visible markers. If "auto", also overrides the $center parameter + var $zoomControlPosition = ''; // The position of the Zoom control, eg. 'BOTTOM_RIGHT' + var $zoomControlStyle = ''; // The size of the zoom control. blank, 'SMALL' or 'LARGE' values accepted. + + var $markers = array(); // An array used by the library to store the markers as they are produced + var $markersInfo = array(); // An array containing marker information (id, latitude, longitude etc) for use elsewhere + var $polylines = array(); // An array used by the library to store the polylines as they are produced + var $polygons = array(); // An array used by the library to store the polygons as they are produced + var $circles = array(); // An array used by the library to store the circles as they are produced + var $rectangles = array(); // An array used by the library to store the rectangles as they are produced + var $overlays = array(); // An array used by the library to store the overlays as they are produced + + var $directions = FALSE; // Whether or not the map will be used to show directions + var $directionsStart = ""; // The starting location (lat/long co-ordinate or address) of the directions. Set to 'auto' to default it to the users location + var $directionsEnd = ""; // The destination point (lat/long co-ordinate or address) of the directions. Set to 'auto' to default it to the users location + var $directionsDivID = ""; // An element's ID on the page where textual directions will be output to. Leave blank if not required + var $directionsMode = "DRIVING"; // DRIVING, WALKING or BICYCLING (US Only) - The vehicle/mode of transport to show directions for + var $directionsAvoidTolls = FALSE; // Whether or not directions should avoid tolls + var $directionsAvoidHighways = FALSE; // Whether or not directions should avoid highways + var $directionsDraggable = FALSE; // Whether or not directions on the map are draggable + var $directionsChanged = ""; // JavaScript to perform when directions are dragged + var $directionsUnits = ""; // 'metric' for kilometers and meters or 'imperial for miles and feet. Leave blank and it will default to the region or country of where directions are being obtained + var $directionsWaypointArray = array(); // An array of waypoints. eg array("Boston, MA", "Times Square, NY"); + var $directionsWaypointsOptimize= FALSE; // Should the waypoints be optimised? If TRUE, waypoints will be re-ordered to provide the most efficient route. + + var $drawing = FALSE; // Whether or not the drawing library tools will be loaded + var $drawingControl = TRUE; // If set to FALSE will hide the Drawing Manager control + var $drawingControlPosition = 'TOP_CENTER'; // The position of the Drawing Manager control, eg. 'TOP_RIGHT' + var $drawingDefaultMode = 'marker'; // The default mode for the Drawing Manager. Accepted values are marker, polygon, polyline, rectangle, circle, or null. null means that the user can interact with the map as normal when the map loads, and clicks do not draw anything. + var $drawingModes = array(); // An array of modes available for use. Accepted values are marker, polygon, polyline, rectangle, circle + var $drawingOnComplete = array(); // An array of JS to execute when shapes are completed, one array element per shape. For example: array('circle'=>'JS here', 'polygon'=>'JS here'); + var $drawingOnEdit = array(); // An array of JS to execute when shapes are changed/resized, one array element per shape. For example: array('circle'=>'JS here', 'polygon'=>'JS here'); + + var $places = FALSE; // Whether or not the map will be used to show places + var $placesLocation = ''; // A point (lat/long co-ordinate or address) on the map if the search for places is based around a central point + var $placesRadius = 0; // The radius (in meters) if search is based around a central position + var $placesLocationSW = ''; // If preferring to search within bounds the South-West position (latitude/longitude coordinate OR address) + var $placesLocationNE = ''; // If preferring to search within bounds the North-East position (latitude/longitude coordinate OR address) + var $placesTypes = array(); // The types of places to search for. For a list of supported types see http://code.google.com/apis/maps/documentation/places/supported_types.html + var $placesName = ''; // A term to be matched against when searching for places to display on the map + var $placesAutocompleteInputID = ''; // The ID attribute of the textfield that the autocomplete should effect + var $placesAutocompleteTypes = array(); // The types of places for the autocomplete to return. Options can be seen here https://developers.google.com/maps/documentation/javascript/places#places_autocomplete but include 'establishment' to only return business results, '(cities)', or '(regions)' + var $placesAutocompleteBoundSW = ''; // By specifying an area in which to search for Places, the results are biased towards, but not restricted to, Places contained within these bounds. + var $placesAutocompleteBoundNE = ''; // Both South-West (lat/long co-ordinate or address) and North-East (lat/long co-ordinate or address) values are required if wishing to set bounds + var $placesAutocompleteBoundsMap= FALSE; // An alternative to setting the SW and NE bounds is to use the bounds of the current viewport. If set to TRUE, the bounds will be set to the viewport of the visible map, even if dragged or zoomed + var $placesAutocompleteOnChange = ''; // The JavaScript action to perform when a place is selected + + function Googlemaps($config = array()) + { + if (count($config) > 0) + { + $this->initialize($config); + } + + log_message('debug', "Google Maps Class Initialized"); + } + + function initialize($config = array()) + { + foreach ($config as $key => $val) + { + if (isset($this->$key)) + { + $this->$key = $val; + } + } + + if ($this->sensor) { $this->sensor = "true"; }else{ $this->sensor = "false"; } + + } + + function add_marker($params = array()) + { + + $marker = array(); + $this->markersInfo['marker_'.count($this->markers)] = array(); + + $marker['position'] = ''; // The position (lat/long co-ordinate or address) at which the marker will appear + $marker['infowindow_content'] = ''; // If not blank, creates an infowindow (aka bubble) with the content provided. Can be plain text or HTML + $marker['id'] = ''; // The unique identifier of the marker suffix (ie. marker_yourID). If blank, this will default to marker_X where X is an incremental number + $marker['clickable'] = TRUE; // Defines if the marker is clickable + $marker['cursor'] = ''; // The name or url of the cursor to display on hover + $marker['draggable'] = FALSE; // Defines if the marker is draggable + $marker['flat'] = FALSE; // If set to TRUE will not display a shadow beneath the icon + $marker['icon'] = ''; // The name or url of the icon to use for the marker + $marker['icon_size'] = ''; // The display size of the sprite or image being used. When using sprites, you must specify the sprite size. Expecting two comma-separated values for width and height respectively (ie '20,30'). See https://developers.google.com/maps/documentation/javascript/3.exp/reference#Icon + $marker['icon_scaledSize'] = ''; // The size of the entire image after scaling, if any. Use this property to stretch/shrink an image or a sprite. Expecting two comma-separated values for width and height respectively (ie '20,30') + $marker['icon_origin'] = ''; // If using a sprite, the position of the image within the sprite. Expecting two comma-separated values for distance from the top and left respectively (ie '20,30') + $marker['icon_anchor'] = ''; // The position at which to anchor an image in correspondance to the location of the marker on the map. By default, the anchor is located along the center point of the bottom of the image. Expecting two comma-separated values (ie '20,30'). Credit to https://github.com/colethorsen + $marker['animation'] = ''; // blank, 'DROP' or 'BOUNCE' + $marker['onclick'] = ''; // JavaScript performed when a marker is clicked + $marker['ondblclick'] = ''; // JavaScript performed when a marker is double-clicked + $marker['ondrag'] = ''; // JavaScript repeatedly performed while the marker is being dragged + $marker['ondragstart'] = ''; // JavaScript performed when a marker is started to be dragged + $marker['ondragend'] = ''; // JavaScript performed when a draggable marker is dropped + $marker['onmousedown'] = ''; // JavaScript performed when a mousedown event occurs on a marker + $marker['onmouseout'] = ''; // JavaScript performed when the mouse leaves the area of the marker icon + $marker['onmouseover'] = ''; // JavaScript performed when the mouse enters the area of the marker icon + $marker['onmouseup'] = ''; // JavaScript performed when a mouseup event occurs on a marker + $marker['onpositionchanged'] = ''; // JavaScript performed when the markers position changes + $marker['onrightclick'] = ''; // JavaScript performed when a right-click occurs on a marker + $marker['raiseondrag'] = TRUE; // If FALSE, disables the raising and lowering of the icon when a marker is being dragged + $marker['shadow'] = ''; // The name or url of the icon's shadow + $marker['title'] = ''; // The tooltip text to show on hover + $marker['visible'] = TRUE; // Defines if the marker is visible by default + $marker['zIndex'] = ''; // The zIndex of the marker. If two markers overlap, the marker with the higher zIndex will appear on top + + $marker_output = ''; + + foreach ($params as $key => $value) { + + if (isset($marker[$key])) { + + $marker[$key] = $value; + + } + + } + + $marker_id = count($this->markers); + if (trim($marker['id']) != "") + { + $marker_id = $marker['id']; + } + + if ($marker['position']!="") { + if ($this->is_lat_long($marker['position'])) { + $marker_output .= ' + var myLatlng = new google.maps.LatLng('.$marker['position'].'); + '; + $explodePosition = explode(",", $marker['position']); + $this->markersInfo['marker_'.$marker_id]['latitude'] = trim($explodePosition[0]); + $this->markersInfo['marker_'.$marker_id]['longitude'] = trim($explodePosition[1]); + }else{ + $lat_long = $this->get_lat_long_from_address($marker['position']); + $marker_output .= ' + var myLatlng = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].');'; + $this->markersInfo['marker_'.$marker_id]['latitude'] = $lat_long[0]; + $this->markersInfo['marker_'.$marker_id]['longitude'] = $lat_long[1]; + } + } + + if ($marker['icon']!="") { + $marker_output .= ' + var marker_icon = { + url: "'.$marker['icon'].'"'; + if ($marker['icon_size']!="") { + $marker_output .= ', + size: new google.maps.Size('.$marker['icon_size'].')'; + } + if ($marker['icon_scaledSize']!="") { + $marker_output .= ', + scaledSize: new google.maps.Size('.$marker['icon_scaledSize'].')'; + } + if ($marker['icon_origin']!="") { + $marker_output .= ', + origin: new google.maps.Point('.$marker['icon_origin'].')'; + } + if ($marker['icon_anchor']!="") { + $marker_output .= ', + anchor: new google.maps.Point('.$marker['icon_anchor'].')'; + } + $marker_output .= '}; + '; + } + + $marker_output .= ' + var markerOptions = { + map: '.$this->map_name; + if ($marker['position']!="") { + $marker_output .= ', + position: myLatlng'; + } + if (!$marker['clickable']) { + $marker_output .= ', + clickable: false'; + } + if ($marker['cursor']!="") { + $marker_output .= ', + cursor: "'.$marker['cursor'].'"'; + } + if ($marker['draggable']) { + $marker_output .= ', + draggable: true'; + } + if ($marker['flat']) { + $marker_output .= ', + flat: true'; + } + if ($marker['icon']!="") { + $marker_output .= ', + icon: marker_icon'; + } + if (!$marker['raiseondrag']) { + $marker_output .= ', + raiseOnDrag: false'; + } + if ($marker['shadow']!="") { + $marker_output .= ', + shadow: "'.$marker['shadow'].'"'; + } + if ($marker['title']!="") { + $marker_output .= ', + title: "'.$marker['title'].'"'; + $this->markersInfo['marker_'.$marker_id]['title'] = $marker['title']; + } + if (!$marker['visible']) { + $marker_output .= ', + visible: false'; + } + if ($marker['zIndex']!="" && is_numeric($marker['zIndex'])) { + $marker_output .= ', + zIndex: '.$marker['zIndex']; + } + if ($marker['animation']!="" && (strtoupper($marker['animation'])=="DROP" || strtoupper($marker['animation']=="BOUNCE"))) { + $marker_output .= ', + animation: google.maps.Animation.'.strtoupper($marker['animation']); + } + $marker_output .= ' + }; + marker_'.$marker_id.' = createMarker_'.$this->map_name.'(markerOptions); + '; + + if ($marker['infowindow_content']!="") { + + // Escape any quotes in the event that HTML is being added to the infowindow + $marker['infowindow_content'] = str_replace('\"', '"', $marker['infowindow_content']); + $marker['infowindow_content'] = str_replace('"', '\"', $marker['infowindow_content']); + + $marker_output .= ' + marker_'.$marker_id.'.set("content", "'.$marker['infowindow_content'].'"); + + google.maps.event.addListener(marker_'.$marker_id.', "click", function(event) { + iw_'.$this->map_name.'.setContent(this.get("content")); + iw_'.$this->map_name.'.open('.$this->map_name.', this); + '; + if ($marker['onclick']!="") { $marker_output .= $marker['onclick'].' + '; } + $marker_output .= ' + }); + '; + }else{ + if ($marker['onclick']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "click", function(event) { + '.$marker['onclick'].' + }); + '; + } + } + + if ($marker['ondblclick']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "dblclick", function(event) { + '.$marker['ondblclick'].' + }); + '; + } + if ($marker['onmousedown']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "mousedown", function(event) { + '.$marker['onmousedown'].' + }); + '; + } + if ($marker['onmouseout']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "mouseout", function(event) { + '.$marker['onmouseout'].' + }); + '; + } + if ($marker['onmouseover']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "mouseover", function(event) { + '.$marker['onmouseover'].' + }); + '; + } + if ($marker['onmouseup']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "mouseup", function(event) { + '.$marker['onmouseup'].' + }); + '; + } + if ($marker['onpositionchanged']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "position_changed", function(event) { + '.$marker['onpositionchanged'].' + }); + '; + } + if ($marker['onrightclick']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "rightclick", function(event) { + '.$marker['onrightclick'].' + }); + '; + } + + if ($marker['draggable']) { + if ($marker['ondrag']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "drag", function(event) { + '.$marker['ondrag'].' + }); + '; + } + if ($marker['ondragend']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "dragend", function(event) { + '.$marker['ondragend'].' + }); + '; + } + if ($marker['ondragstart']!="") { + $marker_output .= ' + google.maps.event.addListener(marker_'.$marker_id.', "dragstart", function(event) { + '.$marker['ondragstart'].' + }); + '; + } + } + + array_push($this->markers, $marker_output); + + } + + function add_polyline($params = array()) + { + + $polyline = array(); + + $polyline['points'] = array(); // An array of latitude/longitude coordinates OR addresses, or a mixture of both. If an address is supplied the Google geocoding service will be used to return a lat/long. + $polyline['clickable'] = TRUE; // Defines if the polyline is clickable + $polyline['strokeColor'] = '#FF0000'; // The hex value of the polylines color + $polyline['strokeOpacity'] = '1.0'; // The opacity of the polyline. 0 to 1.0 + $polyline['strokeWeight'] = '2'; // The thickness of the polyline + $polyline['onclick'] = ''; // JavaScript performed when a polyline is clicked + $polyline['ondblclick'] = ''; // JavaScript performed when a polyline is double-clicked + $polyline['onmousedown'] = ''; // JavaScript performed when a mousedown event occurs on a polyline + $polyline['onmousemove'] = ''; // JavaScript performed when the mouse moves in the area of the polyline + $polyline['onmouseout'] = ''; // JavaScript performed when the mouse leaves the area of the polyline + $polyline['onmouseover'] = ''; // JavaScript performed when the mouse enters the area of the polyline + $polyline['onmouseup'] = ''; // JavaScript performed when a mouseup event occurs on a polyline + $polyline['onrightclick'] = ''; // JavaScript performed when a right-click occurs on a polyline + $polyline['zIndex'] = ''; // The zIndex of the polyline. If two polylines overlap, the polyline with the higher zIndex will appear on top + + $polyline_output = ''; + + foreach ($params as $key => $value) { + + if (isset($polyline[$key])) { + + $polyline[$key] = $value; + + } + + } + + if (count($polyline['points'])) { + + $polyline_output .= ' + var polyline_plan_'.count($this->polylines).' = ['; + $i=0; + $lat_long_output = ''; + foreach ($polyline['points'] as $point) { + if ($i>0) { $polyline_output .= ','; } + $lat_long_to_push = ''; + if ($this->is_lat_long($point)) { + $lat_long_to_push = $point; + $polyline_output .= ' + new google.maps.LatLng('.$point.') + '; + }else{ + $lat_long = $this->get_lat_long_from_address($point); + $polyline_output .= ' + new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; + $lat_long_to_push = $lat_long[0].', '.$lat_long[1]; + } + $lat_long_output .= ' + lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); + '; + $i++; + } + $polyline_output .= '];'; + + $polyline_output .= $lat_long_output; + + $polyline_output .= ' + var polyline_'.count($this->polylines).' = new google.maps.Polyline({ + path: polyline_plan_'.count($this->polylines).', + strokeColor: "'.$polyline['strokeColor'].'", + strokeOpacity: '.$polyline['strokeOpacity'].', + strokeWeight: '.$polyline['strokeWeight']; + if (!$polyline['clickable']) { + $polyline_output .= ', + clickable: false'; + } + if ($polyline['zIndex']!="" && is_numeric($polyline['zIndex'])) { + $polyline_output .= ', + zIndex: '.$polyline['zIndex']; + } + $polyline_output .= ' + }); + + polyline_'.count($this->polylines).'.setMap('.$this->map_name.'); + + '; + + if ($polyline['onclick']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "click", function() { + '.$polyline['onclick'].' + }); + '; + } + if ($polyline['ondblclick']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "dblclick", function() { + '.$polyline['ondblclick'].' + }); + '; + } + if ($polyline['onmousedown']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "mousedown", function() { + '.$polyline['onmousedown'].' + }); + '; + } + if ($polyline['onmousemove']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "mousemove", function() { + '.$polyline['onmousemove'].' + }); + '; + } + if ($polyline['onmouseout']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "mouseout", function() { + '.$polyline['onmouseout'].' + }); + '; + } + if ($polyline['onmouseover']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "mouseover", function() { + '.$polyline['onmouseover'].' + }); + '; + } + if ($polyline['onmouseup']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "mouseup", function() { + '.$polyline['onmouseup'].' + }); + '; + } + if ($polyline['onrightclick']!="") { + $polyline_output .= ' + google.maps.event.addListener(polyline_'.count($this->polylines).', "rightclick", function() { + '.$polyline['onrightclick'].' + }); + '; + } + + array_push($this->polylines, $polyline_output); + + } + + } + + function add_polygon($params = array()) + { + + $polygon = array(); + + $polygon['points'] = array(); // The positions (latitude/longitude coordinates OR addresses) at which the polygon points will appear. NOTE: The first and last elements of the array must be the same + $polygon['clickable'] = TRUE; // Defines if the polygon is clickable + $polygon['strokeColor'] = '#FF0000'; // The hex value of the polygons border color + $polygon['strokeOpacity'] = '0.8'; // The opacity of the polygon border. 0 to 1.0 + $polygon['strokeWeight'] = '2'; // The thickness of the polygon border + $polygon['fillColor'] = '#FF0000'; // The hex value of the polygons fill color + $polygon['fillOpacity'] = '0.3'; // The opacity of the polygons fill + $polygon['onclick'] = ''; // JavaScript performed when a polygon is clicked + $polygon['ondblclick'] = ''; // JavaScript performed when a polygon is double-clicked + $polygon['onmousedown'] = ''; // JavaScript performed when a mousedown event occurs on a polygon + $polygon['onmousemove'] = ''; // JavaScript performed when the mouse moves in the area of the polygon + $polygon['onmouseout'] = ''; // JavaScript performed when the mouse leaves the area of the polygon + $polygon['onmouseover'] = ''; // JavaScript performed when the mouse enters the area of the polygon + $polygon['onmouseup'] = ''; // JavaScript performed when a mouseup event occurs on a polygon + $polygon['onrightclick'] = ''; // JavaScript performed when a right-click occurs on a polygon + $polygon['zIndex'] = ''; // The zIndex of the polygon. If two polygons overlap, the polygon with the higher zIndex will appear on top + + $polygon_output = ''; + + foreach ($params as $key => $value) { + + if (isset($polygon[$key])) { + + $polygon[$key] = $value; + + } + + } + + if (count($polygon['points'])) { + + $polygon_output .= ' + var polygon_plan_'.count($this->polygons).' = ['; + $i=0; + $lat_long_output = ''; + foreach ($polygon['points'] as $point) { + if ($i>0) { $polygon_output .= ','; } + $lat_long_to_push = ''; + if ($this->is_lat_long($point)) { + $lat_long_to_push = $point; + $polygon_output .= ' + new google.maps.LatLng('.$point.') + '; + }else{ + $lat_long = $this->get_lat_long_from_address($point); + $polygon_output .= ' + new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; + $lat_long_to_push = $lat_long[0].', '.$lat_long[1]; + } + $lat_long_output .= ' + lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); + '; + $i++; + } + $polygon_output .= '];'; + + $polygon_output .= $lat_long_output; + + } + + $polygon_output .= ' + var polygon_'.count($this->polygons).' = new google.maps.Polygon({ + '; + if (count($polygon['points'])) { + $polygon_output .= 'path: polygon_plan_'.count($this->polygons).', + '; + } + $polygon_output .= ' + strokeColor: "'.$polygon['strokeColor'].'", + strokeOpacity: '.$polygon['strokeOpacity'].', + strokeWeight: '.$polygon['strokeWeight'].', + fillColor: "'.$polygon['fillColor'].'", + fillOpacity: '.$polygon['fillOpacity']; + if (!$polygon['clickable']) { + $polygon_output .= ', + clickable: false'; + } + if ($polygon['zIndex']!="" && is_numeric($polygon['zIndex'])) { + $polygon_output .= ', + zIndex: '.$polygon['zIndex']; + } + $polygon_output .= ' + }); + + polygon_'.count($this->polygons).'.setMap('.$this->map_name.'); + + '; + + if ($polygon['onclick']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "click", function() { + '.$polygon['onclick'].' + }); + '; + } + if ($polygon['ondblclick']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "dblclick", function() { + '.$polygon['ondblclick'].' + }); + '; + } + if ($polygon['onmousedown']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "mousedown", function() { + '.$polygon['onmousedown'].' + }); + '; + } + if ($polygon['onmousemove']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "mousemove", function() { + '.$polygon['onmousemove'].' + }); + '; + } + if ($polygon['onmouseout']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseout", function() { + '.$polygon['onmouseout'].' + }); + '; + } + if ($polygon['onmouseover']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseover", function() { + '.$polygon['onmouseover'].' + }); + '; + } + if ($polygon['onmouseup']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseup", function() { + '.$polygon['onmouseup'].' + }); + '; + } + if ($polygon['onrightclick']!="") { + $polygon_output .= ' + google.maps.event.addListener(polygon_'.count($this->polygons).', "rightclick", function() { + '.$polygon['onrightclick'].' + }); + '; + } + + array_push($this->polygons, $polygon_output); + + } + + function add_circle($params = array()) + { + + $circle = array(); + + $circle['center'] = ''; // The center position (latitude/longitude coordinate OR addresse) at which the circle will appear + $circle['clickable'] = TRUE; // Defines if the circle is clickable + $circle['radius'] = 0; // The circle radius (in metres) + $circle['strokeColor'] = '0.8'; // The hex value of the circles border color + $circle['strokeOpacity'] = '0.8'; // The opacity of the circle border + $circle['strokeWeight'] = '2'; // The thickness of the circle border + $circle['fillColor'] = '#FF0000'; // The hex value of the circles fill color + $circle['fillOpacity'] = '0.3'; // The opacity of the circles fill + $circle['onclick'] = ''; // JavaScript performed when a circle is clicked + $circle['ondblclick'] = ''; // JavaScript performed when a circle is double-clicked + $circle['onmousedown'] = ''; // JavaScript performed when a mousedown event occurs on a circle + $circle['onmousemove'] = ''; // JavaScript performed when the mouse moves in the area of the circle + $circle['onmouseout'] = ''; // JavaScript performed when the mouse leaves the area of the circle + $circle['onmouseover'] = ''; // JavaScript performed when the mouse enters the area of the circle + $circle['onmouseup'] = ''; // JavaScript performed when a mouseup event occurs on a circle + $circle['onrightclick'] = ''; // JavaScript performed when a right-click occurs on a circle + $circle['zIndex'] = ''; // The zIndex of the circle. If two circles overlap, the circle with the higher zIndex will appear on top + + $circle_output = ''; + + foreach ($params as $key => $value) { + + if (isset($circle[$key])) { + + $circle[$key] = $value; + + } + + } + + if ($circle['radius']>0 && $circle['center']!="") { + + $lat_long_to_push = ''; + if ($this->is_lat_long($circle['center'])) { + $lat_long_to_push = $circle['center']; + $circle_output = ' + var circleCenter = new google.maps.LatLng('.$circle['center'].') + '; + }else{ + $lat_long = $this->get_lat_long_from_address($circle['center']); + $circle_output = ' + var circleCenter = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; + $lat_long_to_push = $lat_long[0].', '.$lat_long[1]; + } + $circle_output .= ' + lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); + '; + + $circle_output .= ' + var circleOptions = { + strokeColor: "'.$circle['strokeColor'].'", + strokeOpacity: '.$circle['strokeOpacity'].', + strokeWeight: '.$circle['strokeWeight'].', + fillColor: "'.$circle['fillColor'].'", + fillOpacity: '.$circle['fillOpacity'].', + map: '.$this->map_name.', + center: circleCenter, + radius: '.$circle['radius']; + if (!$circle['clickable']) { + $circle_output .= ', + clickable: false'; + } + if ($circle['zIndex']!="" && is_numeric($circle['zIndex'])) { + $circle_output .= ', + zIndex: '.$circle['zIndex']; + } + $circle_output .= ' + }; + var circle_'.count($this->circles).' = new google.maps.Circle(circleOptions); + '; + + if ($circle['onclick']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "click", function() { + '.$circle['onclick'].' + }); + '; + } + if ($circle['ondblclick']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "dblclick", function() { + '.$circle['ondblclick'].' + }); + '; + } + if ($circle['onmousedown']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "mousedown", function() { + '.$circle['onmousedown'].' + }); + '; + } + if ($circle['onmousemove']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "mousemove", function() { + '.$circle['onmousemove'].' + }); + '; + } + if ($circle['onmouseout']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "mouseout", function() { + '.$circle['onmouseout'].' + }); + '; + } + if ($circle['onmouseover']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "mouseover", function() { + '.$circle['onmouseover'].' + }); + '; + } + if ($circle['onmouseup']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "mouseup", function() { + '.$circle['onmouseup'].' + }); + '; + } + if ($circle['onrightclick']!="") { + $circle_output .= ' + google.maps.event.addListener(circle_'.count($this->circles).', "rightclick", function() { + '.$circle['onrightclick'].' + }); + '; + } + + array_push($this->circles, $circle_output); + + } + + } + + function add_rectangle($params = array()) + { + + $rectangle = array(); + + $rectangle['positionSW'] = ''; // The South-West position (latitude/longitude coordinate OR address) at which the rectangle will appear + $rectangle['positionNE'] = ''; // The North-East position(latitude/longitude coordinate OR address) at which the rectangle will appear + $rectangle['clickable'] = TRUE; // Defines if the rectangle is clickable + $rectangle['strokeColor'] = '0.8'; // The hex value of the rectangles border color + $rectangle['strokeOpacity'] = '0.8'; // The opacity of the rectangle border + $rectangle['strokeWeight'] = '2'; // The thickness of the rectangle border + $rectangle['fillColor'] = '#FF0000'; // The hex value of the rectangles fill color + $rectangle['fillOpacity'] = '0.3'; // The opacity of the rectangles fill + $rectangle['onclick'] = ''; // JavaScript performed when a rectangle is clicked + $rectangle['ondblclick'] = ''; // JavaScript performed when a rectangle is double-clicked + $rectangle['onmousedown'] = ''; // JavaScript performed when a mousedown event occurs on a rectangle + $rectangle['onmousemove'] = ''; // JavaScript performed when the mouse moves in the area of the rectangle + $rectangle['onmouseout'] = ''; // JavaScript performed when the mouse leaves the area of the rectangle + $rectangle['onmouseover'] = ''; // JavaScript performed when the mouse enters the area of the rectangle + $rectangle['onmouseup'] = ''; // JavaScript performed when a mouseup event occurs on a rectangle + $rectangle['onrightclick'] = ''; // JavaScript performed when a right-click occurs on a rectangle + $rectangle['zIndex'] = ''; // The zIndex of the rectangle. If two rectangles overlap, the rectangle with the higher zIndex will appear on top + + $rectangle_output = ''; + + foreach ($params as $key => $value) { + + if (isset($rectangle[$key])) { + + $rectangle[$key] = $value; + + } + + } + + if ($rectangle['positionSW']!="" && $rectangle['positionNE']!="") { + + $lat_long_to_push = ''; + if ($this->is_lat_long($rectangle['positionSW'])) { + $lat_long_to_push = $rectangle['positionSW']; + $rectangle_output .= ' + var positionSW = new google.maps.LatLng('.$rectangle['positionSW'].') + '; + }else{ + $lat_long = $this->get_lat_long_from_address($rectangle['positionSW']); + $rectangle_output .= ' + var positionSW = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; + $lat_long_to_push = $lat_long[0].', '.$lat_long[1]; + } + $rectangle_output .= ' + lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); + '; + + $lat_long_to_push = ''; + if ($this->is_lat_long($rectangle['positionNE'])) { + $lat_long_to_push = $rectangle['positionNE']; + $rectangle_output .= ' + var positionNE = new google.maps.LatLng('.$rectangle['positionNE'].') + '; + }else{ + $lat_long = $this->get_lat_long_from_address($rectangle['positionNE']); + $rectangle_output .= ' + var positionNE = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; + $lat_long_to_push = $lat_long[0].', '.$lat_long[1]; + } + $rectangle_output .= ' + lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); + '; + + $rectangle_output .= ' + var rectangleOptions = { + strokeColor: "'.$rectangle['strokeColor'].'", + strokeOpacity: '.$rectangle['strokeOpacity'].', + strokeWeight: '.$rectangle['strokeWeight'].', + fillColor: "'.$rectangle['fillColor'].'", + fillOpacity: '.$rectangle['fillOpacity'].', + map: '.$this->map_name.', + bounds: new google.maps.LatLngBounds(positionSW, positionNE)'; + if (!$rectangle['clickable']) { + $rectangle_output .= ', + clickable: false'; + } + if ($rectangle['zIndex']!="" && is_numeric($rectangle['zIndex'])) { + $rectangle_output .= ', + zIndex: '.$rectangle['zIndex']; + } + $rectangle_output .= ' + };'; + + $rectangle_output .= ' + var rectangle_'.count($this->rectangles).' = new google.maps.Rectangle(rectangleOptions); + '; + + if ($rectangle['onclick']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "click", function() { + '.$rectangle['onclick'].' + }); + '; + } + if ($rectangle['ondblclick']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "dblclick", function() { + '.$rectangle['ondblclick'].' + }); + '; + } + if ($rectangle['onmousedown']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mousedown", function() { + '.$rectangle['onmousedown'].' + }); + '; + } + if ($rectangle['onmousemove']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mousemove", function() { + '.$rectangle['onmousemove'].' + }); + '; + } + if ($rectangle['onmouseout']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseout", function() { + '.$rectangle['onmouseout'].' + }); + '; + } + if ($rectangle['onmouseover']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseover", function() { + '.$rectangle['onmouseover'].' + }); + '; + } + if ($rectangle['onmouseup']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseup", function() { + '.$rectangle['onmouseup'].' + }); + '; + } + if ($rectangle['onrightclick']!="") { + $rectangle_output .= ' + google.maps.event.addListener(rectangle_'.count($this->rectangles).', "rightclick", function() { + '.$rectangle['onrightclick'].' + }); + '; + } + + array_push($this->rectangles, $rectangle_output); + + } + + } + + function add_ground_overlay($params = array()) + { + + $overlay = array(); + + $overlay['image'] = ''; // JavaScript performed when a ground overlay is clicked + $overlay['positionSW'] = ''; // The South-West position (latitude/longitude coordinate OR addresse) at which the ground overlay will appear + $overlay['positionNE'] = ''; // The North-East position (latitude/longitude coordinate OR addresse) at which the ground overlay will appear + $overlay['clickable'] = TRUE; // Defines if the ground overlay is clickable + $overlay['onclick'] = ''; // JavaScript performed when a ground overlay is clicked + + $overlay_output = ''; + + foreach ($params as $key => $value) { + + if (isset($overlay[$key])) { + + $overlay[$key] = $value; + + } + + } + + if ($overlay['image']!="" && $overlay['positionSW']!="" && $overlay['positionNE']!="") { + + $lat_long_to_push = ''; + if ($this->is_lat_long($overlay['positionSW'])) { + $lat_long_to_push = $overlay['positionSW']; + $overlay_output .= ' + var positionSW = new google.maps.LatLng('.$overlay['positionSW'].') + '; + }else{ + $lat_long = $this->get_lat_long_from_address($overlay['positionSW']); + $overlay_output .= ' + var positionSW = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; + $lat_long_to_push = $lat_long[0].', '.$lat_long[1]; + } + $overlay_output .= ' + lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); + '; + + $lat_long_to_push = ''; + if ($this->is_lat_long($overlay['positionNE'])) { + $lat_long_to_push = $overlay['positionNE']; + $overlay_output .= ' + var positionNE = new google.maps.LatLng('.$overlay['positionNE'].') + '; + }else{ + $lat_long = $this->get_lat_long_from_address($overlay['positionNE']); + $overlay_output .= ' + var positionNE = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; + $lat_long_to_push = $lat_long[0].', '.$lat_long[1]; + } + $overlay_output .= ' + lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); + '; + + $overlay_output .= ' + var overlay_'.count($this->overlays).' = new google.maps.GroundOverlay("'.$overlay['image'].'", new google.maps.LatLngBounds(positionSW, positionNE), { map: '.$this->map_name; + if (!$overlay['clickable']) { $overlay_output .= ', clickable: false'; } + $overlay_output .= '}); + '; + + if ($overlay['onclick']!="") { + $overlay_output .= ' + google.maps.event.addListener(overlay_'.count($this->overlays).', "click", function() { + '.$overlay['onclick'].' + }); + '; + } + + array_push($this->overlays, $overlay_output); + + } + + } + + function create_map() + { + $this->output_js = ''; + $this->output_js_contents = ''; + $this->output_html = ''; + + if ($this->maps_loaded == 0) + { + if ($this->apiKey!="") + { + if ($this->https) { $apiLocation = 'https'; }else{ $apiLocation = 'http'; } + $apiLocation .= '://maps.googleapis.com/maps/api/js?key='.$this->apiKey.'&'; + } + else + { + if ($this->https) { $apiLocation = 'https://maps-api-ssl'; }else{ $apiLocation = 'http://maps'; } + $apiLocation .= '.google.com/maps/api/js?'; + } + $apiLocation .= 'sensor='.$this->sensor; + if ($this->region!="" && strlen($this->region)==2) { $apiLocation .= '®ion='.strtoupper($this->region); } + if ($this->language!="") { $apiLocation .= '&language='.$this->language; } + $libraries = array(); + if ($this->adsense!="") { array_push($libraries, 'adsense'); } + if ($this->places!="") { array_push($libraries, 'places'); } + if ($this->panoramio) { array_push($libraries, 'panoramio'); } + if ($this->drawing) { array_push($libraries, 'drawing'); } + if (count($libraries)) { $apiLocation .= '&libraries='.implode(",", $libraries); } + + if (!$this->loadAsynchronously) + { + $this->output_js .= ' + '; + } + + if ($this->cluster) { $this->output_js .= ' + + '; } + } + if ($this->jsfile=="") { + $this->output_js .= ' + '; + } + } + } + + if ($this->jsfile=="") { + $this->output_js .= ' + //]]> + '; + } + + // set height and width + if (is_numeric($this->map_width)) { // if no width type set + $this->map_width = $this->map_width.'px'; + } + if (is_numeric($this->map_height)) { // if no height type set + $this->map_height = $this->map_height.'px'; + } + // + + $this->output_html .= '
class != "") ? ' class="'.$this->class.'"' : '').'>
'; + + ++$this->maps_loaded; + + return array('js'=>$this->output_js, 'html'=>$this->output_html, 'markers'=>$this->markersInfo); + + } + + function is_lat_long($input) + { + + $input = str_replace(", ", ",", trim($input)); + $input = explode(",", $input); + if (count($input)==2) { + + if (is_numeric($input[0]) && is_numeric($input[1])) { // is a lat long + return true; + }else{ // not a lat long - incorrect values + return false; + } + + }else{ // not a lat long - too many parts + return false; + } + + } + + function get_lat_long_from_address($address, $attempts = 0) + { + + $lat = 0; + $lng = 0; + + $error = ''; + + if ($this->geocodeCaching) { // if caching of geocode requests is activated + + $CI =& get_instance(); + $CI->load->database(); + $CI->db->select("latitude,longitude"); + $CI->db->from("geocoding"); + $CI->db->where("address", trim(strtolower($address))); + $query = $CI->db->get(); + + if ($query->num_rows()>0) { + $row = $query->row(); + return array($row->latitude, $row->longitude); + } + + } + + if ($this->https) { $data_location = 'https://'; }else{ $data_location = 'http://'; } + $data_location .= "maps.google.com/maps/api/geocode/json?address=".urlencode(utf8_encode($address))."&sensor=".$this->sensor; + if ($this->region!="" && strlen($this->region)==2) { $data_location .= "®ion=".$this->region; } + $data = file_get_contents($data_location); + + $data = json_decode($data); + + if ($data->status=="OK") + { + $lat = $data->results[0]->geometry->location->lat; + $lng = $data->results[0]->geometry->location->lng; + + if ($this->geocodeCaching) { // if we to need to cache this result + if ($address != "" && $lat != 0 && $lng != 0) + { + $data = array( + "address"=>trim(strtolower($address)), + "latitude"=>$lat, + "longitude"=>$lng + ); + $CI->db->insert("geocoding", $data); + } + } + } + else + { + if ($data->status == "OVER_QUERY_LIMIT") + { + $error = $data->status; + if ($attempts < 2) + { + sleep(1); + ++$attempts; + list($lat, $lng, $error) = $this->get_lat_long_from_address($address, $attempts); + } + } + } + + return array($lat, $lng, $error); + + } + +} + +?> \ No newline at end of file diff --git a/sna/application/libraries/Jsmin.php b/sna/application/libraries/Jsmin.php new file mode 100644 index 0000000..84ac7b7 --- /dev/null +++ b/sna/application/libraries/Jsmin.php @@ -0,0 +1,352 @@ + + * @copyright 2002 Douglas Crockford (jsmin.c) + * @copyright 2008 Ryan Grove (PHP port) + * @license http://opensource.org/licenses/mit-license.php MIT License + * @version 1.1.1 (2008-03-02) + * @link https://github.com/rgrove/jsmin-php/ + */ + +class JSMin { + const ORD_LF = 10; + const ORD_SPACE = 32; + const ACTION_KEEP_A = 1; + const ACTION_DELETE_A = 2; + const ACTION_DELETE_A_B = 3; + + protected $a = ''; + protected $b = ''; + protected $input = ''; + protected $inputIndex = 0; + protected $inputLength = 0; + protected $lookAhead = null; + protected $output = ''; + + // -- Protected Instance Methods --------------------------------------------- + + /** + * Action -- do something! What to do is determined by the $command argument. + * + * action treats a string as a single character. Wow! + * action recognizes a regular expression if it is preceded by ( or , or =. + * + * @uses next() + * @uses get() + * @throws JSMinException If parser errors are found: + * - Unterminated string literal + * - Unterminated regular expression set in regex literal + * - Unterminated regular expression literal + * @param int $command One of class constants: + * ACTION_KEEP_A Output A. Copy B to A. Get the next B. + * ACTION_DELETE_A Copy B to A. Get the next B. (Delete A). + * ACTION_DELETE_A_B Get the next B. (Delete B). + */ + protected function action($command) { + switch($command) { + case self::ACTION_KEEP_A: + $this->output .= $this->a; + + case self::ACTION_DELETE_A: + $this->a = $this->b; + + if ($this->a === "'" || $this->a === '"') { + for (;;) { + $this->output .= $this->a; + $this->a = $this->get(); + + if ($this->a === $this->b) { + break; + } + + if (ord($this->a) <= self::ORD_LF) { + throw new JSMinException('Unterminated string literal.'); + } + + if ($this->a === '\\') { + $this->output .= $this->a; + $this->a = $this->get(); + } + } + } + + case self::ACTION_DELETE_A_B: + $this->b = $this->next(); + + if ($this->b === '/' && ( + $this->a === '(' || $this->a === ',' || $this->a === '=' || + $this->a === ':' || $this->a === '[' || $this->a === '!' || + $this->a === '&' || $this->a === '|' || $this->a === '?' || + $this->a === '{' || $this->a === '}' || $this->a === ';' || + $this->a === "\n" )) { + + $this->output .= $this->a . $this->b; + + for (;;) { + $this->a = $this->get(); + + if ($this->a === '[') { + /* + inside a regex [...] set, which MAY contain a '/' itself. Example: mootools Form.Validator near line 460: + return Form.Validator.getValidator('IsEmpty').test(element) || (/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]\.?){0,63}[a-z0-9!#$%&'*+/=?^_`{|}~-]@(?:(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\])$/i).test(element.get('value')); + */ + for (;;) { + $this->output .= $this->a; + $this->a = $this->get(); + + if ($this->a === ']') { + break; + } elseif ($this->a === '\\') { + $this->output .= $this->a; + $this->a = $this->get(); + } elseif (ord($this->a) <= self::ORD_LF) { + throw new JSMinException('Unterminated regular expression set in regex literal.'); + } + } + } elseif ($this->a === '/') { + break; + } elseif ($this->a === '\\') { + $this->output .= $this->a; + $this->a = $this->get(); + } elseif (ord($this->a) <= self::ORD_LF) { + throw new JSMinException('Unterminated regular expression literal.'); + } + + $this->output .= $this->a; + } + + $this->b = $this->next(); + } + } + } + + /** + * Get next char. Convert ctrl char to space. + * + * @return string|null + */ + protected function get() { + $c = $this->lookAhead; + $this->lookAhead = null; + + if ($c === null) { + if ($this->inputIndex < $this->inputLength) { + $c = substr($this->input, $this->inputIndex, 1); + $this->inputIndex += 1; + } else { + $c = null; + } + } + + if ($c === "\r") { + return "\n"; + } + + if ($c === null || $c === "\n" || ord($c) >= self::ORD_SPACE) { + return $c; + } + + return ' '; + } + + /** + * Is $c a letter, digit, underscore, dollar sign, or non-ASCII character. + * + * @return bool + */ + protected function isAlphaNum($c) { + return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1; + } + + /** + * Perform minification, return result + * + * @uses action() + * @uses isAlphaNum() + * @return string + */ + function min($js) { + + $this->input = str_replace("\r\n", "\n", $js); + $this->inputLength = strlen($this->input); + + $this->a = "\n"; + $this->action(self::ACTION_DELETE_A_B); + + while ($this->a !== null) { + switch ($this->a) { + case ' ': + if ($this->isAlphaNum($this->b)) { + $this->action(self::ACTION_KEEP_A); + } else { + $this->action(self::ACTION_DELETE_A); + } + break; + + case "\n": + switch ($this->b) { + case '{': + case '[': + case '(': + case '+': + case '-': + $this->action(self::ACTION_KEEP_A); + break; + + case ' ': + $this->action(self::ACTION_DELETE_A_B); + break; + + default: + if ($this->isAlphaNum($this->b)) { + $this->action(self::ACTION_KEEP_A); + } + else { + $this->action(self::ACTION_DELETE_A); + } + } + break; + + default: + switch ($this->b) { + case ' ': + if ($this->isAlphaNum($this->a)) { + $this->action(self::ACTION_KEEP_A); + break; + } + + $this->action(self::ACTION_DELETE_A_B); + break; + + case "\n": + switch ($this->a) { + case '}': + case ']': + case ')': + case '+': + case '-': + case '"': + case "'": + $this->action(self::ACTION_KEEP_A); + break; + + default: + if ($this->isAlphaNum($this->a)) { + $this->action(self::ACTION_KEEP_A); + } + else { + $this->action(self::ACTION_DELETE_A_B); + } + } + break; + + default: + $this->action(self::ACTION_KEEP_A); + break; + } + } + } + + return $this->output; + } + + /** + * Get the next character, skipping over comments. peek() is used to see + * if a '/' is followed by a '/' or '*'. + * + * @uses get() + * @uses peek() + * @throws JSMinException On unterminated comment. + * @return string + */ + protected function next() { + $c = $this->get(); + + if ($c === '/') { + switch($this->peek()) { + case '/': + for (;;) { + $c = $this->get(); + + if (ord($c) <= self::ORD_LF) { + return $c; + } + } + + case '*': + $this->get(); + + for (;;) { + switch($this->get()) { + case '*': + if ($this->peek() === '/') { + $this->get(); + return ' '; + } + break; + + case null: + throw new JSMinException('Unterminated comment.'); + } + } + + default: + return $c; + } + } + + return $c; + } + + /** + * Get next char. If is ctrl character, translate to a space or newline. + * + * @uses get() + * @return string|null + */ + protected function peek() { + $this->lookAhead = $this->get(); + return $this->lookAhead; + } +} + +// -- Exceptions --------------------------------------------------------------- +class JSMinException extends Exception {} +?> \ No newline at end of file diff --git a/sna/application/libraries/index.html b/sna/application/libraries/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/libraries/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/logs/index.html b/sna/application/logs/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/logs/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/models/Admin_model.php b/sna/application/models/Admin_model.php new file mode 100644 index 0000000..8af231b --- /dev/null +++ b/sna/application/models/Admin_model.php @@ -0,0 +1,563 @@ +. +*/ + +Class Admin_model extends CI_Model { + + function __construct() + { + parent::__construct(); + + $this->load->database(); + } + + function users() + { + $this->db->select('t1.*'); + $this->db->from("users AS t1"); + $result=$this->db->get()->result_array(); + + return $result; + } + + function user($id_user) + { + $this->db->select('t1.*'); + $this->db->from("users AS t1"); + $this->db->where('t1.id',$id_user); + $user=$this->db->get()->row_array(); + + return $user; + } + + function perform_login($username,$password) + { + $this->db->select(" + t1.*, + "); + $this->db->from('users AS t1'); + $this->db->where('t1.username',$username); + $user=$this->db->get()->row_array(); + + if(password_verify($password, $user['password_hash'])) + { + return $user; + } + else + { + return false; + } + + } + + function subject($id) + { + $this->db->select('*'); + $this->db->from('subjects AS t1'); + $this->db->where('id',$id); + $subject=$this->db->get()->row_array(); + + return $subject; + } + + function subjects() + { + $this->db->select('*'); + $this->db->from('subjects AS t1'); + $subjects=$this->db->get()->result_array(); + + $data=array(); + foreach($subjects as $subject) + { + $data[$subject['id']]=$subject['title']; + } + + return $data; + } + + function word($id) + { + $this->db->select('t1.*'); + $this->db->from("words AS t1"); + $this->db->where("t1.id",$id); + $word=$this->db->get()->row_array(); + + if(isset($word['image'])) + { + $word['image']=$word['image']; + } + + + if(isset($word['comment'])) + { + $word['comment']=$word['comment']; + } + + + return $word; + } + + function transcriptions($id_word=0,$id_location=0,$id_subject=0,$id_transcription=0,$id_lexem=0) + { + $this->db->select(' + t1.*, + t2.name, + t3.title AS lexem_title, + t4.title AS word_title, + t5.title AS subject_title, + '); + $this->db->from('transcriptions AS t1'); + $this->db->join('locations AS t2','on t1.id_location=t2.id','LEFT'); + $this->db->join('lexems AS t3','on t1.id_lexem=t3.id','LEFT'); + $this->db->join('words AS t4','on t3.id_word=t4.id','LEFT'); + $this->db->join('subjects AS t5','on t4.id_subject=t5.id','LEFT'); + if($id_subject) + { + $this->db->where('t4.id_subject',$id_subject); + } + if($id_word) + { + $this->db->where('t3.id_word',$id_word); + } + if($id_location) + { + $this->db->where('t1.id_location',$id_location); + } + + if($id_transcription) + { + $this->db->where('t1.id!=',$id_transcription); + } + + if($id_lexem) + { + $this->db->where('t1.id_lexem',$id_lexem); + } + + $this->db->order_by('lexem_title','ASC'); + + $result=$this->db->get()->result_array(); + + return $result; + } + + function transcription($id) + { + $this->db->select(' + t1.*, + t2.title AS lexem_title, + t3.id_subject, + t3.id AS id_word, + '); + $this->db->from('transcriptions AS t1'); + $this->db->join('lexems AS t2','on t1.id_lexem=t2.id'); + $this->db->join('words AS t3','on t2.id_word=t3.id'); + $this->db->where('t1.id',$id); + + $result=$this->db->get()->row_array(); + + return $result; + } + + function titles($id_word) + { + $this->db->select('id,title'); + $this->db->from('lexems'); + $this->db->where('id_word',$id_word); + $this->db->group_by('title,id'); + $this->db->order_by('title','ASC'); + $titles=$this->db->get()->result_array(); + + $data=array(); + + foreach($titles as $title) + { + $data[$title['id']]=$title['title']; + } + + return $data; + + } + + function locations($id_subject) + { + $this->db->select('t2.*'); + $this->db->from('subject_locations AS t1'); + $this->db->join('locations AS t2','t2.id=t1.id_location'); + if($id_subject) + { + $this->db->where('t1.id_subject',$id_subject); + } + + $this->db->order_by('t2.name','ASC'); + $this->db->group_by('t2.id'); + + $result=$this->db->get()->result_array(); + + $data=array(); + + foreach($result as $location) + { + $data[$location['id']]=$location['name']; + } + + return $data; + } + + function locations_all() + { + $this->db->select('*'); + $this->db->from('locations'); + $this->db->order_by('name','ASC'); + $result=$this->db->get()->result_array(); + + return $result; + } + + function location($id_location) + { + $this->db->select('*'); + $this->db->from('locations'); + $this->db->where('id',$id_location); + + $location=$this->db->get()->row_array(); + + return $location; + } + + function subject_locations($id_location) + { + $this->db->select('*'); + $this->db->from('subject_locations'); + $this->db->where('id_location',$id_location); + $subject_locations=$this->db->get()->result_array(); + + $data=array(); + foreach($subject_locations as $entry) + { + $data[$entry['id_subject']]=$entry['id_subject']; + } + + return $data; + } + + function dialects($options=false) + { + $this->db->select('*'); + $this->db->from('dialects'); + $this->db->where('type',1); + $dialects=$this->db->get()->result_array(); + + if($options) + { + $data=array(); + foreach($dialects as $dialect) + { + $data[$dialect['id']]=$dialect['name']; + } + + return $data; + } + + return $dialects; + } + + function subdialects($id_dialect,$options=false) + { + $this->db->select('*'); + $this->db->from('dialects'); + $this->db->where('type',2); + $this->db->where('id_parent',$id_dialect); + $subdialects=$this->db->get()->result_array(); + + if($options) + { + $data=array(); + foreach($subdialects as $dialect) + { + $data[$dialect['id']]=$dialect['name']; + } + + return $data; + } + + return $subdialects; + } + + function subsubdialects($id_subdialect,$options=false) + { + $this->db->select('*'); + $this->db->from('dialects'); + $this->db->where('type',3); + $this->db->where('id_parent',$id_subdialect); + $subsubdialects=$this->db->get()->result_array(); + + if($options) + { + $data=array(); + foreach($subsubdialects as $dialect) + { + $data[$dialect['id']]=$dialect['name']; + } + + return $data; + } + + return $subsubdialects; + } + + function locations_by_word($id_word) + { + //get selected locations + $this->db->select(" + t2.* + "); + $this->db->from('transcriptions as t1'); + $this->db->join('locations as t2','on t1.id_location=t2.id'); + $this->db->where('t1.id_word',$id_word); + $selected_locations=$this->db->get()->result_array(); + + //all locations + $this->db->select('*'); + $this->db->from('locations'); + $locations=$this->db->get()->result_array(); + + //init data array for unselected locations + $data=array(); + + foreach($locations as $location) + { + if(!in_array($location,$selected_locations)) + { + $data[$location['id']]=$location['name']; + } + } + + return $data; + } + + function lexems($id_word=0,$id_subject=0,$options=false) + { + $this->db->select(' + t1.*, + t2.title AS word_title, + t3.title AS subject_title, + '); + $this->db->from('lexems AS t1'); + $this->db->join('words AS t2','t1.id_word=t2.id'); + $this->db->join('subjects AS t3','t2.id_subject=t3.id'); + if($id_subject) + { + $this->db->where('t2.id_subject',$id_subject); + } + if($id_word) + { + $this->db->where('t1.id_word',$id_word); + } + $this->db->order_by('t1.title','ASC'); + $lexems=$this->db->get()->result_array(); + + if($options) + { + $data=array(); + foreach($lexems as $lexem) + { + $data[$lexem['id']]=$lexem['title']; + } + + return $data; + } + + return $lexems; + } + + function word_lexems($id_word,$options=false) + { + $this->db->select(' + t1.*, + t2.title AS word_title, + '); + $this->db->from('lexems AS t1'); + $this->db->join('words AS t2','t1.id_word=t2.id'); + $this->db->where('t1.id_word',$id_word); + $this->db->order_by('t1.title','ASC'); + $lexems=$this->db->get()->result_array(); + + if($options) + { + $data=array(); + foreach($lexems as $lexem) + { + $data[$lexem['id']]=$lexem['title']; + } + + return $data; + } + + return $lexems; + } + + function lexem($id) + { + $this->db->select('t1.*,t2.id_subject'); + $this->db->from('lexems AS t1'); + $this->db->join('words AS t2','t2.id=t1.id_word'); + $this->db->where('t1.id',$id); + $lexem=$this->db->get()->row_array(); + + return $lexem; + } + + + function subject_title_exists($title,$id=0) + { + $this->db->from('subjects'); + $this->db->where('title',$title); + if($id) + { + $this->db->where('id!=',$id); + } + + $exists=$this->db->count_all_results(); + + return $exists; + } + + function words_title_exists($title,$id=0,$id_subject) + { + $this->db->from('words'); + $this->db->where('title',$title); + if($id) + { + $this->db->where('id!=',$id); + } + $this->db->where('id_subject',$id_subject); + $exists=$this->db->count_all_results(); + + return $exists; + } + + function location_exists($field,$parameter,$id=0) + { + $this->db->from('locations'); + $this->db->where($field,$parameter); + if($id) + { + $this->db->where('id!=',$id); + } + + $exists=$this->db->count_all_results(); + + return $exists; + } + + function location_short_name_exists($short_name,$id=0) + { + $this->db->select('short_name'); + $this->db->from('locations'); + $this->db->where('short_name',$short_name); + if($id) + { + $this->db->where('id!=',$id); + } + + $names=$this->db->get()->result_array(); + + $identical=false; + foreach($names as $name) + { + if(strcmp($name['short_name'],$short_name)==0) + { + $identical=true; + } + } + + return $identical; + } + + function coordinates_exists($lat,$long,$id=0) + { + $this->db->from('locations'); + $this->db->where('lat',$lat); + $this->db->where('long',$long); + if($id) + { + $this->db->where('id!=',$id); + } + + $exists=$this->db->count_all_results(); + + return $exists; + } + + function lexem_title_exists($id=0,$title,$id_subject,$id_word) + { + + } + + function username_exists($username,$id_user) + { + $this->db->from('users'); + $this->db->where('username',$username); + $this->db->where('id!=',$id_user); + $exists=$this->db->count_all_results(); + + return $exists; + } + + function subject_links($id_subject) + { + //words + $this->db->from('words'); + $this->db->where('id_subject',$id_subject); + $word_c=$this->db->count_all_results(); + + return $word_c; + } + + function locations_links($id_location) + { + $this->db->select('*'); + $this->db->from('transcriptions'); + $this->db->where('id_location',$id_location); + $links=$this->db->get()->result_array(); + + return $links; + } + + function word_links($id_word) + { + $this->db->select('*'); + $this->db->from('lexems'); + $this->db->where('id_word',$id_word); + $links=$this->db->get()->result_array(); + + return $links; + } + + function lexem_links($id) + { + $this->db->select('*'); + $this->db->from('transcriptions'); + $this->db->where('id_lexem',$id); + $links=$this->db->get()->result_array(); + + return $links; + } +} \ No newline at end of file diff --git a/sna/application/models/Home_model.php b/sna/application/models/Home_model.php new file mode 100644 index 0000000..5350f7c --- /dev/null +++ b/sna/application/models/Home_model.php @@ -0,0 +1,292 @@ +. +*/ + +Class Home_model extends CI_Model { + + function __construct() + { + parent::__construct(); + + $this->load->database(); + } + + function subjects($options=false) + { + $this->db->select('t1.*'); + $this->db->from("subjects AS t1"); + $this->db->order_by('title','ASC'); + $subjects=$this->db->get()->result_array(); + + if($options=='select') + { + //init + $data=array(); + + foreach($subjects as $subject) + { + $data[$subject['id']]=$subject['title']; + } + + return $data; + } + else + { + return $subjects; + } + + } + + function subject_words($id_subject,$options='select') + { + $this->db->select('t2.*'); + $this->db->from("subjects AS t1"); + $this->db->join("words as t2","t2.id_subject=t1.id"); + $this->db->where("t1.id",$id_subject); + $this->db->order_by('t2.title','ASC'); + $words=$this->db->get()->result_array(); + + if($options=='select') + { + //init + $data=array(); + + foreach($words as $word) + { + $data[$word['id']]=$word['title']; + } + + return $data; + } + + return $words; + + } + + function words_trascriptions($id_word,$id_subject) + { + if($id_word) + { + //init + $used=array(); + $result=array(); + + $this->db->select(' + t2.*, + t3.name AS dialect_title, + t4.name AS subdialect_title, + t5.name AS subsubdialect_title, + '); + $this->db->from('subject_locations AS t1'); + $this->db->join('locations AS t2','t1.id_location=t2.id'); + $this->db->join('dialects AS t3','t2.id_dialect=t3.id'); + $this->db->join('dialects AS t4','t2.id_subdialect=t4.id'); + $this->db->join('dialects AS t5','t2.id_subsubdialect=t5.id','LEFT'); + $this->db->where('t1.id_subject',$id_subject); + $locations=$this->db->get()->result_array(); + + foreach($locations as $i=>$location) + { + $pixels=$this->convert_to_pixels($location['lat'],$location['long']); + + $result[$i]['x']=$pixels['x']; + $result[$i]['y']=$pixels['y']; + $result[$i]['name']=$location['name']; + $result[$i]['short_name']=$location['short_name']; + $result[$i]['dialect']=$location['dialect_title']; + $result[$i]['subdialect']=$location['subdialect_title']; + if(isset($location['subsubdialect_title'])) + { + $result[$i]['subsubdialect']=$location['subsubdialect_title']; + } + + + $this->db->select(' + t1.*, + t2.title, + t2.icon, + t2.id_word, + t2.icon_color, + '); + $this->db->from('transcriptions AS t1'); + $this->db->join('lexems AS t2','t1.id_lexem=t2.id'); + $this->db->where('t2.id_word',$id_word); + $this->db->where('t1.id_location',$location['id']); + $transcription=$this->db->get()->row_array(); + + if($transcription) + { + $result[$i]['pin']=$transcription['icon']; + $result[$i]['id']=$transcription['id']; + $result[$i]['title']=$transcription['title']; + $result[$i]['phonetic_writing']=$transcription['phonetic_writing']; + $result[$i]['audio']=$transcription['audio']; + $result[$i]['id_word']=$transcription['id_word']; + $result[$i]['id_location']=$transcription['id_location']; + $result[$i]['trans_text']=$transcription['trans_text']; + $result[$i]['icon']=$transcription['icon']; + $result[$i]['icon_color']=$transcription['icon_color']; + + //only allowed chars + $code_title = preg_replace('/[^a-zA-Z0-9]/','', $transcription['title']); + $result[$i]['code_title']=$code_title; + + if(!array_key_exists($transcription['title'],$used)) + { + if($transcription['icon']) + { + $used[$transcription['title']]=array( + 'icon'=>$transcription['icon'], + 'icon_color'=>$transcription['icon_color'], + 'code_title'=>$code_title, + ); + } + } + } + else + { + $result[$i]['pin']="no_title"; + $result[$i]['title']='no_title'; + $result[$i]['code_title']='no_title'; + } + } + //add no title for the last + $used['no_title']=array( + 'icon'=>'/', + 'icon_color'=>"#000000", + 'code_title'=>'no_title' + ); + + $data=array( + 'legend'=>$used, + 'transcriptions'=>$result, + ); + + return $data; + + } + else + { + return; + } + + } + + function convert_to_pixels($lat,$long) + { + //init + //corners min, max in geo + $min_lat=46.996232; + $min_long=13.059296; + $max_lat=45.400639; + $max_long=16.620767; + + //height,width of canvas + $height=719; //719.964 + $width=1111; //1111.625 + + //error + $height_err=0; //20 + $width_err=30; //35 + + //calculate pixes per degree + $ppd_height=number_format($height/($min_lat-$max_lat),6); + $ppd_width=number_format($width/abs($min_long-$max_long),6); + + //perform calculations + $delta_x=number_format(abs($min_long-$long),6); + $delta_y=number_format(abs($min_lat-$lat),6); + + $x=(int)($delta_x*$ppd_width)-$width_err; + $y=(int)($delta_y*$ppd_height)-$height_err; + + $result=array( + 'x'=>$x, + 'y'=>$y, + ); + + //print_r($result);die(); + + return $result; + } + + function transcriptions_count($id_word) + { + $this->db->from('transcriptions AS t1'); + $this->db->join('lexems AS t2','t1.id_lexem=t2.id'); + $this->db->where('t2.id_word',$id_word); + $c=$this->db->count_all_results(); + + return $c; + + } + + function word_title($id_word) + { + $this->db->select('t1.title'); + $this->db->from("words AS t1"); + $this->db->where("t1.id",$id_word); + $word=$this->db->get()->row_array(); + + return $word; + } + + function word($id) + { + $this->db->select('t1.*'); + $this->db->from("words AS t1"); + $this->db->where("t1.id",$id); + $word=$this->db->get()->row_array(); + + if(isset($word['image']) and $word['image']) + { + $word['image']=$word['image']; + } + else + { + $word['image']=''; + } + + if(isset($word['comment']) and $word['comment']) + { + $word['comment']=base_url().$word['comment'].'#zoom=100'; + } + else + { + $word['comment']=''; + } + + return $word; + } + + private function get_icons() + { + //init + $icons=array(); + + $images = glob('images/icons/*.{jpeg,gif,png,svg}', GLOB_BRACE); + + foreach($images as $image) + { + $icons[]=basename($image); + } + + return $icons; + } +} \ No newline at end of file diff --git a/sna/application/models/index.html b/sna/application/models/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/models/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/third_party/index.html b/sna/application/third_party/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/third_party/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/sna/application/views/admin/add_location_view.php b/sna/application/views/admin/add_location_view.php new file mode 100644 index 0000000..922dfa1 --- /dev/null +++ b/sna/application/views/admin/add_location_view.php @@ -0,0 +1,225 @@ +. +*/ + +?> + +
+ load->view('admin/index_view.php'); + ?> +
+ load->view('admin/admin_nav.php'); + ?> + + +
+ +
+

Nova lokacija

+
+
+ + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + $subject) + { + ?> +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + \ No newline at end of file diff --git a/sna/application/views/admin/add_subject_view.php b/sna/application/views/admin/add_subject_view.php new file mode 100644 index 0000000..6e56b38 --- /dev/null +++ b/sna/application/views/admin/add_subject_view.php @@ -0,0 +1,90 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    Nova tema

    +
    +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + +
    +
    + +
    + +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/add_transcription_view.php b/sna/application/views/admin/add_transcription_view.php new file mode 100644 index 0000000..54c52f7 --- /dev/null +++ b/sna/application/views/admin/add_transcription_view.php @@ -0,0 +1,254 @@ +. +*/ +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    Nov fonetični zapis

    +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/add_word_view.php b/sna/application/views/admin/add_word_view.php new file mode 100644 index 0000000..c636117 --- /dev/null +++ b/sna/application/views/admin/add_word_view.php @@ -0,0 +1,106 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + +
    + +
    +

    Nova beseda

    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    + + + + \ No newline at end of file diff --git a/sna/application/views/admin/admin_nav.php b/sna/application/views/admin/admin_nav.php new file mode 100644 index 0000000..2db6ad3 --- /dev/null +++ b/sna/application/views/admin/admin_nav.php @@ -0,0 +1,31 @@ +. +*/ + +?> + + \ No newline at end of file diff --git a/sna/application/views/admin/comment_popup_view.php b/sna/application/views/admin/comment_popup_view.php new file mode 100644 index 0000000..1628f74 --- /dev/null +++ b/sna/application/views/admin/comment_popup_view.php @@ -0,0 +1,47 @@ +. +*/ + +if(isset($words) and $words) +{ + foreach($words as $word) + { + ?> + + + + diff --git a/sna/application/views/admin/edit_location_view.php b/sna/application/views/admin/edit_location_view.php new file mode 100644 index 0000000..d64f3ae --- /dev/null +++ b/sna/application/views/admin/edit_location_view.php @@ -0,0 +1,244 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    ()

    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    + +
    + +
    + $subject) + { + ?> +
    + > +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + \ No newline at end of file diff --git a/sna/application/views/admin/edit_my_profile_view.php b/sna/application/views/admin/edit_my_profile_view.php new file mode 100644 index 0000000..6c6a90a --- /dev/null +++ b/sna/application/views/admin/edit_my_profile_view.php @@ -0,0 +1,115 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + +
    + +
    +
    +

    Urejanje uporabnika - sprememba gesla

    +
    +
    + session->userdata('uid')==1) + { + ?> + Pregled uporabnikov + +
    +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    + + \ No newline at end of file diff --git a/sna/application/views/admin/edit_subject_view.php b/sna/application/views/admin/edit_subject_view.php new file mode 100644 index 0000000..8ae2cca --- /dev/null +++ b/sna/application/views/admin/edit_subject_view.php @@ -0,0 +1,288 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + + + + +
    + +
    + +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    + + + + + + + + + + + + $word) + { + ?> + + + + + + + + + +
    Št.BesedaSlikaKomentarOdstrani
    . + + + + - + + + + + + - + +
    +
    +
    +
    +
    + +
    + +
    +
    + +
    + + + + \ No newline at end of file diff --git a/sna/application/views/admin/edit_transcription_popup_view.php b/sna/application/views/admin/edit_transcription_popup_view.php new file mode 100644 index 0000000..ea2165a --- /dev/null +++ b/sna/application/views/admin/edit_transcription_popup_view.php @@ -0,0 +1,125 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + \ No newline at end of file diff --git a/sna/application/views/admin/edit_transcription_view.php b/sna/application/views/admin/edit_transcription_view.php new file mode 100644 index 0000000..2915c70 --- /dev/null +++ b/sna/application/views/admin/edit_transcription_view.php @@ -0,0 +1,325 @@ +. +*/ +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + + +
    + +
    + +
    + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + + + + + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/edit_user_view.php b/sna/application/views/admin/edit_user_view.php new file mode 100644 index 0000000..c63c4d7 --- /dev/null +++ b/sna/application/views/admin/edit_user_view.php @@ -0,0 +1,143 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    +
    + + Odstrani + +
    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/edit_word_view.php b/sna/application/views/admin/edit_word_view.php new file mode 100644 index 0000000..1e8ec0b --- /dev/null +++ b/sna/application/views/admin/edit_word_view.php @@ -0,0 +1,316 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + +
    + +
    +

    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + + +
    + + +
    + +
    + +
    +
    +
    + +
    + +
    + + +
    + + + + +
    +
    +
    + + +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    + + + + + + + + \ No newline at end of file diff --git a/sna/application/views/admin/image_popup_view.php b/sna/application/views/admin/image_popup_view.php new file mode 100644 index 0000000..cffdbbe --- /dev/null +++ b/sna/application/views/admin/image_popup_view.php @@ -0,0 +1,47 @@ +. +*/ + +if(isset($words) and $words) +{ + foreach($words as $word) + { + ?> + + + + diff --git a/sna/application/views/admin/index_view.php b/sna/application/views/admin/index_view.php new file mode 100644 index 0000000..ec9ab10 --- /dev/null +++ b/sna/application/views/admin/index_view.php @@ -0,0 +1,46 @@ +. +*/ + +?> + + + + + + + diff --git a/sna/application/views/admin/lexem_add_view.php b/sna/application/views/admin/lexem_add_view.php new file mode 100644 index 0000000..1158952 --- /dev/null +++ b/sna/application/views/admin/lexem_add_view.php @@ -0,0 +1,158 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    Nov leksem

    +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + \ No newline at end of file diff --git a/sna/application/views/admin/lexem_edit_view.php b/sna/application/views/admin/lexem_edit_view.php new file mode 100644 index 0000000..0a9c7f4 --- /dev/null +++ b/sna/application/views/admin/lexem_edit_view.php @@ -0,0 +1,179 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    + +
    +
    + + '; + foreach($errfields as $errfield) + { + $alert_text.='
  • '.$errfield.'
  • '; + } + $alert_text.='' + ?> + + + + + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    + + \ No newline at end of file diff --git a/sna/application/views/admin/lexems_list_view.php b/sna/application/views/admin/lexems_list_view.php new file mode 100644 index 0000000..dbc7f25 --- /dev/null +++ b/sna/application/views/admin/lexems_list_view.php @@ -0,0 +1,50 @@ +. +*/ + +?> + + + + + + + + + + + + + $lexem) + { + ?> + + + + + + + + + +
    Št.LeksemBeseda (tema)Simbol leksemaOdstrani
    . ()
    \ No newline at end of file diff --git a/sna/application/views/admin/lexems_view.php b/sna/application/views/admin/lexems_view.php new file mode 100644 index 0000000..ca2f595 --- /dev/null +++ b/sna/application/views/admin/lexems_view.php @@ -0,0 +1,242 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + +
    + +
    +

    Leksemi

    + +
    + + + + + +
    + + +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    +
    + + +
    + +
    + +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/locations_view.php b/sna/application/views/admin/locations_view.php new file mode 100644 index 0000000..0fb326f --- /dev/null +++ b/sna/application/views/admin/locations_view.php @@ -0,0 +1,221 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + +
    + +
    +

    Lokacije

    + +
    + + + + + +
    + +
    + +
    +
    + + +
    + + + + + + + + + + + + + $location) + { + ?> + + + + + + + + + + +
    Št.KrajKraticaZemljepisna širina (lat)Zemljepisna dolžina (long)Odstrani
    .
    +
    + +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/login_view.php b/sna/application/views/admin/login_view.php new file mode 100644 index 0000000..5264c31 --- /dev/null +++ b/sna/application/views/admin/login_view.php @@ -0,0 +1,86 @@ +. +*/ + +?> + + +
    + + + + + + + +
    +
    Prijava v nadzorno ploščo
    +
    +
    +
    + + +
    +
    + + +
    + +
    +
    +
    + +
    + + \ No newline at end of file diff --git a/sna/application/views/admin/subjects_view.php b/sna/application/views/admin/subjects_view.php new file mode 100644 index 0000000..12d94f3 --- /dev/null +++ b/sna/application/views/admin/subjects_view.php @@ -0,0 +1,92 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    Teme

    + +
    + + + + +
    +
    + + + + + + + + + $subject) + { + ?> + + + + + + +
    Št.Tema
    .
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/transcriptions_list_view.php b/sna/application/views/admin/transcriptions_list_view.php new file mode 100644 index 0000000..f994109 --- /dev/null +++ b/sna/application/views/admin/transcriptions_list_view.php @@ -0,0 +1,95 @@ +. +*/ + +?> + + + + + + + + + + + + + + + $transcription) + { + ?> + + + + + + + + + + +
    Št.LeksemFonetični zapisZvočni posnetekBeseda (tema)KrajOdstrani
    . + + +
    + + + +
    + + + +
    + ()- + - +
    + + diff --git a/sna/application/views/admin/transcriptions_view.php b/sna/application/views/admin/transcriptions_view.php new file mode 100644 index 0000000..1094d89 --- /dev/null +++ b/sna/application/views/admin/transcriptions_view.php @@ -0,0 +1,366 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + +
    + +
    +

    Fonetični zapisi

    + +
    + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/admin/users_view.php b/sna/application/views/admin/users_view.php new file mode 100644 index 0000000..1748242 --- /dev/null +++ b/sna/application/views/admin/users_view.php @@ -0,0 +1,97 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> + + +
    + +
    +

    Uporabniki

    + +
    + + + + +
    +
    + + + + + + + + + + + $user) + { + ?> + + + + + + + + +
    Št.Uporabniško imeImePriimek
    .
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/sna/application/views/errors/cli/error_404.php b/sna/application/views/errors/cli/error_404.php new file mode 100644 index 0000000..6984b61 --- /dev/null +++ b/sna/application/views/errors/cli/error_404.php @@ -0,0 +1,8 @@ + + +An uncaught Exception was encountered + +Type: +Message: +Filename: getFile(), "\n"; ?> +Line Number: getLine(); ?> + + + +Backtrace: +getTrace() as $error): ?> + + File: + Line: + Function: + + + + diff --git a/sna/application/views/errors/cli/error_general.php b/sna/application/views/errors/cli/error_general.php new file mode 100644 index 0000000..6984b61 --- /dev/null +++ b/sna/application/views/errors/cli/error_general.php @@ -0,0 +1,8 @@ + + +A PHP Error was encountered + +Severity: +Message: +Filename: +Line Number: + + + +Backtrace: + + + File: + Line: + Function: + + + + diff --git a/sna/application/views/errors/cli/index.html b/sna/application/views/errors/cli/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/views/errors/cli/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

    Directory access is forbidden.

    + + + diff --git a/sna/application/views/errors/html/error_404.php b/sna/application/views/errors/html/error_404.php new file mode 100644 index 0000000..756ea9d --- /dev/null +++ b/sna/application/views/errors/html/error_404.php @@ -0,0 +1,64 @@ + + + + +404 Page Not Found + + + +
    +

    + +
    + + \ No newline at end of file diff --git a/sna/application/views/errors/html/error_db.php b/sna/application/views/errors/html/error_db.php new file mode 100644 index 0000000..f5a43f6 --- /dev/null +++ b/sna/application/views/errors/html/error_db.php @@ -0,0 +1,64 @@ + + + + +Database Error + + + +
    +

    + +
    + + \ No newline at end of file diff --git a/sna/application/views/errors/html/error_exception.php b/sna/application/views/errors/html/error_exception.php new file mode 100644 index 0000000..8784886 --- /dev/null +++ b/sna/application/views/errors/html/error_exception.php @@ -0,0 +1,32 @@ + + +
    + +

    An uncaught Exception was encountered

    + +

    Type:

    +

    Message:

    +

    Filename: getFile(); ?>

    +

    Line Number: getLine(); ?>

    + + + +

    Backtrace:

    + getTrace() as $error): ?> + + + +

    + File:
    + Line:
    + Function: +

    + + + + + + +
    \ No newline at end of file diff --git a/sna/application/views/errors/html/error_general.php b/sna/application/views/errors/html/error_general.php new file mode 100644 index 0000000..fc3b2eb --- /dev/null +++ b/sna/application/views/errors/html/error_general.php @@ -0,0 +1,64 @@ + + + + +Error + + + +
    +

    + +
    + + \ No newline at end of file diff --git a/sna/application/views/errors/html/error_php.php b/sna/application/views/errors/html/error_php.php new file mode 100644 index 0000000..b146f9c --- /dev/null +++ b/sna/application/views/errors/html/error_php.php @@ -0,0 +1,33 @@ + + +
    + +

    A PHP Error was encountered

    + +

    Severity:

    +

    Message:

    +

    Filename:

    +

    Line Number:

    + + + +

    Backtrace:

    + + + + +

    + File:
    + Line:
    + Function: +

    + + + + + + + +
    \ No newline at end of file diff --git a/sna/application/views/errors/html/index.html b/sna/application/views/errors/html/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/views/errors/html/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

    Directory access is forbidden.

    + + + diff --git a/sna/application/views/errors/index.html b/sna/application/views/errors/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/views/errors/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

    Directory access is forbidden.

    + + + diff --git a/sna/application/views/footer.php b/sna/application/views/footer.php new file mode 100644 index 0000000..cb8ad8d --- /dev/null +++ b/sna/application/views/footer.php @@ -0,0 +1,42 @@ +. +*/ + +?> + +


    + + + + + + + + diff --git a/sna/application/views/header.php b/sna/application/views/header.php new file mode 100644 index 0000000..9b5a9b4 --- /dev/null +++ b/sna/application/views/header.php @@ -0,0 +1,48 @@ +. +*/ + +?> + + + + + + + + + <?=$title?> + + + + + + + + + + + + +
    + + diff --git a/sna/application/views/home/about.php b/sna/application/views/home/about.php new file mode 100644 index 0000000..9d1a900 --- /dev/null +++ b/sna/application/views/home/about.php @@ -0,0 +1,77 @@ +. +*/ + +?> +
    + +
    +
    +

    Avtor

    +

    Avtor spletne aplikacije je Gregor Šajn, študent Fakultete za računalništvo in informatiko Univerze v Ljubljani. Aplikacijo je izdelal v okviru diplomske naloge v letu 2017.

    + +
    + +

    Aplikacija

    + +

    Slovenski narečni atlas / Slovenian dialectal atlas
    + Copyright © 2017 Gregor Šajn (greg.sajn@gmail.com)

    + + Ta program spada med prosto programje; lahko ga razširjate in/ali spreminjate pod pogoji Splošnega dovoljenja GNU (GNU General Public License), različice 3, kot ga je objavila ustanova Free Software Foundation.
    + + Ta program se razširja v upanju, da bo uporaben, vendar BREZ VSAKRŠNEGA JAMSTVA; tudi brez posredne zagotovitve CENOVNE VREDNOSTI ali PRIMERNOSTI ZA DOLOČEN NAMEN. Za podrobnosti glejte besedilo GNU General Public License.
    + + Skupaj s tem programom bi morali prejeti izvod Splošnega dovoljenja GNU (GNU General Public License). Podrobnosti licence so dostopne tudi na spletni strani http://www.gnu.org/licenses. +

    + Izvorna koda aplikacije je dosegljiva v repozitoriju Bitbucket: https://bitbucket.org/ul-fri-lgm/sna. +

    +
    +

    Pisavi ZRCola in SIMBola

    +

    + Besedilo je bilo pripravljeno z vnašalnim sistemom ZRCola (http://zrcola.zrc-sazu.si), ki ga je na Znanstvenoraziskovalnem centru SAZU v Ljubljani (http://www.zrc-sazu.si) razvil Peter Weiss. Peter Weiss je za potrebe SLA pripravil tudi nabor simbolov za kartiranje, in sicer je leta 2005 zasnoval pisavo 05 SIMBola na podlagi simbolov, ki so v rabi pri OLA, ALE in v drugih (predvsem slovanskih) jezikovnih atlasih. ZRC SAZU se za posredovano pisavo 05 SIMBola zahvaljujemo. +

    +
    +

    Karta slovenskih narečij

    +

    + Slovenski narečni atlas (SNA) temelji na Karti slovenskih narečij. Karto sta priredila Tine Logar in Jakob Rigler (1983) na osnovi Dialektološke karte slovenskega jezika Frana Ramovša (1931), novejših raziskav in gradiva Inštituta za slovenski jezik ZRC SAZU, jo dopolnili Vera Smole in Jožica Škofic (2011) in nato še sodelavci Dialektološke sekcije ISJFR ZRC SAZU (2016).

    + © Inštitut za slovenski jezik Frana Ramovša ZRC SAZU, Geografski inštitut Antona Melika ZRC SAZU ter Inštitut za antropološke in prostorske študije ZRC SAZU, 2016 +

    +
    +

    Vsebina (narečne besede)

    +

    + Vsebino Slovenskega narečnega atlasa (narečne besede, zvočni posnetki, analize) za temo Stare kmečke hiše so zbrali in pripravili študenti Filozofske fakultete Univerze v Ljubljani pod vodstvom prof. dr. Vere Smole in asist. dr. Mojce Kumin Horvat. +
    Vsem študentom, preteklim in bodočim, in njihovim informatorjem se zahvaljujemo za sodelovanje in njihov prispevek. +

    +
    +
    + Zadnja sprememba: avgust 2017, Gregor Šajn +
    +
    +
    diff --git a/sna/application/views/home/index_view.php b/sna/application/views/home/index_view.php new file mode 100644 index 0000000..bf4e068 --- /dev/null +++ b/sna/application/views/home/index_view.php @@ -0,0 +1,306 @@ +. +*/ + +?> + +
    +
    +
    +
    +

    Slovenski narečni atlas

    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + +
    + + + + + + +
    +
    + + +
    + +
    +
    + load->view('home/map_view.php'); + ?> +
    +
    +
    + +
    + + +
    +
    +
    +load->view('home/transcription_popup_view.php'); +?> +
    + + + diff --git a/sna/application/views/home/legend_view.php b/sna/application/views/home/legend_view.php new file mode 100644 index 0000000..5bb11cb --- /dev/null +++ b/sna/application/views/home/legend_view.php @@ -0,0 +1,92 @@ +. +*/ + + +if(isset($legend) and $legend) +{ + $last = array_pop($legend); + ksort($legend); + array_push($legend,$last); + ?> +
    +
    + Legenda +
    + + + + + + + + + + + $row) + { + ?> + + + + + + + + +
    ZnakLeksem
    + +
    +
    + + + diff --git a/sna/application/views/home/map_view.php b/sna/application/views/home/map_view.php new file mode 100644 index 0000000..7e65225 --- /dev/null +++ b/sna/application/views/home/map_view.php @@ -0,0 +1,11338 @@ +. +*/ + +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + load->view('home/legend_view.php'); + ?> +
    + +
    + +
    diff --git a/sna/application/views/home/transcription_popup_view.php b/sna/application/views/home/transcription_popup_view.php new file mode 100644 index 0000000..3ecb6ed --- /dev/null +++ b/sna/application/views/home/transcription_popup_view.php @@ -0,0 +1,76 @@ +. +*/ + + +if(isset($words_transcriptions) and $words_transcriptions) +{ + foreach($words_transcriptions as $id=>$transcription) + { + if(isset($transcription['phonetic_writing'])) + { + ?> + + + + diff --git a/sna/application/views/index.html b/sna/application/views/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/sna/application/views/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

    Directory access is forbidden.

    + + + diff --git a/sna/application/views/no_content_error.php b/sna/application/views/no_content_error.php new file mode 100644 index 0000000..40a9362 --- /dev/null +++ b/sna/application/views/no_content_error.php @@ -0,0 +1,48 @@ +. +*/ + +?> + +
    + load->view('admin/index_view.php'); + ?> +
    + load->view('admin/admin_nav.php'); + ?> +
    + +
    +
    +
    + + + + \ No newline at end of file diff --git a/sna/application/views/welcome_message.php b/sna/application/views/welcome_message.php new file mode 100644 index 0000000..f511563 --- /dev/null +++ b/sna/application/views/welcome_message.php @@ -0,0 +1,89 @@ + + + + + Welcome to CodeIgniter + + + + + +
    +

    Welcome to CodeIgniter!

    + +
    +

    The page you are looking at is being generated dynamically by CodeIgniter.

    + +

    If you would like to edit this page you'll find it located at:

    + application/views/welcome_message.php + +

    The corresponding controller for this page is found at:

    + application/controllers/Welcome.php + +

    If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.

    +
    + + +
    + + + \ No newline at end of file diff --git a/sna/assets/css/bootstrap-theme.css b/sna/assets/css/bootstrap-theme.css new file mode 100644 index 0000000..31d8882 --- /dev/null +++ b/sna/assets/css/bootstrap-theme.css @@ -0,0 +1,587 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +.btn-default, +.btn-primary, +.btn-success, +.btn-info, +.btn-warning, +.btn-danger { + text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); +} +.btn-default:active, +.btn-primary:active, +.btn-success:active, +.btn-info:active, +.btn-warning:active, +.btn-danger:active, +.btn-default.active, +.btn-primary.active, +.btn-success.active, +.btn-info.active, +.btn-warning.active, +.btn-danger.active { + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn-default.disabled, +.btn-primary.disabled, +.btn-success.disabled, +.btn-info.disabled, +.btn-warning.disabled, +.btn-danger.disabled, +.btn-default[disabled], +.btn-primary[disabled], +.btn-success[disabled], +.btn-info[disabled], +.btn-warning[disabled], +.btn-danger[disabled], +fieldset[disabled] .btn-default, +fieldset[disabled] .btn-primary, +fieldset[disabled] .btn-success, +fieldset[disabled] .btn-info, +fieldset[disabled] .btn-warning, +fieldset[disabled] .btn-danger { + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-default .badge, +.btn-primary .badge, +.btn-success .badge, +.btn-info .badge, +.btn-warning .badge, +.btn-danger .badge { + text-shadow: none; +} +.btn:active, +.btn.active { + background-image: none; +} +.btn-default { + text-shadow: 0 1px 0 #fff; + background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%); + background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); + background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #dbdbdb; + border-color: #ccc; +} +.btn-default:hover, +.btn-default:focus { + background-color: #e0e0e0; + background-position: 0 -15px; +} +.btn-default:active, +.btn-default.active { + background-color: #e0e0e0; + border-color: #dbdbdb; +} +.btn-default.disabled, +.btn-default[disabled], +fieldset[disabled] .btn-default, +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled.focus, +.btn-default[disabled].focus, +fieldset[disabled] .btn-default.focus, +.btn-default.disabled:active, +.btn-default[disabled]:active, +fieldset[disabled] .btn-default:active, +.btn-default.disabled.active, +.btn-default[disabled].active, +fieldset[disabled] .btn-default.active { + background-color: #e0e0e0; + background-image: none; +} +.btn-primary { + background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88)); + background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #245580; +} +.btn-primary:hover, +.btn-primary:focus { + background-color: #265a88; + background-position: 0 -15px; +} +.btn-primary:active, +.btn-primary.active { + background-color: #265a88; + border-color: #245580; +} +.btn-primary.disabled, +.btn-primary[disabled], +fieldset[disabled] .btn-primary, +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled.focus, +.btn-primary[disabled].focus, +fieldset[disabled] .btn-primary.focus, +.btn-primary.disabled:active, +.btn-primary[disabled]:active, +fieldset[disabled] .btn-primary:active, +.btn-primary.disabled.active, +.btn-primary[disabled].active, +fieldset[disabled] .btn-primary.active { + background-color: #265a88; + background-image: none; +} +.btn-success { + background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%); + background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641)); + background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #3e8f3e; +} +.btn-success:hover, +.btn-success:focus { + background-color: #419641; + background-position: 0 -15px; +} +.btn-success:active, +.btn-success.active { + background-color: #419641; + border-color: #3e8f3e; +} +.btn-success.disabled, +.btn-success[disabled], +fieldset[disabled] .btn-success, +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled.focus, +.btn-success[disabled].focus, +fieldset[disabled] .btn-success.focus, +.btn-success.disabled:active, +.btn-success[disabled]:active, +fieldset[disabled] .btn-success:active, +.btn-success.disabled.active, +.btn-success[disabled].active, +fieldset[disabled] .btn-success.active { + background-color: #419641; + background-image: none; +} +.btn-info { + background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); + background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2)); + background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #28a4c9; +} +.btn-info:hover, +.btn-info:focus { + background-color: #2aabd2; + background-position: 0 -15px; +} +.btn-info:active, +.btn-info.active { + background-color: #2aabd2; + border-color: #28a4c9; +} +.btn-info.disabled, +.btn-info[disabled], +fieldset[disabled] .btn-info, +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled.focus, +.btn-info[disabled].focus, +fieldset[disabled] .btn-info.focus, +.btn-info.disabled:active, +.btn-info[disabled]:active, +fieldset[disabled] .btn-info:active, +.btn-info.disabled.active, +.btn-info[disabled].active, +fieldset[disabled] .btn-info.active { + background-color: #2aabd2; + background-image: none; +} +.btn-warning { + background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); + background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316)); + background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #e38d13; +} +.btn-warning:hover, +.btn-warning:focus { + background-color: #eb9316; + background-position: 0 -15px; +} +.btn-warning:active, +.btn-warning.active { + background-color: #eb9316; + border-color: #e38d13; +} +.btn-warning.disabled, +.btn-warning[disabled], +fieldset[disabled] .btn-warning, +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled.focus, +.btn-warning[disabled].focus, +fieldset[disabled] .btn-warning.focus, +.btn-warning.disabled:active, +.btn-warning[disabled]:active, +fieldset[disabled] .btn-warning:active, +.btn-warning.disabled.active, +.btn-warning[disabled].active, +fieldset[disabled] .btn-warning.active { + background-color: #eb9316; + background-image: none; +} +.btn-danger { + background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%); + background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a)); + background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-color: #b92c28; +} +.btn-danger:hover, +.btn-danger:focus { + background-color: #c12e2a; + background-position: 0 -15px; +} +.btn-danger:active, +.btn-danger.active { + background-color: #c12e2a; + border-color: #b92c28; +} +.btn-danger.disabled, +.btn-danger[disabled], +fieldset[disabled] .btn-danger, +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled.focus, +.btn-danger[disabled].focus, +fieldset[disabled] .btn-danger.focus, +.btn-danger.disabled:active, +.btn-danger[disabled]:active, +fieldset[disabled] .btn-danger:active, +.btn-danger.disabled.active, +.btn-danger[disabled].active, +fieldset[disabled] .btn-danger.active { + background-color: #c12e2a; + background-image: none; +} +.thumbnail, +.img-thumbnail { + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); + box-shadow: 0 1px 2px rgba(0, 0, 0, .075); +} +.dropdown-menu > li > a:hover, +.dropdown-menu > li > a:focus { + background-color: #e8e8e8; + background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); + background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); + background-repeat: repeat-x; +} +.dropdown-menu > .active > a, +.dropdown-menu > .active > a:hover, +.dropdown-menu > .active > a:focus { + background-color: #2e6da4; + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); + background-repeat: repeat-x; +} +.navbar-default { + background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); + background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); + background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); +} +.navbar-default .navbar-nav > .open > a, +.navbar-default .navbar-nav > .active > a { + background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); + background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); + background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); + background-repeat: repeat-x; + -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); + box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); +} +.navbar-brand, +.navbar-nav > li > a { + text-shadow: 0 1px 0 rgba(255, 255, 255, .25); +} +.navbar-inverse { + background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); + background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); + background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + background-repeat: repeat-x; + border-radius: 4px; +} +.navbar-inverse .navbar-nav > .open > a, +.navbar-inverse .navbar-nav > .active > a { + background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); + background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); + background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); + background-repeat: repeat-x; + -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); + box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); +} +.navbar-inverse .navbar-brand, +.navbar-inverse .navbar-nav > li > a { + text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); +} +.navbar-static-top, +.navbar-fixed-top, +.navbar-fixed-bottom { + border-radius: 0; +} +@media (max-width: 767px) { + .navbar .navbar-nav .open .dropdown-menu > .active > a, + .navbar .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #fff; + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); + background-repeat: repeat-x; + } +} +.alert { + text-shadow: 0 1px 0 rgba(255, 255, 255, .2); + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); +} +.alert-success { + background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); + background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); + background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); + background-repeat: repeat-x; + border-color: #b2dba1; +} +.alert-info { + background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); + background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); + background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); + background-repeat: repeat-x; + border-color: #9acfea; +} +.alert-warning { + background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); + background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); + background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); + background-repeat: repeat-x; + border-color: #f5e79e; +} +.alert-danger { + background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); + background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); + background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); + background-repeat: repeat-x; + border-color: #dca7a7; +} +.progress { + background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); + background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); + background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar { + background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090)); + background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-success { + background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); + background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); + background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-info { + background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); + background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); + background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-warning { + background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); + background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); + background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-danger { + background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); + background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); + background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); + background-repeat: repeat-x; +} +.progress-bar-striped { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.list-group { + border-radius: 4px; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); + box-shadow: 0 1px 2px rgba(0, 0, 0, .075); +} +.list-group-item.active, +.list-group-item.active:hover, +.list-group-item.active:focus { + text-shadow: 0 -1px 0 #286090; + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0); + background-repeat: repeat-x; + border-color: #2b669a; +} +.list-group-item.active .badge, +.list-group-item.active:hover .badge, +.list-group-item.active:focus .badge { + text-shadow: none; +} +.panel { + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); + box-shadow: 0 1px 2px rgba(0, 0, 0, .05); +} +.panel-default > .panel-heading { + background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); + background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); + background-repeat: repeat-x; +} +.panel-primary > .panel-heading { + background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); + background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); + background-repeat: repeat-x; +} +.panel-success > .panel-heading { + background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); + background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); + background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); + background-repeat: repeat-x; +} +.panel-info > .panel-heading { + background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); + background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); + background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); + background-repeat: repeat-x; +} +.panel-warning > .panel-heading { + background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); + background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); + background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); + background-repeat: repeat-x; +} +.panel-danger > .panel-heading { + background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); + background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); + background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); + background-repeat: repeat-x; +} +.well { + background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); + background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); + background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); + background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); + background-repeat: repeat-x; + border-color: #dcdcdc; + -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); +} +/*# sourceMappingURL=bootstrap-theme.css.map */ diff --git a/sna/assets/css/bootstrap-theme.css.map b/sna/assets/css/bootstrap-theme.css.map new file mode 100644 index 0000000..d876f60 --- /dev/null +++ b/sna/assets/css/bootstrap-theme.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["bootstrap-theme.css","less/theme.less","less/mixins/vendor-prefixes.less","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":[],"mappings":"AAAA;;;;GAIG;ACeH;;;;;;EAME,yCAAA;EC2CA,4FAAA;EACQ,oFAAA;CFvDT;ACgBC;;;;;;;;;;;;ECsCA,yDAAA;EACQ,iDAAA;CFxCT;ACMC;;;;;;;;;;;;;;;;;;ECiCA,yBAAA;EACQ,iBAAA;CFnBT;AC/BD;;;;;;EAuBI,kBAAA;CDgBH;ACyBC;;EAEE,uBAAA;CDvBH;AC4BD;EErEI,sEAAA;EACA,iEAAA;EACA,2FAAA;EAAA,oEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4CA,4BAAA;EACA,sBAAA;EAuC2C,0BAAA;EAA2B,mBAAA;CDjBvE;ACpBC;;EAEE,0BAAA;EACA,6BAAA;CDsBH;ACnBC;;EAEE,0BAAA;EACA,sBAAA;CDqBH;ACfG;;;;;;;;;;;;;;;;;;EAME,0BAAA;EACA,uBAAA;CD6BL;ACbD;EEtEI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4CA,4BAAA;EACA,sBAAA;CD8DD;AC5DC;;EAEE,0BAAA;EACA,6BAAA;CD8DH;AC3DC;;EAEE,0BAAA;EACA,sBAAA;CD6DH;ACvDG;;;;;;;;;;;;;;;;;;EAME,0BAAA;EACA,uBAAA;CDqEL;ACpDD;EEvEI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4CA,4BAAA;EACA,sBAAA;CDsGD;ACpGC;;EAEE,0BAAA;EACA,6BAAA;CDsGH;ACnGC;;EAEE,0BAAA;EACA,sBAAA;CDqGH;AC/FG;;;;;;;;;;;;;;;;;;EAME,0BAAA;EACA,uBAAA;CD6GL;AC3FD;EExEI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4CA,4BAAA;EACA,sBAAA;CD8ID;AC5IC;;EAEE,0BAAA;EACA,6BAAA;CD8IH;AC3IC;;EAEE,0BAAA;EACA,sBAAA;CD6IH;ACvIG;;;;;;;;;;;;;;;;;;EAME,0BAAA;EACA,uBAAA;CDqJL;AClID;EEzEI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4CA,4BAAA;EACA,sBAAA;CDsLD;ACpLC;;EAEE,0BAAA;EACA,6BAAA;CDsLH;ACnLC;;EAEE,0BAAA;EACA,sBAAA;CDqLH;AC/KG;;;;;;;;;;;;;;;;;;EAME,0BAAA;EACA,uBAAA;CD6LL;ACzKD;EE1EI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EAEA,uHAAA;ECnBF,oEAAA;EH4CA,4BAAA;EACA,sBAAA;CD8ND;AC5NC;;EAEE,0BAAA;EACA,6BAAA;CD8NH;AC3NC;;EAEE,0BAAA;EACA,sBAAA;CD6NH;ACvNG;;;;;;;;;;;;;;;;;;EAME,0BAAA;EACA,uBAAA;CDqOL;AC1MD;;EClCE,mDAAA;EACQ,2CAAA;CFgPT;ACrMD;;EE3FI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EF0FF,0BAAA;CD2MD;ACzMD;;;EEhGI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EFgGF,0BAAA;CD+MD;ACtMD;EE7GI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;ECnBF,oEAAA;EH+HA,mBAAA;ECjEA,4FAAA;EACQ,oFAAA;CF8QT;ACjND;;EE7GI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;ED2CF,yDAAA;EACQ,iDAAA;CFwRT;AC9MD;;EAEE,+CAAA;CDgND;AC5MD;EEhII,sEAAA;EACA,iEAAA;EACA,2FAAA;EAAA,oEAAA;EACA,4BAAA;EACA,uHAAA;ECnBF,oEAAA;EHkJA,mBAAA;CDkND;ACrND;;EEhII,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;ED2CF,wDAAA;EACQ,gDAAA;CF+ST;AC/ND;;EAYI,0CAAA;CDuNH;AClND;;;EAGE,iBAAA;CDoND;AC/LD;EAfI;;;IAGE,YAAA;IE7JF,yEAAA;IACA,oEAAA;IACA,8FAAA;IAAA,uEAAA;IACA,4BAAA;IACA,uHAAA;GH+WD;CACF;AC3MD;EACE,8CAAA;EC3HA,2FAAA;EACQ,mFAAA;CFyUT;ACnMD;EEtLI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EF8KF,sBAAA;CD+MD;AC1MD;EEvLI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EF8KF,sBAAA;CDuND;ACjND;EExLI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EF8KF,sBAAA;CD+ND;ACxND;EEzLI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EF8KF,sBAAA;CDuOD;ACxND;EEjMI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CH4ZH;ACrND;EE3MI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHmaH;AC3ND;EE5MI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CH0aH;ACjOD;EE7MI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHibH;ACvOD;EE9MI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHwbH;AC7OD;EE/MI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CH+bH;AChPD;EElLI,8MAAA;EACA,yMAAA;EACA,sMAAA;CHqaH;AC5OD;EACE,mBAAA;EC9KA,mDAAA;EACQ,2CAAA;CF6ZT;AC7OD;;;EAGE,8BAAA;EEnOE,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EFiOF,sBAAA;CDmPD;ACxPD;;;EAQI,kBAAA;CDqPH;AC3OD;ECnME,kDAAA;EACQ,0CAAA;CFibT;ACrOD;EE5PI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHoeH;AC3OD;EE7PI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CH2eH;ACjPD;EE9PI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHkfH;ACvPD;EE/PI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHyfH;AC7PD;EEhQI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHggBH;ACnQD;EEjQI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;CHugBH;ACnQD;EExQI,yEAAA;EACA,oEAAA;EACA,8FAAA;EAAA,uEAAA;EACA,4BAAA;EACA,uHAAA;EFsQF,sBAAA;EC3NA,0FAAA;EACQ,kFAAA;CFqeT","file":"bootstrap-theme.css","sourcesContent":["/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.btn-default:active,\n.btn-primary:active,\n.btn-success:active,\n.btn-info:active,\n.btn-warning:active,\n.btn-danger:active,\n.btn-default.active,\n.btn-primary.active,\n.btn-success.active,\n.btn-info.active,\n.btn-warning.active,\n.btn-danger.active {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn-default.disabled,\n.btn-primary.disabled,\n.btn-success.disabled,\n.btn-info.disabled,\n.btn-warning.disabled,\n.btn-danger.disabled,\n.btn-default[disabled],\n.btn-primary[disabled],\n.btn-success[disabled],\n.btn-info[disabled],\n.btn-warning[disabled],\n.btn-danger[disabled],\nfieldset[disabled] .btn-default,\nfieldset[disabled] .btn-primary,\nfieldset[disabled] .btn-success,\nfieldset[disabled] .btn-info,\nfieldset[disabled] .btn-warning,\nfieldset[disabled] .btn-danger {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-default .badge,\n.btn-primary .badge,\n.btn-success .badge,\n.btn-info .badge,\n.btn-warning .badge,\n.btn-danger .badge {\n text-shadow: none;\n}\n.btn:active,\n.btn.active {\n background-image: none;\n}\n.btn-default {\n background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #dbdbdb;\n text-shadow: 0 1px 0 #fff;\n border-color: #ccc;\n}\n.btn-default:hover,\n.btn-default:focus {\n background-color: #e0e0e0;\n background-position: 0 -15px;\n}\n.btn-default:active,\n.btn-default.active {\n background-color: #e0e0e0;\n border-color: #dbdbdb;\n}\n.btn-default.disabled,\n.btn-default[disabled],\nfieldset[disabled] .btn-default,\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled.focus,\n.btn-default[disabled].focus,\nfieldset[disabled] .btn-default.focus,\n.btn-default.disabled:active,\n.btn-default[disabled]:active,\nfieldset[disabled] .btn-default:active,\n.btn-default.disabled.active,\n.btn-default[disabled].active,\nfieldset[disabled] .btn-default.active {\n background-color: #e0e0e0;\n background-image: none;\n}\n.btn-primary {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #245580;\n}\n.btn-primary:hover,\n.btn-primary:focus {\n background-color: #265a88;\n background-position: 0 -15px;\n}\n.btn-primary:active,\n.btn-primary.active {\n background-color: #265a88;\n border-color: #245580;\n}\n.btn-primary.disabled,\n.btn-primary[disabled],\nfieldset[disabled] .btn-primary,\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled.focus,\n.btn-primary[disabled].focus,\nfieldset[disabled] .btn-primary.focus,\n.btn-primary.disabled:active,\n.btn-primary[disabled]:active,\nfieldset[disabled] .btn-primary:active,\n.btn-primary.disabled.active,\n.btn-primary[disabled].active,\nfieldset[disabled] .btn-primary.active {\n background-color: #265a88;\n background-image: none;\n}\n.btn-success {\n background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);\n background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);\n background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #3e8f3e;\n}\n.btn-success:hover,\n.btn-success:focus {\n background-color: #419641;\n background-position: 0 -15px;\n}\n.btn-success:active,\n.btn-success.active {\n background-color: #419641;\n border-color: #3e8f3e;\n}\n.btn-success.disabled,\n.btn-success[disabled],\nfieldset[disabled] .btn-success,\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled.focus,\n.btn-success[disabled].focus,\nfieldset[disabled] .btn-success.focus,\n.btn-success.disabled:active,\n.btn-success[disabled]:active,\nfieldset[disabled] .btn-success:active,\n.btn-success.disabled.active,\n.btn-success[disabled].active,\nfieldset[disabled] .btn-success.active {\n background-color: #419641;\n background-image: none;\n}\n.btn-info {\n background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);\n background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);\n background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #28a4c9;\n}\n.btn-info:hover,\n.btn-info:focus {\n background-color: #2aabd2;\n background-position: 0 -15px;\n}\n.btn-info:active,\n.btn-info.active {\n background-color: #2aabd2;\n border-color: #28a4c9;\n}\n.btn-info.disabled,\n.btn-info[disabled],\nfieldset[disabled] .btn-info,\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled.focus,\n.btn-info[disabled].focus,\nfieldset[disabled] .btn-info.focus,\n.btn-info.disabled:active,\n.btn-info[disabled]:active,\nfieldset[disabled] .btn-info:active,\n.btn-info.disabled.active,\n.btn-info[disabled].active,\nfieldset[disabled] .btn-info.active {\n background-color: #2aabd2;\n background-image: none;\n}\n.btn-warning {\n background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);\n background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);\n background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #e38d13;\n}\n.btn-warning:hover,\n.btn-warning:focus {\n background-color: #eb9316;\n background-position: 0 -15px;\n}\n.btn-warning:active,\n.btn-warning.active {\n background-color: #eb9316;\n border-color: #e38d13;\n}\n.btn-warning.disabled,\n.btn-warning[disabled],\nfieldset[disabled] .btn-warning,\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled.focus,\n.btn-warning[disabled].focus,\nfieldset[disabled] .btn-warning.focus,\n.btn-warning.disabled:active,\n.btn-warning[disabled]:active,\nfieldset[disabled] .btn-warning:active,\n.btn-warning.disabled.active,\n.btn-warning[disabled].active,\nfieldset[disabled] .btn-warning.active {\n background-color: #eb9316;\n background-image: none;\n}\n.btn-danger {\n background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);\n background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);\n background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #b92c28;\n}\n.btn-danger:hover,\n.btn-danger:focus {\n background-color: #c12e2a;\n background-position: 0 -15px;\n}\n.btn-danger:active,\n.btn-danger.active {\n background-color: #c12e2a;\n border-color: #b92c28;\n}\n.btn-danger.disabled,\n.btn-danger[disabled],\nfieldset[disabled] .btn-danger,\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled.focus,\n.btn-danger[disabled].focus,\nfieldset[disabled] .btn-danger.focus,\n.btn-danger.disabled:active,\n.btn-danger[disabled]:active,\nfieldset[disabled] .btn-danger:active,\n.btn-danger.disabled.active,\n.btn-danger[disabled].active,\nfieldset[disabled] .btn-danger.active {\n background-color: #c12e2a;\n background-image: none;\n}\n.thumbnail,\n.img-thumbnail {\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n background-color: #e8e8e8;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);\n background-color: #2e6da4;\n}\n.navbar-default {\n background-image: -webkit-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);\n background-image: -o-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);\n background-image: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .active > a {\n background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);\n background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);\n background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);\n -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);\n}\n.navbar-inverse {\n background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);\n background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);\n background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n border-radius: 4px;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .active > a {\n background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);\n background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);\n background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);\n -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);\n box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);\n}\n.navbar-inverse .navbar-brand,\n.navbar-inverse .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n@media (max-width: 767px) {\n .navbar .navbar-nav .open .dropdown-menu > .active > a,\n .navbar .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #fff;\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);\n }\n}\n.alert {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.alert-success {\n background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);\n background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);\n background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);\n border-color: #b2dba1;\n}\n.alert-info {\n background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);\n background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);\n background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);\n border-color: #9acfea;\n}\n.alert-warning {\n background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);\n background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);\n background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);\n border-color: #f5e79e;\n}\n.alert-danger {\n background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);\n background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);\n background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);\n border-color: #dca7a7;\n}\n.progress {\n background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);\n}\n.progress-bar {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);\n}\n.progress-bar-success {\n background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);\n background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);\n background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);\n}\n.progress-bar-info {\n background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);\n background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);\n background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);\n}\n.progress-bar-warning {\n background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);\n background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);\n background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);\n}\n.progress-bar-danger {\n background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);\n background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);\n background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);\n}\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.list-group {\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 #286090;\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);\n border-color: #2b669a;\n}\n.list-group-item.active .badge,\n.list-group-item.active:hover .badge,\n.list-group-item.active:focus .badge {\n text-shadow: none;\n}\n.panel {\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.panel-default > .panel-heading {\n background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n}\n.panel-primary > .panel-heading {\n background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);\n background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);\n}\n.panel-success > .panel-heading {\n background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);\n background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);\n background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);\n}\n.panel-info > .panel-heading {\n background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);\n background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);\n background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);\n}\n.panel-warning > .panel-heading {\n background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);\n background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);\n background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);\n}\n.panel-danger > .panel-heading {\n background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);\n background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);\n background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);\n}\n.well {\n background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);\n border-color: #dcdcdc;\n -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);\n}\n/*# sourceMappingURL=bootstrap-theme.css.map */","/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n//\n// Load core variables and mixins\n// --------------------------------------------------\n\n@import \"variables.less\";\n@import \"mixins.less\";\n\n\n//\n// Buttons\n// --------------------------------------------------\n\n// Common styles\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0,0,0,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n // Reset the shadow\n &:active,\n &.active {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n .box-shadow(none);\n }\n\n .badge {\n text-shadow: none;\n }\n}\n\n// Mixin for generating new styles\n.btn-styles(@btn-color: #555) {\n #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));\n .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620\n background-repeat: repeat-x;\n border-color: darken(@btn-color, 14%);\n\n &:hover,\n &:focus {\n background-color: darken(@btn-color, 12%);\n background-position: 0 -15px;\n }\n\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n border-color: darken(@btn-color, 14%);\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n &,\n &:hover,\n &:focus,\n &.focus,\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n background-image: none;\n }\n }\n}\n\n// Common styles\n.btn {\n // Remove the gradient for the pressed/active state\n &:active,\n &.active {\n background-image: none;\n }\n}\n\n// Apply the mixin to the buttons\n.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }\n.btn-primary { .btn-styles(@btn-primary-bg); }\n.btn-success { .btn-styles(@btn-success-bg); }\n.btn-info { .btn-styles(@btn-info-bg); }\n.btn-warning { .btn-styles(@btn-warning-bg); }\n.btn-danger { .btn-styles(@btn-danger-bg); }\n\n\n//\n// Images\n// --------------------------------------------------\n\n.thumbnail,\n.img-thumbnail {\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n\n\n//\n// Dropdowns\n// --------------------------------------------------\n\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));\n background-color: darken(@dropdown-link-hover-bg, 5%);\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n background-color: darken(@dropdown-link-active-bg, 5%);\n}\n\n\n//\n// Navbar\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered\n border-radius: @navbar-border-radius;\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));\n }\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255,255,255,.25);\n}\n\n// Inverted navbar\n.navbar-inverse {\n #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257\n border-radius: @navbar-border-radius;\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));\n }\n\n .navbar-brand,\n .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0,0,0,.25);\n }\n}\n\n// Undo rounded corners in static and fixed navbars\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n\n// Fix active state of dropdown items in collapsed mode\n@media (max-width: @grid-float-breakpoint-max) {\n .navbar .navbar-nav .open .dropdown-menu > .active > a {\n &,\n &:hover,\n &:focus {\n color: #fff;\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n }\n }\n}\n\n\n//\n// Alerts\n// --------------------------------------------------\n\n// Common styles\n.alert {\n text-shadow: 0 1px 0 rgba(255,255,255,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);\n .box-shadow(@shadow);\n}\n\n// Mixin for generating new styles\n.alert-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));\n border-color: darken(@color, 15%);\n}\n\n// Apply the mixin to the alerts\n.alert-success { .alert-styles(@alert-success-bg); }\n.alert-info { .alert-styles(@alert-info-bg); }\n.alert-warning { .alert-styles(@alert-warning-bg); }\n.alert-danger { .alert-styles(@alert-danger-bg); }\n\n\n//\n// Progress bars\n// --------------------------------------------------\n\n// Give the progress background some depth\n.progress {\n #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)\n}\n\n// Mixin for generating new styles\n.progress-bar-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));\n}\n\n// Apply the mixin to the progress bars\n.progress-bar { .progress-bar-styles(@progress-bar-bg); }\n.progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }\n.progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }\n.progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }\n.progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }\n\n// Reset the striped class because our mixins don't do multiple gradients and\n// the above custom styles override the new `.progress-bar-striped` in v3.2.0.\n.progress-bar-striped {\n #gradient > .striped();\n}\n\n\n//\n// List groups\n// --------------------------------------------------\n\n.list-group {\n border-radius: @border-radius-base;\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);\n #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));\n border-color: darken(@list-group-active-border, 7.5%);\n\n .badge {\n text-shadow: none;\n }\n}\n\n\n//\n// Panels\n// --------------------------------------------------\n\n// Common styles\n.panel {\n .box-shadow(0 1px 2px rgba(0,0,0,.05));\n}\n\n// Mixin for generating new styles\n.panel-heading-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));\n}\n\n// Apply the mixin to the panel headings only\n.panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }\n.panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }\n.panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }\n.panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }\n.panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }\n.panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }\n\n\n//\n// Wells\n// --------------------------------------------------\n\n.well {\n #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);\n border-color: darken(@well-bg, 10%);\n @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They have been removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility) {\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n"]} \ No newline at end of file diff --git a/sna/assets/css/bootstrap-theme.min.css b/sna/assets/css/bootstrap-theme.min.css new file mode 100644 index 0000000..5e39401 --- /dev/null +++ b/sna/assets/css/bootstrap-theme.min.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{-webkit-box-shadow:none;box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} +/*# sourceMappingURL=bootstrap-theme.min.css.map */ \ No newline at end of file diff --git a/sna/assets/css/bootstrap-theme.min.css.map b/sna/assets/css/bootstrap-theme.min.css.map new file mode 100644 index 0000000..94813e9 --- /dev/null +++ b/sna/assets/css/bootstrap-theme.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["less/theme.less","less/mixins/vendor-prefixes.less","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":[],"mappings":";;;;AAmBA,YAAA,aAAA,UAAA,aAAA,aAAA,aAME,YAAA,EAAA,KAAA,EAAA,eC2CA,mBAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBDvCR,mBAAA,mBAAA,oBAAA,oBAAA,iBAAA,iBAAA,oBAAA,oBAAA,oBAAA,oBAAA,oBAAA,oBCsCA,mBAAA,MAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,iBDlCR,qBAAA,sBAAA,sBAAA,uBAAA,mBAAA,oBAAA,sBAAA,uBAAA,sBAAA,uBAAA,sBAAA,uBAAA,+BAAA,gCAAA,6BAAA,gCAAA,gCAAA,gCCiCA,mBAAA,KACQ,WAAA,KDlDV,mBAAA,oBAAA,iBAAA,oBAAA,oBAAA,oBAuBI,YAAA,KAyCF,YAAA,YAEE,iBAAA,KAKJ,aErEI,YAAA,EAAA,IAAA,EAAA,KACA,iBAAA,iDACA,iBAAA,4CAAA,iBAAA,qEAEA,iBAAA,+CCnBF,OAAA,+GH4CA,OAAA,0DACA,kBAAA,SAuC2C,aAAA,QAA2B,aAAA,KArCtE,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAgBN,aEtEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAiBN,aEvEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAkBN,UExEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,gBAAA,gBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,iBAAA,iBAEE,iBAAA,QACA,aAAA,QAMA,mBAAA,0BAAA,yBAAA,0BAAA,yBAAA,yBAAA,oBAAA,2BAAA,0BAAA,2BAAA,0BAAA,0BAAA,6BAAA,oCAAA,mCAAA,oCAAA,mCAAA,mCAME,iBAAA,QACA,iBAAA,KAmBN,aEzEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAoBN,YE1EI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,kBAAA,kBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,mBAAA,mBAEE,iBAAA,QACA,aAAA,QAMA,qBAAA,4BAAA,2BAAA,4BAAA,2BAAA,2BAAA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,+BAAA,sCAAA,qCAAA,sCAAA,qCAAA,qCAME,iBAAA,QACA,iBAAA,KA2BN,eAAA,WClCE,mBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,EAAA,IAAA,IAAA,iBD2CV,0BAAA,0BE3FI,iBAAA,QACA,iBAAA,oDACA,iBAAA,+CAAA,iBAAA,wEACA,iBAAA,kDACA,OAAA,+GF0FF,kBAAA,SAEF,yBAAA,+BAAA,+BEhGI,iBAAA,QACA,iBAAA,oDACA,iBAAA,+CAAA,iBAAA,wEACA,iBAAA,kDACA,OAAA,+GFgGF,kBAAA,SASF,gBE7GI,iBAAA,iDACA,iBAAA,4CACA,iBAAA,qEAAA,iBAAA,+CACA,OAAA,+GACA,OAAA,0DCnBF,kBAAA,SH+HA,cAAA,ICjEA,mBAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBD6DV,sCAAA,oCE7GI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SD2CF,mBAAA,MAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,iBD0EV,cAAA,iBAEE,YAAA,EAAA,IAAA,EAAA,sBAIF,gBEhII,iBAAA,iDACA,iBAAA,4CACA,iBAAA,qEAAA,iBAAA,+CACA,OAAA,+GACA,OAAA,0DCnBF,kBAAA,SHkJA,cAAA,IAHF,sCAAA,oCEhII,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SD2CF,mBAAA,MAAA,EAAA,IAAA,IAAA,gBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,gBDgFV,8BAAA,iCAYI,YAAA,EAAA,KAAA,EAAA,gBAKJ,qBAAA,kBAAA,mBAGE,cAAA,EAqBF,yBAfI,mDAAA,yDAAA,yDAGE,MAAA,KE7JF,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,UFqKJ,OACE,YAAA,EAAA,IAAA,EAAA,qBC3HA,mBAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,gBACQ,WAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,gBDsIV,eEtLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAKF,YEvLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAMF,eExLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAOF,cEzLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAeF,UEjMI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFuMJ,cE3MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFwMJ,sBE5MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFyMJ,mBE7MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF0MJ,sBE9MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF2MJ,qBE/MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF+MJ,sBElLI,iBAAA,yKACA,iBAAA,oKACA,iBAAA,iKFyLJ,YACE,cAAA,IC9KA,mBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,EAAA,IAAA,IAAA,iBDgLV,wBAAA,8BAAA,8BAGE,YAAA,EAAA,KAAA,EAAA,QEnOE,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFiOF,aAAA,QALF,+BAAA,qCAAA,qCAQI,YAAA,KAUJ,OCnME,mBAAA,EAAA,IAAA,IAAA,gBACQ,WAAA,EAAA,IAAA,IAAA,gBD4MV,8BE5PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFyPJ,8BE7PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF0PJ,8BE9PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF2PJ,2BE/PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF4PJ,8BEhQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF6PJ,6BEjQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFoQJ,MExQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFsQF,aAAA,QC3NA,mBAAA,MAAA,EAAA,IAAA,IAAA,gBAAA,EAAA,IAAA,EAAA,qBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,gBAAA,EAAA,IAAA,EAAA","sourcesContent":["/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n//\n// Load core variables and mixins\n// --------------------------------------------------\n\n@import \"variables.less\";\n@import \"mixins.less\";\n\n\n//\n// Buttons\n// --------------------------------------------------\n\n// Common styles\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0,0,0,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n // Reset the shadow\n &:active,\n &.active {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n .box-shadow(none);\n }\n\n .badge {\n text-shadow: none;\n }\n}\n\n// Mixin for generating new styles\n.btn-styles(@btn-color: #555) {\n #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));\n .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620\n background-repeat: repeat-x;\n border-color: darken(@btn-color, 14%);\n\n &:hover,\n &:focus {\n background-color: darken(@btn-color, 12%);\n background-position: 0 -15px;\n }\n\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n border-color: darken(@btn-color, 14%);\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n &,\n &:hover,\n &:focus,\n &.focus,\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n background-image: none;\n }\n }\n}\n\n// Common styles\n.btn {\n // Remove the gradient for the pressed/active state\n &:active,\n &.active {\n background-image: none;\n }\n}\n\n// Apply the mixin to the buttons\n.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }\n.btn-primary { .btn-styles(@btn-primary-bg); }\n.btn-success { .btn-styles(@btn-success-bg); }\n.btn-info { .btn-styles(@btn-info-bg); }\n.btn-warning { .btn-styles(@btn-warning-bg); }\n.btn-danger { .btn-styles(@btn-danger-bg); }\n\n\n//\n// Images\n// --------------------------------------------------\n\n.thumbnail,\n.img-thumbnail {\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n\n\n//\n// Dropdowns\n// --------------------------------------------------\n\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));\n background-color: darken(@dropdown-link-hover-bg, 5%);\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n background-color: darken(@dropdown-link-active-bg, 5%);\n}\n\n\n//\n// Navbar\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered\n border-radius: @navbar-border-radius;\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));\n }\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255,255,255,.25);\n}\n\n// Inverted navbar\n.navbar-inverse {\n #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257\n border-radius: @navbar-border-radius;\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));\n }\n\n .navbar-brand,\n .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0,0,0,.25);\n }\n}\n\n// Undo rounded corners in static and fixed navbars\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n\n// Fix active state of dropdown items in collapsed mode\n@media (max-width: @grid-float-breakpoint-max) {\n .navbar .navbar-nav .open .dropdown-menu > .active > a {\n &,\n &:hover,\n &:focus {\n color: #fff;\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n }\n }\n}\n\n\n//\n// Alerts\n// --------------------------------------------------\n\n// Common styles\n.alert {\n text-shadow: 0 1px 0 rgba(255,255,255,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);\n .box-shadow(@shadow);\n}\n\n// Mixin for generating new styles\n.alert-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));\n border-color: darken(@color, 15%);\n}\n\n// Apply the mixin to the alerts\n.alert-success { .alert-styles(@alert-success-bg); }\n.alert-info { .alert-styles(@alert-info-bg); }\n.alert-warning { .alert-styles(@alert-warning-bg); }\n.alert-danger { .alert-styles(@alert-danger-bg); }\n\n\n//\n// Progress bars\n// --------------------------------------------------\n\n// Give the progress background some depth\n.progress {\n #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)\n}\n\n// Mixin for generating new styles\n.progress-bar-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));\n}\n\n// Apply the mixin to the progress bars\n.progress-bar { .progress-bar-styles(@progress-bar-bg); }\n.progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }\n.progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }\n.progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }\n.progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }\n\n// Reset the striped class because our mixins don't do multiple gradients and\n// the above custom styles override the new `.progress-bar-striped` in v3.2.0.\n.progress-bar-striped {\n #gradient > .striped();\n}\n\n\n//\n// List groups\n// --------------------------------------------------\n\n.list-group {\n border-radius: @border-radius-base;\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);\n #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));\n border-color: darken(@list-group-active-border, 7.5%);\n\n .badge {\n text-shadow: none;\n }\n}\n\n\n//\n// Panels\n// --------------------------------------------------\n\n// Common styles\n.panel {\n .box-shadow(0 1px 2px rgba(0,0,0,.05));\n}\n\n// Mixin for generating new styles\n.panel-heading-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));\n}\n\n// Apply the mixin to the panel headings only\n.panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }\n.panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }\n.panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }\n.panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }\n.panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }\n.panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }\n\n\n//\n// Wells\n// --------------------------------------------------\n\n.well {\n #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);\n border-color: darken(@well-bg, 10%);\n @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They have been removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility) {\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n"]} \ No newline at end of file diff --git a/sna/assets/css/bootstrap.css b/sna/assets/css/bootstrap.css new file mode 100644 index 0000000..6167622 --- /dev/null +++ b/sna/assets/css/bootstrap.css @@ -0,0 +1,6757 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ +html { + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} +body { + margin: 0; +} +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; +} +audio:not([controls]) { + display: none; + height: 0; +} +[hidden], +template { + display: none; +} +a { + background-color: transparent; +} +a:active, +a:hover { + outline: 0; +} +abbr[title] { + border-bottom: 1px dotted; +} +b, +strong { + font-weight: bold; +} +dfn { + font-style: italic; +} +h1 { + margin: .67em 0; + font-size: 2em; +} +mark { + color: #000; + background: #ff0; +} +small { + font-size: 80%; +} +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} +sup { + top: -.5em; +} +sub { + bottom: -.25em; +} +img { + border: 0; +} +svg:not(:root) { + overflow: hidden; +} +figure { + margin: 1em 40px; +} +hr { + height: 0; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +pre { + overflow: auto; +} +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} +button, +input, +optgroup, +select, +textarea { + margin: 0; + font: inherit; + color: inherit; +} +button { + overflow: visible; +} +button, +select { + text-transform: none; +} +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; +} +button[disabled], +html input[disabled] { + cursor: default; +} +button::-moz-focus-inner, +input::-moz-focus-inner { + padding: 0; + border: 0; +} +input { + line-height: normal; +} +input[type="checkbox"], +input[type="radio"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0; +} +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +input[type="search"] { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + -webkit-appearance: textfield; +} +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +fieldset { + padding: .35em .625em .75em; + margin: 0 2px; + border: 1px solid #c0c0c0; +} +legend { + padding: 0; + border: 0; +} +textarea { + overflow: auto; +} +optgroup { + font-weight: bold; +} +table { + border-spacing: 0; + border-collapse: collapse; +} +td, +th { + padding: 0; +} +/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ +@media print { + *, + *:before, + *:after { + color: #000 !important; + text-shadow: none !important; + background: transparent !important; + -webkit-box-shadow: none !important; + box-shadow: none !important; + } + a, + a:visited { + text-decoration: underline; + } + a[href]:after { + content: " (" attr(href) ")"; + } + abbr[title]:after { + content: " (" attr(title) ")"; + } + a[href^="#"]:after, + a[href^="javascript:"]:after { + content: ""; + } + pre, + blockquote { + border: 1px solid #999; + + page-break-inside: avoid; + } + thead { + display: table-header-group; + } + tr, + img { + page-break-inside: avoid; + } + img { + max-width: 100% !important; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } + .navbar { + display: none; + } + .btn > .caret, + .dropup > .btn > .caret { + border-top-color: #000 !important; + } + .label { + border: 1px solid #000; + } + .table { + border-collapse: collapse !important; + } + .table td, + .table th { + background-color: #fff !important; + } + .table-bordered th, + .table-bordered td { + border: 1px solid #ddd !important; + } +} +@font-face { + font-family: 'Glyphicons Halflings'; + + src: url('../fonts/glyphicons-halflings-regular.eot'); + src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); +} +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.glyphicon-asterisk:before { + content: "\002a"; +} +.glyphicon-plus:before { + content: "\002b"; +} +.glyphicon-euro:before, +.glyphicon-eur:before { + content: "\20ac"; +} +.glyphicon-minus:before { + content: "\2212"; +} +.glyphicon-cloud:before { + content: "\2601"; +} +.glyphicon-envelope:before { + content: "\2709"; +} +.glyphicon-pencil:before { + content: "\270f"; +} +.glyphicon-glass:before { + content: "\e001"; +} +.glyphicon-music:before { + content: "\e002"; +} +.glyphicon-search:before { + content: "\e003"; +} +.glyphicon-heart:before { + content: "\e005"; +} +.glyphicon-star:before { + content: "\e006"; +} +.glyphicon-star-empty:before { + content: "\e007"; +} +.glyphicon-user:before { + content: "\e008"; +} +.glyphicon-film:before { + content: "\e009"; +} +.glyphicon-th-large:before { + content: "\e010"; +} +.glyphicon-th:before { + content: "\e011"; +} +.glyphicon-th-list:before { + content: "\e012"; +} +.glyphicon-ok:before { + content: "\e013"; +} +.glyphicon-remove:before { + content: "\e014"; +} +.glyphicon-zoom-in:before { + content: "\e015"; +} +.glyphicon-zoom-out:before { + content: "\e016"; +} +.glyphicon-off:before { + content: "\e017"; +} +.glyphicon-signal:before { + content: "\e018"; +} +.glyphicon-cog:before { + content: "\e019"; +} +.glyphicon-trash:before { + content: "\e020"; +} +.glyphicon-home:before { + content: "\e021"; +} +.glyphicon-file:before { + content: "\e022"; +} +.glyphicon-time:before { + content: "\e023"; +} +.glyphicon-road:before { + content: "\e024"; +} +.glyphicon-download-alt:before { + content: "\e025"; +} +.glyphicon-download:before { + content: "\e026"; +} +.glyphicon-upload:before { + content: "\e027"; +} +.glyphicon-inbox:before { + content: "\e028"; +} +.glyphicon-play-circle:before { + content: "\e029"; +} +.glyphicon-repeat:before { + content: "\e030"; +} +.glyphicon-refresh:before { + content: "\e031"; +} +.glyphicon-list-alt:before { + content: "\e032"; +} +.glyphicon-lock:before { + content: "\e033"; +} +.glyphicon-flag:before { + content: "\e034"; +} +.glyphicon-headphones:before { + content: "\e035"; +} +.glyphicon-volume-off:before { + content: "\e036"; +} +.glyphicon-volume-down:before { + content: "\e037"; +} +.glyphicon-volume-up:before { + content: "\e038"; +} +.glyphicon-qrcode:before { + content: "\e039"; +} +.glyphicon-barcode:before { + content: "\e040"; +} +.glyphicon-tag:before { + content: "\e041"; +} +.glyphicon-tags:before { + content: "\e042"; +} +.glyphicon-book:before { + content: "\e043"; +} +.glyphicon-bookmark:before { + content: "\e044"; +} +.glyphicon-print:before { + content: "\e045"; +} +.glyphicon-camera:before { + content: "\e046"; +} +.glyphicon-font:before { + content: "\e047"; +} +.glyphicon-bold:before { + content: "\e048"; +} +.glyphicon-italic:before { + content: "\e049"; +} +.glyphicon-text-height:before { + content: "\e050"; +} +.glyphicon-text-width:before { + content: "\e051"; +} +.glyphicon-align-left:before { + content: "\e052"; +} +.glyphicon-align-center:before { + content: "\e053"; +} +.glyphicon-align-right:before { + content: "\e054"; +} +.glyphicon-align-justify:before { + content: "\e055"; +} +.glyphicon-list:before { + content: "\e056"; +} +.glyphicon-indent-left:before { + content: "\e057"; +} +.glyphicon-indent-right:before { + content: "\e058"; +} +.glyphicon-facetime-video:before { + content: "\e059"; +} +.glyphicon-picture:before { + content: "\e060"; +} +.glyphicon-map-marker:before { + content: "\e062"; +} +.glyphicon-adjust:before { + content: "\e063"; +} +.glyphicon-tint:before { + content: "\e064"; +} +.glyphicon-edit:before { + content: "\e065"; +} +.glyphicon-share:before { + content: "\e066"; +} +.glyphicon-check:before { + content: "\e067"; +} +.glyphicon-move:before { + content: "\e068"; +} +.glyphicon-step-backward:before { + content: "\e069"; +} +.glyphicon-fast-backward:before { + content: "\e070"; +} +.glyphicon-backward:before { + content: "\e071"; +} +.glyphicon-play:before { + content: "\e072"; +} +.glyphicon-pause:before { + content: "\e073"; +} +.glyphicon-stop:before { + content: "\e074"; +} +.glyphicon-forward:before { + content: "\e075"; +} +.glyphicon-fast-forward:before { + content: "\e076"; +} +.glyphicon-step-forward:before { + content: "\e077"; +} +.glyphicon-eject:before { + content: "\e078"; +} +.glyphicon-chevron-left:before { + content: "\e079"; +} +.glyphicon-chevron-right:before { + content: "\e080"; +} +.glyphicon-plus-sign:before { + content: "\e081"; +} +.glyphicon-minus-sign:before { + content: "\e082"; +} +.glyphicon-remove-sign:before { + content: "\e083"; +} +.glyphicon-ok-sign:before { + content: "\e084"; +} +.glyphicon-question-sign:before { + content: "\e085"; +} +.glyphicon-info-sign:before { + content: "\e086"; +} +.glyphicon-screenshot:before { + content: "\e087"; +} +.glyphicon-remove-circle:before { + content: "\e088"; +} +.glyphicon-ok-circle:before { + content: "\e089"; +} +.glyphicon-ban-circle:before { + content: "\e090"; +} +.glyphicon-arrow-left:before { + content: "\e091"; +} +.glyphicon-arrow-right:before { + content: "\e092"; +} +.glyphicon-arrow-up:before { + content: "\e093"; +} +.glyphicon-arrow-down:before { + content: "\e094"; +} +.glyphicon-share-alt:before { + content: "\e095"; +} +.glyphicon-resize-full:before { + content: "\e096"; +} +.glyphicon-resize-small:before { + content: "\e097"; +} +.glyphicon-exclamation-sign:before { + content: "\e101"; +} +.glyphicon-gift:before { + content: "\e102"; +} +.glyphicon-leaf:before { + content: "\e103"; +} +.glyphicon-fire:before { + content: "\e104"; +} +.glyphicon-eye-open:before { + content: "\e105"; +} +.glyphicon-eye-close:before { + content: "\e106"; +} +.glyphicon-warning-sign:before { + content: "\e107"; +} +.glyphicon-plane:before { + content: "\e108"; +} +.glyphicon-calendar:before { + content: "\e109"; +} +.glyphicon-random:before { + content: "\e110"; +} +.glyphicon-comment:before { + content: "\e111"; +} +.glyphicon-magnet:before { + content: "\e112"; +} +.glyphicon-chevron-up:before { + content: "\e113"; +} +.glyphicon-chevron-down:before { + content: "\e114"; +} +.glyphicon-retweet:before { + content: "\e115"; +} +.glyphicon-shopping-cart:before { + content: "\e116"; +} +.glyphicon-folder-close:before { + content: "\e117"; +} +.glyphicon-folder-open:before { + content: "\e118"; +} +.glyphicon-resize-vertical:before { + content: "\e119"; +} +.glyphicon-resize-horizontal:before { + content: "\e120"; +} +.glyphicon-hdd:before { + content: "\e121"; +} +.glyphicon-bullhorn:before { + content: "\e122"; +} +.glyphicon-bell:before { + content: "\e123"; +} +.glyphicon-certificate:before { + content: "\e124"; +} +.glyphicon-thumbs-up:before { + content: "\e125"; +} +.glyphicon-thumbs-down:before { + content: "\e126"; +} +.glyphicon-hand-right:before { + content: "\e127"; +} +.glyphicon-hand-left:before { + content: "\e128"; +} +.glyphicon-hand-up:before { + content: "\e129"; +} +.glyphicon-hand-down:before { + content: "\e130"; +} +.glyphicon-circle-arrow-right:before { + content: "\e131"; +} +.glyphicon-circle-arrow-left:before { + content: "\e132"; +} +.glyphicon-circle-arrow-up:before { + content: "\e133"; +} +.glyphicon-circle-arrow-down:before { + content: "\e134"; +} +.glyphicon-globe:before { + content: "\e135"; +} +.glyphicon-wrench:before { + content: "\e136"; +} +.glyphicon-tasks:before { + content: "\e137"; +} +.glyphicon-filter:before { + content: "\e138"; +} +.glyphicon-briefcase:before { + content: "\e139"; +} +.glyphicon-fullscreen:before { + content: "\e140"; +} +.glyphicon-dashboard:before { + content: "\e141"; +} +.glyphicon-paperclip:before { + content: "\e142"; +} +.glyphicon-heart-empty:before { + content: "\e143"; +} +.glyphicon-link:before { + content: "\e144"; +} +.glyphicon-phone:before { + content: "\e145"; +} +.glyphicon-pushpin:before { + content: "\e146"; +} +.glyphicon-usd:before { + content: "\e148"; +} +.glyphicon-gbp:before { + content: "\e149"; +} +.glyphicon-sort:before { + content: "\e150"; +} +.glyphicon-sort-by-alphabet:before { + content: "\e151"; +} +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152"; +} +.glyphicon-sort-by-order:before { + content: "\e153"; +} +.glyphicon-sort-by-order-alt:before { + content: "\e154"; +} +.glyphicon-sort-by-attributes:before { + content: "\e155"; +} +.glyphicon-sort-by-attributes-alt:before { + content: "\e156"; +} +.glyphicon-unchecked:before { + content: "\e157"; +} +.glyphicon-expand:before { + content: "\e158"; +} +.glyphicon-collapse-down:before { + content: "\e159"; +} +.glyphicon-collapse-up:before { + content: "\e160"; +} +.glyphicon-log-in:before { + content: "\e161"; +} +.glyphicon-flash:before { + content: "\e162"; +} +.glyphicon-log-out:before { + content: "\e163"; +} +.glyphicon-new-window:before { + content: "\e164"; +} +.glyphicon-record:before { + content: "\e165"; +} +.glyphicon-save:before { + content: "\e166"; +} +.glyphicon-open:before { + content: "\e167"; +} +.glyphicon-saved:before { + content: "\e168"; +} +.glyphicon-import:before { + content: "\e169"; +} +.glyphicon-export:before { + content: "\e170"; +} +.glyphicon-send:before { + content: "\e171"; +} +.glyphicon-floppy-disk:before { + content: "\e172"; +} +.glyphicon-floppy-saved:before { + content: "\e173"; +} +.glyphicon-floppy-remove:before { + content: "\e174"; +} +.glyphicon-floppy-save:before { + content: "\e175"; +} +.glyphicon-floppy-open:before { + content: "\e176"; +} +.glyphicon-credit-card:before { + content: "\e177"; +} +.glyphicon-transfer:before { + content: "\e178"; +} +.glyphicon-cutlery:before { + content: "\e179"; +} +.glyphicon-header:before { + content: "\e180"; +} +.glyphicon-compressed:before { + content: "\e181"; +} +.glyphicon-earphone:before { + content: "\e182"; +} +.glyphicon-phone-alt:before { + content: "\e183"; +} +.glyphicon-tower:before { + content: "\e184"; +} +.glyphicon-stats:before { + content: "\e185"; +} +.glyphicon-sd-video:before { + content: "\e186"; +} +.glyphicon-hd-video:before { + content: "\e187"; +} +.glyphicon-subtitles:before { + content: "\e188"; +} +.glyphicon-sound-stereo:before { + content: "\e189"; +} +.glyphicon-sound-dolby:before { + content: "\e190"; +} +.glyphicon-sound-5-1:before { + content: "\e191"; +} +.glyphicon-sound-6-1:before { + content: "\e192"; +} +.glyphicon-sound-7-1:before { + content: "\e193"; +} +.glyphicon-copyright-mark:before { + content: "\e194"; +} +.glyphicon-registration-mark:before { + content: "\e195"; +} +.glyphicon-cloud-download:before { + content: "\e197"; +} +.glyphicon-cloud-upload:before { + content: "\e198"; +} +.glyphicon-tree-conifer:before { + content: "\e199"; +} +.glyphicon-tree-deciduous:before { + content: "\e200"; +} +.glyphicon-cd:before { + content: "\e201"; +} +.glyphicon-save-file:before { + content: "\e202"; +} +.glyphicon-open-file:before { + content: "\e203"; +} +.glyphicon-level-up:before { + content: "\e204"; +} +.glyphicon-copy:before { + content: "\e205"; +} +.glyphicon-paste:before { + content: "\e206"; +} +.glyphicon-alert:before { + content: "\e209"; +} +.glyphicon-equalizer:before { + content: "\e210"; +} +.glyphicon-king:before { + content: "\e211"; +} +.glyphicon-queen:before { + content: "\e212"; +} +.glyphicon-pawn:before { + content: "\e213"; +} +.glyphicon-bishop:before { + content: "\e214"; +} +.glyphicon-knight:before { + content: "\e215"; +} +.glyphicon-baby-formula:before { + content: "\e216"; +} +.glyphicon-tent:before { + content: "\26fa"; +} +.glyphicon-blackboard:before { + content: "\e218"; +} +.glyphicon-bed:before { + content: "\e219"; +} +.glyphicon-apple:before { + content: "\f8ff"; +} +.glyphicon-erase:before { + content: "\e221"; +} +.glyphicon-hourglass:before { + content: "\231b"; +} +.glyphicon-lamp:before { + content: "\e223"; +} +.glyphicon-duplicate:before { + content: "\e224"; +} +.glyphicon-piggy-bank:before { + content: "\e225"; +} +.glyphicon-scissors:before { + content: "\e226"; +} +.glyphicon-bitcoin:before { + content: "\e227"; +} +.glyphicon-btc:before { + content: "\e227"; +} +.glyphicon-xbt:before { + content: "\e227"; +} +.glyphicon-yen:before { + content: "\00a5"; +} +.glyphicon-jpy:before { + content: "\00a5"; +} +.glyphicon-ruble:before { + content: "\20bd"; +} +.glyphicon-rub:before { + content: "\20bd"; +} +.glyphicon-scale:before { + content: "\e230"; +} +.glyphicon-ice-lolly:before { + content: "\e231"; +} +.glyphicon-ice-lolly-tasted:before { + content: "\e232"; +} +.glyphicon-education:before { + content: "\e233"; +} +.glyphicon-option-horizontal:before { + content: "\e234"; +} +.glyphicon-option-vertical:before { + content: "\e235"; +} +.glyphicon-menu-hamburger:before { + content: "\e236"; +} +.glyphicon-modal-window:before { + content: "\e237"; +} +.glyphicon-oil:before { + content: "\e238"; +} +.glyphicon-grain:before { + content: "\e239"; +} +.glyphicon-sunglasses:before { + content: "\e240"; +} +.glyphicon-text-size:before { + content: "\e241"; +} +.glyphicon-text-color:before { + content: "\e242"; +} +.glyphicon-text-background:before { + content: "\e243"; +} +.glyphicon-object-align-top:before { + content: "\e244"; +} +.glyphicon-object-align-bottom:before { + content: "\e245"; +} +.glyphicon-object-align-horizontal:before { + content: "\e246"; +} +.glyphicon-object-align-left:before { + content: "\e247"; +} +.glyphicon-object-align-vertical:before { + content: "\e248"; +} +.glyphicon-object-align-right:before { + content: "\e249"; +} +.glyphicon-triangle-right:before { + content: "\e250"; +} +.glyphicon-triangle-left:before { + content: "\e251"; +} +.glyphicon-triangle-bottom:before { + content: "\e252"; +} +.glyphicon-triangle-top:before { + content: "\e253"; +} +.glyphicon-console:before { + content: "\e254"; +} +.glyphicon-superscript:before { + content: "\e255"; +} +.glyphicon-subscript:before { + content: "\e256"; +} +.glyphicon-menu-left:before { + content: "\e257"; +} +.glyphicon-menu-right:before { + content: "\e258"; +} +.glyphicon-menu-down:before { + content: "\e259"; +} +.glyphicon-menu-up:before { + content: "\e260"; +} +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +*:before, +*:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +html { + font-size: 10px; + + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.42857143; + color: #333; + background-color: #fff; +} +input, +button, +select, +textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +a { + color: #337ab7; + text-decoration: none; +} +a:hover, +a:focus { + color: #23527c; + text-decoration: underline; +} +a:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +figure { + margin: 0; +} +img { + vertical-align: middle; +} +.img-responsive, +.thumbnail > img, +.thumbnail a > img, +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + display: block; + max-width: 100%; + height: auto; +} +.img-rounded { + border-radius: 6px; +} +.img-thumbnail { + display: inline-block; + max-width: 100%; + height: auto; + padding: 4px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: all .2s ease-in-out; + -o-transition: all .2s ease-in-out; + transition: all .2s ease-in-out; +} +.img-circle { + border-radius: 50%; +} +hr { + margin-top: 20px; + margin-bottom: 20px; + border: 0; + border-top: 1px solid #eee; +} +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; +} +[role="button"] { + cursor: pointer; +} +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit; +} +h1 small, +h2 small, +h3 small, +h4 small, +h5 small, +h6 small, +.h1 small, +.h2 small, +.h3 small, +.h4 small, +.h5 small, +.h6 small, +h1 .small, +h2 .small, +h3 .small, +h4 .small, +h5 .small, +h6 .small, +.h1 .small, +.h2 .small, +.h3 .small, +.h4 .small, +.h5 .small, +.h6 .small { + font-weight: normal; + line-height: 1; + color: #777; +} +h1, +.h1, +h2, +.h2, +h3, +.h3 { + margin-top: 20px; + margin-bottom: 10px; +} +h1 small, +.h1 small, +h2 small, +.h2 small, +h3 small, +.h3 small, +h1 .small, +.h1 .small, +h2 .small, +.h2 .small, +h3 .small, +.h3 .small { + font-size: 65%; +} +h4, +.h4, +h5, +.h5, +h6, +.h6 { + margin-top: 10px; + margin-bottom: 10px; +} +h4 small, +.h4 small, +h5 small, +.h5 small, +h6 small, +.h6 small, +h4 .small, +.h4 .small, +h5 .small, +.h5 .small, +h6 .small, +.h6 .small { + font-size: 75%; +} +h1, +.h1 { + font-size: 36px; +} +h2, +.h2 { + font-size: 30px; +} +h3, +.h3 { + font-size: 24px; +} +h4, +.h4 { + font-size: 18px; +} +h5, +.h5 { + font-size: 14px; +} +h6, +.h6 { + font-size: 12px; +} +p { + margin: 0 0 10px; +} +.lead { + margin-bottom: 20px; + font-size: 16px; + font-weight: 300; + line-height: 1.4; +} +@media (min-width: 768px) { + .lead { + font-size: 21px; + } +} +small, +.small { + font-size: 85%; +} +mark, +.mark { + padding: .2em; + background-color: #fcf8e3; +} +.text-left { + text-align: left; +} +.text-right { + text-align: right; +} +.text-center { + text-align: center; +} +.text-justify { + text-align: justify; +} +.text-nowrap { + white-space: nowrap; +} +.text-lowercase { + text-transform: lowercase; +} +.text-uppercase { + text-transform: uppercase; +} +.text-capitalize { + text-transform: capitalize; +} +.text-muted { + color: #777; +} +.text-primary { + color: #337ab7; +} +a.text-primary:hover, +a.text-primary:focus { + color: #286090; +} +.text-success { + color: #3c763d; +} +a.text-success:hover, +a.text-success:focus { + color: #2b542c; +} +.text-info { + color: #31708f; +} +a.text-info:hover, +a.text-info:focus { + color: #245269; +} +.text-warning { + color: #8a6d3b; +} +a.text-warning:hover, +a.text-warning:focus { + color: #66512c; +} +.text-danger { + color: #a94442; +} +a.text-danger:hover, +a.text-danger:focus { + color: #843534; +} +.bg-primary { + color: #fff; + background-color: #337ab7; +} +a.bg-primary:hover, +a.bg-primary:focus { + background-color: #286090; +} +.bg-success { + background-color: #dff0d8; +} +a.bg-success:hover, +a.bg-success:focus { + background-color: #c1e2b3; +} +.bg-info { + background-color: #d9edf7; +} +a.bg-info:hover, +a.bg-info:focus { + background-color: #afd9ee; +} +.bg-warning { + background-color: #fcf8e3; +} +a.bg-warning:hover, +a.bg-warning:focus { + background-color: #f7ecb5; +} +.bg-danger { + background-color: #f2dede; +} +a.bg-danger:hover, +a.bg-danger:focus { + background-color: #e4b9b9; +} +.page-header { + padding-bottom: 9px; + margin: 40px 0 20px; + border-bottom: 1px solid #eee; +} +ul, +ol { + margin-top: 0; + margin-bottom: 10px; +} +ul ul, +ol ul, +ul ol, +ol ol { + margin-bottom: 0; +} +.list-unstyled { + padding-left: 0; + list-style: none; +} +.list-inline { + padding-left: 0; + margin-left: -5px; + list-style: none; +} +.list-inline > li { + display: inline-block; + padding-right: 5px; + padding-left: 5px; +} +dl { + margin-top: 0; + margin-bottom: 20px; +} +dt, +dd { + line-height: 1.42857143; +} +dt { + font-weight: bold; +} +dd { + margin-left: 0; +} +@media (min-width: 768px) { + .dl-horizontal dt { + float: left; + width: 160px; + overflow: hidden; + clear: left; + text-align: right; + text-overflow: ellipsis; + white-space: nowrap; + } + .dl-horizontal dd { + margin-left: 180px; + } +} +abbr[title], +abbr[data-original-title] { + cursor: help; + border-bottom: 1px dotted #777; +} +.initialism { + font-size: 90%; + text-transform: uppercase; +} +blockquote { + padding: 10px 20px; + margin: 0 0 20px; + font-size: 17.5px; + border-left: 5px solid #eee; +} +blockquote p:last-child, +blockquote ul:last-child, +blockquote ol:last-child { + margin-bottom: 0; +} +blockquote footer, +blockquote small, +blockquote .small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #777; +} +blockquote footer:before, +blockquote small:before, +blockquote .small:before { + content: '\2014 \00A0'; +} +.blockquote-reverse, +blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + text-align: right; + border-right: 5px solid #eee; + border-left: 0; +} +.blockquote-reverse footer:before, +blockquote.pull-right footer:before, +.blockquote-reverse small:before, +blockquote.pull-right small:before, +.blockquote-reverse .small:before, +blockquote.pull-right .small:before { + content: ''; +} +.blockquote-reverse footer:after, +blockquote.pull-right footer:after, +.blockquote-reverse small:after, +blockquote.pull-right small:after, +.blockquote-reverse .small:after, +blockquote.pull-right .small:after { + content: '\00A0 \2014'; +} +address { + margin-bottom: 20px; + font-style: normal; + line-height: 1.42857143; +} +code, +kbd, +pre, +samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; +} +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 4px; +} +kbd { + padding: 2px 4px; + font-size: 90%; + color: #fff; + background-color: #333; + border-radius: 3px; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); +} +kbd kbd { + padding: 0; + font-size: 100%; + font-weight: bold; + -webkit-box-shadow: none; + box-shadow: none; +} +pre { + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 1.42857143; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px; +} +pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; +} +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} +.container { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto; +} +@media (min-width: 768px) { + .container { + width: 750px; + } +} +@media (min-width: 992px) { + .container { + width: 970px; + } +} +@media (min-width: 1200px) { + .container { + width: 1170px; + } +} +.container-fluid { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto; +} +.row { + margin-right: -15px; + margin-left: -15px; +} +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { + position: relative; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; +} +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { + float: left; +} +.col-xs-12 { + width: 100%; +} +.col-xs-11 { + width: 91.66666667%; +} +.col-xs-10 { + width: 83.33333333%; +} +.col-xs-9 { + width: 75%; +} +.col-xs-8 { + width: 66.66666667%; +} +.col-xs-7 { + width: 58.33333333%; +} +.col-xs-6 { + width: 50%; +} +.col-xs-5 { + width: 41.66666667%; +} +.col-xs-4 { + width: 33.33333333%; +} +.col-xs-3 { + width: 25%; +} +.col-xs-2 { + width: 16.66666667%; +} +.col-xs-1 { + width: 8.33333333%; +} +.col-xs-pull-12 { + right: 100%; +} +.col-xs-pull-11 { + right: 91.66666667%; +} +.col-xs-pull-10 { + right: 83.33333333%; +} +.col-xs-pull-9 { + right: 75%; +} +.col-xs-pull-8 { + right: 66.66666667%; +} +.col-xs-pull-7 { + right: 58.33333333%; +} +.col-xs-pull-6 { + right: 50%; +} +.col-xs-pull-5 { + right: 41.66666667%; +} +.col-xs-pull-4 { + right: 33.33333333%; +} +.col-xs-pull-3 { + right: 25%; +} +.col-xs-pull-2 { + right: 16.66666667%; +} +.col-xs-pull-1 { + right: 8.33333333%; +} +.col-xs-pull-0 { + right: auto; +} +.col-xs-push-12 { + left: 100%; +} +.col-xs-push-11 { + left: 91.66666667%; +} +.col-xs-push-10 { + left: 83.33333333%; +} +.col-xs-push-9 { + left: 75%; +} +.col-xs-push-8 { + left: 66.66666667%; +} +.col-xs-push-7 { + left: 58.33333333%; +} +.col-xs-push-6 { + left: 50%; +} +.col-xs-push-5 { + left: 41.66666667%; +} +.col-xs-push-4 { + left: 33.33333333%; +} +.col-xs-push-3 { + left: 25%; +} +.col-xs-push-2 { + left: 16.66666667%; +} +.col-xs-push-1 { + left: 8.33333333%; +} +.col-xs-push-0 { + left: auto; +} +.col-xs-offset-12 { + margin-left: 100%; +} +.col-xs-offset-11 { + margin-left: 91.66666667%; +} +.col-xs-offset-10 { + margin-left: 83.33333333%; +} +.col-xs-offset-9 { + margin-left: 75%; +} +.col-xs-offset-8 { + margin-left: 66.66666667%; +} +.col-xs-offset-7 { + margin-left: 58.33333333%; +} +.col-xs-offset-6 { + margin-left: 50%; +} +.col-xs-offset-5 { + margin-left: 41.66666667%; +} +.col-xs-offset-4 { + margin-left: 33.33333333%; +} +.col-xs-offset-3 { + margin-left: 25%; +} +.col-xs-offset-2 { + margin-left: 16.66666667%; +} +.col-xs-offset-1 { + margin-left: 8.33333333%; +} +.col-xs-offset-0 { + margin-left: 0; +} +@media (min-width: 768px) { + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { + float: left; + } + .col-sm-12 { + width: 100%; + } + .col-sm-11 { + width: 91.66666667%; + } + .col-sm-10 { + width: 83.33333333%; + } + .col-sm-9 { + width: 75%; + } + .col-sm-8 { + width: 66.66666667%; + } + .col-sm-7 { + width: 58.33333333%; + } + .col-sm-6 { + width: 50%; + } + .col-sm-5 { + width: 41.66666667%; + } + .col-sm-4 { + width: 33.33333333%; + } + .col-sm-3 { + width: 25%; + } + .col-sm-2 { + width: 16.66666667%; + } + .col-sm-1 { + width: 8.33333333%; + } + .col-sm-pull-12 { + right: 100%; + } + .col-sm-pull-11 { + right: 91.66666667%; + } + .col-sm-pull-10 { + right: 83.33333333%; + } + .col-sm-pull-9 { + right: 75%; + } + .col-sm-pull-8 { + right: 66.66666667%; + } + .col-sm-pull-7 { + right: 58.33333333%; + } + .col-sm-pull-6 { + right: 50%; + } + .col-sm-pull-5 { + right: 41.66666667%; + } + .col-sm-pull-4 { + right: 33.33333333%; + } + .col-sm-pull-3 { + right: 25%; + } + .col-sm-pull-2 { + right: 16.66666667%; + } + .col-sm-pull-1 { + right: 8.33333333%; + } + .col-sm-pull-0 { + right: auto; + } + .col-sm-push-12 { + left: 100%; + } + .col-sm-push-11 { + left: 91.66666667%; + } + .col-sm-push-10 { + left: 83.33333333%; + } + .col-sm-push-9 { + left: 75%; + } + .col-sm-push-8 { + left: 66.66666667%; + } + .col-sm-push-7 { + left: 58.33333333%; + } + .col-sm-push-6 { + left: 50%; + } + .col-sm-push-5 { + left: 41.66666667%; + } + .col-sm-push-4 { + left: 33.33333333%; + } + .col-sm-push-3 { + left: 25%; + } + .col-sm-push-2 { + left: 16.66666667%; + } + .col-sm-push-1 { + left: 8.33333333%; + } + .col-sm-push-0 { + left: auto; + } + .col-sm-offset-12 { + margin-left: 100%; + } + .col-sm-offset-11 { + margin-left: 91.66666667%; + } + .col-sm-offset-10 { + margin-left: 83.33333333%; + } + .col-sm-offset-9 { + margin-left: 75%; + } + .col-sm-offset-8 { + margin-left: 66.66666667%; + } + .col-sm-offset-7 { + margin-left: 58.33333333%; + } + .col-sm-offset-6 { + margin-left: 50%; + } + .col-sm-offset-5 { + margin-left: 41.66666667%; + } + .col-sm-offset-4 { + margin-left: 33.33333333%; + } + .col-sm-offset-3 { + margin-left: 25%; + } + .col-sm-offset-2 { + margin-left: 16.66666667%; + } + .col-sm-offset-1 { + margin-left: 8.33333333%; + } + .col-sm-offset-0 { + margin-left: 0; + } +} +@media (min-width: 992px) { + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { + float: left; + } + .col-md-12 { + width: 100%; + } + .col-md-11 { + width: 91.66666667%; + } + .col-md-10 { + width: 83.33333333%; + } + .col-md-9 { + width: 75%; + } + .col-md-8 { + width: 66.66666667%; + } + .col-md-7 { + width: 58.33333333%; + } + .col-md-6 { + width: 50%; + } + .col-md-5 { + width: 41.66666667%; + } + .col-md-4 { + width: 33.33333333%; + } + .col-md-3 { + width: 25%; + } + .col-md-2 { + width: 16.66666667%; + } + .col-md-1 { + width: 8.33333333%; + } + .col-md-pull-12 { + right: 100%; + } + .col-md-pull-11 { + right: 91.66666667%; + } + .col-md-pull-10 { + right: 83.33333333%; + } + .col-md-pull-9 { + right: 75%; + } + .col-md-pull-8 { + right: 66.66666667%; + } + .col-md-pull-7 { + right: 58.33333333%; + } + .col-md-pull-6 { + right: 50%; + } + .col-md-pull-5 { + right: 41.66666667%; + } + .col-md-pull-4 { + right: 33.33333333%; + } + .col-md-pull-3 { + right: 25%; + } + .col-md-pull-2 { + right: 16.66666667%; + } + .col-md-pull-1 { + right: 8.33333333%; + } + .col-md-pull-0 { + right: auto; + } + .col-md-push-12 { + left: 100%; + } + .col-md-push-11 { + left: 91.66666667%; + } + .col-md-push-10 { + left: 83.33333333%; + } + .col-md-push-9 { + left: 75%; + } + .col-md-push-8 { + left: 66.66666667%; + } + .col-md-push-7 { + left: 58.33333333%; + } + .col-md-push-6 { + left: 50%; + } + .col-md-push-5 { + left: 41.66666667%; + } + .col-md-push-4 { + left: 33.33333333%; + } + .col-md-push-3 { + left: 25%; + } + .col-md-push-2 { + left: 16.66666667%; + } + .col-md-push-1 { + left: 8.33333333%; + } + .col-md-push-0 { + left: auto; + } + .col-md-offset-12 { + margin-left: 100%; + } + .col-md-offset-11 { + margin-left: 91.66666667%; + } + .col-md-offset-10 { + margin-left: 83.33333333%; + } + .col-md-offset-9 { + margin-left: 75%; + } + .col-md-offset-8 { + margin-left: 66.66666667%; + } + .col-md-offset-7 { + margin-left: 58.33333333%; + } + .col-md-offset-6 { + margin-left: 50%; + } + .col-md-offset-5 { + margin-left: 41.66666667%; + } + .col-md-offset-4 { + margin-left: 33.33333333%; + } + .col-md-offset-3 { + margin-left: 25%; + } + .col-md-offset-2 { + margin-left: 16.66666667%; + } + .col-md-offset-1 { + margin-left: 8.33333333%; + } + .col-md-offset-0 { + margin-left: 0; + } +} +@media (min-width: 1200px) { + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { + float: left; + } + .col-lg-12 { + width: 100%; + } + .col-lg-11 { + width: 91.66666667%; + } + .col-lg-10 { + width: 83.33333333%; + } + .col-lg-9 { + width: 75%; + } + .col-lg-8 { + width: 66.66666667%; + } + .col-lg-7 { + width: 58.33333333%; + } + .col-lg-6 { + width: 50%; + } + .col-lg-5 { + width: 41.66666667%; + } + .col-lg-4 { + width: 33.33333333%; + } + .col-lg-3 { + width: 25%; + } + .col-lg-2 { + width: 16.66666667%; + } + .col-lg-1 { + width: 8.33333333%; + } + .col-lg-pull-12 { + right: 100%; + } + .col-lg-pull-11 { + right: 91.66666667%; + } + .col-lg-pull-10 { + right: 83.33333333%; + } + .col-lg-pull-9 { + right: 75%; + } + .col-lg-pull-8 { + right: 66.66666667%; + } + .col-lg-pull-7 { + right: 58.33333333%; + } + .col-lg-pull-6 { + right: 50%; + } + .col-lg-pull-5 { + right: 41.66666667%; + } + .col-lg-pull-4 { + right: 33.33333333%; + } + .col-lg-pull-3 { + right: 25%; + } + .col-lg-pull-2 { + right: 16.66666667%; + } + .col-lg-pull-1 { + right: 8.33333333%; + } + .col-lg-pull-0 { + right: auto; + } + .col-lg-push-12 { + left: 100%; + } + .col-lg-push-11 { + left: 91.66666667%; + } + .col-lg-push-10 { + left: 83.33333333%; + } + .col-lg-push-9 { + left: 75%; + } + .col-lg-push-8 { + left: 66.66666667%; + } + .col-lg-push-7 { + left: 58.33333333%; + } + .col-lg-push-6 { + left: 50%; + } + .col-lg-push-5 { + left: 41.66666667%; + } + .col-lg-push-4 { + left: 33.33333333%; + } + .col-lg-push-3 { + left: 25%; + } + .col-lg-push-2 { + left: 16.66666667%; + } + .col-lg-push-1 { + left: 8.33333333%; + } + .col-lg-push-0 { + left: auto; + } + .col-lg-offset-12 { + margin-left: 100%; + } + .col-lg-offset-11 { + margin-left: 91.66666667%; + } + .col-lg-offset-10 { + margin-left: 83.33333333%; + } + .col-lg-offset-9 { + margin-left: 75%; + } + .col-lg-offset-8 { + margin-left: 66.66666667%; + } + .col-lg-offset-7 { + margin-left: 58.33333333%; + } + .col-lg-offset-6 { + margin-left: 50%; + } + .col-lg-offset-5 { + margin-left: 41.66666667%; + } + .col-lg-offset-4 { + margin-left: 33.33333333%; + } + .col-lg-offset-3 { + margin-left: 25%; + } + .col-lg-offset-2 { + margin-left: 16.66666667%; + } + .col-lg-offset-1 { + margin-left: 8.33333333%; + } + .col-lg-offset-0 { + margin-left: 0; + } +} +table { + background-color: transparent; +} +caption { + padding-top: 8px; + padding-bottom: 8px; + color: #777; + text-align: left; +} +th { + text-align: left; +} +.table { + width: 100%; + max-width: 100%; + margin-bottom: 20px; +} +.table > thead > tr > th, +.table > tbody > tr > th, +.table > tfoot > tr > th, +.table > thead > tr > td, +.table > tbody > tr > td, +.table > tfoot > tr > td { + padding: 8px; + line-height: 1.42857143; + vertical-align: top; + border-top: 1px solid #ddd; +} +.table > thead > tr > th { + vertical-align: bottom; + border-bottom: 2px solid #ddd; +} +.table > caption + thead > tr:first-child > th, +.table > colgroup + thead > tr:first-child > th, +.table > thead:first-child > tr:first-child > th, +.table > caption + thead > tr:first-child > td, +.table > colgroup + thead > tr:first-child > td, +.table > thead:first-child > tr:first-child > td { + border-top: 0; +} +.table > tbody + tbody { + border-top: 2px solid #ddd; +} +.table .table { + background-color: #fff; +} +.table-condensed > thead > tr > th, +.table-condensed > tbody > tr > th, +.table-condensed > tfoot > tr > th, +.table-condensed > thead > tr > td, +.table-condensed > tbody > tr > td, +.table-condensed > tfoot > tr > td { + padding: 5px; +} +.table-bordered { + border: 1px solid #ddd; +} +.table-bordered > thead > tr > th, +.table-bordered > tbody > tr > th, +.table-bordered > tfoot > tr > th, +.table-bordered > thead > tr > td, +.table-bordered > tbody > tr > td, +.table-bordered > tfoot > tr > td { + border: 1px solid #ddd; +} +.table-bordered > thead > tr > th, +.table-bordered > thead > tr > td { + border-bottom-width: 2px; +} +.table-striped > tbody > tr:nth-of-type(odd) { + background-color: #f9f9f9; +} +.table-hover > tbody > tr:hover { + background-color: #f5f5f5; +} +table col[class*="col-"] { + position: static; + display: table-column; + float: none; +} +table td[class*="col-"], +table th[class*="col-"] { + position: static; + display: table-cell; + float: none; +} +.table > thead > tr > td.active, +.table > tbody > tr > td.active, +.table > tfoot > tr > td.active, +.table > thead > tr > th.active, +.table > tbody > tr > th.active, +.table > tfoot > tr > th.active, +.table > thead > tr.active > td, +.table > tbody > tr.active > td, +.table > tfoot > tr.active > td, +.table > thead > tr.active > th, +.table > tbody > tr.active > th, +.table > tfoot > tr.active > th { + background-color: #f5f5f5; +} +.table-hover > tbody > tr > td.active:hover, +.table-hover > tbody > tr > th.active:hover, +.table-hover > tbody > tr.active:hover > td, +.table-hover > tbody > tr:hover > .active, +.table-hover > tbody > tr.active:hover > th { + background-color: #e8e8e8; +} +.table > thead > tr > td.success, +.table > tbody > tr > td.success, +.table > tfoot > tr > td.success, +.table > thead > tr > th.success, +.table > tbody > tr > th.success, +.table > tfoot > tr > th.success, +.table > thead > tr.success > td, +.table > tbody > tr.success > td, +.table > tfoot > tr.success > td, +.table > thead > tr.success > th, +.table > tbody > tr.success > th, +.table > tfoot > tr.success > th { + background-color: #dff0d8; +} +.table-hover > tbody > tr > td.success:hover, +.table-hover > tbody > tr > th.success:hover, +.table-hover > tbody > tr.success:hover > td, +.table-hover > tbody > tr:hover > .success, +.table-hover > tbody > tr.success:hover > th { + background-color: #d0e9c6; +} +.table > thead > tr > td.info, +.table > tbody > tr > td.info, +.table > tfoot > tr > td.info, +.table > thead > tr > th.info, +.table > tbody > tr > th.info, +.table > tfoot > tr > th.info, +.table > thead > tr.info > td, +.table > tbody > tr.info > td, +.table > tfoot > tr.info > td, +.table > thead > tr.info > th, +.table > tbody > tr.info > th, +.table > tfoot > tr.info > th { + background-color: #d9edf7; +} +.table-hover > tbody > tr > td.info:hover, +.table-hover > tbody > tr > th.info:hover, +.table-hover > tbody > tr.info:hover > td, +.table-hover > tbody > tr:hover > .info, +.table-hover > tbody > tr.info:hover > th { + background-color: #c4e3f3; +} +.table > thead > tr > td.warning, +.table > tbody > tr > td.warning, +.table > tfoot > tr > td.warning, +.table > thead > tr > th.warning, +.table > tbody > tr > th.warning, +.table > tfoot > tr > th.warning, +.table > thead > tr.warning > td, +.table > tbody > tr.warning > td, +.table > tfoot > tr.warning > td, +.table > thead > tr.warning > th, +.table > tbody > tr.warning > th, +.table > tfoot > tr.warning > th { + background-color: #fcf8e3; +} +.table-hover > tbody > tr > td.warning:hover, +.table-hover > tbody > tr > th.warning:hover, +.table-hover > tbody > tr.warning:hover > td, +.table-hover > tbody > tr:hover > .warning, +.table-hover > tbody > tr.warning:hover > th { + background-color: #faf2cc; +} +.table > thead > tr > td.danger, +.table > tbody > tr > td.danger, +.table > tfoot > tr > td.danger, +.table > thead > tr > th.danger, +.table > tbody > tr > th.danger, +.table > tfoot > tr > th.danger, +.table > thead > tr.danger > td, +.table > tbody > tr.danger > td, +.table > tfoot > tr.danger > td, +.table > thead > tr.danger > th, +.table > tbody > tr.danger > th, +.table > tfoot > tr.danger > th { + background-color: #f2dede; +} +.table-hover > tbody > tr > td.danger:hover, +.table-hover > tbody > tr > th.danger:hover, +.table-hover > tbody > tr.danger:hover > td, +.table-hover > tbody > tr:hover > .danger, +.table-hover > tbody > tr.danger:hover > th { + background-color: #ebcccc; +} +.table-responsive { + min-height: .01%; + overflow-x: auto; +} +@media screen and (max-width: 767px) { + .table-responsive { + width: 100%; + margin-bottom: 15px; + overflow-y: hidden; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #ddd; + } + .table-responsive > .table { + margin-bottom: 0; + } + .table-responsive > .table > thead > tr > th, + .table-responsive > .table > tbody > tr > th, + .table-responsive > .table > tfoot > tr > th, + .table-responsive > .table > thead > tr > td, + .table-responsive > .table > tbody > tr > td, + .table-responsive > .table > tfoot > tr > td { + white-space: nowrap; + } + .table-responsive > .table-bordered { + border: 0; + } + .table-responsive > .table-bordered > thead > tr > th:first-child, + .table-responsive > .table-bordered > tbody > tr > th:first-child, + .table-responsive > .table-bordered > tfoot > tr > th:first-child, + .table-responsive > .table-bordered > thead > tr > td:first-child, + .table-responsive > .table-bordered > tbody > tr > td:first-child, + .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; + } + .table-responsive > .table-bordered > thead > tr > th:last-child, + .table-responsive > .table-bordered > tbody > tr > th:last-child, + .table-responsive > .table-bordered > tfoot > tr > th:last-child, + .table-responsive > .table-bordered > thead > tr > td:last-child, + .table-responsive > .table-bordered > tbody > tr > td:last-child, + .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; + } + .table-responsive > .table-bordered > tbody > tr:last-child > th, + .table-responsive > .table-bordered > tfoot > tr:last-child > th, + .table-responsive > .table-bordered > tbody > tr:last-child > td, + .table-responsive > .table-bordered > tfoot > tr:last-child > td { + border-bottom: 0; + } +} +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0; +} +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 20px; + font-size: 21px; + line-height: inherit; + color: #333; + border: 0; + border-bottom: 1px solid #e5e5e5; +} +label { + display: inline-block; + max-width: 100%; + margin-bottom: 5px; + font-weight: bold; +} +input[type="search"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +input[type="radio"], +input[type="checkbox"] { + margin: 4px 0 0; + margin-top: 1px \9; + line-height: normal; +} +input[type="file"] { + display: block; +} +input[type="range"] { + display: block; + width: 100%; +} +select[multiple], +select[size] { + height: auto; +} +input[type="file"]:focus, +input[type="radio"]:focus, +input[type="checkbox"]:focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +output { + display: block; + padding-top: 7px; + font-size: 14px; + line-height: 1.42857143; + color: #555; +} +.form-control { + display: block; + width: 100%; + height: 34px; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + color: #555; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; +} +.form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); +} +.form-control::-moz-placeholder { + color: #999; + opacity: 1; +} +.form-control:-ms-input-placeholder { + color: #999; +} +.form-control::-webkit-input-placeholder { + color: #999; +} +.form-control::-ms-expand { + background-color: transparent; + border: 0; +} +.form-control[disabled], +.form-control[readonly], +fieldset[disabled] .form-control { + background-color: #eee; + opacity: 1; +} +.form-control[disabled], +fieldset[disabled] .form-control { + cursor: not-allowed; +} +textarea.form-control { + height: auto; +} +input[type="search"] { + -webkit-appearance: none; +} +@media screen and (-webkit-min-device-pixel-ratio: 0) { + input[type="date"].form-control, + input[type="time"].form-control, + input[type="datetime-local"].form-control, + input[type="month"].form-control { + line-height: 34px; + } + input[type="date"].input-sm, + input[type="time"].input-sm, + input[type="datetime-local"].input-sm, + input[type="month"].input-sm, + .input-group-sm input[type="date"], + .input-group-sm input[type="time"], + .input-group-sm input[type="datetime-local"], + .input-group-sm input[type="month"] { + line-height: 30px; + } + input[type="date"].input-lg, + input[type="time"].input-lg, + input[type="datetime-local"].input-lg, + input[type="month"].input-lg, + .input-group-lg input[type="date"], + .input-group-lg input[type="time"], + .input-group-lg input[type="datetime-local"], + .input-group-lg input[type="month"] { + line-height: 46px; + } +} +.form-group { + margin-bottom: 15px; +} +.radio, +.checkbox { + position: relative; + display: block; + margin-top: 10px; + margin-bottom: 10px; +} +.radio label, +.checkbox label { + min-height: 20px; + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + cursor: pointer; +} +.radio input[type="radio"], +.radio-inline input[type="radio"], +.checkbox input[type="checkbox"], +.checkbox-inline input[type="checkbox"] { + position: absolute; + margin-top: 4px \9; + margin-left: -20px; +} +.radio + .radio, +.checkbox + .checkbox { + margin-top: -5px; +} +.radio-inline, +.checkbox-inline { + position: relative; + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + vertical-align: middle; + cursor: pointer; +} +.radio-inline + .radio-inline, +.checkbox-inline + .checkbox-inline { + margin-top: 0; + margin-left: 10px; +} +input[type="radio"][disabled], +input[type="checkbox"][disabled], +input[type="radio"].disabled, +input[type="checkbox"].disabled, +fieldset[disabled] input[type="radio"], +fieldset[disabled] input[type="checkbox"] { + cursor: not-allowed; +} +.radio-inline.disabled, +.checkbox-inline.disabled, +fieldset[disabled] .radio-inline, +fieldset[disabled] .checkbox-inline { + cursor: not-allowed; +} +.radio.disabled label, +.checkbox.disabled label, +fieldset[disabled] .radio label, +fieldset[disabled] .checkbox label { + cursor: not-allowed; +} +.form-control-static { + min-height: 34px; + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0; +} +.form-control-static.input-lg, +.form-control-static.input-sm { + padding-right: 0; + padding-left: 0; +} +.input-sm { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-sm { + height: 30px; + line-height: 30px; +} +textarea.input-sm, +select[multiple].input-sm { + height: auto; +} +.form-group-sm .form-control { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.form-group-sm select.form-control { + height: 30px; + line-height: 30px; +} +.form-group-sm textarea.form-control, +.form-group-sm select[multiple].form-control { + height: auto; +} +.form-group-sm .form-control-static { + height: 30px; + min-height: 32px; + padding: 6px 10px; + font-size: 12px; + line-height: 1.5; +} +.input-lg { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +select.input-lg { + height: 46px; + line-height: 46px; +} +textarea.input-lg, +select[multiple].input-lg { + height: auto; +} +.form-group-lg .form-control { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +.form-group-lg select.form-control { + height: 46px; + line-height: 46px; +} +.form-group-lg textarea.form-control, +.form-group-lg select[multiple].form-control { + height: auto; +} +.form-group-lg .form-control-static { + height: 46px; + min-height: 38px; + padding: 11px 16px; + font-size: 18px; + line-height: 1.3333333; +} +.has-feedback { + position: relative; +} +.has-feedback .form-control { + padding-right: 42.5px; +} +.form-control-feedback { + position: absolute; + top: 0; + right: 0; + z-index: 2; + display: block; + width: 34px; + height: 34px; + line-height: 34px; + text-align: center; + pointer-events: none; +} +.input-lg + .form-control-feedback, +.input-group-lg + .form-control-feedback, +.form-group-lg .form-control + .form-control-feedback { + width: 46px; + height: 46px; + line-height: 46px; +} +.input-sm + .form-control-feedback, +.input-group-sm + .form-control-feedback, +.form-group-sm .form-control + .form-control-feedback { + width: 30px; + height: 30px; + line-height: 30px; +} +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline, +.has-success.radio label, +.has-success.checkbox label, +.has-success.radio-inline label, +.has-success.checkbox-inline label { + color: #3c763d; +} +.has-success .form-control { + border-color: #3c763d; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-success .form-control:focus { + border-color: #2b542c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; +} +.has-success .input-group-addon { + color: #3c763d; + background-color: #dff0d8; + border-color: #3c763d; +} +.has-success .form-control-feedback { + color: #3c763d; +} +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline, +.has-warning.radio label, +.has-warning.checkbox label, +.has-warning.radio-inline label, +.has-warning.checkbox-inline label { + color: #8a6d3b; +} +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-warning .form-control:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; +} +.has-warning .input-group-addon { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #8a6d3b; +} +.has-warning .form-control-feedback { + color: #8a6d3b; +} +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline, +.has-error.radio label, +.has-error.checkbox label, +.has-error.radio-inline label, +.has-error.checkbox-inline label { + color: #a94442; +} +.has-error .form-control { + border-color: #a94442; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-error .form-control:focus { + border-color: #843534; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; +} +.has-error .input-group-addon { + color: #a94442; + background-color: #f2dede; + border-color: #a94442; +} +.has-error .form-control-feedback { + color: #a94442; +} +.has-feedback label ~ .form-control-feedback { + top: 25px; +} +.has-feedback label.sr-only ~ .form-control-feedback { + top: 0; +} +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #737373; +} +@media (min-width: 768px) { + .form-inline .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .form-inline .form-control-static { + display: inline-block; + } + .form-inline .input-group { + display: inline-table; + vertical-align: middle; + } + .form-inline .input-group .input-group-addon, + .form-inline .input-group .input-group-btn, + .form-inline .input-group .form-control { + width: auto; + } + .form-inline .input-group > .form-control { + width: 100%; + } + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio, + .form-inline .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio label, + .form-inline .checkbox label { + padding-left: 0; + } + .form-inline .radio input[type="radio"], + .form-inline .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .form-inline .has-feedback .form-control-feedback { + top: 0; + } +} +.form-horizontal .radio, +.form-horizontal .checkbox, +.form-horizontal .radio-inline, +.form-horizontal .checkbox-inline { + padding-top: 7px; + margin-top: 0; + margin-bottom: 0; +} +.form-horizontal .radio, +.form-horizontal .checkbox { + min-height: 27px; +} +.form-horizontal .form-group { + margin-right: -15px; + margin-left: -15px; +} +@media (min-width: 768px) { + .form-horizontal .control-label { + padding-top: 7px; + margin-bottom: 0; + text-align: right; + } +} +.form-horizontal .has-feedback .form-control-feedback { + right: 15px; +} +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 11px; + font-size: 18px; + } +} +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; + font-size: 12px; + } +} +.btn { + display: inline-block; + padding: 6px 12px; + margin-bottom: 0; + font-size: 14px; + font-weight: normal; + line-height: 1.42857143; + text-align: center; + white-space: nowrap; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + background-image: none; + border: 1px solid transparent; + border-radius: 4px; +} +.btn:focus, +.btn:active:focus, +.btn.active:focus, +.btn.focus, +.btn:active.focus, +.btn.active.focus { + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.btn:hover, +.btn:focus, +.btn.focus { + color: #333; + text-decoration: none; +} +.btn:active, +.btn.active { + background-image: none; + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn.disabled, +.btn[disabled], +fieldset[disabled] .btn { + cursor: not-allowed; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; + opacity: .65; +} +a.btn.disabled, +fieldset[disabled] a.btn { + pointer-events: none; +} +.btn-default { + color: #333; + background-color: #fff; + border-color: #ccc; +} +.btn-default:focus, +.btn-default.focus { + color: #333; + background-color: #e6e6e6; + border-color: #8c8c8c; +} +.btn-default:hover { + color: #333; + background-color: #e6e6e6; + border-color: #adadad; +} +.btn-default:active, +.btn-default.active, +.open > .dropdown-toggle.btn-default { + color: #333; + background-color: #e6e6e6; + border-color: #adadad; +} +.btn-default:active:hover, +.btn-default.active:hover, +.open > .dropdown-toggle.btn-default:hover, +.btn-default:active:focus, +.btn-default.active:focus, +.open > .dropdown-toggle.btn-default:focus, +.btn-default:active.focus, +.btn-default.active.focus, +.open > .dropdown-toggle.btn-default.focus { + color: #333; + background-color: #d4d4d4; + border-color: #8c8c8c; +} +.btn-default:active, +.btn-default.active, +.open > .dropdown-toggle.btn-default { + background-image: none; +} +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled.focus, +.btn-default[disabled].focus, +fieldset[disabled] .btn-default.focus { + background-color: #fff; + border-color: #ccc; +} +.btn-default .badge { + color: #fff; + background-color: #333; +} +.btn-primary { + color: #fff; + background-color: #337ab7; + border-color: #2e6da4; +} +.btn-primary:focus, +.btn-primary.focus { + color: #fff; + background-color: #286090; + border-color: #122b40; +} +.btn-primary:hover { + color: #fff; + background-color: #286090; + border-color: #204d74; +} +.btn-primary:active, +.btn-primary.active, +.open > .dropdown-toggle.btn-primary { + color: #fff; + background-color: #286090; + border-color: #204d74; +} +.btn-primary:active:hover, +.btn-primary.active:hover, +.open > .dropdown-toggle.btn-primary:hover, +.btn-primary:active:focus, +.btn-primary.active:focus, +.open > .dropdown-toggle.btn-primary:focus, +.btn-primary:active.focus, +.btn-primary.active.focus, +.open > .dropdown-toggle.btn-primary.focus { + color: #fff; + background-color: #204d74; + border-color: #122b40; +} +.btn-primary:active, +.btn-primary.active, +.open > .dropdown-toggle.btn-primary { + background-image: none; +} +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled.focus, +.btn-primary[disabled].focus, +fieldset[disabled] .btn-primary.focus { + background-color: #337ab7; + border-color: #2e6da4; +} +.btn-primary .badge { + color: #337ab7; + background-color: #fff; +} +.btn-success { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success:focus, +.btn-success.focus { + color: #fff; + background-color: #449d44; + border-color: #255625; +} +.btn-success:hover { + color: #fff; + background-color: #449d44; + border-color: #398439; +} +.btn-success:active, +.btn-success.active, +.open > .dropdown-toggle.btn-success { + color: #fff; + background-color: #449d44; + border-color: #398439; +} +.btn-success:active:hover, +.btn-success.active:hover, +.open > .dropdown-toggle.btn-success:hover, +.btn-success:active:focus, +.btn-success.active:focus, +.open > .dropdown-toggle.btn-success:focus, +.btn-success:active.focus, +.btn-success.active.focus, +.open > .dropdown-toggle.btn-success.focus { + color: #fff; + background-color: #398439; + border-color: #255625; +} +.btn-success:active, +.btn-success.active, +.open > .dropdown-toggle.btn-success { + background-image: none; +} +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled.focus, +.btn-success[disabled].focus, +fieldset[disabled] .btn-success.focus { + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success .badge { + color: #5cb85c; + background-color: #fff; +} +.btn-info { + color: #fff; + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info:focus, +.btn-info.focus { + color: #fff; + background-color: #31b0d5; + border-color: #1b6d85; +} +.btn-info:hover { + color: #fff; + background-color: #31b0d5; + border-color: #269abc; +} +.btn-info:active, +.btn-info.active, +.open > .dropdown-toggle.btn-info { + color: #fff; + background-color: #31b0d5; + border-color: #269abc; +} +.btn-info:active:hover, +.btn-info.active:hover, +.open > .dropdown-toggle.btn-info:hover, +.btn-info:active:focus, +.btn-info.active:focus, +.open > .dropdown-toggle.btn-info:focus, +.btn-info:active.focus, +.btn-info.active.focus, +.open > .dropdown-toggle.btn-info.focus { + color: #fff; + background-color: #269abc; + border-color: #1b6d85; +} +.btn-info:active, +.btn-info.active, +.open > .dropdown-toggle.btn-info { + background-image: none; +} +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled.focus, +.btn-info[disabled].focus, +fieldset[disabled] .btn-info.focus { + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info .badge { + color: #5bc0de; + background-color: #fff; +} +.btn-warning { + color: #fff; + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning:focus, +.btn-warning.focus { + color: #fff; + background-color: #ec971f; + border-color: #985f0d; +} +.btn-warning:hover { + color: #fff; + background-color: #ec971f; + border-color: #d58512; +} +.btn-warning:active, +.btn-warning.active, +.open > .dropdown-toggle.btn-warning { + color: #fff; + background-color: #ec971f; + border-color: #d58512; +} +.btn-warning:active:hover, +.btn-warning.active:hover, +.open > .dropdown-toggle.btn-warning:hover, +.btn-warning:active:focus, +.btn-warning.active:focus, +.open > .dropdown-toggle.btn-warning:focus, +.btn-warning:active.focus, +.btn-warning.active.focus, +.open > .dropdown-toggle.btn-warning.focus { + color: #fff; + background-color: #d58512; + border-color: #985f0d; +} +.btn-warning:active, +.btn-warning.active, +.open > .dropdown-toggle.btn-warning { + background-image: none; +} +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled.focus, +.btn-warning[disabled].focus, +fieldset[disabled] .btn-warning.focus { + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning .badge { + color: #f0ad4e; + background-color: #fff; +} +.btn-danger { + color: #fff; + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger:focus, +.btn-danger.focus { + color: #fff; + background-color: #c9302c; + border-color: #761c19; +} +.btn-danger:hover { + color: #fff; + background-color: #c9302c; + border-color: #ac2925; +} +.btn-danger:active, +.btn-danger.active, +.open > .dropdown-toggle.btn-danger { + color: #fff; + background-color: #c9302c; + border-color: #ac2925; +} +.btn-danger:active:hover, +.btn-danger.active:hover, +.open > .dropdown-toggle.btn-danger:hover, +.btn-danger:active:focus, +.btn-danger.active:focus, +.open > .dropdown-toggle.btn-danger:focus, +.btn-danger:active.focus, +.btn-danger.active.focus, +.open > .dropdown-toggle.btn-danger.focus { + color: #fff; + background-color: #ac2925; + border-color: #761c19; +} +.btn-danger:active, +.btn-danger.active, +.open > .dropdown-toggle.btn-danger { + background-image: none; +} +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled.focus, +.btn-danger[disabled].focus, +fieldset[disabled] .btn-danger.focus { + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger .badge { + color: #d9534f; + background-color: #fff; +} +.btn-link { + font-weight: normal; + color: #337ab7; + border-radius: 0; +} +.btn-link, +.btn-link:active, +.btn-link.active, +.btn-link[disabled], +fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-link, +.btn-link:hover, +.btn-link:focus, +.btn-link:active { + border-color: transparent; +} +.btn-link:hover, +.btn-link:focus { + color: #23527c; + text-decoration: underline; + background-color: transparent; +} +.btn-link[disabled]:hover, +fieldset[disabled] .btn-link:hover, +.btn-link[disabled]:focus, +fieldset[disabled] .btn-link:focus { + color: #777; + text-decoration: none; +} +.btn-lg, +.btn-group-lg > .btn { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +.btn-sm, +.btn-group-sm > .btn { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-xs, +.btn-group-xs > .btn { + padding: 1px 5px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-block { + display: block; + width: 100%; +} +.btn-block + .btn-block { + margin-top: 5px; +} +input[type="submit"].btn-block, +input[type="reset"].btn-block, +input[type="button"].btn-block { + width: 100%; +} +.fade { + opacity: 0; + -webkit-transition: opacity .15s linear; + -o-transition: opacity .15s linear; + transition: opacity .15s linear; +} +.fade.in { + opacity: 1; +} +.collapse { + display: none; +} +.collapse.in { + display: block; +} +tr.collapse.in { + display: table-row; +} +tbody.collapse.in { + display: table-row-group; +} +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition-timing-function: ease; + -o-transition-timing-function: ease; + transition-timing-function: ease; + -webkit-transition-duration: .35s; + -o-transition-duration: .35s; + transition-duration: .35s; + -webkit-transition-property: height, visibility; + -o-transition-property: height, visibility; + transition-property: height, visibility; +} +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px dashed; + border-top: 4px solid \9; + border-right: 4px solid transparent; + border-left: 4px solid transparent; +} +.dropup, +.dropdown { + position: relative; +} +.dropdown-toggle:focus { + outline: 0; +} +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + font-size: 14px; + text-align: left; + list-style: none; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, .15); + border-radius: 4px; + -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); + box-shadow: 0 6px 12px rgba(0, 0, 0, .175); +} +.dropdown-menu.pull-right { + right: 0; + left: auto; +} +.dropdown-menu .divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5; +} +.dropdown-menu > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333; + white-space: nowrap; +} +.dropdown-menu > li > a:hover, +.dropdown-menu > li > a:focus { + color: #262626; + text-decoration: none; + background-color: #f5f5f5; +} +.dropdown-menu > .active > a, +.dropdown-menu > .active > a:hover, +.dropdown-menu > .active > a:focus { + color: #fff; + text-decoration: none; + background-color: #337ab7; + outline: 0; +} +.dropdown-menu > .disabled > a, +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { + color: #777; +} +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { + text-decoration: none; + cursor: not-allowed; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); +} +.open > .dropdown-menu { + display: block; +} +.open > a { + outline: 0; +} +.dropdown-menu-right { + right: 0; + left: auto; +} +.dropdown-menu-left { + right: auto; + left: 0; +} +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 12px; + line-height: 1.42857143; + color: #777; + white-space: nowrap; +} +.dropdown-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 990; +} +.pull-right > .dropdown-menu { + right: 0; + left: auto; +} +.dropup .caret, +.navbar-fixed-bottom .dropdown .caret { + content: ""; + border-top: 0; + border-bottom: 4px dashed; + border-bottom: 4px solid \9; +} +.dropup .dropdown-menu, +.navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 2px; +} +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + right: 0; + left: auto; + } + .navbar-right .dropdown-menu-left { + right: auto; + left: 0; + } +} +.btn-group, +.btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle; +} +.btn-group > .btn, +.btn-group-vertical > .btn { + position: relative; + float: left; +} +.btn-group > .btn:hover, +.btn-group-vertical > .btn:hover, +.btn-group > .btn:focus, +.btn-group-vertical > .btn:focus, +.btn-group > .btn:active, +.btn-group-vertical > .btn:active, +.btn-group > .btn.active, +.btn-group-vertical > .btn.active { + z-index: 2; +} +.btn-group .btn + .btn, +.btn-group .btn + .btn-group, +.btn-group .btn-group + .btn, +.btn-group .btn-group + .btn-group { + margin-left: -1px; +} +.btn-toolbar { + margin-left: -5px; +} +.btn-toolbar .btn, +.btn-toolbar .btn-group, +.btn-toolbar .input-group { + float: left; +} +.btn-toolbar > .btn, +.btn-toolbar > .btn-group, +.btn-toolbar > .input-group { + margin-left: 5px; +} +.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0; +} +.btn-group > .btn:first-child { + margin-left: 0; +} +.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.btn-group > .btn:last-child:not(:first-child), +.btn-group > .dropdown-toggle:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group > .btn-group { + float: left; +} +.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} +.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, +.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group .dropdown-toggle:active, +.btn-group.open .dropdown-toggle { + outline: 0; +} +.btn-group > .btn + .dropdown-toggle { + padding-right: 8px; + padding-left: 8px; +} +.btn-group > .btn-lg + .dropdown-toggle { + padding-right: 12px; + padding-left: 12px; +} +.btn-group.open .dropdown-toggle { + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none; +} +.btn .caret { + margin-left: 0; +} +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0; +} +.dropup .btn-lg .caret { + border-width: 0 5px 5px; +} +.btn-group-vertical > .btn, +.btn-group-vertical > .btn-group, +.btn-group-vertical > .btn-group > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; +} +.btn-group-vertical > .btn-group > .btn { + float: none; +} +.btn-group-vertical > .btn + .btn, +.btn-group-vertical > .btn + .btn-group, +.btn-group-vertical > .btn-group + .btn, +.btn-group-vertical > .btn-group + .btn-group { + margin-top: -1px; + margin-left: 0; +} +.btn-group-vertical > .btn:not(:first-child):not(:last-child) { + border-radius: 0; +} +.btn-group-vertical > .btn:first-child:not(:last-child) { + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group-vertical > .btn:last-child:not(:first-child) { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate; +} +.btn-group-justified > .btn, +.btn-group-justified > .btn-group { + display: table-cell; + float: none; + width: 1%; +} +.btn-group-justified > .btn-group .btn { + width: 100%; +} +.btn-group-justified > .btn-group .dropdown-menu { + left: auto; +} +[data-toggle="buttons"] > .btn input[type="radio"], +[data-toggle="buttons"] > .btn-group > .btn input[type="radio"], +[data-toggle="buttons"] > .btn input[type="checkbox"], +[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { + position: absolute; + clip: rect(0, 0, 0, 0); + pointer-events: none; +} +.input-group { + position: relative; + display: table; + border-collapse: separate; +} +.input-group[class*="col-"] { + float: none; + padding-right: 0; + padding-left: 0; +} +.input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; +} +.input-group .form-control:focus { + z-index: 3; +} +.input-group-lg > .form-control, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .btn { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px; +} +select.input-group-lg > .form-control, +select.input-group-lg > .input-group-addon, +select.input-group-lg > .input-group-btn > .btn { + height: 46px; + line-height: 46px; +} +textarea.input-group-lg > .form-control, +textarea.input-group-lg > .input-group-addon, +textarea.input-group-lg > .input-group-btn > .btn, +select[multiple].input-group-lg > .form-control, +select[multiple].input-group-lg > .input-group-addon, +select[multiple].input-group-lg > .input-group-btn > .btn { + height: auto; +} +.input-group-sm > .form-control, +.input-group-sm > .input-group-addon, +.input-group-sm > .input-group-btn > .btn { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-group-sm > .form-control, +select.input-group-sm > .input-group-addon, +select.input-group-sm > .input-group-btn > .btn { + height: 30px; + line-height: 30px; +} +textarea.input-group-sm > .form-control, +textarea.input-group-sm > .input-group-addon, +textarea.input-group-sm > .input-group-btn > .btn, +select[multiple].input-group-sm > .form-control, +select[multiple].input-group-sm > .input-group-addon, +select[multiple].input-group-sm > .input-group-btn > .btn { + height: auto; +} +.input-group-addon, +.input-group-btn, +.input-group .form-control { + display: table-cell; +} +.input-group-addon:not(:first-child):not(:last-child), +.input-group-btn:not(:first-child):not(:last-child), +.input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; +} +.input-group-addon, +.input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle; +} +.input-group-addon { + padding: 6px 12px; + font-size: 14px; + font-weight: normal; + line-height: 1; + color: #555; + text-align: center; + background-color: #eee; + border: 1px solid #ccc; + border-radius: 4px; +} +.input-group-addon.input-sm { + padding: 5px 10px; + font-size: 12px; + border-radius: 3px; +} +.input-group-addon.input-lg { + padding: 10px 16px; + font-size: 18px; + border-radius: 6px; +} +.input-group-addon input[type="radio"], +.input-group-addon input[type="checkbox"] { + margin-top: 0; +} +.input-group .form-control:first-child, +.input-group-addon:first-child, +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group > .btn, +.input-group-btn:first-child > .dropdown-toggle, +.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), +.input-group-btn:last-child > .btn-group:not(:last-child) > .btn { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.input-group-addon:first-child { + border-right: 0; +} +.input-group .form-control:last-child, +.input-group-addon:last-child, +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group > .btn, +.input-group-btn:last-child > .dropdown-toggle, +.input-group-btn:first-child > .btn:not(:first-child), +.input-group-btn:first-child > .btn-group:not(:first-child) > .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.input-group-addon:last-child { + border-left: 0; +} +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; +} +.input-group-btn > .btn { + position: relative; +} +.input-group-btn > .btn + .btn { + margin-left: -1px; +} +.input-group-btn > .btn:hover, +.input-group-btn > .btn:focus, +.input-group-btn > .btn:active { + z-index: 2; +} +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group { + margin-right: -1px; +} +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group { + z-index: 2; + margin-left: -1px; +} +.nav { + padding-left: 0; + margin-bottom: 0; + list-style: none; +} +.nav > li { + position: relative; + display: block; +} +.nav > li > a { + position: relative; + display: block; + padding: 10px 15px; +} +.nav > li > a:hover, +.nav > li > a:focus { + text-decoration: none; + background-color: #eee; +} +.nav > li.disabled > a { + color: #777; +} +.nav > li.disabled > a:hover, +.nav > li.disabled > a:focus { + color: #777; + text-decoration: none; + cursor: not-allowed; + background-color: transparent; +} +.nav .open > a, +.nav .open > a:hover, +.nav .open > a:focus { + background-color: #eee; + border-color: #337ab7; +} +.nav .nav-divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5; +} +.nav > li > a > img { + max-width: none; +} +.nav-tabs { + border-bottom: 1px solid #ddd; +} +.nav-tabs > li { + float: left; + margin-bottom: -1px; +} +.nav-tabs > li > a { + margin-right: 2px; + line-height: 1.42857143; + border: 1px solid transparent; + border-radius: 4px 4px 0 0; +} +.nav-tabs > li > a:hover { + border-color: #eee #eee #ddd; +} +.nav-tabs > li.active > a, +.nav-tabs > li.active > a:hover, +.nav-tabs > li.active > a:focus { + color: #555; + cursor: default; + background-color: #fff; + border: 1px solid #ddd; + border-bottom-color: transparent; +} +.nav-tabs.nav-justified { + width: 100%; + border-bottom: 0; +} +.nav-tabs.nav-justified > li { + float: none; +} +.nav-tabs.nav-justified > li > a { + margin-bottom: 5px; + text-align: center; +} +.nav-tabs.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-tabs.nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs.nav-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs.nav-justified > .active > a, +.nav-tabs.nav-justified > .active > a:hover, +.nav-tabs.nav-justified > .active > a:focus { + border: 1px solid #ddd; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li > a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs.nav-justified > .active > a, + .nav-tabs.nav-justified > .active > a:hover, + .nav-tabs.nav-justified > .active > a:focus { + border-bottom-color: #fff; + } +} +.nav-pills > li { + float: left; +} +.nav-pills > li > a { + border-radius: 4px; +} +.nav-pills > li + li { + margin-left: 2px; +} +.nav-pills > li.active > a, +.nav-pills > li.active > a:hover, +.nav-pills > li.active > a:focus { + color: #fff; + background-color: #337ab7; +} +.nav-stacked > li { + float: none; +} +.nav-stacked > li + li { + margin-top: 2px; + margin-left: 0; +} +.nav-justified { + width: 100%; +} +.nav-justified > li { + float: none; +} +.nav-justified > li > a { + margin-bottom: 5px; + text-align: center; +} +.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs-justified { + border-bottom: 0; +} +.nav-tabs-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs-justified > .active > a, +.nav-tabs-justified > .active > a:hover, +.nav-tabs-justified > .active > a:focus { + border: 1px solid #ddd; +} +@media (min-width: 768px) { + .nav-tabs-justified > li > a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs-justified > .active > a, + .nav-tabs-justified > .active > a:hover, + .nav-tabs-justified > .active > a:focus { + border-bottom-color: #fff; + } +} +.tab-content > .tab-pane { + display: none; +} +.tab-content > .active { + display: block; +} +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 20px; + border: 1px solid transparent; +} +@media (min-width: 768px) { + .navbar { + border-radius: 4px; + } +} +@media (min-width: 768px) { + .navbar-header { + float: left; + } +} +.navbar-collapse { + padding-right: 15px; + padding-left: 15px; + overflow-x: visible; + -webkit-overflow-scrolling: touch; + border-top: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); +} +.navbar-collapse.in { + overflow-y: auto; +} +@media (min-width: 768px) { + .navbar-collapse { + width: auto; + border-top: 0; + -webkit-box-shadow: none; + box-shadow: none; + } + .navbar-collapse.collapse { + display: block !important; + height: auto !important; + padding-bottom: 0; + overflow: visible !important; + } + .navbar-collapse.in { + overflow-y: visible; + } + .navbar-fixed-top .navbar-collapse, + .navbar-static-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + padding-right: 0; + padding-left: 0; + } +} +.navbar-fixed-top .navbar-collapse, +.navbar-fixed-bottom .navbar-collapse { + max-height: 340px; +} +@media (max-device-width: 480px) and (orientation: landscape) { + .navbar-fixed-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + max-height: 200px; + } +} +.container > .navbar-header, +.container-fluid > .navbar-header, +.container > .navbar-collapse, +.container-fluid > .navbar-collapse { + margin-right: -15px; + margin-left: -15px; +} +@media (min-width: 768px) { + .container > .navbar-header, + .container-fluid > .navbar-header, + .container > .navbar-collapse, + .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; + } +} +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px; +} +@media (min-width: 768px) { + .navbar-static-top { + border-radius: 0; + } +} +.navbar-fixed-top, +.navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; +} +@media (min-width: 768px) { + .navbar-fixed-top, + .navbar-fixed-bottom { + border-radius: 0; + } +} +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px; +} +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0; +} +.navbar-brand { + float: left; + height: 50px; + padding: 15px 15px; + font-size: 18px; + line-height: 20px; +} +.navbar-brand:hover, +.navbar-brand:focus { + text-decoration: none; +} +.navbar-brand > img { + display: block; +} +@media (min-width: 768px) { + .navbar > .container .navbar-brand, + .navbar > .container-fluid .navbar-brand { + margin-left: -15px; + } +} +.navbar-toggle { + position: relative; + float: right; + padding: 9px 10px; + margin-top: 8px; + margin-right: 15px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 4px; +} +.navbar-toggle:focus { + outline: 0; +} +.navbar-toggle .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px; +} +.navbar-toggle .icon-bar + .icon-bar { + margin-top: 4px; +} +@media (min-width: 768px) { + .navbar-toggle { + display: none; + } +} +.navbar-nav { + margin: 7.5px -15px; +} +.navbar-nav > li > a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 20px; +} +@media (max-width: 767px) { + .navbar-nav .open .dropdown-menu { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + -webkit-box-shadow: none; + box-shadow: none; + } + .navbar-nav .open .dropdown-menu > li > a, + .navbar-nav .open .dropdown-menu .dropdown-header { + padding: 5px 15px 5px 25px; + } + .navbar-nav .open .dropdown-menu > li > a { + line-height: 20px; + } + .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-nav .open .dropdown-menu > li > a:focus { + background-image: none; + } +} +@media (min-width: 768px) { + .navbar-nav { + float: left; + margin: 0; + } + .navbar-nav > li { + float: left; + } + .navbar-nav > li > a { + padding-top: 15px; + padding-bottom: 15px; + } +} +.navbar-form { + padding: 10px 15px; + margin-top: 8px; + margin-right: -15px; + margin-bottom: 8px; + margin-left: -15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); +} +@media (min-width: 768px) { + .navbar-form .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .navbar-form .form-control-static { + display: inline-block; + } + .navbar-form .input-group { + display: inline-table; + vertical-align: middle; + } + .navbar-form .input-group .input-group-addon, + .navbar-form .input-group .input-group-btn, + .navbar-form .input-group .form-control { + width: auto; + } + .navbar-form .input-group > .form-control { + width: 100%; + } + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio, + .navbar-form .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio label, + .navbar-form .checkbox label { + padding-left: 0; + } + .navbar-form .radio input[type="radio"], + .navbar-form .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .navbar-form .has-feedback .form-control-feedback { + top: 0; + } +} +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; + } + .navbar-form .form-group:last-child { + margin-bottom: 0; + } +} +@media (min-width: 768px) { + .navbar-form { + width: auto; + padding-top: 0; + padding-bottom: 0; + margin-right: 0; + margin-left: 0; + border: 0; + -webkit-box-shadow: none; + box-shadow: none; + } +} +.navbar-nav > li > .dropdown-menu { + margin-top: 0; + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { + margin-bottom: 0; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.navbar-btn { + margin-top: 8px; + margin-bottom: 8px; +} +.navbar-btn.btn-sm { + margin-top: 10px; + margin-bottom: 10px; +} +.navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px; +} +.navbar-text { + margin-top: 15px; + margin-bottom: 15px; +} +@media (min-width: 768px) { + .navbar-text { + float: left; + margin-right: 15px; + margin-left: 15px; + } +} +@media (min-width: 768px) { + .navbar-left { + float: left !important; + } + .navbar-right { + float: right !important; + margin-right: -15px; + } + .navbar-right ~ .navbar-right { + margin-right: 0; + } +} +.navbar-default { + background-color: #f8f8f8; + border-color: #e7e7e7; +} +.navbar-default .navbar-brand { + color: #777; +} +.navbar-default .navbar-brand:hover, +.navbar-default .navbar-brand:focus { + color: #5e5e5e; + background-color: transparent; +} +.navbar-default .navbar-text { + color: #777; +} +.navbar-default .navbar-nav > li > a { + color: #777; +} +.navbar-default .navbar-nav > li > a:hover, +.navbar-default .navbar-nav > li > a:focus { + color: #333; + background-color: transparent; +} +.navbar-default .navbar-nav > .active > a, +.navbar-default .navbar-nav > .active > a:hover, +.navbar-default .navbar-nav > .active > a:focus { + color: #555; + background-color: #e7e7e7; +} +.navbar-default .navbar-nav > .disabled > a, +.navbar-default .navbar-nav > .disabled > a:hover, +.navbar-default .navbar-nav > .disabled > a:focus { + color: #ccc; + background-color: transparent; +} +.navbar-default .navbar-toggle { + border-color: #ddd; +} +.navbar-default .navbar-toggle:hover, +.navbar-default .navbar-toggle:focus { + background-color: #ddd; +} +.navbar-default .navbar-toggle .icon-bar { + background-color: #888; +} +.navbar-default .navbar-collapse, +.navbar-default .navbar-form { + border-color: #e7e7e7; +} +.navbar-default .navbar-nav > .open > a, +.navbar-default .navbar-nav > .open > a:hover, +.navbar-default .navbar-nav > .open > a:focus { + color: #555; + background-color: #e7e7e7; +} +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > li > a { + color: #777; + } + .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { + color: #333; + background-color: transparent; + } + .navbar-default .navbar-nav .open .dropdown-menu > .active > a, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #555; + background-color: #e7e7e7; + } + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #ccc; + background-color: transparent; + } +} +.navbar-default .navbar-link { + color: #777; +} +.navbar-default .navbar-link:hover { + color: #333; +} +.navbar-default .btn-link { + color: #777; +} +.navbar-default .btn-link:hover, +.navbar-default .btn-link:focus { + color: #333; +} +.navbar-default .btn-link[disabled]:hover, +fieldset[disabled] .navbar-default .btn-link:hover, +.navbar-default .btn-link[disabled]:focus, +fieldset[disabled] .navbar-default .btn-link:focus { + color: #ccc; +} +.navbar-inverse { + background-color: #222; + border-color: #080808; +} +.navbar-inverse .navbar-brand { + color: #9d9d9d; +} +.navbar-inverse .navbar-brand:hover, +.navbar-inverse .navbar-brand:focus { + color: #fff; + background-color: transparent; +} +.navbar-inverse .navbar-text { + color: #9d9d9d; +} +.navbar-inverse .navbar-nav > li > a { + color: #9d9d9d; +} +.navbar-inverse .navbar-nav > li > a:hover, +.navbar-inverse .navbar-nav > li > a:focus { + color: #fff; + background-color: transparent; +} +.navbar-inverse .navbar-nav > .active > a, +.navbar-inverse .navbar-nav > .active > a:hover, +.navbar-inverse .navbar-nav > .active > a:focus { + color: #fff; + background-color: #080808; +} +.navbar-inverse .navbar-nav > .disabled > a, +.navbar-inverse .navbar-nav > .disabled > a:hover, +.navbar-inverse .navbar-nav > .disabled > a:focus { + color: #444; + background-color: transparent; +} +.navbar-inverse .navbar-toggle { + border-color: #333; +} +.navbar-inverse .navbar-toggle:hover, +.navbar-inverse .navbar-toggle:focus { + background-color: #333; +} +.navbar-inverse .navbar-toggle .icon-bar { + background-color: #fff; +} +.navbar-inverse .navbar-collapse, +.navbar-inverse .navbar-form { + border-color: #101010; +} +.navbar-inverse .navbar-nav > .open > a, +.navbar-inverse .navbar-nav > .open > a:hover, +.navbar-inverse .navbar-nav > .open > a:focus { + color: #fff; + background-color: #080808; +} +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { + border-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { + color: #9d9d9d; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { + color: #fff; + background-color: transparent; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #fff; + background-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #444; + background-color: transparent; + } +} +.navbar-inverse .navbar-link { + color: #9d9d9d; +} +.navbar-inverse .navbar-link:hover { + color: #fff; +} +.navbar-inverse .btn-link { + color: #9d9d9d; +} +.navbar-inverse .btn-link:hover, +.navbar-inverse .btn-link:focus { + color: #fff; +} +.navbar-inverse .btn-link[disabled]:hover, +fieldset[disabled] .navbar-inverse .btn-link:hover, +.navbar-inverse .btn-link[disabled]:focus, +fieldset[disabled] .navbar-inverse .btn-link:focus { + color: #444; +} +.breadcrumb { + padding: 8px 15px; + margin-bottom: 20px; + list-style: none; + background-color: #f5f5f5; + border-radius: 4px; +} +.breadcrumb > li { + display: inline-block; +} +.breadcrumb > li + li:before { + padding: 0 5px; + color: #ccc; + content: "/\00a0"; +} +.breadcrumb > .active { + color: #777; +} +.pagination { + display: inline-block; + padding-left: 0; + margin: 20px 0; + border-radius: 4px; +} +.pagination > li { + display: inline; +} +.pagination > li > a, +.pagination > li > span { + position: relative; + float: left; + padding: 6px 12px; + margin-left: -1px; + line-height: 1.42857143; + color: #337ab7; + text-decoration: none; + background-color: #fff; + border: 1px solid #ddd; +} +.pagination > li:first-child > a, +.pagination > li:first-child > span { + margin-left: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} +.pagination > li:last-child > a, +.pagination > li:last-child > span { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} +.pagination > li > a:hover, +.pagination > li > span:hover, +.pagination > li > a:focus, +.pagination > li > span:focus { + z-index: 2; + color: #23527c; + background-color: #eee; + border-color: #ddd; +} +.pagination > .active > a, +.pagination > .active > span, +.pagination > .active > a:hover, +.pagination > .active > span:hover, +.pagination > .active > a:focus, +.pagination > .active > span:focus { + z-index: 3; + color: #fff; + cursor: default; + background-color: #337ab7; + border-color: #337ab7; +} +.pagination > .disabled > span, +.pagination > .disabled > span:hover, +.pagination > .disabled > span:focus, +.pagination > .disabled > a, +.pagination > .disabled > a:hover, +.pagination > .disabled > a:focus { + color: #777; + cursor: not-allowed; + background-color: #fff; + border-color: #ddd; +} +.pagination-lg > li > a, +.pagination-lg > li > span { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; +} +.pagination-lg > li:first-child > a, +.pagination-lg > li:first-child > span { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; +} +.pagination-lg > li:last-child > a, +.pagination-lg > li:last-child > span { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; +} +.pagination-sm > li > a, +.pagination-sm > li > span { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; +} +.pagination-sm > li:first-child > a, +.pagination-sm > li:first-child > span { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} +.pagination-sm > li:last-child > a, +.pagination-sm > li:last-child > span { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} +.pager { + padding-left: 0; + margin: 20px 0; + text-align: center; + list-style: none; +} +.pager li { + display: inline; +} +.pager li > a, +.pager li > span { + display: inline-block; + padding: 5px 14px; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 15px; +} +.pager li > a:hover, +.pager li > a:focus { + text-decoration: none; + background-color: #eee; +} +.pager .next > a, +.pager .next > span { + float: right; +} +.pager .previous > a, +.pager .previous > span { + float: left; +} +.pager .disabled > a, +.pager .disabled > a:hover, +.pager .disabled > a:focus, +.pager .disabled > span { + color: #777; + cursor: not-allowed; + background-color: #fff; +} +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: bold; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em; +} +a.label:hover, +a.label:focus { + color: #fff; + text-decoration: none; + cursor: pointer; +} +.label:empty { + display: none; +} +.btn .label { + position: relative; + top: -1px; +} +.label-default { + background-color: #777; +} +.label-default[href]:hover, +.label-default[href]:focus { + background-color: #5e5e5e; +} +.label-primary { + background-color: #337ab7; +} +.label-primary[href]:hover, +.label-primary[href]:focus { + background-color: #286090; +} +.label-success { + background-color: #5cb85c; +} +.label-success[href]:hover, +.label-success[href]:focus { + background-color: #449d44; +} +.label-info { + background-color: #5bc0de; +} +.label-info[href]:hover, +.label-info[href]:focus { + background-color: #31b0d5; +} +.label-warning { + background-color: #f0ad4e; +} +.label-warning[href]:hover, +.label-warning[href]:focus { + background-color: #ec971f; +} +.label-danger { + background-color: #d9534f; +} +.label-danger[href]:hover, +.label-danger[href]:focus { + background-color: #c9302c; +} +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 12px; + font-weight: bold; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: middle; + background-color: #777; + border-radius: 10px; +} +.badge:empty { + display: none; +} +.btn .badge { + position: relative; + top: -1px; +} +.btn-xs .badge, +.btn-group-xs > .btn .badge { + top: 0; + padding: 1px 5px; +} +a.badge:hover, +a.badge:focus { + color: #fff; + text-decoration: none; + cursor: pointer; +} +.list-group-item.active > .badge, +.nav-pills > .active > a > .badge { + color: #337ab7; + background-color: #fff; +} +.list-group-item > .badge { + float: right; +} +.list-group-item > .badge + .badge { + margin-right: 5px; +} +.nav-pills > li > a > .badge { + margin-left: 3px; +} +.jumbotron { + padding-top: 30px; + padding-bottom: 30px; + margin-bottom: 30px; + color: inherit; + background-color: #eee; +} +.jumbotron h1, +.jumbotron .h1 { + color: inherit; +} +.jumbotron p { + margin-bottom: 15px; + font-size: 21px; + font-weight: 200; +} +.jumbotron > hr { + border-top-color: #d5d5d5; +} +.container .jumbotron, +.container-fluid .jumbotron { + padding-right: 15px; + padding-left: 15px; + border-radius: 6px; +} +.jumbotron .container { + max-width: 100%; +} +@media screen and (min-width: 768px) { + .jumbotron { + padding-top: 48px; + padding-bottom: 48px; + } + .container .jumbotron, + .container-fluid .jumbotron { + padding-right: 60px; + padding-left: 60px; + } + .jumbotron h1, + .jumbotron .h1 { + font-size: 63px; + } +} +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 20px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: border .2s ease-in-out; + -o-transition: border .2s ease-in-out; + transition: border .2s ease-in-out; +} +.thumbnail > img, +.thumbnail a > img { + margin-right: auto; + margin-left: auto; +} +a.thumbnail:hover, +a.thumbnail:focus, +a.thumbnail.active { + border-color: #337ab7; +} +.thumbnail .caption { + padding: 9px; + color: #333; +} +.alert { + padding: 15px; + margin-bottom: 20px; + border: 1px solid transparent; + border-radius: 4px; +} +.alert h4 { + margin-top: 0; + color: inherit; +} +.alert .alert-link { + font-weight: bold; +} +.alert > p, +.alert > ul { + margin-bottom: 0; +} +.alert > p + p { + margin-top: 5px; +} +.alert-dismissable, +.alert-dismissible { + padding-right: 35px; +} +.alert-dismissable .close, +.alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; +} +.alert-success { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.alert-success hr { + border-top-color: #c9e2b3; +} +.alert-success .alert-link { + color: #2b542c; +} +.alert-info { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.alert-info hr { + border-top-color: #a6e1ec; +} +.alert-info .alert-link { + color: #245269; +} +.alert-warning { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.alert-warning hr { + border-top-color: #f7e1b5; +} +.alert-warning .alert-link { + color: #66512c; +} +.alert-danger { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.alert-danger hr { + border-top-color: #e4b9c0; +} +.alert-danger .alert-link { + color: #843534; +} +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@-o-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +.progress { + height: 20px; + margin-bottom: 20px; + overflow: hidden; + background-color: #f5f5f5; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); +} +.progress-bar { + float: left; + width: 0; + height: 100%; + font-size: 12px; + line-height: 20px; + color: #fff; + text-align: center; + background-color: #337ab7; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); + -webkit-transition: width .6s ease; + -o-transition: width .6s ease; + transition: width .6s ease; +} +.progress-striped .progress-bar, +.progress-bar-striped { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + -webkit-background-size: 40px 40px; + background-size: 40px 40px; +} +.progress.active .progress-bar, +.progress-bar.active { + -webkit-animation: progress-bar-stripes 2s linear infinite; + -o-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; +} +.progress-bar-success { + background-color: #5cb85c; +} +.progress-striped .progress-bar-success { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-info { + background-color: #5bc0de; +} +.progress-striped .progress-bar-info { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-warning { + background-color: #f0ad4e; +} +.progress-striped .progress-bar-warning { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-danger { + background-color: #d9534f; +} +.progress-striped .progress-bar-danger { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.media { + margin-top: 15px; +} +.media:first-child { + margin-top: 0; +} +.media, +.media-body { + overflow: hidden; + zoom: 1; +} +.media-body { + width: 10000px; +} +.media-object { + display: block; +} +.media-object.img-thumbnail { + max-width: none; +} +.media-right, +.media > .pull-right { + padding-left: 10px; +} +.media-left, +.media > .pull-left { + padding-right: 10px; +} +.media-left, +.media-right, +.media-body { + display: table-cell; + vertical-align: top; +} +.media-middle { + vertical-align: middle; +} +.media-bottom { + vertical-align: bottom; +} +.media-heading { + margin-top: 0; + margin-bottom: 5px; +} +.media-list { + padding-left: 0; + list-style: none; +} +.list-group { + padding-left: 0; + margin-bottom: 20px; +} +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #fff; + border: 1px solid #ddd; +} +.list-group-item:first-child { + border-top-left-radius: 4px; + border-top-right-radius: 4px; +} +.list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +a.list-group-item, +button.list-group-item { + color: #555; +} +a.list-group-item .list-group-item-heading, +button.list-group-item .list-group-item-heading { + color: #333; +} +a.list-group-item:hover, +button.list-group-item:hover, +a.list-group-item:focus, +button.list-group-item:focus { + color: #555; + text-decoration: none; + background-color: #f5f5f5; +} +button.list-group-item { + width: 100%; + text-align: left; +} +.list-group-item.disabled, +.list-group-item.disabled:hover, +.list-group-item.disabled:focus { + color: #777; + cursor: not-allowed; + background-color: #eee; +} +.list-group-item.disabled .list-group-item-heading, +.list-group-item.disabled:hover .list-group-item-heading, +.list-group-item.disabled:focus .list-group-item-heading { + color: inherit; +} +.list-group-item.disabled .list-group-item-text, +.list-group-item.disabled:hover .list-group-item-text, +.list-group-item.disabled:focus .list-group-item-text { + color: #777; +} +.list-group-item.active, +.list-group-item.active:hover, +.list-group-item.active:focus { + z-index: 2; + color: #fff; + background-color: #337ab7; + border-color: #337ab7; +} +.list-group-item.active .list-group-item-heading, +.list-group-item.active:hover .list-group-item-heading, +.list-group-item.active:focus .list-group-item-heading, +.list-group-item.active .list-group-item-heading > small, +.list-group-item.active:hover .list-group-item-heading > small, +.list-group-item.active:focus .list-group-item-heading > small, +.list-group-item.active .list-group-item-heading > .small, +.list-group-item.active:hover .list-group-item-heading > .small, +.list-group-item.active:focus .list-group-item-heading > .small { + color: inherit; +} +.list-group-item.active .list-group-item-text, +.list-group-item.active:hover .list-group-item-text, +.list-group-item.active:focus .list-group-item-text { + color: #c7ddef; +} +.list-group-item-success { + color: #3c763d; + background-color: #dff0d8; +} +a.list-group-item-success, +button.list-group-item-success { + color: #3c763d; +} +a.list-group-item-success .list-group-item-heading, +button.list-group-item-success .list-group-item-heading { + color: inherit; +} +a.list-group-item-success:hover, +button.list-group-item-success:hover, +a.list-group-item-success:focus, +button.list-group-item-success:focus { + color: #3c763d; + background-color: #d0e9c6; +} +a.list-group-item-success.active, +button.list-group-item-success.active, +a.list-group-item-success.active:hover, +button.list-group-item-success.active:hover, +a.list-group-item-success.active:focus, +button.list-group-item-success.active:focus { + color: #fff; + background-color: #3c763d; + border-color: #3c763d; +} +.list-group-item-info { + color: #31708f; + background-color: #d9edf7; +} +a.list-group-item-info, +button.list-group-item-info { + color: #31708f; +} +a.list-group-item-info .list-group-item-heading, +button.list-group-item-info .list-group-item-heading { + color: inherit; +} +a.list-group-item-info:hover, +button.list-group-item-info:hover, +a.list-group-item-info:focus, +button.list-group-item-info:focus { + color: #31708f; + background-color: #c4e3f3; +} +a.list-group-item-info.active, +button.list-group-item-info.active, +a.list-group-item-info.active:hover, +button.list-group-item-info.active:hover, +a.list-group-item-info.active:focus, +button.list-group-item-info.active:focus { + color: #fff; + background-color: #31708f; + border-color: #31708f; +} +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; +} +a.list-group-item-warning, +button.list-group-item-warning { + color: #8a6d3b; +} +a.list-group-item-warning .list-group-item-heading, +button.list-group-item-warning .list-group-item-heading { + color: inherit; +} +a.list-group-item-warning:hover, +button.list-group-item-warning:hover, +a.list-group-item-warning:focus, +button.list-group-item-warning:focus { + color: #8a6d3b; + background-color: #faf2cc; +} +a.list-group-item-warning.active, +button.list-group-item-warning.active, +a.list-group-item-warning.active:hover, +button.list-group-item-warning.active:hover, +a.list-group-item-warning.active:focus, +button.list-group-item-warning.active:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; +} +.list-group-item-danger { + color: #a94442; + background-color: #f2dede; +} +a.list-group-item-danger, +button.list-group-item-danger { + color: #a94442; +} +a.list-group-item-danger .list-group-item-heading, +button.list-group-item-danger .list-group-item-heading { + color: inherit; +} +a.list-group-item-danger:hover, +button.list-group-item-danger:hover, +a.list-group-item-danger:focus, +button.list-group-item-danger:focus { + color: #a94442; + background-color: #ebcccc; +} +a.list-group-item-danger.active, +button.list-group-item-danger.active, +a.list-group-item-danger.active:hover, +button.list-group-item-danger.active:hover, +a.list-group-item-danger.active:focus, +button.list-group-item-danger.active:focus { + color: #fff; + background-color: #a94442; + border-color: #a94442; +} +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px; +} +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3; +} +.panel { + margin-bottom: 20px; + background-color: #fff; + border: 1px solid transparent; + border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); + box-shadow: 0 1px 1px rgba(0, 0, 0, .05); +} +.panel-body { + padding: 15px; +} +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel-heading > .dropdown .dropdown-toggle { + color: inherit; +} +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 16px; + color: inherit; +} +.panel-title > a, +.panel-title > small, +.panel-title > .small, +.panel-title > small > a, +.panel-title > .small > a { + color: inherit; +} +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #ddd; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .list-group, +.panel > .panel-collapse > .list-group { + margin-bottom: 0; +} +.panel > .list-group .list-group-item, +.panel > .panel-collapse > .list-group .list-group-item { + border-width: 1px 0; + border-radius: 0; +} +.panel > .list-group:first-child .list-group-item:first-child, +.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .list-group:last-child .list-group-item:last-child, +.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.panel-heading + .list-group .list-group-item:first-child { + border-top-width: 0; +} +.list-group + .panel-footer { + border-top-width: 0; +} +.panel > .table, +.panel > .table-responsive > .table, +.panel > .panel-collapse > .table { + margin-bottom: 0; +} +.panel > .table caption, +.panel > .table-responsive > .table caption, +.panel > .panel-collapse > .table caption { + padding-right: 15px; + padding-left: 15px; +} +.panel > .table:first-child, +.panel > .table-responsive:first-child > .table:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 3px; +} +.panel > .table:last-child, +.panel > .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 3px; +} +.panel > .panel-body + .table, +.panel > .panel-body + .table-responsive, +.panel > .table + .panel-body, +.panel > .table-responsive + .panel-body { + border-top: 1px solid #ddd; +} +.panel > .table > tbody:first-child > tr:first-child th, +.panel > .table > tbody:first-child > tr:first-child td { + border-top: 0; +} +.panel > .table-bordered, +.panel > .table-responsive > .table-bordered { + border: 0; +} +.panel > .table-bordered > thead > tr > th:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:first-child, +.panel > .table-bordered > tbody > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, +.panel > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-bordered > thead > tr > td:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:first-child, +.panel > .table-bordered > tbody > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, +.panel > .table-bordered > tfoot > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; +} +.panel > .table-bordered > thead > tr > th:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:last-child, +.panel > .table-bordered > tbody > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, +.panel > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-bordered > thead > tr > td:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:last-child, +.panel > .table-bordered > tbody > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, +.panel > .table-bordered > tfoot > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; +} +.panel > .table-bordered > thead > tr:first-child > td, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > td, +.panel > .table-bordered > tbody > tr:first-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, +.panel > .table-bordered > thead > tr:first-child > th, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > th, +.panel > .table-bordered > tbody > tr:first-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { + border-bottom: 0; +} +.panel > .table-bordered > tbody > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, +.panel > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-bordered > tbody > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, +.panel > .table-bordered > tfoot > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; +} +.panel > .table-responsive { + margin-bottom: 0; + border: 0; +} +.panel-group { + margin-bottom: 20px; +} +.panel-group .panel { + margin-bottom: 0; + border-radius: 4px; +} +.panel-group .panel + .panel { + margin-top: 5px; +} +.panel-group .panel-heading { + border-bottom: 0; +} +.panel-group .panel-heading + .panel-collapse > .panel-body, +.panel-group .panel-heading + .panel-collapse > .list-group { + border-top: 1px solid #ddd; +} +.panel-group .panel-footer { + border-top: 0; +} +.panel-group .panel-footer + .panel-collapse .panel-body { + border-bottom: 1px solid #ddd; +} +.panel-default { + border-color: #ddd; +} +.panel-default > .panel-heading { + color: #333; + background-color: #f5f5f5; + border-color: #ddd; +} +.panel-default > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #ddd; +} +.panel-default > .panel-heading .badge { + color: #f5f5f5; + background-color: #333; +} +.panel-default > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #ddd; +} +.panel-primary { + border-color: #337ab7; +} +.panel-primary > .panel-heading { + color: #fff; + background-color: #337ab7; + border-color: #337ab7; +} +.panel-primary > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #337ab7; +} +.panel-primary > .panel-heading .badge { + color: #337ab7; + background-color: #fff; +} +.panel-primary > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #337ab7; +} +.panel-success { + border-color: #d6e9c6; +} +.panel-success > .panel-heading { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.panel-success > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #d6e9c6; +} +.panel-success > .panel-heading .badge { + color: #dff0d8; + background-color: #3c763d; +} +.panel-success > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #d6e9c6; +} +.panel-info { + border-color: #bce8f1; +} +.panel-info > .panel-heading { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.panel-info > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #bce8f1; +} +.panel-info > .panel-heading .badge { + color: #d9edf7; + background-color: #31708f; +} +.panel-info > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #bce8f1; +} +.panel-warning { + border-color: #faebcc; +} +.panel-warning > .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.panel-warning > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #faebcc; +} +.panel-warning > .panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b; +} +.panel-warning > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #faebcc; +} +.panel-danger { + border-color: #ebccd1; +} +.panel-danger > .panel-heading { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.panel-danger > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #ebccd1; +} +.panel-danger > .panel-heading .badge { + color: #f2dede; + background-color: #a94442; +} +.panel-danger > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #ebccd1; +} +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; +} +.embed-responsive .embed-responsive-item, +.embed-responsive iframe, +.embed-responsive embed, +.embed-responsive object, +.embed-responsive video { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 100%; + height: 100%; + border: 0; +} +.embed-responsive-16by9 { + padding-bottom: 56.25%; +} +.embed-responsive-4by3 { + padding-bottom: 75%; +} +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); +} +.well blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, .15); +} +.well-lg { + padding: 24px; + border-radius: 6px; +} +.well-sm { + padding: 9px; + border-radius: 3px; +} +.close { + float: right; + font-size: 21px; + font-weight: bold; + line-height: 1; + color: #000; + text-shadow: 0 1px 0 #fff; + filter: alpha(opacity=20); + opacity: .2; +} +.close:hover, +.close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + filter: alpha(opacity=50); + opacity: .5; +} +button.close { + -webkit-appearance: none; + padding: 0; + cursor: pointer; + background: transparent; + border: 0; +} +.modal-open { + overflow: hidden; +} +.modal { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + display: none; + overflow: hidden; + -webkit-overflow-scrolling: touch; + outline: 0; +} +.modal.fade .modal-dialog { + -webkit-transition: -webkit-transform .3s ease-out; + -o-transition: -o-transform .3s ease-out; + transition: transform .3s ease-out; + -webkit-transform: translate(0, -25%); + -ms-transform: translate(0, -25%); + -o-transform: translate(0, -25%); + transform: translate(0, -25%); +} +.modal.in .modal-dialog { + -webkit-transform: translate(0, 0); + -ms-transform: translate(0, 0); + -o-transform: translate(0, 0); + transform: translate(0, 0); +} +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; +} +.modal-dialog { + position: relative; + width: auto; + margin: 10px; +} +.modal-content { + position: relative; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #999; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 6px; + outline: 0; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5); + box-shadow: 0 3px 9px rgba(0, 0, 0, .5); +} +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000; +} +.modal-backdrop.fade { + filter: alpha(opacity=0); + opacity: 0; +} +.modal-backdrop.in { + filter: alpha(opacity=50); + opacity: .5; +} +.modal-header { + padding: 15px; + border-bottom: 1px solid #e5e5e5; +} +.modal-header .close { + margin-top: -2px; +} +.modal-title { + margin: 0; + line-height: 1.42857143; +} +.modal-body { + position: relative; + padding: 15px; +} +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; +} +.modal-footer .btn + .btn { + margin-bottom: 0; + margin-left: 5px; +} +.modal-footer .btn-group .btn + .btn { + margin-left: -1px; +} +.modal-footer .btn-block + .btn-block { + margin-left: 0; +} +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; +} +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; + } + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5); + box-shadow: 0 5px 15px rgba(0, 0, 0, .5); + } + .modal-sm { + width: 300px; + } +} +@media (min-width: 992px) { + .modal-lg { + width: 900px; + } +} +.tooltip { + position: absolute; + z-index: 1070; + display: block; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 12px; + font-style: normal; + font-weight: normal; + line-height: 1.42857143; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + filter: alpha(opacity=0); + opacity: 0; + + line-break: auto; +} +.tooltip.in { + filter: alpha(opacity=90); + opacity: .9; +} +.tooltip.top { + padding: 5px 0; + margin-top: -3px; +} +.tooltip.right { + padding: 0 5px; + margin-left: 3px; +} +.tooltip.bottom { + padding: 5px 0; + margin-top: 3px; +} +.tooltip.left { + padding: 0 5px; + margin-left: -3px; +} +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #fff; + text-align: center; + background-color: #000; + border-radius: 4px; +} +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.top-left .tooltip-arrow { + right: 5px; + bottom: 0; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.top-right .tooltip-arrow { + bottom: 0; + left: 5px; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000; +} +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000; +} +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.tooltip.bottom-left .tooltip-arrow { + top: 0; + right: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.tooltip.bottom-right .tooltip-arrow { + top: 0; + left: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 1.42857143; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); + box-shadow: 0 5px 10px rgba(0, 0, 0, .2); + + line-break: auto; +} +.popover.top { + margin-top: -10px; +} +.popover.right { + margin-left: 10px; +} +.popover.bottom { + margin-top: 10px; +} +.popover.left { + margin-left: -10px; +} +.popover-title { + padding: 8px 14px; + margin: 0; + font-size: 14px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 5px 5px 0 0; +} +.popover-content { + padding: 9px 14px; +} +.popover > .arrow, +.popover > .arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.popover > .arrow { + border-width: 11px; +} +.popover > .arrow:after { + content: ""; + border-width: 10px; +} +.popover.top > .arrow { + bottom: -11px; + left: 50%; + margin-left: -11px; + border-top-color: #999; + border-top-color: rgba(0, 0, 0, .25); + border-bottom-width: 0; +} +.popover.top > .arrow:after { + bottom: 1px; + margin-left: -10px; + content: " "; + border-top-color: #fff; + border-bottom-width: 0; +} +.popover.right > .arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-right-color: #999; + border-right-color: rgba(0, 0, 0, .25); + border-left-width: 0; +} +.popover.right > .arrow:after { + bottom: -10px; + left: 1px; + content: " "; + border-right-color: #fff; + border-left-width: 0; +} +.popover.bottom > .arrow { + top: -11px; + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999; + border-bottom-color: rgba(0, 0, 0, .25); +} +.popover.bottom > .arrow:after { + top: 1px; + margin-left: -10px; + content: " "; + border-top-width: 0; + border-bottom-color: #fff; +} +.popover.left > .arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999; + border-left-color: rgba(0, 0, 0, .25); +} +.popover.left > .arrow:after { + right: 1px; + bottom: -10px; + content: " "; + border-right-width: 0; + border-left-color: #fff; +} +.carousel { + position: relative; +} +.carousel-inner { + position: relative; + width: 100%; + overflow: hidden; +} +.carousel-inner > .item { + position: relative; + display: none; + -webkit-transition: .6s ease-in-out left; + -o-transition: .6s ease-in-out left; + transition: .6s ease-in-out left; +} +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + line-height: 1; +} +@media all and (transform-3d), (-webkit-transform-3d) { + .carousel-inner > .item { + -webkit-transition: -webkit-transform .6s ease-in-out; + -o-transition: -o-transform .6s ease-in-out; + transition: transform .6s ease-in-out; + + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-perspective: 1000px; + perspective: 1000px; + } + .carousel-inner > .item.next, + .carousel-inner > .item.active.right { + left: 0; + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); + } + .carousel-inner > .item.prev, + .carousel-inner > .item.active.left { + left: 0; + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); + } + .carousel-inner > .item.next.left, + .carousel-inner > .item.prev.right, + .carousel-inner > .item.active { + left: 0; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } +} +.carousel-inner > .active, +.carousel-inner > .next, +.carousel-inner > .prev { + display: block; +} +.carousel-inner > .active { + left: 0; +} +.carousel-inner > .next, +.carousel-inner > .prev { + position: absolute; + top: 0; + width: 100%; +} +.carousel-inner > .next { + left: 100%; +} +.carousel-inner > .prev { + left: -100%; +} +.carousel-inner > .next.left, +.carousel-inner > .prev.right { + left: 0; +} +.carousel-inner > .active.left { + left: -100%; +} +.carousel-inner > .active.right { + left: 100%; +} +.carousel-control { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 15%; + font-size: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, .6); + background-color: rgba(0, 0, 0, 0); + filter: alpha(opacity=50); + opacity: .5; +} +.carousel-control.left { + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001))); + background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); + background-repeat: repeat-x; +} +.carousel-control.right { + right: 0; + left: auto; + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5))); + background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); + background-repeat: repeat-x; +} +.carousel-control:hover, +.carousel-control:focus { + color: #fff; + text-decoration: none; + filter: alpha(opacity=90); + outline: 0; + opacity: .9; +} +.carousel-control .icon-prev, +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-left, +.carousel-control .glyphicon-chevron-right { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; + margin-top: -10px; +} +.carousel-control .icon-prev, +.carousel-control .glyphicon-chevron-left { + left: 50%; + margin-left: -10px; +} +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-right { + right: 50%; + margin-right: -10px; +} +.carousel-control .icon-prev, +.carousel-control .icon-next { + width: 20px; + height: 20px; + font-family: serif; + line-height: 1; +} +.carousel-control .icon-prev:before { + content: '\2039'; +} +.carousel-control .icon-next:before { + content: '\203a'; +} +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + padding-left: 0; + margin-left: -30%; + text-align: center; + list-style: none; +} +.carousel-indicators li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + cursor: pointer; + background-color: #000 \9; + background-color: rgba(0, 0, 0, 0); + border: 1px solid #fff; + border-radius: 10px; +} +.carousel-indicators .active { + width: 12px; + height: 12px; + margin: 0; + background-color: #fff; +} +.carousel-caption { + position: absolute; + right: 15%; + bottom: 20px; + left: 15%; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, .6); +} +.carousel-caption .btn { + text-shadow: none; +} +@media screen and (min-width: 768px) { + .carousel-control .glyphicon-chevron-left, + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-prev, + .carousel-control .icon-next { + width: 30px; + height: 30px; + margin-top: -10px; + font-size: 30px; + } + .carousel-control .glyphicon-chevron-left, + .carousel-control .icon-prev { + margin-left: -10px; + } + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-next { + margin-right: -10px; + } + .carousel-caption { + right: 20%; + left: 20%; + padding-bottom: 30px; + } + .carousel-indicators { + bottom: 20px; + } +} +.clearfix:before, +.clearfix:after, +.dl-horizontal dd:before, +.dl-horizontal dd:after, +.container:before, +.container:after, +.container-fluid:before, +.container-fluid:after, +.row:before, +.row:after, +.form-horizontal .form-group:before, +.form-horizontal .form-group:after, +.btn-toolbar:before, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:before, +.btn-group-vertical > .btn-group:after, +.nav:before, +.nav:after, +.navbar:before, +.navbar:after, +.navbar-header:before, +.navbar-header:after, +.navbar-collapse:before, +.navbar-collapse:after, +.pager:before, +.pager:after, +.panel-body:before, +.panel-body:after, +.modal-header:before, +.modal-header:after, +.modal-footer:before, +.modal-footer:after { + display: table; + content: " "; +} +.clearfix:after, +.dl-horizontal dd:after, +.container:after, +.container-fluid:after, +.row:after, +.form-horizontal .form-group:after, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:after, +.nav:after, +.navbar:after, +.navbar-header:after, +.navbar-collapse:after, +.pager:after, +.panel-body:after, +.modal-header:after, +.modal-footer:after { + clear: both; +} +.center-block { + display: block; + margin-right: auto; + margin-left: auto; +} +.pull-right { + float: right !important; +} +.pull-left { + float: left !important; +} +.hide { + display: none !important; +} +.show { + display: block !important; +} +.invisible { + visibility: hidden; +} +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} +.hidden { + display: none !important; +} +.affix { + position: fixed; +} +@-ms-viewport { + width: device-width; +} +.visible-xs, +.visible-sm, +.visible-md, +.visible-lg { + display: none !important; +} +.visible-xs-block, +.visible-xs-inline, +.visible-xs-inline-block, +.visible-sm-block, +.visible-sm-inline, +.visible-sm-inline-block, +.visible-md-block, +.visible-md-inline, +.visible-md-inline-block, +.visible-lg-block, +.visible-lg-inline, +.visible-lg-inline-block { + display: none !important; +} +@media (max-width: 767px) { + .visible-xs { + display: block !important; + } + table.visible-xs { + display: table !important; + } + tr.visible-xs { + display: table-row !important; + } + th.visible-xs, + td.visible-xs { + display: table-cell !important; + } +} +@media (max-width: 767px) { + .visible-xs-block { + display: block !important; + } +} +@media (max-width: 767px) { + .visible-xs-inline { + display: inline !important; + } +} +@media (max-width: 767px) { + .visible-xs-inline-block { + display: inline-block !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important; + } + table.visible-sm { + display: table !important; + } + tr.visible-sm { + display: table-row !important; + } + th.visible-sm, + td.visible-sm { + display: table-cell !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-block { + display: block !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline { + display: inline !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline-block { + display: inline-block !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md { + display: block !important; + } + table.visible-md { + display: table !important; + } + tr.visible-md { + display: table-row !important; + } + th.visible-md, + td.visible-md { + display: table-cell !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-block { + display: block !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-inline { + display: inline !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-inline-block { + display: inline-block !important; + } +} +@media (min-width: 1200px) { + .visible-lg { + display: block !important; + } + table.visible-lg { + display: table !important; + } + tr.visible-lg { + display: table-row !important; + } + th.visible-lg, + td.visible-lg { + display: table-cell !important; + } +} +@media (min-width: 1200px) { + .visible-lg-block { + display: block !important; + } +} +@media (min-width: 1200px) { + .visible-lg-inline { + display: inline !important; + } +} +@media (min-width: 1200px) { + .visible-lg-inline-block { + display: inline-block !important; + } +} +@media (max-width: 767px) { + .hidden-xs { + display: none !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-md { + display: none !important; + } +} +@media (min-width: 1200px) { + .hidden-lg { + display: none !important; + } +} +.visible-print { + display: none !important; +} +@media print { + .visible-print { + display: block !important; + } + table.visible-print { + display: table !important; + } + tr.visible-print { + display: table-row !important; + } + th.visible-print, + td.visible-print { + display: table-cell !important; + } +} +.visible-print-block { + display: none !important; +} +@media print { + .visible-print-block { + display: block !important; + } +} +.visible-print-inline { + display: none !important; +} +@media print { + .visible-print-inline { + display: inline !important; + } +} +.visible-print-inline-block { + display: none !important; +} +@media print { + .visible-print-inline-block { + display: inline-block !important; + } +} +@media print { + .hidden-print { + display: none !important; + } +} +/*# sourceMappingURL=bootstrap.css.map */ diff --git a/sna/assets/css/bootstrap.css.map b/sna/assets/css/bootstrap.css.map new file mode 100644 index 0000000..f010c82 --- /dev/null +++ b/sna/assets/css/bootstrap.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["bootstrap.css","less/normalize.less","less/print.less","less/glyphicons.less","less/scaffolding.less","less/mixins/vendor-prefixes.less","less/mixins/tab-focus.less","less/mixins/image.less","less/type.less","less/mixins/text-emphasis.less","less/mixins/background-variant.less","less/mixins/text-overflow.less","less/code.less","less/grid.less","less/mixins/grid.less","less/mixins/grid-framework.less","less/tables.less","less/mixins/table-row.less","less/forms.less","less/mixins/forms.less","less/buttons.less","less/mixins/buttons.less","less/mixins/opacity.less","less/component-animations.less","less/dropdowns.less","less/mixins/nav-divider.less","less/mixins/reset-filter.less","less/button-groups.less","less/mixins/border-radius.less","less/input-groups.less","less/navs.less","less/navbar.less","less/mixins/nav-vertical-align.less","less/utilities.less","less/breadcrumbs.less","less/pagination.less","less/mixins/pagination.less","less/pager.less","less/labels.less","less/mixins/labels.less","less/badges.less","less/jumbotron.less","less/thumbnails.less","less/alerts.less","less/mixins/alerts.less","less/progress-bars.less","less/mixins/gradients.less","less/mixins/progress-bar.less","less/media.less","less/list-group.less","less/mixins/list-group.less","less/panels.less","less/mixins/panels.less","less/responsive-embed.less","less/wells.less","less/close.less","less/modals.less","less/tooltip.less","less/mixins/reset-text.less","less/popovers.less","less/carousel.less","less/mixins/clearfix.less","less/mixins/center-block.less","less/mixins/hide-text.less","less/responsive-utilities.less","less/mixins/responsive-visibility.less"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,4EAA4E;ACG5E;EACE,wBAAA;EACA,2BAAA;EACA,+BAAA;CDDD;ACQD;EACE,UAAA;CDND;ACmBD;;;;;;;;;;;;;EAaE,eAAA;CDjBD;ACyBD;;;;EAIE,sBAAA;EACA,yBAAA;CDvBD;AC+BD;EACE,cAAA;EACA,UAAA;CD7BD;ACqCD;;EAEE,cAAA;CDnCD;AC6CD;EACE,8BAAA;CD3CD;ACmDD;;EAEE,WAAA;CDjDD;AC2DD;EACE,0BAAA;CDzDD;ACgED;;EAEE,kBAAA;CD9DD;ACqED;EACE,mBAAA;CDnED;AC2ED;EACE,eAAA;EACA,iBAAA;CDzED;ACgFD;EACE,iBAAA;EACA,YAAA;CD9ED;ACqFD;EACE,eAAA;CDnFD;AC0FD;;EAEE,eAAA;EACA,eAAA;EACA,mBAAA;EACA,yBAAA;CDxFD;AC2FD;EACE,YAAA;CDzFD;AC4FD;EACE,gBAAA;CD1FD;ACoGD;EACE,UAAA;CDlGD;ACyGD;EACE,iBAAA;CDvGD;ACiHD;EACE,iBAAA;CD/GD;ACsHD;EACE,gCAAA;KAAA,6BAAA;UAAA,wBAAA;EACA,UAAA;CDpHD;AC2HD;EACE,eAAA;CDzHD;ACgID;;;;EAIE,kCAAA;EACA,eAAA;CD9HD;ACgJD;;;;;EAKE,eAAA;EACA,cAAA;EACA,UAAA;CD9ID;ACqJD;EACE,kBAAA;CDnJD;AC6JD;;EAEE,qBAAA;CD3JD;ACsKD;;;;EAIE,2BAAA;EACA,gBAAA;CDpKD;AC2KD;;EAEE,gBAAA;CDzKD;ACgLD;;EAEE,UAAA;EACA,WAAA;CD9KD;ACsLD;EACE,oBAAA;CDpLD;AC+LD;;EAEE,+BAAA;KAAA,4BAAA;UAAA,uBAAA;EACA,WAAA;CD7LD;ACsMD;;EAEE,aAAA;CDpMD;AC4MD;EACE,8BAAA;EACA,gCAAA;KAAA,6BAAA;UAAA,wBAAA;CD1MD;ACmND;;EAEE,yBAAA;CDjND;ACwND;EACE,0BAAA;EACA,cAAA;EACA,+BAAA;CDtND;AC8ND;EACE,UAAA;EACA,WAAA;CD5ND;ACmOD;EACE,eAAA;CDjOD;ACyOD;EACE,kBAAA;CDvOD;ACiPD;EACE,0BAAA;EACA,kBAAA;CD/OD;ACkPD;;EAEE,WAAA;CDhPD;AACD,qFAAqF;AElFrF;EA7FI;;;IAGI,mCAAA;IACA,uBAAA;IACA,oCAAA;YAAA,4BAAA;IACA,6BAAA;GFkLL;EE/KC;;IAEI,2BAAA;GFiLL;EE9KC;IACI,6BAAA;GFgLL;EE7KC;IACI,8BAAA;GF+KL;EE1KC;;IAEI,YAAA;GF4KL;EEzKC;;IAEI,uBAAA;IACA,yBAAA;GF2KL;EExKC;IACI,4BAAA;GF0KL;EEvKC;;IAEI,yBAAA;GFyKL;EEtKC;IACI,2BAAA;GFwKL;EErKC;;;IAGI,WAAA;IACA,UAAA;GFuKL;EEpKC;;IAEI,wBAAA;GFsKL;EEhKC;IACI,cAAA;GFkKL;EEhKC;;IAGQ,kCAAA;GFiKT;EE9JC;IACI,uBAAA;GFgKL;EE7JC;IACI,qCAAA;GF+JL;EEhKC;;IAKQ,kCAAA;GF+JT;EE5JC;;IAGQ,kCAAA;GF6JT;CACF;AGnPD;EACE,oCAAA;EACA,sDAAA;EACA,gYAAA;CHqPD;AG7OD;EACE,mBAAA;EACA,SAAA;EACA,sBAAA;EACA,oCAAA;EACA,mBAAA;EACA,oBAAA;EACA,eAAA;EACA,oCAAA;EACA,mCAAA;CH+OD;AG3OmC;EAAW,iBAAA;CH8O9C;AG7OmC;EAAW,iBAAA;CHgP9C;AG9OmC;;EAAW,iBAAA;CHkP9C;AGjPmC;EAAW,iBAAA;CHoP9C;AGnPmC;EAAW,iBAAA;CHsP9C;AGrPmC;EAAW,iBAAA;CHwP9C;AGvPmC;EAAW,iBAAA;CH0P9C;AGzPmC;EAAW,iBAAA;CH4P9C;AG3PmC;EAAW,iBAAA;CH8P9C;AG7PmC;EAAW,iBAAA;CHgQ9C;AG/PmC;EAAW,iBAAA;CHkQ9C;AGjQmC;EAAW,iBAAA;CHoQ9C;AGnQmC;EAAW,iBAAA;CHsQ9C;AGrQmC;EAAW,iBAAA;CHwQ9C;AGvQmC;EAAW,iBAAA;CH0Q9C;AGzQmC;EAAW,iBAAA;CH4Q9C;AG3QmC;EAAW,iBAAA;CH8Q9C;AG7QmC;EAAW,iBAAA;CHgR9C;AG/QmC;EAAW,iBAAA;CHkR9C;AGjRmC;EAAW,iBAAA;CHoR9C;AGnRmC;EAAW,iBAAA;CHsR9C;AGrRmC;EAAW,iBAAA;CHwR9C;AGvRmC;EAAW,iBAAA;CH0R9C;AGzRmC;EAAW,iBAAA;CH4R9C;AG3RmC;EAAW,iBAAA;CH8R9C;AG7RmC;EAAW,iBAAA;CHgS9C;AG/RmC;EAAW,iBAAA;CHkS9C;AGjSmC;EAAW,iBAAA;CHoS9C;AGnSmC;EAAW,iBAAA;CHsS9C;AGrSmC;EAAW,iBAAA;CHwS9C;AGvSmC;EAAW,iBAAA;CH0S9C;AGzSmC;EAAW,iBAAA;CH4S9C;AG3SmC;EAAW,iBAAA;CH8S9C;AG7SmC;EAAW,iBAAA;CHgT9C;AG/SmC;EAAW,iBAAA;CHkT9C;AGjTmC;EAAW,iBAAA;CHoT9C;AGnTmC;EAAW,iBAAA;CHsT9C;AGrTmC;EAAW,iBAAA;CHwT9C;AGvTmC;EAAW,iBAAA;CH0T9C;AGzTmC;EAAW,iBAAA;CH4T9C;AG3TmC;EAAW,iBAAA;CH8T9C;AG7TmC;EAAW,iBAAA;CHgU9C;AG/TmC;EAAW,iBAAA;CHkU9C;AGjUmC;EAAW,iBAAA;CHoU9C;AGnUmC;EAAW,iBAAA;CHsU9C;AGrUmC;EAAW,iBAAA;CHwU9C;AGvUmC;EAAW,iBAAA;CH0U9C;AGzUmC;EAAW,iBAAA;CH4U9C;AG3UmC;EAAW,iBAAA;CH8U9C;AG7UmC;EAAW,iBAAA;CHgV9C;AG/UmC;EAAW,iBAAA;CHkV9C;AGjVmC;EAAW,iBAAA;CHoV9C;AGnVmC;EAAW,iBAAA;CHsV9C;AGrVmC;EAAW,iBAAA;CHwV9C;AGvVmC;EAAW,iBAAA;CH0V9C;AGzVmC;EAAW,iBAAA;CH4V9C;AG3VmC;EAAW,iBAAA;CH8V9C;AG7VmC;EAAW,iBAAA;CHgW9C;AG/VmC;EAAW,iBAAA;CHkW9C;AGjWmC;EAAW,iBAAA;CHoW9C;AGnWmC;EAAW,iBAAA;CHsW9C;AGrWmC;EAAW,iBAAA;CHwW9C;AGvWmC;EAAW,iBAAA;CH0W9C;AGzWmC;EAAW,iBAAA;CH4W9C;AG3WmC;EAAW,iBAAA;CH8W9C;AG7WmC;EAAW,iBAAA;CHgX9C;AG/WmC;EAAW,iBAAA;CHkX9C;AGjXmC;EAAW,iBAAA;CHoX9C;AGnXmC;EAAW,iBAAA;CHsX9C;AGrXmC;EAAW,iBAAA;CHwX9C;AGvXmC;EAAW,iBAAA;CH0X9C;AGzXmC;EAAW,iBAAA;CH4X9C;AG3XmC;EAAW,iBAAA;CH8X9C;AG7XmC;EAAW,iBAAA;CHgY9C;AG/XmC;EAAW,iBAAA;CHkY9C;AGjYmC;EAAW,iBAAA;CHoY9C;AGnYmC;EAAW,iBAAA;CHsY9C;AGrYmC;EAAW,iBAAA;CHwY9C;AGvYmC;EAAW,iBAAA;CH0Y9C;AGzYmC;EAAW,iBAAA;CH4Y9C;AG3YmC;EAAW,iBAAA;CH8Y9C;AG7YmC;EAAW,iBAAA;CHgZ9C;AG/YmC;EAAW,iBAAA;CHkZ9C;AGjZmC;EAAW,iBAAA;CHoZ9C;AGnZmC;EAAW,iBAAA;CHsZ9C;AGrZmC;EAAW,iBAAA;CHwZ9C;AGvZmC;EAAW,iBAAA;CH0Z9C;AGzZmC;EAAW,iBAAA;CH4Z9C;AG3ZmC;EAAW,iBAAA;CH8Z9C;AG7ZmC;EAAW,iBAAA;CHga9C;AG/ZmC;EAAW,iBAAA;CHka9C;AGjamC;EAAW,iBAAA;CHoa9C;AGnamC;EAAW,iBAAA;CHsa9C;AGramC;EAAW,iBAAA;CHwa9C;AGvamC;EAAW,iBAAA;CH0a9C;AGzamC;EAAW,iBAAA;CH4a9C;AG3amC;EAAW,iBAAA;CH8a9C;AG7amC;EAAW,iBAAA;CHgb9C;AG/amC;EAAW,iBAAA;CHkb9C;AGjbmC;EAAW,iBAAA;CHob9C;AGnbmC;EAAW,iBAAA;CHsb9C;AGrbmC;EAAW,iBAAA;CHwb9C;AGvbmC;EAAW,iBAAA;CH0b9C;AGzbmC;EAAW,iBAAA;CH4b9C;AG3bmC;EAAW,iBAAA;CH8b9C;AG7bmC;EAAW,iBAAA;CHgc9C;AG/bmC;EAAW,iBAAA;CHkc9C;AGjcmC;EAAW,iBAAA;CHoc9C;AGncmC;EAAW,iBAAA;CHsc9C;AGrcmC;EAAW,iBAAA;CHwc9C;AGvcmC;EAAW,iBAAA;CH0c9C;AGzcmC;EAAW,iBAAA;CH4c9C;AG3cmC;EAAW,iBAAA;CH8c9C;AG7cmC;EAAW,iBAAA;CHgd9C;AG/cmC;EAAW,iBAAA;CHkd9C;AGjdmC;EAAW,iBAAA;CHod9C;AGndmC;EAAW,iBAAA;CHsd9C;AGrdmC;EAAW,iBAAA;CHwd9C;AGvdmC;EAAW,iBAAA;CH0d9C;AGzdmC;EAAW,iBAAA;CH4d9C;AG3dmC;EAAW,iBAAA;CH8d9C;AG7dmC;EAAW,iBAAA;CHge9C;AG/dmC;EAAW,iBAAA;CHke9C;AGjemC;EAAW,iBAAA;CHoe9C;AGnemC;EAAW,iBAAA;CHse9C;AGremC;EAAW,iBAAA;CHwe9C;AGvemC;EAAW,iBAAA;CH0e9C;AGzemC;EAAW,iBAAA;CH4e9C;AG3emC;EAAW,iBAAA;CH8e9C;AG7emC;EAAW,iBAAA;CHgf9C;AG/emC;EAAW,iBAAA;CHkf9C;AGjfmC;EAAW,iBAAA;CHof9C;AGnfmC;EAAW,iBAAA;CHsf9C;AGrfmC;EAAW,iBAAA;CHwf9C;AGvfmC;EAAW,iBAAA;CH0f9C;AGzfmC;EAAW,iBAAA;CH4f9C;AG3fmC;EAAW,iBAAA;CH8f9C;AG7fmC;EAAW,iBAAA;CHggB9C;AG/fmC;EAAW,iBAAA;CHkgB9C;AGjgBmC;EAAW,iBAAA;CHogB9C;AGngBmC;EAAW,iBAAA;CHsgB9C;AGrgBmC;EAAW,iBAAA;CHwgB9C;AGvgBmC;EAAW,iBAAA;CH0gB9C;AGzgBmC;EAAW,iBAAA;CH4gB9C;AG3gBmC;EAAW,iBAAA;CH8gB9C;AG7gBmC;EAAW,iBAAA;CHghB9C;AG/gBmC;EAAW,iBAAA;CHkhB9C;AGjhBmC;EAAW,iBAAA;CHohB9C;AGnhBmC;EAAW,iBAAA;CHshB9C;AGrhBmC;EAAW,iBAAA;CHwhB9C;AGvhBmC;EAAW,iBAAA;CH0hB9C;AGzhBmC;EAAW,iBAAA;CH4hB9C;AG3hBmC;EAAW,iBAAA;CH8hB9C;AG7hBmC;EAAW,iBAAA;CHgiB9C;AG/hBmC;EAAW,iBAAA;CHkiB9C;AGjiBmC;EAAW,iBAAA;CHoiB9C;AGniBmC;EAAW,iBAAA;CHsiB9C;AGriBmC;EAAW,iBAAA;CHwiB9C;AGviBmC;EAAW,iBAAA;CH0iB9C;AGziBmC;EAAW,iBAAA;CH4iB9C;AG3iBmC;EAAW,iBAAA;CH8iB9C;AG7iBmC;EAAW,iBAAA;CHgjB9C;AG/iBmC;EAAW,iBAAA;CHkjB9C;AGjjBmC;EAAW,iBAAA;CHojB9C;AGnjBmC;EAAW,iBAAA;CHsjB9C;AGrjBmC;EAAW,iBAAA;CHwjB9C;AGvjBmC;EAAW,iBAAA;CH0jB9C;AGzjBmC;EAAW,iBAAA;CH4jB9C;AG3jBmC;EAAW,iBAAA;CH8jB9C;AG7jBmC;EAAW,iBAAA;CHgkB9C;AG/jBmC;EAAW,iBAAA;CHkkB9C;AGjkBmC;EAAW,iBAAA;CHokB9C;AGnkBmC;EAAW,iBAAA;CHskB9C;AGrkBmC;EAAW,iBAAA;CHwkB9C;AGvkBmC;EAAW,iBAAA;CH0kB9C;AGzkBmC;EAAW,iBAAA;CH4kB9C;AG3kBmC;EAAW,iBAAA;CH8kB9C;AG7kBmC;EAAW,iBAAA;CHglB9C;AG/kBmC;EAAW,iBAAA;CHklB9C;AGjlBmC;EAAW,iBAAA;CHolB9C;AGnlBmC;EAAW,iBAAA;CHslB9C;AGrlBmC;EAAW,iBAAA;CHwlB9C;AGvlBmC;EAAW,iBAAA;CH0lB9C;AGzlBmC;EAAW,iBAAA;CH4lB9C;AG3lBmC;EAAW,iBAAA;CH8lB9C;AG7lBmC;EAAW,iBAAA;CHgmB9C;AG/lBmC;EAAW,iBAAA;CHkmB9C;AGjmBmC;EAAW,iBAAA;CHomB9C;AGnmBmC;EAAW,iBAAA;CHsmB9C;AGrmBmC;EAAW,iBAAA;CHwmB9C;AGvmBmC;EAAW,iBAAA;CH0mB9C;AGzmBmC;EAAW,iBAAA;CH4mB9C;AG3mBmC;EAAW,iBAAA;CH8mB9C;AG7mBmC;EAAW,iBAAA;CHgnB9C;AG/mBmC;EAAW,iBAAA;CHknB9C;AGjnBmC;EAAW,iBAAA;CHonB9C;AGnnBmC;EAAW,iBAAA;CHsnB9C;AGrnBmC;EAAW,iBAAA;CHwnB9C;AGvnBmC;EAAW,iBAAA;CH0nB9C;AGznBmC;EAAW,iBAAA;CH4nB9C;AG3nBmC;EAAW,iBAAA;CH8nB9C;AG7nBmC;EAAW,iBAAA;CHgoB9C;AG/nBmC;EAAW,iBAAA;CHkoB9C;AGjoBmC;EAAW,iBAAA;CHooB9C;AGnoBmC;EAAW,iBAAA;CHsoB9C;AGroBmC;EAAW,iBAAA;CHwoB9C;AG/nBmC;EAAW,iBAAA;CHkoB9C;AGjoBmC;EAAW,iBAAA;CHooB9C;AGnoBmC;EAAW,iBAAA;CHsoB9C;AGroBmC;EAAW,iBAAA;CHwoB9C;AGvoBmC;EAAW,iBAAA;CH0oB9C;AGzoBmC;EAAW,iBAAA;CH4oB9C;AG3oBmC;EAAW,iBAAA;CH8oB9C;AG7oBmC;EAAW,iBAAA;CHgpB9C;AG/oBmC;EAAW,iBAAA;CHkpB9C;AGjpBmC;EAAW,iBAAA;CHopB9C;AGnpBmC;EAAW,iBAAA;CHspB9C;AGrpBmC;EAAW,iBAAA;CHwpB9C;AGvpBmC;EAAW,iBAAA;CH0pB9C;AGzpBmC;EAAW,iBAAA;CH4pB9C;AG3pBmC;EAAW,iBAAA;CH8pB9C;AG7pBmC;EAAW,iBAAA;CHgqB9C;AG/pBmC;EAAW,iBAAA;CHkqB9C;AGjqBmC;EAAW,iBAAA;CHoqB9C;AGnqBmC;EAAW,iBAAA;CHsqB9C;AGrqBmC;EAAW,iBAAA;CHwqB9C;AGvqBmC;EAAW,iBAAA;CH0qB9C;AGzqBmC;EAAW,iBAAA;CH4qB9C;AG3qBmC;EAAW,iBAAA;CH8qB9C;AG7qBmC;EAAW,iBAAA;CHgrB9C;AG/qBmC;EAAW,iBAAA;CHkrB9C;AGjrBmC;EAAW,iBAAA;CHorB9C;AGnrBmC;EAAW,iBAAA;CHsrB9C;AGrrBmC;EAAW,iBAAA;CHwrB9C;AGvrBmC;EAAW,iBAAA;CH0rB9C;AGzrBmC;EAAW,iBAAA;CH4rB9C;AG3rBmC;EAAW,iBAAA;CH8rB9C;AG7rBmC;EAAW,iBAAA;CHgsB9C;AG/rBmC;EAAW,iBAAA;CHksB9C;AGjsBmC;EAAW,iBAAA;CHosB9C;AGnsBmC;EAAW,iBAAA;CHssB9C;AGrsBmC;EAAW,iBAAA;CHwsB9C;AGvsBmC;EAAW,iBAAA;CH0sB9C;AGzsBmC;EAAW,iBAAA;CH4sB9C;AG3sBmC;EAAW,iBAAA;CH8sB9C;AG7sBmC;EAAW,iBAAA;CHgtB9C;AG/sBmC;EAAW,iBAAA;CHktB9C;AGjtBmC;EAAW,iBAAA;CHotB9C;AGntBmC;EAAW,iBAAA;CHstB9C;AGrtBmC;EAAW,iBAAA;CHwtB9C;AGvtBmC;EAAW,iBAAA;CH0tB9C;AGztBmC;EAAW,iBAAA;CH4tB9C;AG3tBmC;EAAW,iBAAA;CH8tB9C;AG7tBmC;EAAW,iBAAA;CHguB9C;AG/tBmC;EAAW,iBAAA;CHkuB9C;AGjuBmC;EAAW,iBAAA;CHouB9C;AGnuBmC;EAAW,iBAAA;CHsuB9C;AGruBmC;EAAW,iBAAA;CHwuB9C;AGvuBmC;EAAW,iBAAA;CH0uB9C;AGzuBmC;EAAW,iBAAA;CH4uB9C;AG3uBmC;EAAW,iBAAA;CH8uB9C;AG7uBmC;EAAW,iBAAA;CHgvB9C;AIthCD;ECgEE,+BAAA;EACG,4BAAA;EACK,uBAAA;CLy9BT;AIxhCD;;EC6DE,+BAAA;EACG,4BAAA;EACK,uBAAA;CL+9BT;AIthCD;EACE,gBAAA;EACA,8CAAA;CJwhCD;AIrhCD;EACE,4DAAA;EACA,gBAAA;EACA,wBAAA;EACA,eAAA;EACA,uBAAA;CJuhCD;AInhCD;;;;EAIE,qBAAA;EACA,mBAAA;EACA,qBAAA;CJqhCD;AI/gCD;EACE,eAAA;EACA,sBAAA;CJihCD;AI/gCC;;EAEE,eAAA;EACA,2BAAA;CJihCH;AI9gCC;EEnDA,2CAAA;EACA,qBAAA;CNokCD;AIvgCD;EACE,UAAA;CJygCD;AIngCD;EACE,uBAAA;CJqgCD;AIjgCD;;;;;EGvEE,eAAA;EACA,gBAAA;EACA,aAAA;CP+kCD;AIrgCD;EACE,mBAAA;CJugCD;AIjgCD;EACE,aAAA;EACA,wBAAA;EACA,uBAAA;EACA,uBAAA;EACA,mBAAA;EC6FA,yCAAA;EACK,oCAAA;EACG,iCAAA;EEvLR,sBAAA;EACA,gBAAA;EACA,aAAA;CP+lCD;AIjgCD;EACE,mBAAA;CJmgCD;AI7/BD;EACE,iBAAA;EACA,oBAAA;EACA,UAAA;EACA,8BAAA;CJ+/BD;AIv/BD;EACE,mBAAA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,WAAA;EACA,iBAAA;EACA,uBAAA;EACA,UAAA;CJy/BD;AIj/BC;;EAEE,iBAAA;EACA,YAAA;EACA,aAAA;EACA,UAAA;EACA,kBAAA;EACA,WAAA;CJm/BH;AIx+BD;EACE,gBAAA;CJ0+BD;AQjoCD;;;;;;;;;;;;EAEE,qBAAA;EACA,iBAAA;EACA,iBAAA;EACA,eAAA;CR6oCD;AQlpCD;;;;;;;;;;;;;;;;;;;;;;;;EASI,oBAAA;EACA,eAAA;EACA,eAAA;CRmqCH;AQ/pCD;;;;;;EAGE,iBAAA;EACA,oBAAA;CRoqCD;AQxqCD;;;;;;;;;;;;EAQI,eAAA;CR8qCH;AQ3qCD;;;;;;EAGE,iBAAA;EACA,oBAAA;CRgrCD;AQprCD;;;;;;;;;;;;EAQI,eAAA;CR0rCH;AQtrCD;;EAAU,gBAAA;CR0rCT;AQzrCD;;EAAU,gBAAA;CR6rCT;AQ5rCD;;EAAU,gBAAA;CRgsCT;AQ/rCD;;EAAU,gBAAA;CRmsCT;AQlsCD;;EAAU,gBAAA;CRssCT;AQrsCD;;EAAU,gBAAA;CRysCT;AQnsCD;EACE,iBAAA;CRqsCD;AQlsCD;EACE,oBAAA;EACA,gBAAA;EACA,iBAAA;EACA,iBAAA;CRosCD;AQ/rCD;EAwOA;IA1OI,gBAAA;GRqsCD;CACF;AQ7rCD;;EAEE,eAAA;CR+rCD;AQ5rCD;;EAEE,0BAAA;EACA,cAAA;CR8rCD;AQ1rCD;EAAuB,iBAAA;CR6rCtB;AQ5rCD;EAAuB,kBAAA;CR+rCtB;AQ9rCD;EAAuB,mBAAA;CRisCtB;AQhsCD;EAAuB,oBAAA;CRmsCtB;AQlsCD;EAAuB,oBAAA;CRqsCtB;AQlsCD;EAAuB,0BAAA;CRqsCtB;AQpsCD;EAAuB,0BAAA;CRusCtB;AQtsCD;EAAuB,2BAAA;CRysCtB;AQtsCD;EACE,eAAA;CRwsCD;AQtsCD;ECrGE,eAAA;CT8yCD;AS7yCC;;EAEE,eAAA;CT+yCH;AQ1sCD;ECxGE,eAAA;CTqzCD;ASpzCC;;EAEE,eAAA;CTszCH;AQ9sCD;EC3GE,eAAA;CT4zCD;AS3zCC;;EAEE,eAAA;CT6zCH;AQltCD;EC9GE,eAAA;CTm0CD;ASl0CC;;EAEE,eAAA;CTo0CH;AQttCD;ECjHE,eAAA;CT00CD;ASz0CC;;EAEE,eAAA;CT20CH;AQttCD;EAGE,YAAA;EE3HA,0BAAA;CVk1CD;AUj1CC;;EAEE,0BAAA;CVm1CH;AQxtCD;EE9HE,0BAAA;CVy1CD;AUx1CC;;EAEE,0BAAA;CV01CH;AQ5tCD;EEjIE,0BAAA;CVg2CD;AU/1CC;;EAEE,0BAAA;CVi2CH;AQhuCD;EEpIE,0BAAA;CVu2CD;AUt2CC;;EAEE,0BAAA;CVw2CH;AQpuCD;EEvIE,0BAAA;CV82CD;AU72CC;;EAEE,0BAAA;CV+2CH;AQnuCD;EACE,oBAAA;EACA,oBAAA;EACA,iCAAA;CRquCD;AQ7tCD;;EAEE,cAAA;EACA,oBAAA;CR+tCD;AQluCD;;;;EAMI,iBAAA;CRkuCH;AQ3tCD;EACE,gBAAA;EACA,iBAAA;CR6tCD;AQztCD;EALE,gBAAA;EACA,iBAAA;EAMA,kBAAA;CR4tCD;AQ9tCD;EAKI,sBAAA;EACA,kBAAA;EACA,mBAAA;CR4tCH;AQvtCD;EACE,cAAA;EACA,oBAAA;CRytCD;AQvtCD;;EAEE,wBAAA;CRytCD;AQvtCD;EACE,kBAAA;CRytCD;AQvtCD;EACE,eAAA;CRytCD;AQhsCD;EA6EA;IAvFM,YAAA;IACA,aAAA;IACA,YAAA;IACA,kBAAA;IGtNJ,iBAAA;IACA,wBAAA;IACA,oBAAA;GXq6CC;EQ7nCH;IAhFM,mBAAA;GRgtCH;CACF;AQvsCD;;EAGE,aAAA;EACA,kCAAA;CRwsCD;AQtsCD;EACE,eAAA;EA9IqB,0BAAA;CRu1CtB;AQpsCD;EACE,mBAAA;EACA,iBAAA;EACA,kBAAA;EACA,+BAAA;CRssCD;AQjsCG;;;EACE,iBAAA;CRqsCL;AQ/sCD;;;EAmBI,eAAA;EACA,eAAA;EACA,wBAAA;EACA,eAAA;CRisCH;AQ/rCG;;;EACE,uBAAA;CRmsCL;AQ3rCD;;EAEE,oBAAA;EACA,gBAAA;EACA,gCAAA;EACA,eAAA;EACA,kBAAA;CR6rCD;AQvrCG;;;;;;EAAW,YAAA;CR+rCd;AQ9rCG;;;;;;EACE,uBAAA;CRqsCL;AQ/rCD;EACE,oBAAA;EACA,mBAAA;EACA,wBAAA;CRisCD;AYv+CD;;;;EAIE,+DAAA;CZy+CD;AYr+CD;EACE,iBAAA;EACA,eAAA;EACA,eAAA;EACA,0BAAA;EACA,mBAAA;CZu+CD;AYn+CD;EACE,iBAAA;EACA,eAAA;EACA,YAAA;EACA,uBAAA;EACA,mBAAA;EACA,uDAAA;UAAA,+CAAA;CZq+CD;AY3+CD;EASI,WAAA;EACA,gBAAA;EACA,kBAAA;EACA,yBAAA;UAAA,iBAAA;CZq+CH;AYh+CD;EACE,eAAA;EACA,eAAA;EACA,iBAAA;EACA,gBAAA;EACA,wBAAA;EACA,sBAAA;EACA,sBAAA;EACA,eAAA;EACA,0BAAA;EACA,uBAAA;EACA,mBAAA;CZk+CD;AY7+CD;EAeI,WAAA;EACA,mBAAA;EACA,eAAA;EACA,sBAAA;EACA,8BAAA;EACA,iBAAA;CZi+CH;AY59CD;EACE,kBAAA;EACA,mBAAA;CZ89CD;AaxhDD;ECHE,mBAAA;EACA,kBAAA;EACA,mBAAA;EACA,oBAAA;Cd8hDD;AaxhDC;EAqEF;IAvEI,aAAA;Gb8hDD;CACF;Aa1hDC;EAkEF;IApEI,aAAA;GbgiDD;CACF;Aa5hDD;EA+DA;IAjEI,cAAA;GbkiDD;CACF;AazhDD;ECvBE,mBAAA;EACA,kBAAA;EACA,mBAAA;EACA,oBAAA;CdmjDD;AathDD;ECvBE,mBAAA;EACA,oBAAA;CdgjDD;AehjDG;EACE,mBAAA;EAEA,gBAAA;EAEA,mBAAA;EACA,oBAAA;CfgjDL;AehiDG;EACE,YAAA;CfkiDL;Ae3hDC;EACE,YAAA;Cf6hDH;Ae9hDC;EACE,oBAAA;CfgiDH;AejiDC;EACE,oBAAA;CfmiDH;AepiDC;EACE,WAAA;CfsiDH;AeviDC;EACE,oBAAA;CfyiDH;Ae1iDC;EACE,oBAAA;Cf4iDH;Ae7iDC;EACE,WAAA;Cf+iDH;AehjDC;EACE,oBAAA;CfkjDH;AenjDC;EACE,oBAAA;CfqjDH;AetjDC;EACE,WAAA;CfwjDH;AezjDC;EACE,oBAAA;Cf2jDH;Ae5jDC;EACE,mBAAA;Cf8jDH;AehjDC;EACE,YAAA;CfkjDH;AenjDC;EACE,oBAAA;CfqjDH;AetjDC;EACE,oBAAA;CfwjDH;AezjDC;EACE,WAAA;Cf2jDH;Ae5jDC;EACE,oBAAA;Cf8jDH;Ae/jDC;EACE,oBAAA;CfikDH;AelkDC;EACE,WAAA;CfokDH;AerkDC;EACE,oBAAA;CfukDH;AexkDC;EACE,oBAAA;Cf0kDH;Ae3kDC;EACE,WAAA;Cf6kDH;Ae9kDC;EACE,oBAAA;CfglDH;AejlDC;EACE,mBAAA;CfmlDH;Ae/kDC;EACE,YAAA;CfilDH;AejmDC;EACE,WAAA;CfmmDH;AepmDC;EACE,mBAAA;CfsmDH;AevmDC;EACE,mBAAA;CfymDH;Ae1mDC;EACE,UAAA;Cf4mDH;Ae7mDC;EACE,mBAAA;Cf+mDH;AehnDC;EACE,mBAAA;CfknDH;AennDC;EACE,UAAA;CfqnDH;AetnDC;EACE,mBAAA;CfwnDH;AeznDC;EACE,mBAAA;Cf2nDH;Ae5nDC;EACE,UAAA;Cf8nDH;Ae/nDC;EACE,mBAAA;CfioDH;AeloDC;EACE,kBAAA;CfooDH;AehoDC;EACE,WAAA;CfkoDH;AepnDC;EACE,kBAAA;CfsnDH;AevnDC;EACE,0BAAA;CfynDH;Ae1nDC;EACE,0BAAA;Cf4nDH;Ae7nDC;EACE,iBAAA;Cf+nDH;AehoDC;EACE,0BAAA;CfkoDH;AenoDC;EACE,0BAAA;CfqoDH;AetoDC;EACE,iBAAA;CfwoDH;AezoDC;EACE,0BAAA;Cf2oDH;Ae5oDC;EACE,0BAAA;Cf8oDH;Ae/oDC;EACE,iBAAA;CfipDH;AelpDC;EACE,0BAAA;CfopDH;AerpDC;EACE,yBAAA;CfupDH;AexpDC;EACE,gBAAA;Cf0pDH;Aa1pDD;EElCI;IACE,YAAA;Gf+rDH;EexrDD;IACE,YAAA;Gf0rDD;Ee3rDD;IACE,oBAAA;Gf6rDD;Ee9rDD;IACE,oBAAA;GfgsDD;EejsDD;IACE,WAAA;GfmsDD;EepsDD;IACE,oBAAA;GfssDD;EevsDD;IACE,oBAAA;GfysDD;Ee1sDD;IACE,WAAA;Gf4sDD;Ee7sDD;IACE,oBAAA;Gf+sDD;EehtDD;IACE,oBAAA;GfktDD;EentDD;IACE,WAAA;GfqtDD;EettDD;IACE,oBAAA;GfwtDD;EeztDD;IACE,mBAAA;Gf2tDD;Ee7sDD;IACE,YAAA;Gf+sDD;EehtDD;IACE,oBAAA;GfktDD;EentDD;IACE,oBAAA;GfqtDD;EettDD;IACE,WAAA;GfwtDD;EeztDD;IACE,oBAAA;Gf2tDD;Ee5tDD;IACE,oBAAA;Gf8tDD;Ee/tDD;IACE,WAAA;GfiuDD;EeluDD;IACE,oBAAA;GfouDD;EeruDD;IACE,oBAAA;GfuuDD;EexuDD;IACE,WAAA;Gf0uDD;Ee3uDD;IACE,oBAAA;Gf6uDD;Ee9uDD;IACE,mBAAA;GfgvDD;Ee5uDD;IACE,YAAA;Gf8uDD;Ee9vDD;IACE,WAAA;GfgwDD;EejwDD;IACE,mBAAA;GfmwDD;EepwDD;IACE,mBAAA;GfswDD;EevwDD;IACE,UAAA;GfywDD;Ee1wDD;IACE,mBAAA;Gf4wDD;Ee7wDD;IACE,mBAAA;Gf+wDD;EehxDD;IACE,UAAA;GfkxDD;EenxDD;IACE,mBAAA;GfqxDD;EetxDD;IACE,mBAAA;GfwxDD;EezxDD;IACE,UAAA;Gf2xDD;Ee5xDD;IACE,mBAAA;Gf8xDD;Ee/xDD;IACE,kBAAA;GfiyDD;Ee7xDD;IACE,WAAA;Gf+xDD;EejxDD;IACE,kBAAA;GfmxDD;EepxDD;IACE,0BAAA;GfsxDD;EevxDD;IACE,0BAAA;GfyxDD;Ee1xDD;IACE,iBAAA;Gf4xDD;Ee7xDD;IACE,0BAAA;Gf+xDD;EehyDD;IACE,0BAAA;GfkyDD;EenyDD;IACE,iBAAA;GfqyDD;EetyDD;IACE,0BAAA;GfwyDD;EezyDD;IACE,0BAAA;Gf2yDD;Ee5yDD;IACE,iBAAA;Gf8yDD;Ee/yDD;IACE,0BAAA;GfizDD;EelzDD;IACE,yBAAA;GfozDD;EerzDD;IACE,gBAAA;GfuzDD;CACF;Aa/yDD;EE3CI;IACE,YAAA;Gf61DH;Eet1DD;IACE,YAAA;Gfw1DD;Eez1DD;IACE,oBAAA;Gf21DD;Ee51DD;IACE,oBAAA;Gf81DD;Ee/1DD;IACE,WAAA;Gfi2DD;Eel2DD;IACE,oBAAA;Gfo2DD;Eer2DD;IACE,oBAAA;Gfu2DD;Eex2DD;IACE,WAAA;Gf02DD;Ee32DD;IACE,oBAAA;Gf62DD;Ee92DD;IACE,oBAAA;Gfg3DD;Eej3DD;IACE,WAAA;Gfm3DD;Eep3DD;IACE,oBAAA;Gfs3DD;Eev3DD;IACE,mBAAA;Gfy3DD;Ee32DD;IACE,YAAA;Gf62DD;Ee92DD;IACE,oBAAA;Gfg3DD;Eej3DD;IACE,oBAAA;Gfm3DD;Eep3DD;IACE,WAAA;Gfs3DD;Eev3DD;IACE,oBAAA;Gfy3DD;Ee13DD;IACE,oBAAA;Gf43DD;Ee73DD;IACE,WAAA;Gf+3DD;Eeh4DD;IACE,oBAAA;Gfk4DD;Een4DD;IACE,oBAAA;Gfq4DD;Eet4DD;IACE,WAAA;Gfw4DD;Eez4DD;IACE,oBAAA;Gf24DD;Ee54DD;IACE,mBAAA;Gf84DD;Ee14DD;IACE,YAAA;Gf44DD;Ee55DD;IACE,WAAA;Gf85DD;Ee/5DD;IACE,mBAAA;Gfi6DD;Eel6DD;IACE,mBAAA;Gfo6DD;Eer6DD;IACE,UAAA;Gfu6DD;Eex6DD;IACE,mBAAA;Gf06DD;Ee36DD;IACE,mBAAA;Gf66DD;Ee96DD;IACE,UAAA;Gfg7DD;Eej7DD;IACE,mBAAA;Gfm7DD;Eep7DD;IACE,mBAAA;Gfs7DD;Eev7DD;IACE,UAAA;Gfy7DD;Ee17DD;IACE,mBAAA;Gf47DD;Ee77DD;IACE,kBAAA;Gf+7DD;Ee37DD;IACE,WAAA;Gf67DD;Ee/6DD;IACE,kBAAA;Gfi7DD;Eel7DD;IACE,0BAAA;Gfo7DD;Eer7DD;IACE,0BAAA;Gfu7DD;Eex7DD;IACE,iBAAA;Gf07DD;Ee37DD;IACE,0BAAA;Gf67DD;Ee97DD;IACE,0BAAA;Gfg8DD;Eej8DD;IACE,iBAAA;Gfm8DD;Eep8DD;IACE,0BAAA;Gfs8DD;Eev8DD;IACE,0BAAA;Gfy8DD;Ee18DD;IACE,iBAAA;Gf48DD;Ee78DD;IACE,0BAAA;Gf+8DD;Eeh9DD;IACE,yBAAA;Gfk9DD;Een9DD;IACE,gBAAA;Gfq9DD;CACF;Aa18DD;EE9CI;IACE,YAAA;Gf2/DH;Eep/DD;IACE,YAAA;Gfs/DD;Eev/DD;IACE,oBAAA;Gfy/DD;Ee1/DD;IACE,oBAAA;Gf4/DD;Ee7/DD;IACE,WAAA;Gf+/DD;EehgED;IACE,oBAAA;GfkgED;EengED;IACE,oBAAA;GfqgED;EetgED;IACE,WAAA;GfwgED;EezgED;IACE,oBAAA;Gf2gED;Ee5gED;IACE,oBAAA;Gf8gED;Ee/gED;IACE,WAAA;GfihED;EelhED;IACE,oBAAA;GfohED;EerhED;IACE,mBAAA;GfuhED;EezgED;IACE,YAAA;Gf2gED;Ee5gED;IACE,oBAAA;Gf8gED;Ee/gED;IACE,oBAAA;GfihED;EelhED;IACE,WAAA;GfohED;EerhED;IACE,oBAAA;GfuhED;EexhED;IACE,oBAAA;Gf0hED;Ee3hED;IACE,WAAA;Gf6hED;Ee9hED;IACE,oBAAA;GfgiED;EejiED;IACE,oBAAA;GfmiED;EepiED;IACE,WAAA;GfsiED;EeviED;IACE,oBAAA;GfyiED;Ee1iED;IACE,mBAAA;Gf4iED;EexiED;IACE,YAAA;Gf0iED;Ee1jED;IACE,WAAA;Gf4jED;Ee7jED;IACE,mBAAA;Gf+jED;EehkED;IACE,mBAAA;GfkkED;EenkED;IACE,UAAA;GfqkED;EetkED;IACE,mBAAA;GfwkED;EezkED;IACE,mBAAA;Gf2kED;Ee5kED;IACE,UAAA;Gf8kED;Ee/kED;IACE,mBAAA;GfilED;EellED;IACE,mBAAA;GfolED;EerlED;IACE,UAAA;GfulED;EexlED;IACE,mBAAA;Gf0lED;Ee3lED;IACE,kBAAA;Gf6lED;EezlED;IACE,WAAA;Gf2lED;Ee7kED;IACE,kBAAA;Gf+kED;EehlED;IACE,0BAAA;GfklED;EenlED;IACE,0BAAA;GfqlED;EetlED;IACE,iBAAA;GfwlED;EezlED;IACE,0BAAA;Gf2lED;Ee5lED;IACE,0BAAA;Gf8lED;Ee/lED;IACE,iBAAA;GfimED;EelmED;IACE,0BAAA;GfomED;EermED;IACE,0BAAA;GfumED;EexmED;IACE,iBAAA;Gf0mED;Ee3mED;IACE,0BAAA;Gf6mED;Ee9mED;IACE,yBAAA;GfgnED;EejnED;IACE,gBAAA;GfmnED;CACF;AgBvrED;EACE,8BAAA;ChByrED;AgBvrED;EACE,iBAAA;EACA,oBAAA;EACA,eAAA;EACA,iBAAA;ChByrED;AgBvrED;EACE,iBAAA;ChByrED;AgBnrED;EACE,YAAA;EACA,gBAAA;EACA,oBAAA;ChBqrED;AgBxrED;;;;;;EAWQ,aAAA;EACA,wBAAA;EACA,oBAAA;EACA,2BAAA;ChBqrEP;AgBnsED;EAoBI,uBAAA;EACA,8BAAA;ChBkrEH;AgBvsED;;;;;;EA8BQ,cAAA;ChBirEP;AgB/sED;EAoCI,2BAAA;ChB8qEH;AgBltED;EAyCI,uBAAA;ChB4qEH;AgBrqED;;;;;;EAOQ,aAAA;ChBsqEP;AgB3pED;EACE,uBAAA;ChB6pED;AgB9pED;;;;;;EAQQ,uBAAA;ChB8pEP;AgBtqED;;EAeM,yBAAA;ChB2pEL;AgBjpED;EAEI,0BAAA;ChBkpEH;AgBzoED;EAEI,0BAAA;ChB0oEH;AgBjoED;EACE,iBAAA;EACA,YAAA;EACA,sBAAA;ChBmoED;AgB9nEG;;EACE,iBAAA;EACA,YAAA;EACA,oBAAA;ChBioEL;AiB7wEC;;;;;;;;;;;;EAOI,0BAAA;CjBoxEL;AiB9wEC;;;;;EAMI,0BAAA;CjB+wEL;AiBlyEC;;;;;;;;;;;;EAOI,0BAAA;CjByyEL;AiBnyEC;;;;;EAMI,0BAAA;CjBoyEL;AiBvzEC;;;;;;;;;;;;EAOI,0BAAA;CjB8zEL;AiBxzEC;;;;;EAMI,0BAAA;CjByzEL;AiB50EC;;;;;;;;;;;;EAOI,0BAAA;CjBm1EL;AiB70EC;;;;;EAMI,0BAAA;CjB80EL;AiBj2EC;;;;;;;;;;;;EAOI,0BAAA;CjBw2EL;AiBl2EC;;;;;EAMI,0BAAA;CjBm2EL;AgBjtED;EACE,iBAAA;EACA,kBAAA;ChBmtED;AgBtpED;EACA;IA3DI,YAAA;IACA,oBAAA;IACA,mBAAA;IACA,6CAAA;IACA,uBAAA;GhBotED;EgB7pEH;IAnDM,iBAAA;GhBmtEH;EgBhqEH;;;;;;IA1CY,oBAAA;GhBktET;EgBxqEH;IAlCM,UAAA;GhB6sEH;EgB3qEH;;;;;;IAzBY,eAAA;GhB4sET;EgBnrEH;;;;;;IArBY,gBAAA;GhBgtET;EgB3rEH;;;;IARY,iBAAA;GhBysET;CACF;AkBn6ED;EACE,WAAA;EACA,UAAA;EACA,UAAA;EAIA,aAAA;ClBk6ED;AkB/5ED;EACE,eAAA;EACA,YAAA;EACA,WAAA;EACA,oBAAA;EACA,gBAAA;EACA,qBAAA;EACA,eAAA;EACA,UAAA;EACA,iCAAA;ClBi6ED;AkB95ED;EACE,sBAAA;EACA,gBAAA;EACA,mBAAA;EACA,kBAAA;ClBg6ED;AkBr5ED;Eb4BE,+BAAA;EACG,4BAAA;EACK,uBAAA;CL43ET;AkBr5ED;;EAEE,gBAAA;EACA,mBAAA;EACA,oBAAA;ClBu5ED;AkBp5ED;EACE,eAAA;ClBs5ED;AkBl5ED;EACE,eAAA;EACA,YAAA;ClBo5ED;AkBh5ED;;EAEE,aAAA;ClBk5ED;AkB94ED;;;EZrEE,2CAAA;EACA,qBAAA;CNw9ED;AkB74ED;EACE,eAAA;EACA,iBAAA;EACA,gBAAA;EACA,wBAAA;EACA,eAAA;ClB+4ED;AkBr3ED;EACE,eAAA;EACA,YAAA;EACA,aAAA;EACA,kBAAA;EACA,gBAAA;EACA,wBAAA;EACA,eAAA;EACA,uBAAA;EACA,uBAAA;EACA,uBAAA;EACA,mBAAA;EbxDA,yDAAA;EACQ,iDAAA;EAyHR,uFAAA;EACK,0EAAA;EACG,uEAAA;CLwzET;AmBh8EC;EACE,sBAAA;EACA,WAAA;EdUF,uFAAA;EACQ,+EAAA;CLy7ET;AKx5EC;EACE,YAAA;EACA,WAAA;CL05EH;AKx5EC;EAA0B,YAAA;CL25E3B;AK15EC;EAAgC,YAAA;CL65EjC;AkBj4EC;EACE,UAAA;EACA,8BAAA;ClBm4EH;AkB33EC;;;EAGE,0BAAA;EACA,WAAA;ClB63EH;AkB13EC;;EAEE,oBAAA;ClB43EH;AkBx3EC;EACE,aAAA;ClB03EH;AkB92ED;EACE,yBAAA;ClBg3ED;AkBx0ED;EAtBI;;;;IACE,kBAAA;GlBo2EH;EkBj2EC;;;;;;;;IAEE,kBAAA;GlBy2EH;EkBt2EC;;;;;;;;IAEE,kBAAA;GlB82EH;CACF;AkBp2ED;EACE,oBAAA;ClBs2ED;AkB91ED;;EAEE,mBAAA;EACA,eAAA;EACA,iBAAA;EACA,oBAAA;ClBg2ED;AkBr2ED;;EAQI,iBAAA;EACA,mBAAA;EACA,iBAAA;EACA,oBAAA;EACA,gBAAA;ClBi2EH;AkB91ED;;;;EAIE,mBAAA;EACA,mBAAA;EACA,mBAAA;ClBg2ED;AkB71ED;;EAEE,iBAAA;ClB+1ED;AkB31ED;;EAEE,mBAAA;EACA,sBAAA;EACA,mBAAA;EACA,iBAAA;EACA,uBAAA;EACA,oBAAA;EACA,gBAAA;ClB61ED;AkB31ED;;EAEE,cAAA;EACA,kBAAA;ClB61ED;AkBp1EC;;;;;;EAGE,oBAAA;ClBy1EH;AkBn1EC;;;;EAEE,oBAAA;ClBu1EH;AkBj1EC;;;;EAGI,oBAAA;ClBo1EL;AkBz0ED;EAEE,iBAAA;EACA,oBAAA;EAEA,iBAAA;EACA,iBAAA;ClBy0ED;AkBv0EC;;EAEE,gBAAA;EACA,iBAAA;ClBy0EH;AkB5zED;ECnQE,aAAA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;CnBkkFD;AmBhkFC;EACE,aAAA;EACA,kBAAA;CnBkkFH;AmB/jFC;;EAEE,aAAA;CnBikFH;AkBx0ED;EAEI,aAAA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;ClBy0EH;AkB/0ED;EASI,aAAA;EACA,kBAAA;ClBy0EH;AkBn1ED;;EAcI,aAAA;ClBy0EH;AkBv1ED;EAiBI,aAAA;EACA,iBAAA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;ClBy0EH;AkBr0ED;EC/RE,aAAA;EACA,mBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;CnBumFD;AmBrmFC;EACE,aAAA;EACA,kBAAA;CnBumFH;AmBpmFC;;EAEE,aAAA;CnBsmFH;AkBj1ED;EAEI,aAAA;EACA,mBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;ClBk1EH;AkBx1ED;EASI,aAAA;EACA,kBAAA;ClBk1EH;AkB51ED;;EAcI,aAAA;ClBk1EH;AkBh2ED;EAiBI,aAAA;EACA,iBAAA;EACA,mBAAA;EACA,gBAAA;EACA,uBAAA;ClBk1EH;AkBz0ED;EAEE,mBAAA;ClB00ED;AkB50ED;EAMI,sBAAA;ClBy0EH;AkBr0ED;EACE,mBAAA;EACA,OAAA;EACA,SAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,aAAA;EACA,kBAAA;EACA,mBAAA;EACA,qBAAA;ClBu0ED;AkBr0ED;;;EAGE,YAAA;EACA,aAAA;EACA,kBAAA;ClBu0ED;AkBr0ED;;;EAGE,YAAA;EACA,aAAA;EACA,kBAAA;ClBu0ED;AkBn0ED;;;;;;;;;;EC1ZI,eAAA;CnByuFH;AkB/0ED;ECtZI,sBAAA;Ed+CF,yDAAA;EACQ,iDAAA;CL0rFT;AmBxuFG;EACE,sBAAA;Ed4CJ,0EAAA;EACQ,kEAAA;CL+rFT;AkBz1ED;EC5YI,eAAA;EACA,sBAAA;EACA,0BAAA;CnBwuFH;AkB91ED;ECtYI,eAAA;CnBuuFH;AkB91ED;;;;;;;;;;EC7ZI,eAAA;CnBuwFH;AkB12ED;ECzZI,sBAAA;Ed+CF,yDAAA;EACQ,iDAAA;CLwtFT;AmBtwFG;EACE,sBAAA;Ed4CJ,0EAAA;EACQ,kEAAA;CL6tFT;AkBp3ED;EC/YI,eAAA;EACA,sBAAA;EACA,0BAAA;CnBswFH;AkBz3ED;ECzYI,eAAA;CnBqwFH;AkBz3ED;;;;;;;;;;EChaI,eAAA;CnBqyFH;AkBr4ED;EC5ZI,sBAAA;Ed+CF,yDAAA;EACQ,iDAAA;CLsvFT;AmBpyFG;EACE,sBAAA;Ed4CJ,0EAAA;EACQ,kEAAA;CL2vFT;AkB/4ED;EClZI,eAAA;EACA,sBAAA;EACA,0BAAA;CnBoyFH;AkBp5ED;EC5YI,eAAA;CnBmyFH;AkBh5EC;EACE,UAAA;ClBk5EH;AkBh5EC;EACE,OAAA;ClBk5EH;AkBx4ED;EACE,eAAA;EACA,gBAAA;EACA,oBAAA;EACA,eAAA;ClB04ED;AkBvzED;EAwEA;IAtIM,sBAAA;IACA,iBAAA;IACA,uBAAA;GlBy3EH;EkBrvEH;IA/HM,sBAAA;IACA,YAAA;IACA,uBAAA;GlBu3EH;EkB1vEH;IAxHM,sBAAA;GlBq3EH;EkB7vEH;IApHM,sBAAA;IACA,uBAAA;GlBo3EH;EkBjwEH;;;IA9GQ,YAAA;GlBo3EL;EkBtwEH;IAxGM,YAAA;GlBi3EH;EkBzwEH;IApGM,iBAAA;IACA,uBAAA;GlBg3EH;EkB7wEH;;IA5FM,sBAAA;IACA,cAAA;IACA,iBAAA;IACA,uBAAA;GlB62EH;EkBpxEH;;IAtFQ,gBAAA;GlB82EL;EkBxxEH;;IAjFM,mBAAA;IACA,eAAA;GlB62EH;EkB7xEH;IA3EM,OAAA;GlB22EH;CACF;AkBj2ED;;;;EASI,cAAA;EACA,iBAAA;EACA,iBAAA;ClB81EH;AkBz2ED;;EAiBI,iBAAA;ClB41EH;AkB72ED;EJthBE,mBAAA;EACA,oBAAA;Cds4FD;AkB10EC;EAyBF;IAnCM,kBAAA;IACA,iBAAA;IACA,iBAAA;GlBw1EH;CACF;AkBx3ED;EAwCI,YAAA;ClBm1EH;AkBr0EC;EAUF;IAdQ,kBAAA;IACA,gBAAA;GlB60EL;CACF;AkBn0EC;EAEF;IANQ,iBAAA;IACA,gBAAA;GlB20EL;CACF;AoBp6FD;EACE,sBAAA;EACA,iBAAA;EACA,oBAAA;EACA,mBAAA;EACA,uBAAA;EACA,+BAAA;MAAA,2BAAA;EACA,gBAAA;EACA,uBAAA;EACA,8BAAA;EACA,oBAAA;EC0CA,kBAAA;EACA,gBAAA;EACA,wBAAA;EACA,mBAAA;EhB+JA,0BAAA;EACG,uBAAA;EACC,sBAAA;EACI,kBAAA;CL+tFT;AoBv6FG;;;;;;EdnBF,2CAAA;EACA,qBAAA;CNk8FD;AoB16FC;;;EAGE,YAAA;EACA,sBAAA;CpB46FH;AoBz6FC;;EAEE,WAAA;EACA,uBAAA;Ef2BF,yDAAA;EACQ,iDAAA;CLi5FT;AoBz6FC;;;EAGE,oBAAA;EE7CF,cAAA;EAGA,0BAAA;EjB8DA,yBAAA;EACQ,iBAAA;CL05FT;AoBz6FG;;EAEE,qBAAA;CpB26FL;AoBl6FD;EC3DE,YAAA;EACA,uBAAA;EACA,mBAAA;CrBg+FD;AqB99FC;;EAEE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBg+FP;AqB99FC;EACE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBg+FP;AqB99FC;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBg+FP;AqB99FG;;;;;;;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBs+FT;AqBn+FC;;;EAGE,uBAAA;CrBq+FH;AqBh+FG;;;;;;;;;EAGE,uBAAA;EACI,mBAAA;CrBw+FT;AoBv9FD;ECZI,YAAA;EACA,uBAAA;CrBs+FH;AoBx9FD;EC9DE,YAAA;EACA,0BAAA;EACA,sBAAA;CrByhGD;AqBvhGC;;EAEE,YAAA;EACA,0BAAA;EACI,sBAAA;CrByhGP;AqBvhGC;EACE,YAAA;EACA,0BAAA;EACI,sBAAA;CrByhGP;AqBvhGC;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrByhGP;AqBvhGG;;;;;;;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB+hGT;AqB5hGC;;;EAGE,uBAAA;CrB8hGH;AqBzhGG;;;;;;;;;EAGE,0BAAA;EACI,sBAAA;CrBiiGT;AoB7gGD;ECfI,eAAA;EACA,uBAAA;CrB+hGH;AoB7gGD;EClEE,YAAA;EACA,0BAAA;EACA,sBAAA;CrBklGD;AqBhlGC;;EAEE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBklGP;AqBhlGC;EACE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBklGP;AqBhlGC;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBklGP;AqBhlGG;;;;;;;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBwlGT;AqBrlGC;;;EAGE,uBAAA;CrBulGH;AqBllGG;;;;;;;;;EAGE,0BAAA;EACI,sBAAA;CrB0lGT;AoBlkGD;ECnBI,eAAA;EACA,uBAAA;CrBwlGH;AoBlkGD;ECtEE,YAAA;EACA,0BAAA;EACA,sBAAA;CrB2oGD;AqBzoGC;;EAEE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB2oGP;AqBzoGC;EACE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB2oGP;AqBzoGC;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB2oGP;AqBzoGG;;;;;;;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBipGT;AqB9oGC;;;EAGE,uBAAA;CrBgpGH;AqB3oGG;;;;;;;;;EAGE,0BAAA;EACI,sBAAA;CrBmpGT;AoBvnGD;ECvBI,eAAA;EACA,uBAAA;CrBipGH;AoBvnGD;EC1EE,YAAA;EACA,0BAAA;EACA,sBAAA;CrBosGD;AqBlsGC;;EAEE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBosGP;AqBlsGC;EACE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBosGP;AqBlsGC;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBosGP;AqBlsGG;;;;;;;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB0sGT;AqBvsGC;;;EAGE,uBAAA;CrBysGH;AqBpsGG;;;;;;;;;EAGE,0BAAA;EACI,sBAAA;CrB4sGT;AoB5qGD;EC3BI,eAAA;EACA,uBAAA;CrB0sGH;AoB5qGD;EC9EE,YAAA;EACA,0BAAA;EACA,sBAAA;CrB6vGD;AqB3vGC;;EAEE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB6vGP;AqB3vGC;EACE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB6vGP;AqB3vGC;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrB6vGP;AqB3vGG;;;;;;;;;EAGE,YAAA;EACA,0BAAA;EACI,sBAAA;CrBmwGT;AqBhwGC;;;EAGE,uBAAA;CrBkwGH;AqB7vGG;;;;;;;;;EAGE,0BAAA;EACI,sBAAA;CrBqwGT;AoBjuGD;EC/BI,eAAA;EACA,uBAAA;CrBmwGH;AoB5tGD;EACE,eAAA;EACA,oBAAA;EACA,iBAAA;CpB8tGD;AoB5tGC;;;;;EAKE,8BAAA;EfnCF,yBAAA;EACQ,iBAAA;CLkwGT;AoB7tGC;;;;EAIE,0BAAA;CpB+tGH;AoB7tGC;;EAEE,eAAA;EACA,2BAAA;EACA,8BAAA;CpB+tGH;AoB3tGG;;;;EAEE,eAAA;EACA,sBAAA;CpB+tGL;AoBttGD;;ECxEE,mBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;CrBkyGD;AoBztGD;;EC5EE,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;CrByyGD;AoB5tGD;;EChFE,iBAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;CrBgzGD;AoB3tGD;EACE,eAAA;EACA,YAAA;CpB6tGD;AoBztGD;EACE,gBAAA;CpB2tGD;AoBptGC;;;EACE,YAAA;CpBwtGH;AuBl3GD;EACE,WAAA;ElBoLA,yCAAA;EACK,oCAAA;EACG,iCAAA;CLisGT;AuBr3GC;EACE,WAAA;CvBu3GH;AuBn3GD;EACE,cAAA;CvBq3GD;AuBn3GC;EAAY,eAAA;CvBs3Gb;AuBr3GC;EAAY,mBAAA;CvBw3Gb;AuBv3GC;EAAY,yBAAA;CvB03Gb;AuBv3GD;EACE,mBAAA;EACA,UAAA;EACA,iBAAA;ElBuKA,gDAAA;EACQ,2CAAA;KAAA,wCAAA;EAOR,mCAAA;EACQ,8BAAA;KAAA,2BAAA;EAGR,yCAAA;EACQ,oCAAA;KAAA,iCAAA;CL2sGT;AwBr5GD;EACE,sBAAA;EACA,SAAA;EACA,UAAA;EACA,iBAAA;EACA,uBAAA;EACA,uBAAA;EACA,yBAAA;EACA,oCAAA;EACA,mCAAA;CxBu5GD;AwBn5GD;;EAEE,mBAAA;CxBq5GD;AwBj5GD;EACE,WAAA;CxBm5GD;AwB/4GD;EACE,mBAAA;EACA,UAAA;EACA,QAAA;EACA,cAAA;EACA,cAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,gBAAA;EACA,iBAAA;EACA,gBAAA;EACA,iBAAA;EACA,uBAAA;EACA,uBAAA;EACA,sCAAA;EACA,mBAAA;EnBsBA,oDAAA;EACQ,4CAAA;EmBrBR,qCAAA;UAAA,6BAAA;CxBk5GD;AwB74GC;EACE,SAAA;EACA,WAAA;CxB+4GH;AwBx6GD;ECzBE,YAAA;EACA,cAAA;EACA,iBAAA;EACA,0BAAA;CzBo8GD;AwB96GD;EAmCI,eAAA;EACA,kBAAA;EACA,YAAA;EACA,oBAAA;EACA,wBAAA;EACA,eAAA;EACA,oBAAA;CxB84GH;AwBx4GC;;EAEE,sBAAA;EACA,eAAA;EACA,0BAAA;CxB04GH;AwBp4GC;;;EAGE,YAAA;EACA,sBAAA;EACA,WAAA;EACA,0BAAA;CxBs4GH;AwB73GC;;;EAGE,eAAA;CxB+3GH;AwB33GC;;EAEE,sBAAA;EACA,8BAAA;EACA,uBAAA;EE3GF,oEAAA;EF6GE,oBAAA;CxB63GH;AwBx3GD;EAGI,eAAA;CxBw3GH;AwB33GD;EAQI,WAAA;CxBs3GH;AwB92GD;EACE,WAAA;EACA,SAAA;CxBg3GD;AwBx2GD;EACE,QAAA;EACA,YAAA;CxB02GD;AwBt2GD;EACE,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,wBAAA;EACA,eAAA;EACA,oBAAA;CxBw2GD;AwBp2GD;EACE,gBAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;EACA,OAAA;EACA,aAAA;CxBs2GD;AwBl2GD;EACE,SAAA;EACA,WAAA;CxBo2GD;AwB51GD;;EAII,cAAA;EACA,0BAAA;EACA,4BAAA;EACA,YAAA;CxB41GH;AwBn2GD;;EAWI,UAAA;EACA,aAAA;EACA,mBAAA;CxB41GH;AwBv0GD;EAXE;IApEA,WAAA;IACA,SAAA;GxB05GC;EwBv1GD;IA1DA,QAAA;IACA,YAAA;GxBo5GC;CACF;A2BpiHD;;EAEE,mBAAA;EACA,sBAAA;EACA,uBAAA;C3BsiHD;A2B1iHD;;EAMI,mBAAA;EACA,YAAA;C3BwiHH;A2BtiHG;;;;;;;;EAIE,WAAA;C3B4iHL;A2BtiHD;;;;EAKI,kBAAA;C3BuiHH;A2BliHD;EACE,kBAAA;C3BoiHD;A2BriHD;;;EAOI,YAAA;C3BmiHH;A2B1iHD;;;EAYI,iBAAA;C3BmiHH;A2B/hHD;EACE,iBAAA;C3BiiHD;A2B7hHD;EACE,eAAA;C3B+hHD;A2B9hHC;EClDA,8BAAA;EACG,2BAAA;C5BmlHJ;A2B7hHD;;EC/CE,6BAAA;EACG,0BAAA;C5BglHJ;A2B5hHD;EACE,YAAA;C3B8hHD;A2B5hHD;EACE,iBAAA;C3B8hHD;A2B5hHD;;ECnEE,8BAAA;EACG,2BAAA;C5BmmHJ;A2B3hHD;ECjEE,6BAAA;EACG,0BAAA;C5B+lHJ;A2B1hHD;;EAEE,WAAA;C3B4hHD;A2B3gHD;EACE,kBAAA;EACA,mBAAA;C3B6gHD;A2B3gHD;EACE,mBAAA;EACA,oBAAA;C3B6gHD;A2BxgHD;EtB/CE,yDAAA;EACQ,iDAAA;CL0jHT;A2BxgHC;EtBnDA,yBAAA;EACQ,iBAAA;CL8jHT;A2BrgHD;EACE,eAAA;C3BugHD;A2BpgHD;EACE,wBAAA;EACA,uBAAA;C3BsgHD;A2BngHD;EACE,wBAAA;C3BqgHD;A2B9/GD;;;EAII,eAAA;EACA,YAAA;EACA,YAAA;EACA,gBAAA;C3B+/GH;A2BtgHD;EAcM,YAAA;C3B2/GL;A2BzgHD;;;;EAsBI,iBAAA;EACA,eAAA;C3By/GH;A2Bp/GC;EACE,iBAAA;C3Bs/GH;A2Bp/GC;EC3KA,6BAAA;EACC,4BAAA;EAOD,8BAAA;EACC,6BAAA;C5B4pHF;A2Bt/GC;EC/KA,2BAAA;EACC,0BAAA;EAOD,gCAAA;EACC,+BAAA;C5BkqHF;A2Bv/GD;EACE,iBAAA;C3By/GD;A2Bv/GD;;EC/KE,8BAAA;EACC,6BAAA;C5B0qHF;A2Bt/GD;EC7LE,2BAAA;EACC,0BAAA;C5BsrHF;A2Bl/GD;EACE,eAAA;EACA,YAAA;EACA,oBAAA;EACA,0BAAA;C3Bo/GD;A2Bx/GD;;EAOI,YAAA;EACA,oBAAA;EACA,UAAA;C3Bq/GH;A2B9/GD;EAYI,YAAA;C3Bq/GH;A2BjgHD;EAgBI,WAAA;C3Bo/GH;A2Bn+GD;;;;EAKM,mBAAA;EACA,uBAAA;EACA,qBAAA;C3Bo+GL;A6B9sHD;EACE,mBAAA;EACA,eAAA;EACA,0BAAA;C7BgtHD;A6B7sHC;EACE,YAAA;EACA,gBAAA;EACA,iBAAA;C7B+sHH;A6BxtHD;EAeI,mBAAA;EACA,WAAA;EAKA,YAAA;EAEA,YAAA;EACA,iBAAA;C7BusHH;A6BrsHG;EACE,WAAA;C7BusHL;A6B7rHD;;;EV0BE,aAAA;EACA,mBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;CnBwqHD;AmBtqHC;;;EACE,aAAA;EACA,kBAAA;CnB0qHH;AmBvqHC;;;;;;EAEE,aAAA;CnB6qHH;A6B/sHD;;;EVqBE,aAAA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;CnB+rHD;AmB7rHC;;;EACE,aAAA;EACA,kBAAA;CnBisHH;AmB9rHC;;;;;;EAEE,aAAA;CnBosHH;A6B7tHD;;;EAGE,oBAAA;C7B+tHD;A6B7tHC;;;EACE,iBAAA;C7BiuHH;A6B7tHD;;EAEE,UAAA;EACA,oBAAA;EACA,uBAAA;C7B+tHD;A6B1tHD;EACE,kBAAA;EACA,gBAAA;EACA,oBAAA;EACA,eAAA;EACA,eAAA;EACA,mBAAA;EACA,0BAAA;EACA,uBAAA;EACA,mBAAA;C7B4tHD;A6BztHC;EACE,kBAAA;EACA,gBAAA;EACA,mBAAA;C7B2tHH;A6BztHC;EACE,mBAAA;EACA,gBAAA;EACA,mBAAA;C7B2tHH;A6B/uHD;;EA0BI,cAAA;C7BytHH;A6BptHD;;;;;;;EDpGE,8BAAA;EACG,2BAAA;C5Bi0HJ;A6BrtHD;EACE,gBAAA;C7ButHD;A6BrtHD;;;;;;;EDxGE,6BAAA;EACG,0BAAA;C5Bs0HJ;A6BttHD;EACE,eAAA;C7BwtHD;A6BntHD;EACE,mBAAA;EAGA,aAAA;EACA,oBAAA;C7BmtHD;A6BxtHD;EAUI,mBAAA;C7BitHH;A6B3tHD;EAYM,kBAAA;C7BktHL;A6B/sHG;;;EAGE,WAAA;C7BitHL;A6B5sHC;;EAGI,mBAAA;C7B6sHL;A6B1sHC;;EAGI,WAAA;EACA,kBAAA;C7B2sHL;A8B12HD;EACE,iBAAA;EACA,gBAAA;EACA,iBAAA;C9B42HD;A8B/2HD;EAOI,mBAAA;EACA,eAAA;C9B22HH;A8Bn3HD;EAWM,mBAAA;EACA,eAAA;EACA,mBAAA;C9B22HL;A8B12HK;;EAEE,sBAAA;EACA,0BAAA;C9B42HP;A8Bv2HG;EACE,eAAA;C9By2HL;A8Bv2HK;;EAEE,eAAA;EACA,sBAAA;EACA,8BAAA;EACA,oBAAA;C9By2HP;A8Bl2HG;;;EAGE,0BAAA;EACA,sBAAA;C9Bo2HL;A8B74HD;ELHE,YAAA;EACA,cAAA;EACA,iBAAA;EACA,0BAAA;CzBm5HD;A8Bn5HD;EA0DI,gBAAA;C9B41HH;A8Bn1HD;EACE,8BAAA;C9Bq1HD;A8Bt1HD;EAGI,YAAA;EAEA,oBAAA;C9Bq1HH;A8B11HD;EASM,kBAAA;EACA,wBAAA;EACA,8BAAA;EACA,2BAAA;C9Bo1HL;A8Bn1HK;EACE,mCAAA;C9Bq1HP;A8B/0HK;;;EAGE,eAAA;EACA,uBAAA;EACA,uBAAA;EACA,iCAAA;EACA,gBAAA;C9Bi1HP;A8B50HC;EAqDA,YAAA;EA8BA,iBAAA;C9B6vHD;A8Bh1HC;EAwDE,YAAA;C9B2xHH;A8Bn1HC;EA0DI,mBAAA;EACA,mBAAA;C9B4xHL;A8Bv1HC;EAgEE,UAAA;EACA,WAAA;C9B0xHH;A8B9wHD;EA0DA;IAjEM,oBAAA;IACA,UAAA;G9ByxHH;E8BztHH;IA9DQ,iBAAA;G9B0xHL;CACF;A8Bp2HC;EAuFE,gBAAA;EACA,mBAAA;C9BgxHH;A8Bx2HC;;;EA8FE,uBAAA;C9B+wHH;A8BjwHD;EA2BA;IApCM,8BAAA;IACA,2BAAA;G9B8wHH;E8B3uHH;;;IA9BM,0BAAA;G9B8wHH;CACF;A8B/2HD;EAEI,YAAA;C9Bg3HH;A8Bl3HD;EAMM,mBAAA;C9B+2HL;A8Br3HD;EASM,iBAAA;C9B+2HL;A8B12HK;;;EAGE,YAAA;EACA,0BAAA;C9B42HP;A8Bp2HD;EAEI,YAAA;C9Bq2HH;A8Bv2HD;EAIM,gBAAA;EACA,eAAA;C9Bs2HL;A8B11HD;EACE,YAAA;C9B41HD;A8B71HD;EAII,YAAA;C9B41HH;A8Bh2HD;EAMM,mBAAA;EACA,mBAAA;C9B61HL;A8Bp2HD;EAYI,UAAA;EACA,WAAA;C9B21HH;A8B/0HD;EA0DA;IAjEM,oBAAA;IACA,UAAA;G9B01HH;E8B1xHH;IA9DQ,iBAAA;G9B21HL;CACF;A8Bn1HD;EACE,iBAAA;C9Bq1HD;A8Bt1HD;EAKI,gBAAA;EACA,mBAAA;C9Bo1HH;A8B11HD;;;EAYI,uBAAA;C9Bm1HH;A8Br0HD;EA2BA;IApCM,8BAAA;IACA,2BAAA;G9Bk1HH;E8B/yHH;;;IA9BM,0BAAA;G9Bk1HH;CACF;A8Bz0HD;EAEI,cAAA;C9B00HH;A8B50HD;EAKI,eAAA;C9B00HH;A8Bj0HD;EAEE,iBAAA;EF3OA,2BAAA;EACC,0BAAA;C5B8iIF;A+BxiID;EACE,mBAAA;EACA,iBAAA;EACA,oBAAA;EACA,8BAAA;C/B0iID;A+BliID;EA8nBA;IAhoBI,mBAAA;G/BwiID;CACF;A+BzhID;EAgnBA;IAlnBI,YAAA;G/B+hID;CACF;A+BjhID;EACE,oBAAA;EACA,oBAAA;EACA,mBAAA;EACA,kCAAA;EACA,2DAAA;UAAA,mDAAA;EAEA,kCAAA;C/BkhID;A+BhhIC;EACE,iBAAA;C/BkhIH;A+Bt/HD;EA6jBA;IArlBI,YAAA;IACA,cAAA;IACA,yBAAA;YAAA,iBAAA;G/BkhID;E+BhhIC;IACE,0BAAA;IACA,wBAAA;IACA,kBAAA;IACA,6BAAA;G/BkhIH;E+B/gIC;IACE,oBAAA;G/BihIH;E+B5gIC;;;IAGE,gBAAA;IACA,iBAAA;G/B8gIH;CACF;A+B1gID;;EAGI,kBAAA;C/B2gIH;A+BtgIC;EAmjBF;;IArjBM,kBAAA;G/B6gIH;CACF;A+BpgID;;;;EAII,oBAAA;EACA,mBAAA;C/BsgIH;A+BhgIC;EAgiBF;;;;IAniBM,gBAAA;IACA,eAAA;G/B0gIH;CACF;A+B9/HD;EACE,cAAA;EACA,sBAAA;C/BggID;A+B3/HD;EA8gBA;IAhhBI,iBAAA;G/BigID;CACF;A+B7/HD;;EAEE,gBAAA;EACA,SAAA;EACA,QAAA;EACA,cAAA;C/B+/HD;A+Bz/HD;EAggBA;;IAlgBI,iBAAA;G/BggID;CACF;A+B9/HD;EACE,OAAA;EACA,sBAAA;C/BggID;A+B9/HD;EACE,UAAA;EACA,iBAAA;EACA,sBAAA;C/BggID;A+B1/HD;EACE,YAAA;EACA,mBAAA;EACA,gBAAA;EACA,kBAAA;EACA,aAAA;C/B4/HD;A+B1/HC;;EAEE,sBAAA;C/B4/HH;A+BrgID;EAaI,eAAA;C/B2/HH;A+Bl/HD;EALI;;IAEE,mBAAA;G/B0/HH;CACF;A+Bh/HD;EACE,mBAAA;EACA,aAAA;EACA,mBAAA;EACA,kBAAA;EC9LA,gBAAA;EACA,mBAAA;ED+LA,8BAAA;EACA,uBAAA;EACA,8BAAA;EACA,mBAAA;C/Bm/HD;A+B/+HC;EACE,WAAA;C/Bi/HH;A+B//HD;EAmBI,eAAA;EACA,YAAA;EACA,YAAA;EACA,mBAAA;C/B++HH;A+BrgID;EAyBI,gBAAA;C/B++HH;A+Bz+HD;EAqbA;IAvbI,cAAA;G/B++HD;CACF;A+Bt+HD;EACE,oBAAA;C/Bw+HD;A+Bz+HD;EAII,kBAAA;EACA,qBAAA;EACA,kBAAA;C/Bw+HH;A+B58HC;EA2YF;IAjaM,iBAAA;IACA,YAAA;IACA,YAAA;IACA,cAAA;IACA,8BAAA;IACA,UAAA;IACA,yBAAA;YAAA,iBAAA;G/Bs+HH;E+B3kHH;;IAxZQ,2BAAA;G/Bu+HL;E+B/kHH;IArZQ,kBAAA;G/Bu+HL;E+Bt+HK;;IAEE,uBAAA;G/Bw+HP;CACF;A+Bt9HD;EA+XA;IA1YI,YAAA;IACA,UAAA;G/Bq+HD;E+B5lHH;IAtYM,YAAA;G/Bq+HH;E+B/lHH;IApYQ,kBAAA;IACA,qBAAA;G/Bs+HL;CACF;A+B39HD;EACE,mBAAA;EACA,oBAAA;EACA,mBAAA;EACA,kCAAA;EACA,qCAAA;E1B9NA,6FAAA;EACQ,qFAAA;E2B/DR,gBAAA;EACA,mBAAA;ChC4vID;AkBtuHD;EAwEA;IAtIM,sBAAA;IACA,iBAAA;IACA,uBAAA;GlBwyHH;EkBpqHH;IA/HM,sBAAA;IACA,YAAA;IACA,uBAAA;GlBsyHH;EkBzqHH;IAxHM,sBAAA;GlBoyHH;EkB5qHH;IApHM,sBAAA;IACA,uBAAA;GlBmyHH;EkBhrHH;;;IA9GQ,YAAA;GlBmyHL;EkBrrHH;IAxGM,YAAA;GlBgyHH;EkBxrHH;IApGM,iBAAA;IACA,uBAAA;GlB+xHH;EkB5rHH;;IA5FM,sBAAA;IACA,cAAA;IACA,iBAAA;IACA,uBAAA;GlB4xHH;EkBnsHH;;IAtFQ,gBAAA;GlB6xHL;EkBvsHH;;IAjFM,mBAAA;IACA,eAAA;GlB4xHH;EkB5sHH;IA3EM,OAAA;GlB0xHH;CACF;A+BpgIC;EAmWF;IAzWM,mBAAA;G/B8gIH;E+B5gIG;IACE,iBAAA;G/B8gIL;CACF;A+B7/HD;EAoVA;IA5VI,YAAA;IACA,UAAA;IACA,eAAA;IACA,gBAAA;IACA,eAAA;IACA,kBAAA;I1BzPF,yBAAA;IACQ,iBAAA;GLmwIP;CACF;A+BngID;EACE,cAAA;EHpUA,2BAAA;EACC,0BAAA;C5B00IF;A+BngID;EACE,iBAAA;EHzUA,6BAAA;EACC,4BAAA;EAOD,8BAAA;EACC,6BAAA;C5By0IF;A+B//HD;EChVE,gBAAA;EACA,mBAAA;ChCk1ID;A+BhgIC;ECnVA,iBAAA;EACA,oBAAA;ChCs1ID;A+BjgIC;ECtVA,iBAAA;EACA,oBAAA;ChC01ID;A+B3/HD;EChWE,iBAAA;EACA,oBAAA;ChC81ID;A+Bv/HD;EAsSA;IA1SI,YAAA;IACA,kBAAA;IACA,mBAAA;G/B+/HD;CACF;A+Bl+HD;EAhBE;IExWA,uBAAA;GjC81IC;E+Br/HD;IE5WA,wBAAA;IF8WE,oBAAA;G/Bu/HD;E+Bz/HD;IAKI,gBAAA;G/Bu/HH;CACF;A+B9+HD;EACE,0BAAA;EACA,sBAAA;C/Bg/HD;A+Bl/HD;EAKI,YAAA;C/Bg/HH;A+B/+HG;;EAEE,eAAA;EACA,8BAAA;C/Bi/HL;A+B1/HD;EAcI,YAAA;C/B++HH;A+B7/HD;EAmBM,YAAA;C/B6+HL;A+B3+HK;;EAEE,YAAA;EACA,8BAAA;C/B6+HP;A+Bz+HK;;;EAGE,YAAA;EACA,0BAAA;C/B2+HP;A+Bv+HK;;;EAGE,YAAA;EACA,8BAAA;C/By+HP;A+BjhID;EA8CI,mBAAA;C/Bs+HH;A+Br+HG;;EAEE,uBAAA;C/Bu+HL;A+BxhID;EAoDM,uBAAA;C/Bu+HL;A+B3hID;;EA0DI,sBAAA;C/Bq+HH;A+B99HK;;;EAGE,0BAAA;EACA,YAAA;C/Bg+HP;A+B/7HC;EAoKF;IA7LU,YAAA;G/B49HP;E+B39HO;;IAEE,YAAA;IACA,8BAAA;G/B69HT;E+Bz9HO;;;IAGE,YAAA;IACA,0BAAA;G/B29HT;E+Bv9HO;;;IAGE,YAAA;IACA,8BAAA;G/By9HT;CACF;A+B3jID;EA8GI,YAAA;C/Bg9HH;A+B/8HG;EACE,YAAA;C/Bi9HL;A+BjkID;EAqHI,YAAA;C/B+8HH;A+B98HG;;EAEE,YAAA;C/Bg9HL;A+B58HK;;;;EAEE,YAAA;C/Bg9HP;A+Bx8HD;EACE,uBAAA;EACA,sBAAA;C/B08HD;A+B58HD;EAKI,eAAA;C/B08HH;A+Bz8HG;;EAEE,YAAA;EACA,8BAAA;C/B28HL;A+Bp9HD;EAcI,eAAA;C/By8HH;A+Bv9HD;EAmBM,eAAA;C/Bu8HL;A+Br8HK;;EAEE,YAAA;EACA,8BAAA;C/Bu8HP;A+Bn8HK;;;EAGE,YAAA;EACA,0BAAA;C/Bq8HP;A+Bj8HK;;;EAGE,YAAA;EACA,8BAAA;C/Bm8HP;A+B3+HD;EA+CI,mBAAA;C/B+7HH;A+B97HG;;EAEE,uBAAA;C/Bg8HL;A+Bl/HD;EAqDM,uBAAA;C/Bg8HL;A+Br/HD;;EA2DI,sBAAA;C/B87HH;A+Bx7HK;;;EAGE,0BAAA;EACA,YAAA;C/B07HP;A+Bn5HC;EAwBF;IAvDU,sBAAA;G/Bs7HP;E+B/3HH;IApDU,0BAAA;G/Bs7HP;E+Bl4HH;IAjDU,eAAA;G/Bs7HP;E+Br7HO;;IAEE,YAAA;IACA,8BAAA;G/Bu7HT;E+Bn7HO;;;IAGE,YAAA;IACA,0BAAA;G/Bq7HT;E+Bj7HO;;;IAGE,YAAA;IACA,8BAAA;G/Bm7HT;CACF;A+B3hID;EA+GI,eAAA;C/B+6HH;A+B96HG;EACE,YAAA;C/Bg7HL;A+BjiID;EAsHI,eAAA;C/B86HH;A+B76HG;;EAEE,YAAA;C/B+6HL;A+B36HK;;;;EAEE,YAAA;C/B+6HP;AkCzjJD;EACE,kBAAA;EACA,oBAAA;EACA,iBAAA;EACA,0BAAA;EACA,mBAAA;ClC2jJD;AkChkJD;EAQI,sBAAA;ClC2jJH;AkCnkJD;EAWM,kBAAA;EACA,eAAA;EACA,YAAA;ClC2jJL;AkCxkJD;EAkBI,eAAA;ClCyjJH;AmC7kJD;EACE,sBAAA;EACA,gBAAA;EACA,eAAA;EACA,mBAAA;CnC+kJD;AmCnlJD;EAOI,gBAAA;CnC+kJH;AmCtlJD;;EAUM,mBAAA;EACA,YAAA;EACA,kBAAA;EACA,wBAAA;EACA,sBAAA;EACA,eAAA;EACA,uBAAA;EACA,uBAAA;EACA,kBAAA;CnCglJL;AmC9kJG;;EAGI,eAAA;EPXN,+BAAA;EACG,4BAAA;C5B2lJJ;AmC7kJG;;EPvBF,gCAAA;EACG,6BAAA;C5BwmJJ;AmCxkJG;;;;EAEE,WAAA;EACA,eAAA;EACA,0BAAA;EACA,mBAAA;CnC4kJL;AmCtkJG;;;;;;EAGE,WAAA;EACA,YAAA;EACA,0BAAA;EACA,sBAAA;EACA,gBAAA;CnC2kJL;AmCloJD;;;;;;EAkEM,eAAA;EACA,uBAAA;EACA,mBAAA;EACA,oBAAA;CnCwkJL;AmC/jJD;;EC3EM,mBAAA;EACA,gBAAA;EACA,uBAAA;CpC8oJL;AoC5oJG;;ERKF,+BAAA;EACG,4BAAA;C5B2oJJ;AoC3oJG;;ERTF,gCAAA;EACG,6BAAA;C5BwpJJ;AmC1kJD;;EChFM,kBAAA;EACA,gBAAA;EACA,iBAAA;CpC8pJL;AoC5pJG;;ERKF,+BAAA;EACG,4BAAA;C5B2pJJ;AoC3pJG;;ERTF,gCAAA;EACG,6BAAA;C5BwqJJ;AqC3qJD;EACE,gBAAA;EACA,eAAA;EACA,iBAAA;EACA,mBAAA;CrC6qJD;AqCjrJD;EAOI,gBAAA;CrC6qJH;AqCprJD;;EAUM,sBAAA;EACA,kBAAA;EACA,uBAAA;EACA,uBAAA;EACA,oBAAA;CrC8qJL;AqC5rJD;;EAmBM,sBAAA;EACA,0BAAA;CrC6qJL;AqCjsJD;;EA2BM,aAAA;CrC0qJL;AqCrsJD;;EAkCM,YAAA;CrCuqJL;AqCzsJD;;;;EA2CM,eAAA;EACA,uBAAA;EACA,oBAAA;CrCoqJL;AsCltJD;EACE,gBAAA;EACA,wBAAA;EACA,eAAA;EACA,kBAAA;EACA,eAAA;EACA,YAAA;EACA,mBAAA;EACA,oBAAA;EACA,yBAAA;EACA,qBAAA;CtCotJD;AsChtJG;;EAEE,YAAA;EACA,sBAAA;EACA,gBAAA;CtCktJL;AsC7sJC;EACE,cAAA;CtC+sJH;AsC3sJC;EACE,mBAAA;EACA,UAAA;CtC6sJH;AsCtsJD;ECtCE,0BAAA;CvC+uJD;AuC5uJG;;EAEE,0BAAA;CvC8uJL;AsCzsJD;EC1CE,0BAAA;CvCsvJD;AuCnvJG;;EAEE,0BAAA;CvCqvJL;AsC5sJD;EC9CE,0BAAA;CvC6vJD;AuC1vJG;;EAEE,0BAAA;CvC4vJL;AsC/sJD;EClDE,0BAAA;CvCowJD;AuCjwJG;;EAEE,0BAAA;CvCmwJL;AsCltJD;ECtDE,0BAAA;CvC2wJD;AuCxwJG;;EAEE,0BAAA;CvC0wJL;AsCrtJD;EC1DE,0BAAA;CvCkxJD;AuC/wJG;;EAEE,0BAAA;CvCixJL;AwCnxJD;EACE,sBAAA;EACA,gBAAA;EACA,iBAAA;EACA,gBAAA;EACA,kBAAA;EACA,YAAA;EACA,eAAA;EACA,uBAAA;EACA,oBAAA;EACA,mBAAA;EACA,0BAAA;EACA,oBAAA;CxCqxJD;AwClxJC;EACE,cAAA;CxCoxJH;AwChxJC;EACE,mBAAA;EACA,UAAA;CxCkxJH;AwC/wJC;;EAEE,OAAA;EACA,iBAAA;CxCixJH;AwC5wJG;;EAEE,YAAA;EACA,sBAAA;EACA,gBAAA;CxC8wJL;AwCzwJC;;EAEE,eAAA;EACA,uBAAA;CxC2wJH;AwCxwJC;EACE,aAAA;CxC0wJH;AwCvwJC;EACE,kBAAA;CxCywJH;AwCtwJC;EACE,iBAAA;CxCwwJH;AyCl0JD;EACE,kBAAA;EACA,qBAAA;EACA,oBAAA;EACA,eAAA;EACA,0BAAA;CzCo0JD;AyCz0JD;;EASI,eAAA;CzCo0JH;AyC70JD;EAaI,oBAAA;EACA,gBAAA;EACA,iBAAA;CzCm0JH;AyCl1JD;EAmBI,0BAAA;CzCk0JH;AyC/zJC;;EAEE,mBAAA;EACA,mBAAA;EACA,oBAAA;CzCi0JH;AyC31JD;EA8BI,gBAAA;CzCg0JH;AyC9yJD;EACA;IAfI,kBAAA;IACA,qBAAA;GzCg0JD;EyC9zJC;;IAEE,mBAAA;IACA,oBAAA;GzCg0JH;EyCvzJH;;IAJM,gBAAA;GzC+zJH;CACF;A0C52JD;EACE,eAAA;EACA,aAAA;EACA,oBAAA;EACA,wBAAA;EACA,uBAAA;EACA,uBAAA;EACA,mBAAA;ErCiLA,4CAAA;EACK,uCAAA;EACG,oCAAA;CL8rJT;A0Cx3JD;;EAaI,kBAAA;EACA,mBAAA;C1C+2JH;A0C32JC;;;EAGE,sBAAA;C1C62JH;A0Cl4JD;EA0BI,aAAA;EACA,eAAA;C1C22JH;A2Cp4JD;EACE,cAAA;EACA,oBAAA;EACA,8BAAA;EACA,mBAAA;C3Cs4JD;A2C14JD;EAQI,cAAA;EAEA,eAAA;C3Co4JH;A2C94JD;EAeI,kBAAA;C3Ck4JH;A2Cj5JD;;EAqBI,iBAAA;C3Cg4JH;A2Cr5JD;EAyBI,gBAAA;C3C+3JH;A2Cv3JD;;EAEE,oBAAA;C3Cy3JD;A2C33JD;;EAMI,mBAAA;EACA,UAAA;EACA,aAAA;EACA,eAAA;C3Cy3JH;A2Cj3JD;ECvDE,0BAAA;EACA,sBAAA;EACA,eAAA;C5C26JD;A2Ct3JD;EClDI,0BAAA;C5C26JH;A2Cz3JD;EC/CI,eAAA;C5C26JH;A2Cx3JD;EC3DE,0BAAA;EACA,sBAAA;EACA,eAAA;C5Cs7JD;A2C73JD;ECtDI,0BAAA;C5Cs7JH;A2Ch4JD;ECnDI,eAAA;C5Cs7JH;A2C/3JD;EC/DE,0BAAA;EACA,sBAAA;EACA,eAAA;C5Ci8JD;A2Cp4JD;EC1DI,0BAAA;C5Ci8JH;A2Cv4JD;ECvDI,eAAA;C5Ci8JH;A2Ct4JD;ECnEE,0BAAA;EACA,sBAAA;EACA,eAAA;C5C48JD;A2C34JD;EC9DI,0BAAA;C5C48JH;A2C94JD;EC3DI,eAAA;C5C48JH;A6C98JD;EACE;IAAQ,4BAAA;G7Ci9JP;E6Ch9JD;IAAQ,yBAAA;G7Cm9JP;CACF;A6Ch9JD;EACE;IAAQ,4BAAA;G7Cm9JP;E6Cl9JD;IAAQ,yBAAA;G7Cq9JP;CACF;A6Cx9JD;EACE;IAAQ,4BAAA;G7Cm9JP;E6Cl9JD;IAAQ,yBAAA;G7Cq9JP;CACF;A6C98JD;EACE,iBAAA;EACA,aAAA;EACA,oBAAA;EACA,0BAAA;EACA,mBAAA;ExCsCA,uDAAA;EACQ,+CAAA;CL26JT;A6C78JD;EACE,YAAA;EACA,UAAA;EACA,aAAA;EACA,gBAAA;EACA,kBAAA;EACA,YAAA;EACA,mBAAA;EACA,0BAAA;ExCyBA,uDAAA;EACQ,+CAAA;EAyHR,oCAAA;EACK,+BAAA;EACG,4BAAA;CL+zJT;A6C18JD;;ECCI,8MAAA;EACA,yMAAA;EACA,sMAAA;EDAF,mCAAA;UAAA,2BAAA;C7C88JD;A6Cv8JD;;ExC5CE,2DAAA;EACK,sDAAA;EACG,mDAAA;CLu/JT;A6Cp8JD;EErEE,0BAAA;C/C4gKD;A+CzgKC;EDgDE,8MAAA;EACA,yMAAA;EACA,sMAAA;C9C49JH;A6Cx8JD;EEzEE,0BAAA;C/CohKD;A+CjhKC;EDgDE,8MAAA;EACA,yMAAA;EACA,sMAAA;C9Co+JH;A6C58JD;EE7EE,0BAAA;C/C4hKD;A+CzhKC;EDgDE,8MAAA;EACA,yMAAA;EACA,sMAAA;C9C4+JH;A6Ch9JD;EEjFE,0BAAA;C/CoiKD;A+CjiKC;EDgDE,8MAAA;EACA,yMAAA;EACA,sMAAA;C9Co/JH;AgD5iKD;EAEE,iBAAA;ChD6iKD;AgD3iKC;EACE,cAAA;ChD6iKH;AgDziKD;;EAEE,QAAA;EACA,iBAAA;ChD2iKD;AgDxiKD;EACE,eAAA;ChD0iKD;AgDviKD;EACE,eAAA;ChDyiKD;AgDtiKC;EACE,gBAAA;ChDwiKH;AgDpiKD;;EAEE,mBAAA;ChDsiKD;AgDniKD;;EAEE,oBAAA;ChDqiKD;AgDliKD;;;EAGE,oBAAA;EACA,oBAAA;ChDoiKD;AgDjiKD;EACE,uBAAA;ChDmiKD;AgDhiKD;EACE,uBAAA;ChDkiKD;AgD9hKD;EACE,cAAA;EACA,mBAAA;ChDgiKD;AgD1hKD;EACE,gBAAA;EACA,iBAAA;ChD4hKD;AiDnlKD;EAEE,oBAAA;EACA,gBAAA;CjDolKD;AiD5kKD;EACE,mBAAA;EACA,eAAA;EACA,mBAAA;EAEA,oBAAA;EACA,uBAAA;EACA,uBAAA;CjD6kKD;AiD1kKC;ErB3BA,6BAAA;EACC,4BAAA;C5BwmKF;AiD3kKC;EACE,iBAAA;ErBvBF,gCAAA;EACC,+BAAA;C5BqmKF;AiDpkKD;;EAEE,YAAA;CjDskKD;AiDxkKD;;EAKI,YAAA;CjDukKH;AiDnkKC;;;;EAEE,sBAAA;EACA,YAAA;EACA,0BAAA;CjDukKH;AiDnkKD;EACE,YAAA;EACA,iBAAA;CjDqkKD;AiDhkKC;;;EAGE,0BAAA;EACA,eAAA;EACA,oBAAA;CjDkkKH;AiDvkKC;;;EASI,eAAA;CjDmkKL;AiD5kKC;;;EAYI,eAAA;CjDqkKL;AiDhkKC;;;EAGE,WAAA;EACA,YAAA;EACA,0BAAA;EACA,sBAAA;CjDkkKH;AiDxkKC;;;;;;;;;EAYI,eAAA;CjDukKL;AiDnlKC;;;EAeI,eAAA;CjDykKL;AkD3qKC;EACE,eAAA;EACA,0BAAA;ClD6qKH;AkD3qKG;;EAEE,eAAA;ClD6qKL;AkD/qKG;;EAKI,eAAA;ClD8qKP;AkD3qKK;;;;EAEE,eAAA;EACA,0BAAA;ClD+qKP;AkD7qKK;;;;;;EAGE,YAAA;EACA,0BAAA;EACA,sBAAA;ClDkrKP;AkDxsKC;EACE,eAAA;EACA,0BAAA;ClD0sKH;AkDxsKG;;EAEE,eAAA;ClD0sKL;AkD5sKG;;EAKI,eAAA;ClD2sKP;AkDxsKK;;;;EAEE,eAAA;EACA,0BAAA;ClD4sKP;AkD1sKK;;;;;;EAGE,YAAA;EACA,0BAAA;EACA,sBAAA;ClD+sKP;AkDruKC;EACE,eAAA;EACA,0BAAA;ClDuuKH;AkDruKG;;EAEE,eAAA;ClDuuKL;AkDzuKG;;EAKI,eAAA;ClDwuKP;AkDruKK;;;;EAEE,eAAA;EACA,0BAAA;ClDyuKP;AkDvuKK;;;;;;EAGE,YAAA;EACA,0BAAA;EACA,sBAAA;ClD4uKP;AkDlwKC;EACE,eAAA;EACA,0BAAA;ClDowKH;AkDlwKG;;EAEE,eAAA;ClDowKL;AkDtwKG;;EAKI,eAAA;ClDqwKP;AkDlwKK;;;;EAEE,eAAA;EACA,0BAAA;ClDswKP;AkDpwKK;;;;;;EAGE,YAAA;EACA,0BAAA;EACA,sBAAA;ClDywKP;AiDxqKD;EACE,cAAA;EACA,mBAAA;CjD0qKD;AiDxqKD;EACE,iBAAA;EACA,iBAAA;CjD0qKD;AmDpyKD;EACE,oBAAA;EACA,uBAAA;EACA,8BAAA;EACA,mBAAA;E9C0DA,kDAAA;EACQ,0CAAA;CL6uKT;AmDnyKD;EACE,cAAA;CnDqyKD;AmDhyKD;EACE,mBAAA;EACA,qCAAA;EvBpBA,6BAAA;EACC,4BAAA;C5BuzKF;AmDtyKD;EAMI,eAAA;CnDmyKH;AmD9xKD;EACE,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,eAAA;CnDgyKD;AmDpyKD;;;;;EAWI,eAAA;CnDgyKH;AmD3xKD;EACE,mBAAA;EACA,0BAAA;EACA,2BAAA;EvBxCA,gCAAA;EACC,+BAAA;C5Bs0KF;AmDrxKD;;EAGI,iBAAA;CnDsxKH;AmDzxKD;;EAMM,oBAAA;EACA,iBAAA;CnDuxKL;AmDnxKG;;EAEI,cAAA;EvBvEN,6BAAA;EACC,4BAAA;C5B61KF;AmDjxKG;;EAEI,iBAAA;EvBvEN,gCAAA;EACC,+BAAA;C5B21KF;AmD1yKD;EvB1DE,2BAAA;EACC,0BAAA;C5Bu2KF;AmD7wKD;EAEI,oBAAA;CnD8wKH;AmD3wKD;EACE,oBAAA;CnD6wKD;AmDrwKD;;;EAII,iBAAA;CnDswKH;AmD1wKD;;;EAOM,mBAAA;EACA,oBAAA;CnDwwKL;AmDhxKD;;EvBzGE,6BAAA;EACC,4BAAA;C5B63KF;AmDrxKD;;;;EAmBQ,4BAAA;EACA,6BAAA;CnDwwKP;AmD5xKD;;;;;;;;EAwBU,4BAAA;CnD8wKT;AmDtyKD;;;;;;;;EA4BU,6BAAA;CnDoxKT;AmDhzKD;;EvBjGE,gCAAA;EACC,+BAAA;C5Bq5KF;AmDrzKD;;;;EAyCQ,+BAAA;EACA,gCAAA;CnDkxKP;AmD5zKD;;;;;;;;EA8CU,+BAAA;CnDwxKT;AmDt0KD;;;;;;;;EAkDU,gCAAA;CnD8xKT;AmDh1KD;;;;EA2DI,2BAAA;CnD2xKH;AmDt1KD;;EA+DI,cAAA;CnD2xKH;AmD11KD;;EAmEI,UAAA;CnD2xKH;AmD91KD;;;;;;;;;;;;EA0EU,eAAA;CnDkyKT;AmD52KD;;;;;;;;;;;;EA8EU,gBAAA;CnD4yKT;AmD13KD;;;;;;;;EAuFU,iBAAA;CnD6yKT;AmDp4KD;;;;;;;;EAgGU,iBAAA;CnD8yKT;AmD94KD;EAsGI,UAAA;EACA,iBAAA;CnD2yKH;AmDjyKD;EACE,oBAAA;CnDmyKD;AmDpyKD;EAKI,iBAAA;EACA,mBAAA;CnDkyKH;AmDxyKD;EASM,gBAAA;CnDkyKL;AmD3yKD;EAcI,iBAAA;CnDgyKH;AmD9yKD;;EAkBM,2BAAA;CnDgyKL;AmDlzKD;EAuBI,cAAA;CnD8xKH;AmDrzKD;EAyBM,8BAAA;CnD+xKL;AmDxxKD;EC1PE,mBAAA;CpDqhLD;AoDnhLC;EACE,eAAA;EACA,0BAAA;EACA,mBAAA;CpDqhLH;AoDxhLC;EAMI,uBAAA;CpDqhLL;AoD3hLC;EASI,eAAA;EACA,0BAAA;CpDqhLL;AoDlhLC;EAEI,0BAAA;CpDmhLL;AmDvyKD;EC7PE,sBAAA;CpDuiLD;AoDriLC;EACE,YAAA;EACA,0BAAA;EACA,sBAAA;CpDuiLH;AoD1iLC;EAMI,0BAAA;CpDuiLL;AoD7iLC;EASI,eAAA;EACA,uBAAA;CpDuiLL;AoDpiLC;EAEI,6BAAA;CpDqiLL;AmDtzKD;EChQE,sBAAA;CpDyjLD;AoDvjLC;EACE,eAAA;EACA,0BAAA;EACA,sBAAA;CpDyjLH;AoD5jLC;EAMI,0BAAA;CpDyjLL;AoD/jLC;EASI,eAAA;EACA,0BAAA;CpDyjLL;AoDtjLC;EAEI,6BAAA;CpDujLL;AmDr0KD;ECnQE,sBAAA;CpD2kLD;AoDzkLC;EACE,eAAA;EACA,0BAAA;EACA,sBAAA;CpD2kLH;AoD9kLC;EAMI,0BAAA;CpD2kLL;AoDjlLC;EASI,eAAA;EACA,0BAAA;CpD2kLL;AoDxkLC;EAEI,6BAAA;CpDykLL;AmDp1KD;ECtQE,sBAAA;CpD6lLD;AoD3lLC;EACE,eAAA;EACA,0BAAA;EACA,sBAAA;CpD6lLH;AoDhmLC;EAMI,0BAAA;CpD6lLL;AoDnmLC;EASI,eAAA;EACA,0BAAA;CpD6lLL;AoD1lLC;EAEI,6BAAA;CpD2lLL;AmDn2KD;ECzQE,sBAAA;CpD+mLD;AoD7mLC;EACE,eAAA;EACA,0BAAA;EACA,sBAAA;CpD+mLH;AoDlnLC;EAMI,0BAAA;CpD+mLL;AoDrnLC;EASI,eAAA;EACA,0BAAA;CpD+mLL;AoD5mLC;EAEI,6BAAA;CpD6mLL;AqD7nLD;EACE,mBAAA;EACA,eAAA;EACA,UAAA;EACA,WAAA;EACA,iBAAA;CrD+nLD;AqDpoLD;;;;;EAYI,mBAAA;EACA,OAAA;EACA,QAAA;EACA,UAAA;EACA,aAAA;EACA,YAAA;EACA,UAAA;CrD+nLH;AqD1nLD;EACE,uBAAA;CrD4nLD;AqDxnLD;EACE,oBAAA;CrD0nLD;AsDrpLD;EACE,iBAAA;EACA,cAAA;EACA,oBAAA;EACA,0BAAA;EACA,0BAAA;EACA,mBAAA;EjDwDA,wDAAA;EACQ,gDAAA;CLgmLT;AsD/pLD;EASI,mBAAA;EACA,kCAAA;CtDypLH;AsDppLD;EACE,cAAA;EACA,mBAAA;CtDspLD;AsDppLD;EACE,aAAA;EACA,mBAAA;CtDspLD;AuD5qLD;EACE,aAAA;EACA,gBAAA;EACA,kBAAA;EACA,eAAA;EACA,YAAA;EACA,0BAAA;EjCRA,aAAA;EAGA,0BAAA;CtBqrLD;AuD7qLC;;EAEE,YAAA;EACA,sBAAA;EACA,gBAAA;EjCfF,aAAA;EAGA,0BAAA;CtB6rLD;AuDzqLC;EACE,WAAA;EACA,gBAAA;EACA,wBAAA;EACA,UAAA;EACA,yBAAA;CvD2qLH;AwDhsLD;EACE,iBAAA;CxDksLD;AwD9rLD;EACE,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,OAAA;EACA,SAAA;EACA,UAAA;EACA,QAAA;EACA,cAAA;EACA,kCAAA;EAIA,WAAA;CxD6rLD;AwD1rLC;EnD+GA,sCAAA;EACI,kCAAA;EACC,iCAAA;EACG,8BAAA;EAkER,oDAAA;EAEK,0CAAA;EACG,oCAAA;CL6gLT;AwDhsLC;EnD2GA,mCAAA;EACI,+BAAA;EACC,8BAAA;EACG,2BAAA;CLwlLT;AwDpsLD;EACE,mBAAA;EACA,iBAAA;CxDssLD;AwDlsLD;EACE,mBAAA;EACA,YAAA;EACA,aAAA;CxDosLD;AwDhsLD;EACE,mBAAA;EACA,uBAAA;EACA,uBAAA;EACA,qCAAA;EACA,mBAAA;EnDaA,iDAAA;EACQ,yCAAA;EmDZR,qCAAA;UAAA,6BAAA;EAEA,WAAA;CxDksLD;AwD9rLD;EACE,gBAAA;EACA,OAAA;EACA,SAAA;EACA,UAAA;EACA,QAAA;EACA,cAAA;EACA,uBAAA;CxDgsLD;AwD9rLC;ElCrEA,WAAA;EAGA,yBAAA;CtBowLD;AwDjsLC;ElCtEA,aAAA;EAGA,0BAAA;CtBwwLD;AwDhsLD;EACE,cAAA;EACA,iCAAA;CxDksLD;AwD9rLD;EACE,iBAAA;CxDgsLD;AwD5rLD;EACE,UAAA;EACA,wBAAA;CxD8rLD;AwDzrLD;EACE,mBAAA;EACA,cAAA;CxD2rLD;AwDvrLD;EACE,cAAA;EACA,kBAAA;EACA,8BAAA;CxDyrLD;AwD5rLD;EAQI,iBAAA;EACA,iBAAA;CxDurLH;AwDhsLD;EAaI,kBAAA;CxDsrLH;AwDnsLD;EAiBI,eAAA;CxDqrLH;AwDhrLD;EACE,mBAAA;EACA,aAAA;EACA,YAAA;EACA,aAAA;EACA,iBAAA;CxDkrLD;AwDhqLD;EAZE;IACE,aAAA;IACA,kBAAA;GxD+qLD;EwD7qLD;InDvEA,kDAAA;IACQ,0CAAA;GLuvLP;EwD5qLD;IAAY,aAAA;GxD+qLX;CACF;AwD1qLD;EAFE;IAAY,aAAA;GxDgrLX;CACF;AyD/zLD;EACE,mBAAA;EACA,cAAA;EACA,eAAA;ECRA,4DAAA;EAEA,mBAAA;EACA,oBAAA;EACA,uBAAA;EACA,iBAAA;EACA,wBAAA;EACA,iBAAA;EACA,kBAAA;EACA,sBAAA;EACA,kBAAA;EACA,qBAAA;EACA,oBAAA;EACA,mBAAA;EACA,qBAAA;EACA,kBAAA;EDHA,gBAAA;EnCVA,WAAA;EAGA,yBAAA;CtBs1LD;AyD30LC;EnCdA,aAAA;EAGA,0BAAA;CtB01LD;AyD90LC;EAAW,iBAAA;EAAmB,eAAA;CzDk1L/B;AyDj1LC;EAAW,iBAAA;EAAmB,eAAA;CzDq1L/B;AyDp1LC;EAAW,gBAAA;EAAmB,eAAA;CzDw1L/B;AyDv1LC;EAAW,kBAAA;EAAmB,eAAA;CzD21L/B;AyDv1LD;EACE,iBAAA;EACA,iBAAA;EACA,YAAA;EACA,mBAAA;EACA,uBAAA;EACA,mBAAA;CzDy1LD;AyDr1LD;EACE,mBAAA;EACA,SAAA;EACA,UAAA;EACA,0BAAA;EACA,oBAAA;CzDu1LD;AyDn1LC;EACE,UAAA;EACA,UAAA;EACA,kBAAA;EACA,wBAAA;EACA,uBAAA;CzDq1LH;AyDn1LC;EACE,UAAA;EACA,WAAA;EACA,oBAAA;EACA,wBAAA;EACA,uBAAA;CzDq1LH;AyDn1LC;EACE,UAAA;EACA,UAAA;EACA,oBAAA;EACA,wBAAA;EACA,uBAAA;CzDq1LH;AyDn1LC;EACE,SAAA;EACA,QAAA;EACA,iBAAA;EACA,4BAAA;EACA,yBAAA;CzDq1LH;AyDn1LC;EACE,SAAA;EACA,SAAA;EACA,iBAAA;EACA,4BAAA;EACA,wBAAA;CzDq1LH;AyDn1LC;EACE,OAAA;EACA,UAAA;EACA,kBAAA;EACA,wBAAA;EACA,0BAAA;CzDq1LH;AyDn1LC;EACE,OAAA;EACA,WAAA;EACA,iBAAA;EACA,wBAAA;EACA,0BAAA;CzDq1LH;AyDn1LC;EACE,OAAA;EACA,UAAA;EACA,iBAAA;EACA,wBAAA;EACA,0BAAA;CzDq1LH;A2Dl7LD;EACE,mBAAA;EACA,OAAA;EACA,QAAA;EACA,cAAA;EACA,cAAA;EACA,iBAAA;EACA,aAAA;EDXA,4DAAA;EAEA,mBAAA;EACA,oBAAA;EACA,uBAAA;EACA,iBAAA;EACA,wBAAA;EACA,iBAAA;EACA,kBAAA;EACA,sBAAA;EACA,kBAAA;EACA,qBAAA;EACA,oBAAA;EACA,mBAAA;EACA,qBAAA;EACA,kBAAA;ECAA,gBAAA;EAEA,uBAAA;EACA,qCAAA;UAAA,6BAAA;EACA,uBAAA;EACA,qCAAA;EACA,mBAAA;EtD8CA,kDAAA;EACQ,0CAAA;CLk5LT;A2D77LC;EAAY,kBAAA;C3Dg8Lb;A2D/7LC;EAAY,kBAAA;C3Dk8Lb;A2Dj8LC;EAAY,iBAAA;C3Do8Lb;A2Dn8LC;EAAY,mBAAA;C3Ds8Lb;A2Dn8LD;EACE,UAAA;EACA,kBAAA;EACA,gBAAA;EACA,0BAAA;EACA,iCAAA;EACA,2BAAA;C3Dq8LD;A2Dl8LD;EACE,kBAAA;C3Do8LD;A2D57LC;;EAEE,mBAAA;EACA,eAAA;EACA,SAAA;EACA,UAAA;EACA,0BAAA;EACA,oBAAA;C3D87LH;A2D37LD;EACE,mBAAA;C3D67LD;A2D37LD;EACE,mBAAA;EACA,YAAA;C3D67LD;A2Dz7LC;EACE,UAAA;EACA,mBAAA;EACA,uBAAA;EACA,0BAAA;EACA,sCAAA;EACA,cAAA;C3D27LH;A2D17LG;EACE,aAAA;EACA,YAAA;EACA,mBAAA;EACA,uBAAA;EACA,uBAAA;C3D47LL;A2Dz7LC;EACE,SAAA;EACA,YAAA;EACA,kBAAA;EACA,qBAAA;EACA,4BAAA;EACA,wCAAA;C3D27LH;A2D17LG;EACE,aAAA;EACA,UAAA;EACA,cAAA;EACA,qBAAA;EACA,yBAAA;C3D47LL;A2Dz7LC;EACE,UAAA;EACA,mBAAA;EACA,oBAAA;EACA,6BAAA;EACA,yCAAA;EACA,WAAA;C3D27LH;A2D17LG;EACE,aAAA;EACA,SAAA;EACA,mBAAA;EACA,oBAAA;EACA,0BAAA;C3D47LL;A2Dx7LC;EACE,SAAA;EACA,aAAA;EACA,kBAAA;EACA,sBAAA;EACA,2BAAA;EACA,uCAAA;C3D07LH;A2Dz7LG;EACE,aAAA;EACA,WAAA;EACA,sBAAA;EACA,wBAAA;EACA,cAAA;C3D27LL;A4DpjMD;EACE,mBAAA;C5DsjMD;A4DnjMD;EACE,mBAAA;EACA,iBAAA;EACA,YAAA;C5DqjMD;A4DxjMD;EAMI,cAAA;EACA,mBAAA;EvD6KF,0CAAA;EACK,qCAAA;EACG,kCAAA;CLy4LT;A4D/jMD;;EAcM,eAAA;C5DqjML;A4D3hMC;EA4NF;IvD3DE,uDAAA;IAEK,6CAAA;IACG,uCAAA;IA7JR,oCAAA;IAEQ,4BAAA;IA+GR,4BAAA;IAEQ,oBAAA;GL86LP;E4DzjMG;;IvDmHJ,2CAAA;IACQ,mCAAA;IuDjHF,QAAA;G5D4jML;E4D1jMG;;IvD8GJ,4CAAA;IACQ,oCAAA;IuD5GF,QAAA;G5D6jML;E4D3jMG;;;IvDyGJ,wCAAA;IACQ,gCAAA;IuDtGF,QAAA;G5D8jML;CACF;A4DpmMD;;;EA6CI,eAAA;C5D4jMH;A4DzmMD;EAiDI,QAAA;C5D2jMH;A4D5mMD;;EAsDI,mBAAA;EACA,OAAA;EACA,YAAA;C5D0jMH;A4DlnMD;EA4DI,WAAA;C5DyjMH;A4DrnMD;EA+DI,YAAA;C5DyjMH;A4DxnMD;;EAmEI,QAAA;C5DyjMH;A4D5nMD;EAuEI,YAAA;C5DwjMH;A4D/nMD;EA0EI,WAAA;C5DwjMH;A4DhjMD;EACE,mBAAA;EACA,OAAA;EACA,QAAA;EACA,UAAA;EACA,WAAA;EtC9FA,aAAA;EAGA,0BAAA;EsC6FA,gBAAA;EACA,YAAA;EACA,mBAAA;EACA,0CAAA;EACA,mCAAA;C5DmjMD;A4D9iMC;EdnGE,mGAAA;EACA,8FAAA;EACA,qHAAA;EAAA,+FAAA;EACA,4BAAA;EACA,uHAAA;C9CopMH;A4DljMC;EACE,WAAA;EACA,SAAA;EdxGA,mGAAA;EACA,8FAAA;EACA,qHAAA;EAAA,+FAAA;EACA,4BAAA;EACA,uHAAA;C9C6pMH;A4DpjMC;;EAEE,WAAA;EACA,YAAA;EACA,sBAAA;EtCvHF,aAAA;EAGA,0BAAA;CtB4qMD;A4DtlMD;;;;EAuCI,mBAAA;EACA,SAAA;EACA,kBAAA;EACA,WAAA;EACA,sBAAA;C5DqjMH;A4DhmMD;;EA+CI,UAAA;EACA,mBAAA;C5DqjMH;A4DrmMD;;EAoDI,WAAA;EACA,oBAAA;C5DqjMH;A4D1mMD;;EAyDI,YAAA;EACA,aAAA;EACA,eAAA;EACA,mBAAA;C5DqjMH;A4DhjMG;EACE,iBAAA;C5DkjML;A4D9iMG;EACE,iBAAA;C5DgjML;A4DtiMD;EACE,mBAAA;EACA,aAAA;EACA,UAAA;EACA,YAAA;EACA,WAAA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;C5DwiMD;A4DjjMD;EAYI,sBAAA;EACA,YAAA;EACA,aAAA;EACA,YAAA;EACA,oBAAA;EACA,uBAAA;EACA,oBAAA;EACA,gBAAA;EAWA,0BAAA;EACA,mCAAA;C5D8hMH;A4D7jMD;EAkCI,UAAA;EACA,YAAA;EACA,aAAA;EACA,uBAAA;C5D8hMH;A4DvhMD;EACE,mBAAA;EACA,UAAA;EACA,WAAA;EACA,aAAA;EACA,YAAA;EACA,kBAAA;EACA,qBAAA;EACA,YAAA;EACA,mBAAA;EACA,0CAAA;C5DyhMD;A4DxhMC;EACE,kBAAA;C5D0hMH;A4Dj/LD;EAhCE;;;;IAKI,YAAA;IACA,aAAA;IACA,kBAAA;IACA,gBAAA;G5DmhMH;E4D3hMD;;IAYI,mBAAA;G5DmhMH;E4D/hMD;;IAgBI,oBAAA;G5DmhMH;E4D9gMD;IACE,UAAA;IACA,WAAA;IACA,qBAAA;G5DghMD;E4D5gMD;IACE,aAAA;G5D8gMD;CACF;A6D7wMC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEE,aAAA;EACA,eAAA;C7D6yMH;A6D3yMC;;;;;;;;;;;;;;;;EACE,YAAA;C7D4zMH;AiCp0MD;E6BRE,eAAA;EACA,kBAAA;EACA,mBAAA;C9D+0MD;AiCt0MD;EACE,wBAAA;CjCw0MD;AiCt0MD;EACE,uBAAA;CjCw0MD;AiCh0MD;EACE,yBAAA;CjCk0MD;AiCh0MD;EACE,0BAAA;CjCk0MD;AiCh0MD;EACE,mBAAA;CjCk0MD;AiCh0MD;E8BzBE,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,8BAAA;EACA,UAAA;C/D41MD;AiC9zMD;EACE,yBAAA;CjCg0MD;AiCzzMD;EACE,gBAAA;CjC2zMD;AgE51MD;EACE,oBAAA;ChE81MD;AgEx1MD;;;;ECdE,yBAAA;CjE42MD;AgEv1MD;;;;;;;;;;;;EAYE,yBAAA;ChEy1MD;AgEl1MD;EA6IA;IC7LE,0BAAA;GjEs4MC;EiEr4MD;IAAU,0BAAA;GjEw4MT;EiEv4MD;IAAU,8BAAA;GjE04MT;EiEz4MD;;IACU,+BAAA;GjE44MT;CACF;AgE51MD;EAwIA;IA1II,0BAAA;GhEk2MD;CACF;AgE51MD;EAmIA;IArII,2BAAA;GhEk2MD;CACF;AgE51MD;EA8HA;IAhII,iCAAA;GhEk2MD;CACF;AgE31MD;EAwHA;IC7LE,0BAAA;GjEo6MC;EiEn6MD;IAAU,0BAAA;GjEs6MT;EiEr6MD;IAAU,8BAAA;GjEw6MT;EiEv6MD;;IACU,+BAAA;GjE06MT;CACF;AgEr2MD;EAmHA;IArHI,0BAAA;GhE22MD;CACF;AgEr2MD;EA8GA;IAhHI,2BAAA;GhE22MD;CACF;AgEr2MD;EAyGA;IA3GI,iCAAA;GhE22MD;CACF;AgEp2MD;EAmGA;IC7LE,0BAAA;GjEk8MC;EiEj8MD;IAAU,0BAAA;GjEo8MT;EiEn8MD;IAAU,8BAAA;GjEs8MT;EiEr8MD;;IACU,+BAAA;GjEw8MT;CACF;AgE92MD;EA8FA;IAhGI,0BAAA;GhEo3MD;CACF;AgE92MD;EAyFA;IA3FI,2BAAA;GhEo3MD;CACF;AgE92MD;EAoFA;IAtFI,iCAAA;GhEo3MD;CACF;AgE72MD;EA8EA;IC7LE,0BAAA;GjEg+MC;EiE/9MD;IAAU,0BAAA;GjEk+MT;EiEj+MD;IAAU,8BAAA;GjEo+MT;EiEn+MD;;IACU,+BAAA;GjEs+MT;CACF;AgEv3MD;EAyEA;IA3EI,0BAAA;GhE63MD;CACF;AgEv3MD;EAoEA;IAtEI,2BAAA;GhE63MD;CACF;AgEv3MD;EA+DA;IAjEI,iCAAA;GhE63MD;CACF;AgEt3MD;EAyDA;ICrLE,yBAAA;GjEs/MC;CACF;AgEt3MD;EAoDA;ICrLE,yBAAA;GjE2/MC;CACF;AgEt3MD;EA+CA;ICrLE,yBAAA;GjEggNC;CACF;AgEt3MD;EA0CA;ICrLE,yBAAA;GjEqgNC;CACF;AgEn3MD;ECnJE,yBAAA;CjEygND;AgEh3MD;EA4BA;IC7LE,0BAAA;GjEqhNC;EiEphND;IAAU,0BAAA;GjEuhNT;EiEthND;IAAU,8BAAA;GjEyhNT;EiExhND;;IACU,+BAAA;GjE2hNT;CACF;AgE93MD;EACE,yBAAA;ChEg4MD;AgE33MD;EAqBA;IAvBI,0BAAA;GhEi4MD;CACF;AgE/3MD;EACE,yBAAA;ChEi4MD;AgE53MD;EAcA;IAhBI,2BAAA;GhEk4MD;CACF;AgEh4MD;EACE,yBAAA;ChEk4MD;AgE73MD;EAOA;IATI,iCAAA;GhEm4MD;CACF;AgE53MD;EACA;ICrLE,yBAAA;GjEojNC;CACF","file":"bootstrap.css","sourcesContent":["/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\nhtml {\n font-family: sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n}\nbody {\n margin: 0;\n}\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block;\n vertical-align: baseline;\n}\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n[hidden],\ntemplate {\n display: none;\n}\na {\n background-color: transparent;\n}\na:active,\na:hover {\n outline: 0;\n}\nabbr[title] {\n border-bottom: 1px dotted;\n}\nb,\nstrong {\n font-weight: bold;\n}\ndfn {\n font-style: italic;\n}\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\nmark {\n background: #ff0;\n color: #000;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsup {\n top: -0.5em;\n}\nsub {\n bottom: -0.25em;\n}\nimg {\n border: 0;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\nfigure {\n margin: 1em 40px;\n}\nhr {\n box-sizing: content-box;\n height: 0;\n}\npre {\n overflow: auto;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit;\n font: inherit;\n margin: 0;\n}\nbutton {\n overflow: visible;\n}\nbutton,\nselect {\n text-transform: none;\n}\nbutton,\nhtml input[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button;\n cursor: pointer;\n}\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\ninput {\n line-height: normal;\n}\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box;\n padding: 0;\n}\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: textfield;\n box-sizing: content-box;\n}\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\nlegend {\n border: 0;\n padding: 0;\n}\ntextarea {\n overflow: auto;\n}\noptgroup {\n font-weight: bold;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\ntd,\nth {\n padding: 0;\n}\n/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important;\n box-shadow: none !important;\n text-shadow: none !important;\n }\n a,\n a:visited {\n text-decoration: underline;\n }\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n thead {\n display: table-header-group;\n }\n tr,\n img {\n page-break-inside: avoid;\n }\n img {\n max-width: 100% !important;\n }\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n h2,\n h3 {\n page-break-after: avoid;\n }\n .navbar {\n display: none;\n }\n .btn > .caret,\n .dropup > .btn > .caret {\n border-top-color: #000 !important;\n }\n .label {\n border: 1px solid #000;\n }\n .table {\n border-collapse: collapse !important;\n }\n .table td,\n .table th {\n background-color: #fff !important;\n }\n .table-bordered th,\n .table-bordered td {\n border: 1px solid #ddd !important;\n }\n}\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('../fonts/glyphicons-halflings-regular.eot');\n src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');\n}\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.glyphicon-asterisk:before {\n content: \"\\002a\";\n}\n.glyphicon-plus:before {\n content: \"\\002b\";\n}\n.glyphicon-euro:before,\n.glyphicon-eur:before {\n content: \"\\20ac\";\n}\n.glyphicon-minus:before {\n content: \"\\2212\";\n}\n.glyphicon-cloud:before {\n content: \"\\2601\";\n}\n.glyphicon-envelope:before {\n content: \"\\2709\";\n}\n.glyphicon-pencil:before {\n content: \"\\270f\";\n}\n.glyphicon-glass:before {\n content: \"\\e001\";\n}\n.glyphicon-music:before {\n content: \"\\e002\";\n}\n.glyphicon-search:before {\n content: \"\\e003\";\n}\n.glyphicon-heart:before {\n content: \"\\e005\";\n}\n.glyphicon-star:before {\n content: \"\\e006\";\n}\n.glyphicon-star-empty:before {\n content: \"\\e007\";\n}\n.glyphicon-user:before {\n content: \"\\e008\";\n}\n.glyphicon-film:before {\n content: \"\\e009\";\n}\n.glyphicon-th-large:before {\n content: \"\\e010\";\n}\n.glyphicon-th:before {\n content: \"\\e011\";\n}\n.glyphicon-th-list:before {\n content: \"\\e012\";\n}\n.glyphicon-ok:before {\n content: \"\\e013\";\n}\n.glyphicon-remove:before {\n content: \"\\e014\";\n}\n.glyphicon-zoom-in:before {\n content: \"\\e015\";\n}\n.glyphicon-zoom-out:before {\n content: \"\\e016\";\n}\n.glyphicon-off:before {\n content: \"\\e017\";\n}\n.glyphicon-signal:before {\n content: \"\\e018\";\n}\n.glyphicon-cog:before {\n content: \"\\e019\";\n}\n.glyphicon-trash:before {\n content: \"\\e020\";\n}\n.glyphicon-home:before {\n content: \"\\e021\";\n}\n.glyphicon-file:before {\n content: \"\\e022\";\n}\n.glyphicon-time:before {\n content: \"\\e023\";\n}\n.glyphicon-road:before {\n content: \"\\e024\";\n}\n.glyphicon-download-alt:before {\n content: \"\\e025\";\n}\n.glyphicon-download:before {\n content: \"\\e026\";\n}\n.glyphicon-upload:before {\n content: \"\\e027\";\n}\n.glyphicon-inbox:before {\n content: \"\\e028\";\n}\n.glyphicon-play-circle:before {\n content: \"\\e029\";\n}\n.glyphicon-repeat:before {\n content: \"\\e030\";\n}\n.glyphicon-refresh:before {\n content: \"\\e031\";\n}\n.glyphicon-list-alt:before {\n content: \"\\e032\";\n}\n.glyphicon-lock:before {\n content: \"\\e033\";\n}\n.glyphicon-flag:before {\n content: \"\\e034\";\n}\n.glyphicon-headphones:before {\n content: \"\\e035\";\n}\n.glyphicon-volume-off:before {\n content: \"\\e036\";\n}\n.glyphicon-volume-down:before {\n content: \"\\e037\";\n}\n.glyphicon-volume-up:before {\n content: \"\\e038\";\n}\n.glyphicon-qrcode:before {\n content: \"\\e039\";\n}\n.glyphicon-barcode:before {\n content: \"\\e040\";\n}\n.glyphicon-tag:before {\n content: \"\\e041\";\n}\n.glyphicon-tags:before {\n content: \"\\e042\";\n}\n.glyphicon-book:before {\n content: \"\\e043\";\n}\n.glyphicon-bookmark:before {\n content: \"\\e044\";\n}\n.glyphicon-print:before {\n content: \"\\e045\";\n}\n.glyphicon-camera:before {\n content: \"\\e046\";\n}\n.glyphicon-font:before {\n content: \"\\e047\";\n}\n.glyphicon-bold:before {\n content: \"\\e048\";\n}\n.glyphicon-italic:before {\n content: \"\\e049\";\n}\n.glyphicon-text-height:before {\n content: \"\\e050\";\n}\n.glyphicon-text-width:before {\n content: \"\\e051\";\n}\n.glyphicon-align-left:before {\n content: \"\\e052\";\n}\n.glyphicon-align-center:before {\n content: \"\\e053\";\n}\n.glyphicon-align-right:before {\n content: \"\\e054\";\n}\n.glyphicon-align-justify:before {\n content: \"\\e055\";\n}\n.glyphicon-list:before {\n content: \"\\e056\";\n}\n.glyphicon-indent-left:before {\n content: \"\\e057\";\n}\n.glyphicon-indent-right:before {\n content: \"\\e058\";\n}\n.glyphicon-facetime-video:before {\n content: \"\\e059\";\n}\n.glyphicon-picture:before {\n content: \"\\e060\";\n}\n.glyphicon-map-marker:before {\n content: \"\\e062\";\n}\n.glyphicon-adjust:before {\n content: \"\\e063\";\n}\n.glyphicon-tint:before {\n content: \"\\e064\";\n}\n.glyphicon-edit:before {\n content: \"\\e065\";\n}\n.glyphicon-share:before {\n content: \"\\e066\";\n}\n.glyphicon-check:before {\n content: \"\\e067\";\n}\n.glyphicon-move:before {\n content: \"\\e068\";\n}\n.glyphicon-step-backward:before {\n content: \"\\e069\";\n}\n.glyphicon-fast-backward:before {\n content: \"\\e070\";\n}\n.glyphicon-backward:before {\n content: \"\\e071\";\n}\n.glyphicon-play:before {\n content: \"\\e072\";\n}\n.glyphicon-pause:before {\n content: \"\\e073\";\n}\n.glyphicon-stop:before {\n content: \"\\e074\";\n}\n.glyphicon-forward:before {\n content: \"\\e075\";\n}\n.glyphicon-fast-forward:before {\n content: \"\\e076\";\n}\n.glyphicon-step-forward:before {\n content: \"\\e077\";\n}\n.glyphicon-eject:before {\n content: \"\\e078\";\n}\n.glyphicon-chevron-left:before {\n content: \"\\e079\";\n}\n.glyphicon-chevron-right:before {\n content: \"\\e080\";\n}\n.glyphicon-plus-sign:before {\n content: \"\\e081\";\n}\n.glyphicon-minus-sign:before {\n content: \"\\e082\";\n}\n.glyphicon-remove-sign:before {\n content: \"\\e083\";\n}\n.glyphicon-ok-sign:before {\n content: \"\\e084\";\n}\n.glyphicon-question-sign:before {\n content: \"\\e085\";\n}\n.glyphicon-info-sign:before {\n content: \"\\e086\";\n}\n.glyphicon-screenshot:before {\n content: \"\\e087\";\n}\n.glyphicon-remove-circle:before {\n content: \"\\e088\";\n}\n.glyphicon-ok-circle:before {\n content: \"\\e089\";\n}\n.glyphicon-ban-circle:before {\n content: \"\\e090\";\n}\n.glyphicon-arrow-left:before {\n content: \"\\e091\";\n}\n.glyphicon-arrow-right:before {\n content: \"\\e092\";\n}\n.glyphicon-arrow-up:before {\n content: \"\\e093\";\n}\n.glyphicon-arrow-down:before {\n content: \"\\e094\";\n}\n.glyphicon-share-alt:before {\n content: \"\\e095\";\n}\n.glyphicon-resize-full:before {\n content: \"\\e096\";\n}\n.glyphicon-resize-small:before {\n content: \"\\e097\";\n}\n.glyphicon-exclamation-sign:before {\n content: \"\\e101\";\n}\n.glyphicon-gift:before {\n content: \"\\e102\";\n}\n.glyphicon-leaf:before {\n content: \"\\e103\";\n}\n.glyphicon-fire:before {\n content: \"\\e104\";\n}\n.glyphicon-eye-open:before {\n content: \"\\e105\";\n}\n.glyphicon-eye-close:before {\n content: \"\\e106\";\n}\n.glyphicon-warning-sign:before {\n content: \"\\e107\";\n}\n.glyphicon-plane:before {\n content: \"\\e108\";\n}\n.glyphicon-calendar:before {\n content: \"\\e109\";\n}\n.glyphicon-random:before {\n content: \"\\e110\";\n}\n.glyphicon-comment:before {\n content: \"\\e111\";\n}\n.glyphicon-magnet:before {\n content: \"\\e112\";\n}\n.glyphicon-chevron-up:before {\n content: \"\\e113\";\n}\n.glyphicon-chevron-down:before {\n content: \"\\e114\";\n}\n.glyphicon-retweet:before {\n content: \"\\e115\";\n}\n.glyphicon-shopping-cart:before {\n content: \"\\e116\";\n}\n.glyphicon-folder-close:before {\n content: \"\\e117\";\n}\n.glyphicon-folder-open:before {\n content: \"\\e118\";\n}\n.glyphicon-resize-vertical:before {\n content: \"\\e119\";\n}\n.glyphicon-resize-horizontal:before {\n content: \"\\e120\";\n}\n.glyphicon-hdd:before {\n content: \"\\e121\";\n}\n.glyphicon-bullhorn:before {\n content: \"\\e122\";\n}\n.glyphicon-bell:before {\n content: \"\\e123\";\n}\n.glyphicon-certificate:before {\n content: \"\\e124\";\n}\n.glyphicon-thumbs-up:before {\n content: \"\\e125\";\n}\n.glyphicon-thumbs-down:before {\n content: \"\\e126\";\n}\n.glyphicon-hand-right:before {\n content: \"\\e127\";\n}\n.glyphicon-hand-left:before {\n content: \"\\e128\";\n}\n.glyphicon-hand-up:before {\n content: \"\\e129\";\n}\n.glyphicon-hand-down:before {\n content: \"\\e130\";\n}\n.glyphicon-circle-arrow-right:before {\n content: \"\\e131\";\n}\n.glyphicon-circle-arrow-left:before {\n content: \"\\e132\";\n}\n.glyphicon-circle-arrow-up:before {\n content: \"\\e133\";\n}\n.glyphicon-circle-arrow-down:before {\n content: \"\\e134\";\n}\n.glyphicon-globe:before {\n content: \"\\e135\";\n}\n.glyphicon-wrench:before {\n content: \"\\e136\";\n}\n.glyphicon-tasks:before {\n content: \"\\e137\";\n}\n.glyphicon-filter:before {\n content: \"\\e138\";\n}\n.glyphicon-briefcase:before {\n content: \"\\e139\";\n}\n.glyphicon-fullscreen:before {\n content: \"\\e140\";\n}\n.glyphicon-dashboard:before {\n content: \"\\e141\";\n}\n.glyphicon-paperclip:before {\n content: \"\\e142\";\n}\n.glyphicon-heart-empty:before {\n content: \"\\e143\";\n}\n.glyphicon-link:before {\n content: \"\\e144\";\n}\n.glyphicon-phone:before {\n content: \"\\e145\";\n}\n.glyphicon-pushpin:before {\n content: \"\\e146\";\n}\n.glyphicon-usd:before {\n content: \"\\e148\";\n}\n.glyphicon-gbp:before {\n content: \"\\e149\";\n}\n.glyphicon-sort:before {\n content: \"\\e150\";\n}\n.glyphicon-sort-by-alphabet:before {\n content: \"\\e151\";\n}\n.glyphicon-sort-by-alphabet-alt:before {\n content: \"\\e152\";\n}\n.glyphicon-sort-by-order:before {\n content: \"\\e153\";\n}\n.glyphicon-sort-by-order-alt:before {\n content: \"\\e154\";\n}\n.glyphicon-sort-by-attributes:before {\n content: \"\\e155\";\n}\n.glyphicon-sort-by-attributes-alt:before {\n content: \"\\e156\";\n}\n.glyphicon-unchecked:before {\n content: \"\\e157\";\n}\n.glyphicon-expand:before {\n content: \"\\e158\";\n}\n.glyphicon-collapse-down:before {\n content: \"\\e159\";\n}\n.glyphicon-collapse-up:before {\n content: \"\\e160\";\n}\n.glyphicon-log-in:before {\n content: \"\\e161\";\n}\n.glyphicon-flash:before {\n content: \"\\e162\";\n}\n.glyphicon-log-out:before {\n content: \"\\e163\";\n}\n.glyphicon-new-window:before {\n content: \"\\e164\";\n}\n.glyphicon-record:before {\n content: \"\\e165\";\n}\n.glyphicon-save:before {\n content: \"\\e166\";\n}\n.glyphicon-open:before {\n content: \"\\e167\";\n}\n.glyphicon-saved:before {\n content: \"\\e168\";\n}\n.glyphicon-import:before {\n content: \"\\e169\";\n}\n.glyphicon-export:before {\n content: \"\\e170\";\n}\n.glyphicon-send:before {\n content: \"\\e171\";\n}\n.glyphicon-floppy-disk:before {\n content: \"\\e172\";\n}\n.glyphicon-floppy-saved:before {\n content: \"\\e173\";\n}\n.glyphicon-floppy-remove:before {\n content: \"\\e174\";\n}\n.glyphicon-floppy-save:before {\n content: \"\\e175\";\n}\n.glyphicon-floppy-open:before {\n content: \"\\e176\";\n}\n.glyphicon-credit-card:before {\n content: \"\\e177\";\n}\n.glyphicon-transfer:before {\n content: \"\\e178\";\n}\n.glyphicon-cutlery:before {\n content: \"\\e179\";\n}\n.glyphicon-header:before {\n content: \"\\e180\";\n}\n.glyphicon-compressed:before {\n content: \"\\e181\";\n}\n.glyphicon-earphone:before {\n content: \"\\e182\";\n}\n.glyphicon-phone-alt:before {\n content: \"\\e183\";\n}\n.glyphicon-tower:before {\n content: \"\\e184\";\n}\n.glyphicon-stats:before {\n content: \"\\e185\";\n}\n.glyphicon-sd-video:before {\n content: \"\\e186\";\n}\n.glyphicon-hd-video:before {\n content: \"\\e187\";\n}\n.glyphicon-subtitles:before {\n content: \"\\e188\";\n}\n.glyphicon-sound-stereo:before {\n content: \"\\e189\";\n}\n.glyphicon-sound-dolby:before {\n content: \"\\e190\";\n}\n.glyphicon-sound-5-1:before {\n content: \"\\e191\";\n}\n.glyphicon-sound-6-1:before {\n content: \"\\e192\";\n}\n.glyphicon-sound-7-1:before {\n content: \"\\e193\";\n}\n.glyphicon-copyright-mark:before {\n content: \"\\e194\";\n}\n.glyphicon-registration-mark:before {\n content: \"\\e195\";\n}\n.glyphicon-cloud-download:before {\n content: \"\\e197\";\n}\n.glyphicon-cloud-upload:before {\n content: \"\\e198\";\n}\n.glyphicon-tree-conifer:before {\n content: \"\\e199\";\n}\n.glyphicon-tree-deciduous:before {\n content: \"\\e200\";\n}\n.glyphicon-cd:before {\n content: \"\\e201\";\n}\n.glyphicon-save-file:before {\n content: \"\\e202\";\n}\n.glyphicon-open-file:before {\n content: \"\\e203\";\n}\n.glyphicon-level-up:before {\n content: \"\\e204\";\n}\n.glyphicon-copy:before {\n content: \"\\e205\";\n}\n.glyphicon-paste:before {\n content: \"\\e206\";\n}\n.glyphicon-alert:before {\n content: \"\\e209\";\n}\n.glyphicon-equalizer:before {\n content: \"\\e210\";\n}\n.glyphicon-king:before {\n content: \"\\e211\";\n}\n.glyphicon-queen:before {\n content: \"\\e212\";\n}\n.glyphicon-pawn:before {\n content: \"\\e213\";\n}\n.glyphicon-bishop:before {\n content: \"\\e214\";\n}\n.glyphicon-knight:before {\n content: \"\\e215\";\n}\n.glyphicon-baby-formula:before {\n content: \"\\e216\";\n}\n.glyphicon-tent:before {\n content: \"\\26fa\";\n}\n.glyphicon-blackboard:before {\n content: \"\\e218\";\n}\n.glyphicon-bed:before {\n content: \"\\e219\";\n}\n.glyphicon-apple:before {\n content: \"\\f8ff\";\n}\n.glyphicon-erase:before {\n content: \"\\e221\";\n}\n.glyphicon-hourglass:before {\n content: \"\\231b\";\n}\n.glyphicon-lamp:before {\n content: \"\\e223\";\n}\n.glyphicon-duplicate:before {\n content: \"\\e224\";\n}\n.glyphicon-piggy-bank:before {\n content: \"\\e225\";\n}\n.glyphicon-scissors:before {\n content: \"\\e226\";\n}\n.glyphicon-bitcoin:before {\n content: \"\\e227\";\n}\n.glyphicon-btc:before {\n content: \"\\e227\";\n}\n.glyphicon-xbt:before {\n content: \"\\e227\";\n}\n.glyphicon-yen:before {\n content: \"\\00a5\";\n}\n.glyphicon-jpy:before {\n content: \"\\00a5\";\n}\n.glyphicon-ruble:before {\n content: \"\\20bd\";\n}\n.glyphicon-rub:before {\n content: \"\\20bd\";\n}\n.glyphicon-scale:before {\n content: \"\\e230\";\n}\n.glyphicon-ice-lolly:before {\n content: \"\\e231\";\n}\n.glyphicon-ice-lolly-tasted:before {\n content: \"\\e232\";\n}\n.glyphicon-education:before {\n content: \"\\e233\";\n}\n.glyphicon-option-horizontal:before {\n content: \"\\e234\";\n}\n.glyphicon-option-vertical:before {\n content: \"\\e235\";\n}\n.glyphicon-menu-hamburger:before {\n content: \"\\e236\";\n}\n.glyphicon-modal-window:before {\n content: \"\\e237\";\n}\n.glyphicon-oil:before {\n content: \"\\e238\";\n}\n.glyphicon-grain:before {\n content: \"\\e239\";\n}\n.glyphicon-sunglasses:before {\n content: \"\\e240\";\n}\n.glyphicon-text-size:before {\n content: \"\\e241\";\n}\n.glyphicon-text-color:before {\n content: \"\\e242\";\n}\n.glyphicon-text-background:before {\n content: \"\\e243\";\n}\n.glyphicon-object-align-top:before {\n content: \"\\e244\";\n}\n.glyphicon-object-align-bottom:before {\n content: \"\\e245\";\n}\n.glyphicon-object-align-horizontal:before {\n content: \"\\e246\";\n}\n.glyphicon-object-align-left:before {\n content: \"\\e247\";\n}\n.glyphicon-object-align-vertical:before {\n content: \"\\e248\";\n}\n.glyphicon-object-align-right:before {\n content: \"\\e249\";\n}\n.glyphicon-triangle-right:before {\n content: \"\\e250\";\n}\n.glyphicon-triangle-left:before {\n content: \"\\e251\";\n}\n.glyphicon-triangle-bottom:before {\n content: \"\\e252\";\n}\n.glyphicon-triangle-top:before {\n content: \"\\e253\";\n}\n.glyphicon-console:before {\n content: \"\\e254\";\n}\n.glyphicon-superscript:before {\n content: \"\\e255\";\n}\n.glyphicon-subscript:before {\n content: \"\\e256\";\n}\n.glyphicon-menu-left:before {\n content: \"\\e257\";\n}\n.glyphicon-menu-right:before {\n content: \"\\e258\";\n}\n.glyphicon-menu-down:before {\n content: \"\\e259\";\n}\n.glyphicon-menu-up:before {\n content: \"\\e260\";\n}\n* {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n*:before,\n*:after {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nbody {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.42857143;\n color: #333333;\n background-color: #fff;\n}\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\na {\n color: #337ab7;\n text-decoration: none;\n}\na:hover,\na:focus {\n color: #23527c;\n text-decoration: underline;\n}\na:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\nfigure {\n margin: 0;\n}\nimg {\n vertical-align: middle;\n}\n.img-responsive,\n.thumbnail > img,\n.thumbnail a > img,\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n display: block;\n max-width: 100%;\n height: auto;\n}\n.img-rounded {\n border-radius: 6px;\n}\n.img-thumbnail {\n padding: 4px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: all 0.2s ease-in-out;\n -o-transition: all 0.2s ease-in-out;\n transition: all 0.2s ease-in-out;\n display: inline-block;\n max-width: 100%;\n height: auto;\n}\n.img-circle {\n border-radius: 50%;\n}\nhr {\n margin-top: 20px;\n margin-bottom: 20px;\n border: 0;\n border-top: 1px solid #eeeeee;\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n}\n[role=\"button\"] {\n cursor: pointer;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n font-family: inherit;\n font-weight: 500;\n line-height: 1.1;\n color: inherit;\n}\nh1 small,\nh2 small,\nh3 small,\nh4 small,\nh5 small,\nh6 small,\n.h1 small,\n.h2 small,\n.h3 small,\n.h4 small,\n.h5 small,\n.h6 small,\nh1 .small,\nh2 .small,\nh3 .small,\nh4 .small,\nh5 .small,\nh6 .small,\n.h1 .small,\n.h2 .small,\n.h3 .small,\n.h4 .small,\n.h5 .small,\n.h6 .small {\n font-weight: normal;\n line-height: 1;\n color: #777777;\n}\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: 20px;\n margin-bottom: 10px;\n}\nh1 small,\n.h1 small,\nh2 small,\n.h2 small,\nh3 small,\n.h3 small,\nh1 .small,\n.h1 .small,\nh2 .small,\n.h2 .small,\nh3 .small,\n.h3 .small {\n font-size: 65%;\n}\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: 10px;\n margin-bottom: 10px;\n}\nh4 small,\n.h4 small,\nh5 small,\n.h5 small,\nh6 small,\n.h6 small,\nh4 .small,\n.h4 .small,\nh5 .small,\n.h5 .small,\nh6 .small,\n.h6 .small {\n font-size: 75%;\n}\nh1,\n.h1 {\n font-size: 36px;\n}\nh2,\n.h2 {\n font-size: 30px;\n}\nh3,\n.h3 {\n font-size: 24px;\n}\nh4,\n.h4 {\n font-size: 18px;\n}\nh5,\n.h5 {\n font-size: 14px;\n}\nh6,\n.h6 {\n font-size: 12px;\n}\np {\n margin: 0 0 10px;\n}\n.lead {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 300;\n line-height: 1.4;\n}\n@media (min-width: 768px) {\n .lead {\n font-size: 21px;\n }\n}\nsmall,\n.small {\n font-size: 85%;\n}\nmark,\n.mark {\n background-color: #fcf8e3;\n padding: .2em;\n}\n.text-left {\n text-align: left;\n}\n.text-right {\n text-align: right;\n}\n.text-center {\n text-align: center;\n}\n.text-justify {\n text-align: justify;\n}\n.text-nowrap {\n white-space: nowrap;\n}\n.text-lowercase {\n text-transform: lowercase;\n}\n.text-uppercase {\n text-transform: uppercase;\n}\n.text-capitalize {\n text-transform: capitalize;\n}\n.text-muted {\n color: #777777;\n}\n.text-primary {\n color: #337ab7;\n}\na.text-primary:hover,\na.text-primary:focus {\n color: #286090;\n}\n.text-success {\n color: #3c763d;\n}\na.text-success:hover,\na.text-success:focus {\n color: #2b542c;\n}\n.text-info {\n color: #31708f;\n}\na.text-info:hover,\na.text-info:focus {\n color: #245269;\n}\n.text-warning {\n color: #8a6d3b;\n}\na.text-warning:hover,\na.text-warning:focus {\n color: #66512c;\n}\n.text-danger {\n color: #a94442;\n}\na.text-danger:hover,\na.text-danger:focus {\n color: #843534;\n}\n.bg-primary {\n color: #fff;\n background-color: #337ab7;\n}\na.bg-primary:hover,\na.bg-primary:focus {\n background-color: #286090;\n}\n.bg-success {\n background-color: #dff0d8;\n}\na.bg-success:hover,\na.bg-success:focus {\n background-color: #c1e2b3;\n}\n.bg-info {\n background-color: #d9edf7;\n}\na.bg-info:hover,\na.bg-info:focus {\n background-color: #afd9ee;\n}\n.bg-warning {\n background-color: #fcf8e3;\n}\na.bg-warning:hover,\na.bg-warning:focus {\n background-color: #f7ecb5;\n}\n.bg-danger {\n background-color: #f2dede;\n}\na.bg-danger:hover,\na.bg-danger:focus {\n background-color: #e4b9b9;\n}\n.page-header {\n padding-bottom: 9px;\n margin: 40px 0 20px;\n border-bottom: 1px solid #eeeeee;\n}\nul,\nol {\n margin-top: 0;\n margin-bottom: 10px;\n}\nul ul,\nol ul,\nul ol,\nol ol {\n margin-bottom: 0;\n}\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n.list-inline {\n padding-left: 0;\n list-style: none;\n margin-left: -5px;\n}\n.list-inline > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n}\ndl {\n margin-top: 0;\n margin-bottom: 20px;\n}\ndt,\ndd {\n line-height: 1.42857143;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0;\n}\n@media (min-width: 768px) {\n .dl-horizontal dt {\n float: left;\n width: 160px;\n clear: left;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .dl-horizontal dd {\n margin-left: 180px;\n }\n}\nabbr[title],\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted #777777;\n}\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\nblockquote {\n padding: 10px 20px;\n margin: 0 0 20px;\n font-size: 17.5px;\n border-left: 5px solid #eeeeee;\n}\nblockquote p:last-child,\nblockquote ul:last-child,\nblockquote ol:last-child {\n margin-bottom: 0;\n}\nblockquote footer,\nblockquote small,\nblockquote .small {\n display: block;\n font-size: 80%;\n line-height: 1.42857143;\n color: #777777;\n}\nblockquote footer:before,\nblockquote small:before,\nblockquote .small:before {\n content: '\\2014 \\00A0';\n}\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid #eeeeee;\n border-left: 0;\n text-align: right;\n}\n.blockquote-reverse footer:before,\nblockquote.pull-right footer:before,\n.blockquote-reverse small:before,\nblockquote.pull-right small:before,\n.blockquote-reverse .small:before,\nblockquote.pull-right .small:before {\n content: '';\n}\n.blockquote-reverse footer:after,\nblockquote.pull-right footer:after,\n.blockquote-reverse small:after,\nblockquote.pull-right small:after,\n.blockquote-reverse .small:after,\nblockquote.pull-right .small:after {\n content: '\\00A0 \\2014';\n}\naddress {\n margin-bottom: 20px;\n font-style: normal;\n line-height: 1.42857143;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: #c7254e;\n background-color: #f9f2f4;\n border-radius: 4px;\n}\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: #fff;\n background-color: #333;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\nkbd kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n}\npre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333333;\n background-color: #f5f5f5;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\npre code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n}\n.pre-scrollable {\n max-height: 340px;\n overflow-y: scroll;\n}\n.container {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n@media (min-width: 768px) {\n .container {\n width: 750px;\n }\n}\n@media (min-width: 992px) {\n .container {\n width: 970px;\n }\n}\n@media (min-width: 1200px) {\n .container {\n width: 1170px;\n }\n}\n.container-fluid {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n.row {\n margin-left: -15px;\n margin-right: -15px;\n}\n.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {\n position: relative;\n min-height: 1px;\n padding-left: 15px;\n padding-right: 15px;\n}\n.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {\n float: left;\n}\n.col-xs-12 {\n width: 100%;\n}\n.col-xs-11 {\n width: 91.66666667%;\n}\n.col-xs-10 {\n width: 83.33333333%;\n}\n.col-xs-9 {\n width: 75%;\n}\n.col-xs-8 {\n width: 66.66666667%;\n}\n.col-xs-7 {\n width: 58.33333333%;\n}\n.col-xs-6 {\n width: 50%;\n}\n.col-xs-5 {\n width: 41.66666667%;\n}\n.col-xs-4 {\n width: 33.33333333%;\n}\n.col-xs-3 {\n width: 25%;\n}\n.col-xs-2 {\n width: 16.66666667%;\n}\n.col-xs-1 {\n width: 8.33333333%;\n}\n.col-xs-pull-12 {\n right: 100%;\n}\n.col-xs-pull-11 {\n right: 91.66666667%;\n}\n.col-xs-pull-10 {\n right: 83.33333333%;\n}\n.col-xs-pull-9 {\n right: 75%;\n}\n.col-xs-pull-8 {\n right: 66.66666667%;\n}\n.col-xs-pull-7 {\n right: 58.33333333%;\n}\n.col-xs-pull-6 {\n right: 50%;\n}\n.col-xs-pull-5 {\n right: 41.66666667%;\n}\n.col-xs-pull-4 {\n right: 33.33333333%;\n}\n.col-xs-pull-3 {\n right: 25%;\n}\n.col-xs-pull-2 {\n right: 16.66666667%;\n}\n.col-xs-pull-1 {\n right: 8.33333333%;\n}\n.col-xs-pull-0 {\n right: auto;\n}\n.col-xs-push-12 {\n left: 100%;\n}\n.col-xs-push-11 {\n left: 91.66666667%;\n}\n.col-xs-push-10 {\n left: 83.33333333%;\n}\n.col-xs-push-9 {\n left: 75%;\n}\n.col-xs-push-8 {\n left: 66.66666667%;\n}\n.col-xs-push-7 {\n left: 58.33333333%;\n}\n.col-xs-push-6 {\n left: 50%;\n}\n.col-xs-push-5 {\n left: 41.66666667%;\n}\n.col-xs-push-4 {\n left: 33.33333333%;\n}\n.col-xs-push-3 {\n left: 25%;\n}\n.col-xs-push-2 {\n left: 16.66666667%;\n}\n.col-xs-push-1 {\n left: 8.33333333%;\n}\n.col-xs-push-0 {\n left: auto;\n}\n.col-xs-offset-12 {\n margin-left: 100%;\n}\n.col-xs-offset-11 {\n margin-left: 91.66666667%;\n}\n.col-xs-offset-10 {\n margin-left: 83.33333333%;\n}\n.col-xs-offset-9 {\n margin-left: 75%;\n}\n.col-xs-offset-8 {\n margin-left: 66.66666667%;\n}\n.col-xs-offset-7 {\n margin-left: 58.33333333%;\n}\n.col-xs-offset-6 {\n margin-left: 50%;\n}\n.col-xs-offset-5 {\n margin-left: 41.66666667%;\n}\n.col-xs-offset-4 {\n margin-left: 33.33333333%;\n}\n.col-xs-offset-3 {\n margin-left: 25%;\n}\n.col-xs-offset-2 {\n margin-left: 16.66666667%;\n}\n.col-xs-offset-1 {\n margin-left: 8.33333333%;\n}\n.col-xs-offset-0 {\n margin-left: 0%;\n}\n@media (min-width: 768px) {\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {\n float: left;\n }\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666667%;\n }\n .col-sm-10 {\n width: 83.33333333%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666667%;\n }\n .col-sm-7 {\n width: 58.33333333%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666667%;\n }\n .col-sm-4 {\n width: 33.33333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.66666667%;\n }\n .col-sm-1 {\n width: 8.33333333%;\n }\n .col-sm-pull-12 {\n right: 100%;\n }\n .col-sm-pull-11 {\n right: 91.66666667%;\n }\n .col-sm-pull-10 {\n right: 83.33333333%;\n }\n .col-sm-pull-9 {\n right: 75%;\n }\n .col-sm-pull-8 {\n right: 66.66666667%;\n }\n .col-sm-pull-7 {\n right: 58.33333333%;\n }\n .col-sm-pull-6 {\n right: 50%;\n }\n .col-sm-pull-5 {\n right: 41.66666667%;\n }\n .col-sm-pull-4 {\n right: 33.33333333%;\n }\n .col-sm-pull-3 {\n right: 25%;\n }\n .col-sm-pull-2 {\n right: 16.66666667%;\n }\n .col-sm-pull-1 {\n right: 8.33333333%;\n }\n .col-sm-pull-0 {\n right: auto;\n }\n .col-sm-push-12 {\n left: 100%;\n }\n .col-sm-push-11 {\n left: 91.66666667%;\n }\n .col-sm-push-10 {\n left: 83.33333333%;\n }\n .col-sm-push-9 {\n left: 75%;\n }\n .col-sm-push-8 {\n left: 66.66666667%;\n }\n .col-sm-push-7 {\n left: 58.33333333%;\n }\n .col-sm-push-6 {\n left: 50%;\n }\n .col-sm-push-5 {\n left: 41.66666667%;\n }\n .col-sm-push-4 {\n left: 33.33333333%;\n }\n .col-sm-push-3 {\n left: 25%;\n }\n .col-sm-push-2 {\n left: 16.66666667%;\n }\n .col-sm-push-1 {\n left: 8.33333333%;\n }\n .col-sm-push-0 {\n left: auto;\n }\n .col-sm-offset-12 {\n margin-left: 100%;\n }\n .col-sm-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-sm-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-sm-offset-9 {\n margin-left: 75%;\n }\n .col-sm-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-sm-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-sm-offset-6 {\n margin-left: 50%;\n }\n .col-sm-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-sm-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-sm-offset-3 {\n margin-left: 25%;\n }\n .col-sm-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-sm-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-sm-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 992px) {\n .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {\n float: left;\n }\n .col-md-12 {\n width: 100%;\n }\n .col-md-11 {\n width: 91.66666667%;\n }\n .col-md-10 {\n width: 83.33333333%;\n }\n .col-md-9 {\n width: 75%;\n }\n .col-md-8 {\n width: 66.66666667%;\n }\n .col-md-7 {\n width: 58.33333333%;\n }\n .col-md-6 {\n width: 50%;\n }\n .col-md-5 {\n width: 41.66666667%;\n }\n .col-md-4 {\n width: 33.33333333%;\n }\n .col-md-3 {\n width: 25%;\n }\n .col-md-2 {\n width: 16.66666667%;\n }\n .col-md-1 {\n width: 8.33333333%;\n }\n .col-md-pull-12 {\n right: 100%;\n }\n .col-md-pull-11 {\n right: 91.66666667%;\n }\n .col-md-pull-10 {\n right: 83.33333333%;\n }\n .col-md-pull-9 {\n right: 75%;\n }\n .col-md-pull-8 {\n right: 66.66666667%;\n }\n .col-md-pull-7 {\n right: 58.33333333%;\n }\n .col-md-pull-6 {\n right: 50%;\n }\n .col-md-pull-5 {\n right: 41.66666667%;\n }\n .col-md-pull-4 {\n right: 33.33333333%;\n }\n .col-md-pull-3 {\n right: 25%;\n }\n .col-md-pull-2 {\n right: 16.66666667%;\n }\n .col-md-pull-1 {\n right: 8.33333333%;\n }\n .col-md-pull-0 {\n right: auto;\n }\n .col-md-push-12 {\n left: 100%;\n }\n .col-md-push-11 {\n left: 91.66666667%;\n }\n .col-md-push-10 {\n left: 83.33333333%;\n }\n .col-md-push-9 {\n left: 75%;\n }\n .col-md-push-8 {\n left: 66.66666667%;\n }\n .col-md-push-7 {\n left: 58.33333333%;\n }\n .col-md-push-6 {\n left: 50%;\n }\n .col-md-push-5 {\n left: 41.66666667%;\n }\n .col-md-push-4 {\n left: 33.33333333%;\n }\n .col-md-push-3 {\n left: 25%;\n }\n .col-md-push-2 {\n left: 16.66666667%;\n }\n .col-md-push-1 {\n left: 8.33333333%;\n }\n .col-md-push-0 {\n left: auto;\n }\n .col-md-offset-12 {\n margin-left: 100%;\n }\n .col-md-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-md-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-md-offset-9 {\n margin-left: 75%;\n }\n .col-md-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-md-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-md-offset-6 {\n margin-left: 50%;\n }\n .col-md-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-md-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-md-offset-3 {\n margin-left: 25%;\n }\n .col-md-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-md-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-md-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 1200px) {\n .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {\n float: left;\n }\n .col-lg-12 {\n width: 100%;\n }\n .col-lg-11 {\n width: 91.66666667%;\n }\n .col-lg-10 {\n width: 83.33333333%;\n }\n .col-lg-9 {\n width: 75%;\n }\n .col-lg-8 {\n width: 66.66666667%;\n }\n .col-lg-7 {\n width: 58.33333333%;\n }\n .col-lg-6 {\n width: 50%;\n }\n .col-lg-5 {\n width: 41.66666667%;\n }\n .col-lg-4 {\n width: 33.33333333%;\n }\n .col-lg-3 {\n width: 25%;\n }\n .col-lg-2 {\n width: 16.66666667%;\n }\n .col-lg-1 {\n width: 8.33333333%;\n }\n .col-lg-pull-12 {\n right: 100%;\n }\n .col-lg-pull-11 {\n right: 91.66666667%;\n }\n .col-lg-pull-10 {\n right: 83.33333333%;\n }\n .col-lg-pull-9 {\n right: 75%;\n }\n .col-lg-pull-8 {\n right: 66.66666667%;\n }\n .col-lg-pull-7 {\n right: 58.33333333%;\n }\n .col-lg-pull-6 {\n right: 50%;\n }\n .col-lg-pull-5 {\n right: 41.66666667%;\n }\n .col-lg-pull-4 {\n right: 33.33333333%;\n }\n .col-lg-pull-3 {\n right: 25%;\n }\n .col-lg-pull-2 {\n right: 16.66666667%;\n }\n .col-lg-pull-1 {\n right: 8.33333333%;\n }\n .col-lg-pull-0 {\n right: auto;\n }\n .col-lg-push-12 {\n left: 100%;\n }\n .col-lg-push-11 {\n left: 91.66666667%;\n }\n .col-lg-push-10 {\n left: 83.33333333%;\n }\n .col-lg-push-9 {\n left: 75%;\n }\n .col-lg-push-8 {\n left: 66.66666667%;\n }\n .col-lg-push-7 {\n left: 58.33333333%;\n }\n .col-lg-push-6 {\n left: 50%;\n }\n .col-lg-push-5 {\n left: 41.66666667%;\n }\n .col-lg-push-4 {\n left: 33.33333333%;\n }\n .col-lg-push-3 {\n left: 25%;\n }\n .col-lg-push-2 {\n left: 16.66666667%;\n }\n .col-lg-push-1 {\n left: 8.33333333%;\n }\n .col-lg-push-0 {\n left: auto;\n }\n .col-lg-offset-12 {\n margin-left: 100%;\n }\n .col-lg-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-lg-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-lg-offset-9 {\n margin-left: 75%;\n }\n .col-lg-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-lg-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-lg-offset-6 {\n margin-left: 50%;\n }\n .col-lg-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-lg-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-lg-offset-3 {\n margin-left: 25%;\n }\n .col-lg-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-lg-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-lg-offset-0 {\n margin-left: 0%;\n }\n}\ntable {\n background-color: transparent;\n}\ncaption {\n padding-top: 8px;\n padding-bottom: 8px;\n color: #777777;\n text-align: left;\n}\nth {\n text-align: left;\n}\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: 20px;\n}\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n padding: 8px;\n line-height: 1.42857143;\n vertical-align: top;\n border-top: 1px solid #ddd;\n}\n.table > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid #ddd;\n}\n.table > caption + thead > tr:first-child > th,\n.table > colgroup + thead > tr:first-child > th,\n.table > thead:first-child > tr:first-child > th,\n.table > caption + thead > tr:first-child > td,\n.table > colgroup + thead > tr:first-child > td,\n.table > thead:first-child > tr:first-child > td {\n border-top: 0;\n}\n.table > tbody + tbody {\n border-top: 2px solid #ddd;\n}\n.table .table {\n background-color: #fff;\n}\n.table-condensed > thead > tr > th,\n.table-condensed > tbody > tr > th,\n.table-condensed > tfoot > tr > th,\n.table-condensed > thead > tr > td,\n.table-condensed > tbody > tr > td,\n.table-condensed > tfoot > tr > td {\n padding: 5px;\n}\n.table-bordered {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > tbody > tr > td,\n.table-bordered > tfoot > tr > td {\n border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > td {\n border-bottom-width: 2px;\n}\n.table-striped > tbody > tr:nth-of-type(odd) {\n background-color: #f9f9f9;\n}\n.table-hover > tbody > tr:hover {\n background-color: #f5f5f5;\n}\ntable col[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-column;\n}\ntable td[class*=\"col-\"],\ntable th[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-cell;\n}\n.table > thead > tr > td.active,\n.table > tbody > tr > td.active,\n.table > tfoot > tr > td.active,\n.table > thead > tr > th.active,\n.table > tbody > tr > th.active,\n.table > tfoot > tr > th.active,\n.table > thead > tr.active > td,\n.table > tbody > tr.active > td,\n.table > tfoot > tr.active > td,\n.table > thead > tr.active > th,\n.table > tbody > tr.active > th,\n.table > tfoot > tr.active > th {\n background-color: #f5f5f5;\n}\n.table-hover > tbody > tr > td.active:hover,\n.table-hover > tbody > tr > th.active:hover,\n.table-hover > tbody > tr.active:hover > td,\n.table-hover > tbody > tr:hover > .active,\n.table-hover > tbody > tr.active:hover > th {\n background-color: #e8e8e8;\n}\n.table > thead > tr > td.success,\n.table > tbody > tr > td.success,\n.table > tfoot > tr > td.success,\n.table > thead > tr > th.success,\n.table > tbody > tr > th.success,\n.table > tfoot > tr > th.success,\n.table > thead > tr.success > td,\n.table > tbody > tr.success > td,\n.table > tfoot > tr.success > td,\n.table > thead > tr.success > th,\n.table > tbody > tr.success > th,\n.table > tfoot > tr.success > th {\n background-color: #dff0d8;\n}\n.table-hover > tbody > tr > td.success:hover,\n.table-hover > tbody > tr > th.success:hover,\n.table-hover > tbody > tr.success:hover > td,\n.table-hover > tbody > tr:hover > .success,\n.table-hover > tbody > tr.success:hover > th {\n background-color: #d0e9c6;\n}\n.table > thead > tr > td.info,\n.table > tbody > tr > td.info,\n.table > tfoot > tr > td.info,\n.table > thead > tr > th.info,\n.table > tbody > tr > th.info,\n.table > tfoot > tr > th.info,\n.table > thead > tr.info > td,\n.table > tbody > tr.info > td,\n.table > tfoot > tr.info > td,\n.table > thead > tr.info > th,\n.table > tbody > tr.info > th,\n.table > tfoot > tr.info > th {\n background-color: #d9edf7;\n}\n.table-hover > tbody > tr > td.info:hover,\n.table-hover > tbody > tr > th.info:hover,\n.table-hover > tbody > tr.info:hover > td,\n.table-hover > tbody > tr:hover > .info,\n.table-hover > tbody > tr.info:hover > th {\n background-color: #c4e3f3;\n}\n.table > thead > tr > td.warning,\n.table > tbody > tr > td.warning,\n.table > tfoot > tr > td.warning,\n.table > thead > tr > th.warning,\n.table > tbody > tr > th.warning,\n.table > tfoot > tr > th.warning,\n.table > thead > tr.warning > td,\n.table > tbody > tr.warning > td,\n.table > tfoot > tr.warning > td,\n.table > thead > tr.warning > th,\n.table > tbody > tr.warning > th,\n.table > tfoot > tr.warning > th {\n background-color: #fcf8e3;\n}\n.table-hover > tbody > tr > td.warning:hover,\n.table-hover > tbody > tr > th.warning:hover,\n.table-hover > tbody > tr.warning:hover > td,\n.table-hover > tbody > tr:hover > .warning,\n.table-hover > tbody > tr.warning:hover > th {\n background-color: #faf2cc;\n}\n.table > thead > tr > td.danger,\n.table > tbody > tr > td.danger,\n.table > tfoot > tr > td.danger,\n.table > thead > tr > th.danger,\n.table > tbody > tr > th.danger,\n.table > tfoot > tr > th.danger,\n.table > thead > tr.danger > td,\n.table > tbody > tr.danger > td,\n.table > tfoot > tr.danger > td,\n.table > thead > tr.danger > th,\n.table > tbody > tr.danger > th,\n.table > tfoot > tr.danger > th {\n background-color: #f2dede;\n}\n.table-hover > tbody > tr > td.danger:hover,\n.table-hover > tbody > tr > th.danger:hover,\n.table-hover > tbody > tr.danger:hover > td,\n.table-hover > tbody > tr:hover > .danger,\n.table-hover > tbody > tr.danger:hover > th {\n background-color: #ebcccc;\n}\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%;\n}\n@media screen and (max-width: 767px) {\n .table-responsive {\n width: 100%;\n margin-bottom: 15px;\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid #ddd;\n }\n .table-responsive > .table {\n margin-bottom: 0;\n }\n .table-responsive > .table > thead > tr > th,\n .table-responsive > .table > tbody > tr > th,\n .table-responsive > .table > tfoot > tr > th,\n .table-responsive > .table > thead > tr > td,\n .table-responsive > .table > tbody > tr > td,\n .table-responsive > .table > tfoot > tr > td {\n white-space: nowrap;\n }\n .table-responsive > .table-bordered {\n border: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:first-child,\n .table-responsive > .table-bordered > tbody > tr > th:first-child,\n .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n .table-responsive > .table-bordered > thead > tr > td:first-child,\n .table-responsive > .table-bordered > tbody > tr > td:first-child,\n .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:last-child,\n .table-responsive > .table-bordered > tbody > tr > th:last-child,\n .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n .table-responsive > .table-bordered > thead > tr > td:last-child,\n .table-responsive > .table-bordered > tbody > tr > td:last-child,\n .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n }\n .table-responsive > .table-bordered > tbody > tr:last-child > th,\n .table-responsive > .table-bordered > tfoot > tr:last-child > th,\n .table-responsive > .table-bordered > tbody > tr:last-child > td,\n .table-responsive > .table-bordered > tfoot > tr:last-child > td {\n border-bottom: 0;\n }\n}\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n min-width: 0;\n}\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: 20px;\n font-size: 21px;\n line-height: inherit;\n color: #333333;\n border: 0;\n border-bottom: 1px solid #e5e5e5;\n}\nlabel {\n display: inline-block;\n max-width: 100%;\n margin-bottom: 5px;\n font-weight: bold;\n}\ninput[type=\"search\"] {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9;\n line-height: normal;\n}\ninput[type=\"file\"] {\n display: block;\n}\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\nselect[multiple],\nselect[size] {\n height: auto;\n}\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\noutput {\n display: block;\n padding-top: 7px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n}\n.form-control {\n display: block;\n width: 100%;\n height: 34px;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n background-color: #fff;\n background-image: none;\n border: 1px solid #ccc;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n}\n.form-control:focus {\n border-color: #66afe9;\n outline: 0;\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.form-control::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.form-control:-ms-input-placeholder {\n color: #999;\n}\n.form-control::-webkit-input-placeholder {\n color: #999;\n}\n.form-control::-ms-expand {\n border: 0;\n background-color: transparent;\n}\n.form-control[disabled],\n.form-control[readonly],\nfieldset[disabled] .form-control {\n background-color: #eeeeee;\n opacity: 1;\n}\n.form-control[disabled],\nfieldset[disabled] .form-control {\n cursor: not-allowed;\n}\ntextarea.form-control {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: none;\n}\n@media screen and (-webkit-min-device-pixel-ratio: 0) {\n input[type=\"date\"].form-control,\n input[type=\"time\"].form-control,\n input[type=\"datetime-local\"].form-control,\n input[type=\"month\"].form-control {\n line-height: 34px;\n }\n input[type=\"date\"].input-sm,\n input[type=\"time\"].input-sm,\n input[type=\"datetime-local\"].input-sm,\n input[type=\"month\"].input-sm,\n .input-group-sm input[type=\"date\"],\n .input-group-sm input[type=\"time\"],\n .input-group-sm input[type=\"datetime-local\"],\n .input-group-sm input[type=\"month\"] {\n line-height: 30px;\n }\n input[type=\"date\"].input-lg,\n input[type=\"time\"].input-lg,\n input[type=\"datetime-local\"].input-lg,\n input[type=\"month\"].input-lg,\n .input-group-lg input[type=\"date\"],\n .input-group-lg input[type=\"time\"],\n .input-group-lg input[type=\"datetime-local\"],\n .input-group-lg input[type=\"month\"] {\n line-height: 46px;\n }\n}\n.form-group {\n margin-bottom: 15px;\n}\n.radio,\n.checkbox {\n position: relative;\n display: block;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.radio label,\n.checkbox label {\n min-height: 20px;\n padding-left: 20px;\n margin-bottom: 0;\n font-weight: normal;\n cursor: pointer;\n}\n.radio input[type=\"radio\"],\n.radio-inline input[type=\"radio\"],\n.checkbox input[type=\"checkbox\"],\n.checkbox-inline input[type=\"checkbox\"] {\n position: absolute;\n margin-left: -20px;\n margin-top: 4px \\9;\n}\n.radio + .radio,\n.checkbox + .checkbox {\n margin-top: -5px;\n}\n.radio-inline,\n.checkbox-inline {\n position: relative;\n display: inline-block;\n padding-left: 20px;\n margin-bottom: 0;\n vertical-align: middle;\n font-weight: normal;\n cursor: pointer;\n}\n.radio-inline + .radio-inline,\n.checkbox-inline + .checkbox-inline {\n margin-top: 0;\n margin-left: 10px;\n}\ninput[type=\"radio\"][disabled],\ninput[type=\"checkbox\"][disabled],\ninput[type=\"radio\"].disabled,\ninput[type=\"checkbox\"].disabled,\nfieldset[disabled] input[type=\"radio\"],\nfieldset[disabled] input[type=\"checkbox\"] {\n cursor: not-allowed;\n}\n.radio-inline.disabled,\n.checkbox-inline.disabled,\nfieldset[disabled] .radio-inline,\nfieldset[disabled] .checkbox-inline {\n cursor: not-allowed;\n}\n.radio.disabled label,\n.checkbox.disabled label,\nfieldset[disabled] .radio label,\nfieldset[disabled] .checkbox label {\n cursor: not-allowed;\n}\n.form-control-static {\n padding-top: 7px;\n padding-bottom: 7px;\n margin-bottom: 0;\n min-height: 34px;\n}\n.form-control-static.input-lg,\n.form-control-static.input-sm {\n padding-left: 0;\n padding-right: 0;\n}\n.input-sm {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-sm {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-sm,\nselect[multiple].input-sm {\n height: auto;\n}\n.form-group-sm .form-control {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.form-group-sm select.form-control {\n height: 30px;\n line-height: 30px;\n}\n.form-group-sm textarea.form-control,\n.form-group-sm select[multiple].form-control {\n height: auto;\n}\n.form-group-sm .form-control-static {\n height: 30px;\n min-height: 32px;\n padding: 6px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.input-lg {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-lg {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-lg,\nselect[multiple].input-lg {\n height: auto;\n}\n.form-group-lg .form-control {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.form-group-lg select.form-control {\n height: 46px;\n line-height: 46px;\n}\n.form-group-lg textarea.form-control,\n.form-group-lg select[multiple].form-control {\n height: auto;\n}\n.form-group-lg .form-control-static {\n height: 46px;\n min-height: 38px;\n padding: 11px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.has-feedback {\n position: relative;\n}\n.has-feedback .form-control {\n padding-right: 42.5px;\n}\n.form-control-feedback {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n display: block;\n width: 34px;\n height: 34px;\n line-height: 34px;\n text-align: center;\n pointer-events: none;\n}\n.input-lg + .form-control-feedback,\n.input-group-lg + .form-control-feedback,\n.form-group-lg .form-control + .form-control-feedback {\n width: 46px;\n height: 46px;\n line-height: 46px;\n}\n.input-sm + .form-control-feedback,\n.input-group-sm + .form-control-feedback,\n.form-group-sm .form-control + .form-control-feedback {\n width: 30px;\n height: 30px;\n line-height: 30px;\n}\n.has-success .help-block,\n.has-success .control-label,\n.has-success .radio,\n.has-success .checkbox,\n.has-success .radio-inline,\n.has-success .checkbox-inline,\n.has-success.radio label,\n.has-success.checkbox label,\n.has-success.radio-inline label,\n.has-success.checkbox-inline label {\n color: #3c763d;\n}\n.has-success .form-control {\n border-color: #3c763d;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-success .form-control:focus {\n border-color: #2b542c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n}\n.has-success .input-group-addon {\n color: #3c763d;\n border-color: #3c763d;\n background-color: #dff0d8;\n}\n.has-success .form-control-feedback {\n color: #3c763d;\n}\n.has-warning .help-block,\n.has-warning .control-label,\n.has-warning .radio,\n.has-warning .checkbox,\n.has-warning .radio-inline,\n.has-warning .checkbox-inline,\n.has-warning.radio label,\n.has-warning.checkbox label,\n.has-warning.radio-inline label,\n.has-warning.checkbox-inline label {\n color: #8a6d3b;\n}\n.has-warning .form-control {\n border-color: #8a6d3b;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-warning .form-control:focus {\n border-color: #66512c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n}\n.has-warning .input-group-addon {\n color: #8a6d3b;\n border-color: #8a6d3b;\n background-color: #fcf8e3;\n}\n.has-warning .form-control-feedback {\n color: #8a6d3b;\n}\n.has-error .help-block,\n.has-error .control-label,\n.has-error .radio,\n.has-error .checkbox,\n.has-error .radio-inline,\n.has-error .checkbox-inline,\n.has-error.radio label,\n.has-error.checkbox label,\n.has-error.radio-inline label,\n.has-error.checkbox-inline label {\n color: #a94442;\n}\n.has-error .form-control {\n border-color: #a94442;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-error .form-control:focus {\n border-color: #843534;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n}\n.has-error .input-group-addon {\n color: #a94442;\n border-color: #a94442;\n background-color: #f2dede;\n}\n.has-error .form-control-feedback {\n color: #a94442;\n}\n.has-feedback label ~ .form-control-feedback {\n top: 25px;\n}\n.has-feedback label.sr-only ~ .form-control-feedback {\n top: 0;\n}\n.help-block {\n display: block;\n margin-top: 5px;\n margin-bottom: 10px;\n color: #737373;\n}\n@media (min-width: 768px) {\n .form-inline .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .form-inline .form-control-static {\n display: inline-block;\n }\n .form-inline .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .form-inline .input-group .input-group-addon,\n .form-inline .input-group .input-group-btn,\n .form-inline .input-group .form-control {\n width: auto;\n }\n .form-inline .input-group > .form-control {\n width: 100%;\n }\n .form-inline .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio,\n .form-inline .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio label,\n .form-inline .checkbox label {\n padding-left: 0;\n }\n .form-inline .radio input[type=\"radio\"],\n .form-inline .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .form-inline .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox,\n.form-horizontal .radio-inline,\n.form-horizontal .checkbox-inline {\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 7px;\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox {\n min-height: 27px;\n}\n.form-horizontal .form-group {\n margin-left: -15px;\n margin-right: -15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .control-label {\n text-align: right;\n margin-bottom: 0;\n padding-top: 7px;\n }\n}\n.form-horizontal .has-feedback .form-control-feedback {\n right: 15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-lg .control-label {\n padding-top: 11px;\n font-size: 18px;\n }\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-sm .control-label {\n padding-top: 6px;\n font-size: 12px;\n }\n}\n.btn {\n display: inline-block;\n margin-bottom: 0;\n font-weight: normal;\n text-align: center;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n border-radius: 4px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.btn:focus,\n.btn:active:focus,\n.btn.active:focus,\n.btn.focus,\n.btn:active.focus,\n.btn.active.focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.btn:hover,\n.btn:focus,\n.btn.focus {\n color: #333;\n text-decoration: none;\n}\n.btn:active,\n.btn.active {\n outline: 0;\n background-image: none;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn.disabled,\n.btn[disabled],\nfieldset[disabled] .btn {\n cursor: not-allowed;\n opacity: 0.65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n}\na.btn.disabled,\nfieldset[disabled] a.btn {\n pointer-events: none;\n}\n.btn-default {\n color: #333;\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default:focus,\n.btn-default.focus {\n color: #333;\n background-color: #e6e6e6;\n border-color: #8c8c8c;\n}\n.btn-default:hover {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n color: #333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active:hover,\n.btn-default.active:hover,\n.open > .dropdown-toggle.btn-default:hover,\n.btn-default:active:focus,\n.btn-default.active:focus,\n.open > .dropdown-toggle.btn-default:focus,\n.btn-default:active.focus,\n.btn-default.active.focus,\n.open > .dropdown-toggle.btn-default.focus {\n color: #333;\n background-color: #d4d4d4;\n border-color: #8c8c8c;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n background-image: none;\n}\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled.focus,\n.btn-default[disabled].focus,\nfieldset[disabled] .btn-default.focus {\n background-color: #fff;\n border-color: #ccc;\n}\n.btn-default .badge {\n color: #fff;\n background-color: #333;\n}\n.btn-primary {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary:focus,\n.btn-primary.focus {\n color: #fff;\n background-color: #286090;\n border-color: #122b40;\n}\n.btn-primary:hover {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n color: #fff;\n background-color: #286090;\n border-color: #204d74;\n}\n.btn-primary:active:hover,\n.btn-primary.active:hover,\n.open > .dropdown-toggle.btn-primary:hover,\n.btn-primary:active:focus,\n.btn-primary.active:focus,\n.open > .dropdown-toggle.btn-primary:focus,\n.btn-primary:active.focus,\n.btn-primary.active.focus,\n.open > .dropdown-toggle.btn-primary.focus {\n color: #fff;\n background-color: #204d74;\n border-color: #122b40;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n background-image: none;\n}\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled.focus,\n.btn-primary[disabled].focus,\nfieldset[disabled] .btn-primary.focus {\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.btn-primary .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.btn-success {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success:focus,\n.btn-success.focus {\n color: #fff;\n background-color: #449d44;\n border-color: #255625;\n}\n.btn-success:hover {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n color: #fff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active:hover,\n.btn-success.active:hover,\n.open > .dropdown-toggle.btn-success:hover,\n.btn-success:active:focus,\n.btn-success.active:focus,\n.open > .dropdown-toggle.btn-success:focus,\n.btn-success:active.focus,\n.btn-success.active.focus,\n.open > .dropdown-toggle.btn-success.focus {\n color: #fff;\n background-color: #398439;\n border-color: #255625;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n background-image: none;\n}\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled.focus,\n.btn-success[disabled].focus,\nfieldset[disabled] .btn-success.focus {\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success .badge {\n color: #5cb85c;\n background-color: #fff;\n}\n.btn-info {\n color: #fff;\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info:focus,\n.btn-info.focus {\n color: #fff;\n background-color: #31b0d5;\n border-color: #1b6d85;\n}\n.btn-info:hover {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n color: #fff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active:hover,\n.btn-info.active:hover,\n.open > .dropdown-toggle.btn-info:hover,\n.btn-info:active:focus,\n.btn-info.active:focus,\n.open > .dropdown-toggle.btn-info:focus,\n.btn-info:active.focus,\n.btn-info.active.focus,\n.open > .dropdown-toggle.btn-info.focus {\n color: #fff;\n background-color: #269abc;\n border-color: #1b6d85;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n background-image: none;\n}\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled.focus,\n.btn-info[disabled].focus,\nfieldset[disabled] .btn-info.focus {\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info .badge {\n color: #5bc0de;\n background-color: #fff;\n}\n.btn-warning {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning:focus,\n.btn-warning.focus {\n color: #fff;\n background-color: #ec971f;\n border-color: #985f0d;\n}\n.btn-warning:hover {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n color: #fff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active:hover,\n.btn-warning.active:hover,\n.open > .dropdown-toggle.btn-warning:hover,\n.btn-warning:active:focus,\n.btn-warning.active:focus,\n.open > .dropdown-toggle.btn-warning:focus,\n.btn-warning:active.focus,\n.btn-warning.active.focus,\n.open > .dropdown-toggle.btn-warning.focus {\n color: #fff;\n background-color: #d58512;\n border-color: #985f0d;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n background-image: none;\n}\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled.focus,\n.btn-warning[disabled].focus,\nfieldset[disabled] .btn-warning.focus {\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning .badge {\n color: #f0ad4e;\n background-color: #fff;\n}\n.btn-danger {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger:focus,\n.btn-danger.focus {\n color: #fff;\n background-color: #c9302c;\n border-color: #761c19;\n}\n.btn-danger:hover {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n color: #fff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active:hover,\n.btn-danger.active:hover,\n.open > .dropdown-toggle.btn-danger:hover,\n.btn-danger:active:focus,\n.btn-danger.active:focus,\n.open > .dropdown-toggle.btn-danger:focus,\n.btn-danger:active.focus,\n.btn-danger.active.focus,\n.open > .dropdown-toggle.btn-danger.focus {\n color: #fff;\n background-color: #ac2925;\n border-color: #761c19;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n background-image: none;\n}\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled.focus,\n.btn-danger[disabled].focus,\nfieldset[disabled] .btn-danger.focus {\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger .badge {\n color: #d9534f;\n background-color: #fff;\n}\n.btn-link {\n color: #337ab7;\n font-weight: normal;\n border-radius: 0;\n}\n.btn-link,\n.btn-link:active,\n.btn-link.active,\n.btn-link[disabled],\nfieldset[disabled] .btn-link {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-link,\n.btn-link:hover,\n.btn-link:focus,\n.btn-link:active {\n border-color: transparent;\n}\n.btn-link:hover,\n.btn-link:focus {\n color: #23527c;\n text-decoration: underline;\n background-color: transparent;\n}\n.btn-link[disabled]:hover,\nfieldset[disabled] .btn-link:hover,\n.btn-link[disabled]:focus,\nfieldset[disabled] .btn-link:focus {\n color: #777777;\n text-decoration: none;\n}\n.btn-lg,\n.btn-group-lg > .btn {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.btn-sm,\n.btn-group-sm > .btn {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-xs,\n.btn-group-xs > .btn {\n padding: 1px 5px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-block {\n display: block;\n width: 100%;\n}\n.btn-block + .btn-block {\n margin-top: 5px;\n}\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n width: 100%;\n}\n.fade {\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n.fade.in {\n opacity: 1;\n}\n.collapse {\n display: none;\n}\n.collapse.in {\n display: block;\n}\ntr.collapse.in {\n display: table-row;\n}\ntbody.collapse.in {\n display: table-row-group;\n}\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n -webkit-transition-property: height, visibility;\n transition-property: height, visibility;\n -webkit-transition-duration: 0.35s;\n transition-duration: 0.35s;\n -webkit-transition-timing-function: ease;\n transition-timing-function: ease;\n}\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: 4px dashed;\n border-top: 4px solid \\9;\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.dropup,\n.dropdown {\n position: relative;\n}\n.dropdown-toggle:focus {\n outline: 0;\n}\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0;\n list-style: none;\n font-size: 14px;\n text-align: left;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n background-clip: padding-box;\n}\n.dropdown-menu.pull-right {\n right: 0;\n left: auto;\n}\n.dropdown-menu .divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.dropdown-menu > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: 1.42857143;\n color: #333333;\n white-space: nowrap;\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n text-decoration: none;\n color: #262626;\n background-color: #f5f5f5;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n color: #fff;\n text-decoration: none;\n outline: 0;\n background-color: #337ab7;\n}\n.dropdown-menu > .disabled > a,\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n color: #777777;\n}\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none;\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n cursor: not-allowed;\n}\n.open > .dropdown-menu {\n display: block;\n}\n.open > a {\n outline: 0;\n}\n.dropdown-menu-right {\n left: auto;\n right: 0;\n}\n.dropdown-menu-left {\n left: 0;\n right: auto;\n}\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: 12px;\n line-height: 1.42857143;\n color: #777777;\n white-space: nowrap;\n}\n.dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: 990;\n}\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n.dropup .caret,\n.navbar-fixed-bottom .dropdown .caret {\n border-top: 0;\n border-bottom: 4px dashed;\n border-bottom: 4px solid \\9;\n content: \"\";\n}\n.dropup .dropdown-menu,\n.navbar-fixed-bottom .dropdown .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 2px;\n}\n@media (min-width: 768px) {\n .navbar-right .dropdown-menu {\n left: auto;\n right: 0;\n }\n .navbar-right .dropdown-menu-left {\n left: 0;\n right: auto;\n }\n}\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n}\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n position: relative;\n float: left;\n}\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover,\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus,\n.btn-group > .btn:active,\n.btn-group-vertical > .btn:active,\n.btn-group > .btn.active,\n.btn-group-vertical > .btn.active {\n z-index: 2;\n}\n.btn-group .btn + .btn,\n.btn-group .btn + .btn-group,\n.btn-group .btn-group + .btn,\n.btn-group .btn-group + .btn-group {\n margin-left: -1px;\n}\n.btn-toolbar {\n margin-left: -5px;\n}\n.btn-toolbar .btn,\n.btn-toolbar .btn-group,\n.btn-toolbar .input-group {\n float: left;\n}\n.btn-toolbar > .btn,\n.btn-toolbar > .btn-group,\n.btn-toolbar > .input-group {\n margin-left: 5px;\n}\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n.btn-group > .btn:first-child {\n margin-left: 0;\n}\n.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n.btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n}\n.btn-group.open .dropdown-toggle {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn-group.open .dropdown-toggle.btn-link {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn .caret {\n margin-left: 0;\n}\n.btn-lg .caret {\n border-width: 5px 5px 0;\n border-bottom-width: 0;\n}\n.dropup .btn-lg .caret {\n border-width: 0 5px 5px;\n}\n.btn-group-vertical > .btn,\n.btn-group-vertical > .btn-group,\n.btn-group-vertical > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n}\n.btn-group-vertical > .btn-group > .btn {\n float: none;\n}\n.btn-group-vertical > .btn + .btn,\n.btn-group-vertical > .btn + .btn-group,\n.btn-group-vertical > .btn-group + .btn,\n.btn-group-vertical > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n}\n.btn-group-vertical > .btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.btn-group-vertical > .btn:first-child:not(:last-child) {\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn:last-child:not(:first-child) {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n}\n.btn-group-justified > .btn,\n.btn-group-justified > .btn-group {\n float: none;\n display: table-cell;\n width: 1%;\n}\n.btn-group-justified > .btn-group .btn {\n width: 100%;\n}\n.btn-group-justified > .btn-group .dropdown-menu {\n left: auto;\n}\n[data-toggle=\"buttons\"] > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn input[type=\"checkbox\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n.input-group {\n position: relative;\n display: table;\n border-collapse: separate;\n}\n.input-group[class*=\"col-\"] {\n float: none;\n padding-left: 0;\n padding-right: 0;\n}\n.input-group .form-control {\n position: relative;\n z-index: 2;\n float: left;\n width: 100%;\n margin-bottom: 0;\n}\n.input-group .form-control:focus {\n z-index: 3;\n}\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\nselect.input-group-lg > .form-control,\nselect.input-group-lg > .input-group-addon,\nselect.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-group-lg > .form-control,\ntextarea.input-group-lg > .input-group-addon,\ntextarea.input-group-lg > .input-group-btn > .btn,\nselect[multiple].input-group-lg > .form-control,\nselect[multiple].input-group-lg > .input-group-addon,\nselect[multiple].input-group-lg > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-group-sm > .form-control,\nselect.input-group-sm > .input-group-addon,\nselect.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-group-sm > .form-control,\ntextarea.input-group-sm > .input-group-addon,\ntextarea.input-group-sm > .input-group-btn > .btn,\nselect[multiple].input-group-sm > .form-control,\nselect[multiple].input-group-sm > .input-group-addon,\nselect[multiple].input-group-sm > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n}\n.input-group-addon:not(:first-child):not(:last-child),\n.input-group-btn:not(:first-child):not(:last-child),\n.input-group .form-control:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle;\n}\n.input-group-addon {\n padding: 6px 12px;\n font-size: 14px;\n font-weight: normal;\n line-height: 1;\n color: #555555;\n text-align: center;\n background-color: #eeeeee;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n.input-group-addon.input-sm {\n padding: 5px 10px;\n font-size: 12px;\n border-radius: 3px;\n}\n.input-group-addon.input-lg {\n padding: 10px 16px;\n font-size: 18px;\n border-radius: 6px;\n}\n.input-group-addon input[type=\"radio\"],\n.input-group-addon input[type=\"checkbox\"] {\n margin-top: 0;\n}\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n.input-group-btn {\n position: relative;\n font-size: 0;\n white-space: nowrap;\n}\n.input-group-btn > .btn {\n position: relative;\n}\n.input-group-btn > .btn + .btn {\n margin-left: -1px;\n}\n.input-group-btn > .btn:hover,\n.input-group-btn > .btn:focus,\n.input-group-btn > .btn:active {\n z-index: 2;\n}\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group {\n margin-right: -1px;\n}\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group {\n z-index: 2;\n margin-left: -1px;\n}\n.nav {\n margin-bottom: 0;\n padding-left: 0;\n list-style: none;\n}\n.nav > li {\n position: relative;\n display: block;\n}\n.nav > li > a {\n position: relative;\n display: block;\n padding: 10px 15px;\n}\n.nav > li > a:hover,\n.nav > li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.nav > li.disabled > a {\n color: #777777;\n}\n.nav > li.disabled > a:hover,\n.nav > li.disabled > a:focus {\n color: #777777;\n text-decoration: none;\n background-color: transparent;\n cursor: not-allowed;\n}\n.nav .open > a,\n.nav .open > a:hover,\n.nav .open > a:focus {\n background-color: #eeeeee;\n border-color: #337ab7;\n}\n.nav .nav-divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.nav > li > a > img {\n max-width: none;\n}\n.nav-tabs {\n border-bottom: 1px solid #ddd;\n}\n.nav-tabs > li {\n float: left;\n margin-bottom: -1px;\n}\n.nav-tabs > li > a {\n margin-right: 2px;\n line-height: 1.42857143;\n border: 1px solid transparent;\n border-radius: 4px 4px 0 0;\n}\n.nav-tabs > li > a:hover {\n border-color: #eeeeee #eeeeee #ddd;\n}\n.nav-tabs > li.active > a,\n.nav-tabs > li.active > a:hover,\n.nav-tabs > li.active > a:focus {\n color: #555555;\n background-color: #fff;\n border: 1px solid #ddd;\n border-bottom-color: transparent;\n cursor: default;\n}\n.nav-tabs.nav-justified {\n width: 100%;\n border-bottom: 0;\n}\n.nav-tabs.nav-justified > li {\n float: none;\n}\n.nav-tabs.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-tabs.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-tabs.nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs.nav-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs.nav-justified > .active > a,\n.nav-tabs.nav-justified > .active > a:hover,\n.nav-tabs.nav-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs.nav-justified > .active > a,\n .nav-tabs.nav-justified > .active > a:hover,\n .nav-tabs.nav-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.nav-pills > li {\n float: left;\n}\n.nav-pills > li > a {\n border-radius: 4px;\n}\n.nav-pills > li + li {\n margin-left: 2px;\n}\n.nav-pills > li.active > a,\n.nav-pills > li.active > a:hover,\n.nav-pills > li.active > a:focus {\n color: #fff;\n background-color: #337ab7;\n}\n.nav-stacked > li {\n float: none;\n}\n.nav-stacked > li + li {\n margin-top: 2px;\n margin-left: 0;\n}\n.nav-justified {\n width: 100%;\n}\n.nav-justified > li {\n float: none;\n}\n.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs-justified {\n border-bottom: 0;\n}\n.nav-tabs-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs-justified > .active > a,\n.nav-tabs-justified > .active > a:hover,\n.nav-tabs-justified > .active > a:focus {\n border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n .nav-tabs-justified > li > a {\n border-bottom: 1px solid #ddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs-justified > .active > a,\n .nav-tabs-justified > .active > a:hover,\n .nav-tabs-justified > .active > a:focus {\n border-bottom-color: #fff;\n }\n}\n.tab-content > .tab-pane {\n display: none;\n}\n.tab-content > .active {\n display: block;\n}\n.nav-tabs .dropdown-menu {\n margin-top: -1px;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar {\n position: relative;\n min-height: 50px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n}\n@media (min-width: 768px) {\n .navbar {\n border-radius: 4px;\n }\n}\n@media (min-width: 768px) {\n .navbar-header {\n float: left;\n }\n}\n.navbar-collapse {\n overflow-x: visible;\n padding-right: 15px;\n padding-left: 15px;\n border-top: 1px solid transparent;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);\n -webkit-overflow-scrolling: touch;\n}\n.navbar-collapse.in {\n overflow-y: auto;\n}\n@media (min-width: 768px) {\n .navbar-collapse {\n width: auto;\n border-top: 0;\n box-shadow: none;\n }\n .navbar-collapse.collapse {\n display: block !important;\n height: auto !important;\n padding-bottom: 0;\n overflow: visible !important;\n }\n .navbar-collapse.in {\n overflow-y: visible;\n }\n .navbar-fixed-top .navbar-collapse,\n .navbar-static-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n padding-left: 0;\n padding-right: 0;\n }\n}\n.navbar-fixed-top .navbar-collapse,\n.navbar-fixed-bottom .navbar-collapse {\n max-height: 340px;\n}\n@media (max-device-width: 480px) and (orientation: landscape) {\n .navbar-fixed-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n max-height: 200px;\n }\n}\n.container > .navbar-header,\n.container-fluid > .navbar-header,\n.container > .navbar-collapse,\n.container-fluid > .navbar-collapse {\n margin-right: -15px;\n margin-left: -15px;\n}\n@media (min-width: 768px) {\n .container > .navbar-header,\n .container-fluid > .navbar-header,\n .container > .navbar-collapse,\n .container-fluid > .navbar-collapse {\n margin-right: 0;\n margin-left: 0;\n }\n}\n.navbar-static-top {\n z-index: 1000;\n border-width: 0 0 1px;\n}\n@media (min-width: 768px) {\n .navbar-static-top {\n border-radius: 0;\n }\n}\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: 1030;\n}\n@media (min-width: 768px) {\n .navbar-fixed-top,\n .navbar-fixed-bottom {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0;\n border-width: 1px 0 0;\n}\n.navbar-brand {\n float: left;\n padding: 15px 15px;\n font-size: 18px;\n line-height: 20px;\n height: 50px;\n}\n.navbar-brand:hover,\n.navbar-brand:focus {\n text-decoration: none;\n}\n.navbar-brand > img {\n display: block;\n}\n@media (min-width: 768px) {\n .navbar > .container .navbar-brand,\n .navbar > .container-fluid .navbar-brand {\n margin-left: -15px;\n }\n}\n.navbar-toggle {\n position: relative;\n float: right;\n margin-right: 15px;\n padding: 9px 10px;\n margin-top: 8px;\n margin-bottom: 8px;\n background-color: transparent;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.navbar-toggle:focus {\n outline: 0;\n}\n.navbar-toggle .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n}\n.navbar-toggle .icon-bar + .icon-bar {\n margin-top: 4px;\n}\n@media (min-width: 768px) {\n .navbar-toggle {\n display: none;\n }\n}\n.navbar-nav {\n margin: 7.5px -15px;\n}\n.navbar-nav > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: 20px;\n}\n@media (max-width: 767px) {\n .navbar-nav .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n box-shadow: none;\n }\n .navbar-nav .open .dropdown-menu > li > a,\n .navbar-nav .open .dropdown-menu .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n .navbar-nav .open .dropdown-menu > li > a {\n line-height: 20px;\n }\n .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-nav .open .dropdown-menu > li > a:focus {\n background-image: none;\n }\n}\n@media (min-width: 768px) {\n .navbar-nav {\n float: left;\n margin: 0;\n }\n .navbar-nav > li {\n float: left;\n }\n .navbar-nav > li > a {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n}\n.navbar-form {\n margin-left: -15px;\n margin-right: -15px;\n padding: 10px 15px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n margin-top: 8px;\n margin-bottom: 8px;\n}\n@media (min-width: 768px) {\n .navbar-form .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .navbar-form .form-control-static {\n display: inline-block;\n }\n .navbar-form .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .navbar-form .input-group .input-group-addon,\n .navbar-form .input-group .input-group-btn,\n .navbar-form .input-group .form-control {\n width: auto;\n }\n .navbar-form .input-group > .form-control {\n width: 100%;\n }\n .navbar-form .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio,\n .navbar-form .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio label,\n .navbar-form .checkbox label {\n padding-left: 0;\n }\n .navbar-form .radio input[type=\"radio\"],\n .navbar-form .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .navbar-form .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n@media (max-width: 767px) {\n .navbar-form .form-group {\n margin-bottom: 5px;\n }\n .navbar-form .form-group:last-child {\n margin-bottom: 0;\n }\n}\n@media (min-width: 768px) {\n .navbar-form {\n width: auto;\n border: 0;\n margin-left: 0;\n margin-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n}\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n margin-bottom: 0;\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.navbar-btn {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.navbar-btn.btn-sm {\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.navbar-btn.btn-xs {\n margin-top: 14px;\n margin-bottom: 14px;\n}\n.navbar-text {\n margin-top: 15px;\n margin-bottom: 15px;\n}\n@media (min-width: 768px) {\n .navbar-text {\n float: left;\n margin-left: 15px;\n margin-right: 15px;\n }\n}\n@media (min-width: 768px) {\n .navbar-left {\n float: left !important;\n }\n .navbar-right {\n float: right !important;\n margin-right: -15px;\n }\n .navbar-right ~ .navbar-right {\n margin-right: 0;\n }\n}\n.navbar-default {\n background-color: #f8f8f8;\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-brand {\n color: #777;\n}\n.navbar-default .navbar-brand:hover,\n.navbar-default .navbar-brand:focus {\n color: #5e5e5e;\n background-color: transparent;\n}\n.navbar-default .navbar-text {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a {\n color: #777;\n}\n.navbar-default .navbar-nav > li > a:hover,\n.navbar-default .navbar-nav > li > a:focus {\n color: #333;\n background-color: transparent;\n}\n.navbar-default .navbar-nav > .active > a,\n.navbar-default .navbar-nav > .active > a:hover,\n.navbar-default .navbar-nav > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .disabled > a,\n.navbar-default .navbar-nav > .disabled > a:hover,\n.navbar-default .navbar-nav > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n}\n.navbar-default .navbar-toggle {\n border-color: #ddd;\n}\n.navbar-default .navbar-toggle:hover,\n.navbar-default .navbar-toggle:focus {\n background-color: #ddd;\n}\n.navbar-default .navbar-toggle .icon-bar {\n background-color: #888;\n}\n.navbar-default .navbar-collapse,\n.navbar-default .navbar-form {\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .open > a:hover,\n.navbar-default .navbar-nav > .open > a:focus {\n background-color: #e7e7e7;\n color: #555;\n}\n@media (max-width: 767px) {\n .navbar-default .navbar-nav .open .dropdown-menu > li > a {\n color: #777;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #333;\n background-color: transparent;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #555;\n background-color: #e7e7e7;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #ccc;\n background-color: transparent;\n }\n}\n.navbar-default .navbar-link {\n color: #777;\n}\n.navbar-default .navbar-link:hover {\n color: #333;\n}\n.navbar-default .btn-link {\n color: #777;\n}\n.navbar-default .btn-link:hover,\n.navbar-default .btn-link:focus {\n color: #333;\n}\n.navbar-default .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-default .btn-link:hover,\n.navbar-default .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-default .btn-link:focus {\n color: #ccc;\n}\n.navbar-inverse {\n background-color: #222;\n border-color: #080808;\n}\n.navbar-inverse .navbar-brand {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-brand:hover,\n.navbar-inverse .navbar-brand:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-text {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a:hover,\n.navbar-inverse .navbar-nav > li > a:focus {\n color: #fff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-nav > .active > a,\n.navbar-inverse .navbar-nav > .active > a:hover,\n.navbar-inverse .navbar-nav > .active > a:focus {\n color: #fff;\n background-color: #080808;\n}\n.navbar-inverse .navbar-nav > .disabled > a,\n.navbar-inverse .navbar-nav > .disabled > a:hover,\n.navbar-inverse .navbar-nav > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n}\n.navbar-inverse .navbar-toggle {\n border-color: #333;\n}\n.navbar-inverse .navbar-toggle:hover,\n.navbar-inverse .navbar-toggle:focus {\n background-color: #333;\n}\n.navbar-inverse .navbar-toggle .icon-bar {\n background-color: #fff;\n}\n.navbar-inverse .navbar-collapse,\n.navbar-inverse .navbar-form {\n border-color: #101010;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .open > a:hover,\n.navbar-inverse .navbar-nav > .open > a:focus {\n background-color: #080808;\n color: #fff;\n}\n@media (max-width: 767px) {\n .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {\n border-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu .divider {\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {\n color: #9d9d9d;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #fff;\n background-color: transparent;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #fff;\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #444;\n background-color: transparent;\n }\n}\n.navbar-inverse .navbar-link {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-link:hover {\n color: #fff;\n}\n.navbar-inverse .btn-link {\n color: #9d9d9d;\n}\n.navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link:focus {\n color: #fff;\n}\n.navbar-inverse .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-inverse .btn-link:focus {\n color: #444;\n}\n.breadcrumb {\n padding: 8px 15px;\n margin-bottom: 20px;\n list-style: none;\n background-color: #f5f5f5;\n border-radius: 4px;\n}\n.breadcrumb > li {\n display: inline-block;\n}\n.breadcrumb > li + li:before {\n content: \"/\\00a0\";\n padding: 0 5px;\n color: #ccc;\n}\n.breadcrumb > .active {\n color: #777777;\n}\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n border-radius: 4px;\n}\n.pagination > li {\n display: inline;\n}\n.pagination > li > a,\n.pagination > li > span {\n position: relative;\n float: left;\n padding: 6px 12px;\n line-height: 1.42857143;\n text-decoration: none;\n color: #337ab7;\n background-color: #fff;\n border: 1px solid #ddd;\n margin-left: -1px;\n}\n.pagination > li:first-child > a,\n.pagination > li:first-child > span {\n margin-left: 0;\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n}\n.pagination > li:last-child > a,\n.pagination > li:last-child > span {\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n}\n.pagination > li > a:hover,\n.pagination > li > span:hover,\n.pagination > li > a:focus,\n.pagination > li > span:focus {\n z-index: 2;\n color: #23527c;\n background-color: #eeeeee;\n border-color: #ddd;\n}\n.pagination > .active > a,\n.pagination > .active > span,\n.pagination > .active > a:hover,\n.pagination > .active > span:hover,\n.pagination > .active > a:focus,\n.pagination > .active > span:focus {\n z-index: 3;\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n cursor: default;\n}\n.pagination > .disabled > span,\n.pagination > .disabled > span:hover,\n.pagination > .disabled > span:focus,\n.pagination > .disabled > a,\n.pagination > .disabled > a:hover,\n.pagination > .disabled > a:focus {\n color: #777777;\n background-color: #fff;\n border-color: #ddd;\n cursor: not-allowed;\n}\n.pagination-lg > li > a,\n.pagination-lg > li > span {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n}\n.pagination-lg > li:first-child > a,\n.pagination-lg > li:first-child > span {\n border-bottom-left-radius: 6px;\n border-top-left-radius: 6px;\n}\n.pagination-lg > li:last-child > a,\n.pagination-lg > li:last-child > span {\n border-bottom-right-radius: 6px;\n border-top-right-radius: 6px;\n}\n.pagination-sm > li > a,\n.pagination-sm > li > span {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n}\n.pagination-sm > li:first-child > a,\n.pagination-sm > li:first-child > span {\n border-bottom-left-radius: 3px;\n border-top-left-radius: 3px;\n}\n.pagination-sm > li:last-child > a,\n.pagination-sm > li:last-child > span {\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n}\n.pager {\n padding-left: 0;\n margin: 20px 0;\n list-style: none;\n text-align: center;\n}\n.pager li {\n display: inline;\n}\n.pager li > a,\n.pager li > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 15px;\n}\n.pager li > a:hover,\n.pager li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.pager .next > a,\n.pager .next > span {\n float: right;\n}\n.pager .previous > a,\n.pager .previous > span {\n float: left;\n}\n.pager .disabled > a,\n.pager .disabled > a:hover,\n.pager .disabled > a:focus,\n.pager .disabled > span {\n color: #777777;\n background-color: #fff;\n cursor: not-allowed;\n}\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n}\na.label:hover,\na.label:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.label:empty {\n display: none;\n}\n.btn .label {\n position: relative;\n top: -1px;\n}\n.label-default {\n background-color: #777777;\n}\n.label-default[href]:hover,\n.label-default[href]:focus {\n background-color: #5e5e5e;\n}\n.label-primary {\n background-color: #337ab7;\n}\n.label-primary[href]:hover,\n.label-primary[href]:focus {\n background-color: #286090;\n}\n.label-success {\n background-color: #5cb85c;\n}\n.label-success[href]:hover,\n.label-success[href]:focus {\n background-color: #449d44;\n}\n.label-info {\n background-color: #5bc0de;\n}\n.label-info[href]:hover,\n.label-info[href]:focus {\n background-color: #31b0d5;\n}\n.label-warning {\n background-color: #f0ad4e;\n}\n.label-warning[href]:hover,\n.label-warning[href]:focus {\n background-color: #ec971f;\n}\n.label-danger {\n background-color: #d9534f;\n}\n.label-danger[href]:hover,\n.label-danger[href]:focus {\n background-color: #c9302c;\n}\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: 12px;\n font-weight: bold;\n color: #fff;\n line-height: 1;\n vertical-align: middle;\n white-space: nowrap;\n text-align: center;\n background-color: #777777;\n border-radius: 10px;\n}\n.badge:empty {\n display: none;\n}\n.btn .badge {\n position: relative;\n top: -1px;\n}\n.btn-xs .badge,\n.btn-group-xs > .btn .badge {\n top: 0;\n padding: 1px 5px;\n}\na.badge:hover,\na.badge:focus {\n color: #fff;\n text-decoration: none;\n cursor: pointer;\n}\n.list-group-item.active > .badge,\n.nav-pills > .active > a > .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.list-group-item > .badge {\n float: right;\n}\n.list-group-item > .badge + .badge {\n margin-right: 5px;\n}\n.nav-pills > li > a > .badge {\n margin-left: 3px;\n}\n.jumbotron {\n padding-top: 30px;\n padding-bottom: 30px;\n margin-bottom: 30px;\n color: inherit;\n background-color: #eeeeee;\n}\n.jumbotron h1,\n.jumbotron .h1 {\n color: inherit;\n}\n.jumbotron p {\n margin-bottom: 15px;\n font-size: 21px;\n font-weight: 200;\n}\n.jumbotron > hr {\n border-top-color: #d5d5d5;\n}\n.container .jumbotron,\n.container-fluid .jumbotron {\n border-radius: 6px;\n padding-left: 15px;\n padding-right: 15px;\n}\n.jumbotron .container {\n max-width: 100%;\n}\n@media screen and (min-width: 768px) {\n .jumbotron {\n padding-top: 48px;\n padding-bottom: 48px;\n }\n .container .jumbotron,\n .container-fluid .jumbotron {\n padding-left: 60px;\n padding-right: 60px;\n }\n .jumbotron h1,\n .jumbotron .h1 {\n font-size: 63px;\n }\n}\n.thumbnail {\n display: block;\n padding: 4px;\n margin-bottom: 20px;\n line-height: 1.42857143;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n -webkit-transition: border 0.2s ease-in-out;\n -o-transition: border 0.2s ease-in-out;\n transition: border 0.2s ease-in-out;\n}\n.thumbnail > img,\n.thumbnail a > img {\n margin-left: auto;\n margin-right: auto;\n}\na.thumbnail:hover,\na.thumbnail:focus,\na.thumbnail.active {\n border-color: #337ab7;\n}\n.thumbnail .caption {\n padding: 9px;\n color: #333333;\n}\n.alert {\n padding: 15px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.alert h4 {\n margin-top: 0;\n color: inherit;\n}\n.alert .alert-link {\n font-weight: bold;\n}\n.alert > p,\n.alert > ul {\n margin-bottom: 0;\n}\n.alert > p + p {\n margin-top: 5px;\n}\n.alert-dismissable,\n.alert-dismissible {\n padding-right: 35px;\n}\n.alert-dismissable .close,\n.alert-dismissible .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n}\n.alert-success {\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #3c763d;\n}\n.alert-success hr {\n border-top-color: #c9e2b3;\n}\n.alert-success .alert-link {\n color: #2b542c;\n}\n.alert-info {\n background-color: #d9edf7;\n border-color: #bce8f1;\n color: #31708f;\n}\n.alert-info hr {\n border-top-color: #a6e1ec;\n}\n.alert-info .alert-link {\n color: #245269;\n}\n.alert-warning {\n background-color: #fcf8e3;\n border-color: #faebcc;\n color: #8a6d3b;\n}\n.alert-warning hr {\n border-top-color: #f7e1b5;\n}\n.alert-warning .alert-link {\n color: #66512c;\n}\n.alert-danger {\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a94442;\n}\n.alert-danger hr {\n border-top-color: #e4b9c0;\n}\n.alert-danger .alert-link {\n color: #843534;\n}\n@-webkit-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.progress {\n overflow: hidden;\n height: 20px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n}\n.progress-bar {\n float: left;\n width: 0%;\n height: 100%;\n font-size: 12px;\n line-height: 20px;\n color: #fff;\n text-align: center;\n background-color: #337ab7;\n -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n -webkit-transition: width 0.6s ease;\n -o-transition: width 0.6s ease;\n transition: width 0.6s ease;\n}\n.progress-striped .progress-bar,\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-size: 40px 40px;\n}\n.progress.active .progress-bar,\n.progress-bar.active {\n -webkit-animation: progress-bar-stripes 2s linear infinite;\n -o-animation: progress-bar-stripes 2s linear infinite;\n animation: progress-bar-stripes 2s linear infinite;\n}\n.progress-bar-success {\n background-color: #5cb85c;\n}\n.progress-striped .progress-bar-success {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-info {\n background-color: #5bc0de;\n}\n.progress-striped .progress-bar-info {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-warning {\n background-color: #f0ad4e;\n}\n.progress-striped .progress-bar-warning {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-danger {\n background-color: #d9534f;\n}\n.progress-striped .progress-bar-danger {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.media {\n margin-top: 15px;\n}\n.media:first-child {\n margin-top: 0;\n}\n.media,\n.media-body {\n zoom: 1;\n overflow: hidden;\n}\n.media-body {\n width: 10000px;\n}\n.media-object {\n display: block;\n}\n.media-object.img-thumbnail {\n max-width: none;\n}\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n.media-middle {\n vertical-align: middle;\n}\n.media-bottom {\n vertical-align: bottom;\n}\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n.list-group {\n margin-bottom: 20px;\n padding-left: 0;\n}\n.list-group-item {\n position: relative;\n display: block;\n padding: 10px 15px;\n margin-bottom: -1px;\n background-color: #fff;\n border: 1px solid #ddd;\n}\n.list-group-item:first-child {\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n}\n.list-group-item:last-child {\n margin-bottom: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\na.list-group-item,\nbutton.list-group-item {\n color: #555;\n}\na.list-group-item .list-group-item-heading,\nbutton.list-group-item .list-group-item-heading {\n color: #333;\n}\na.list-group-item:hover,\nbutton.list-group-item:hover,\na.list-group-item:focus,\nbutton.list-group-item:focus {\n text-decoration: none;\n color: #555;\n background-color: #f5f5f5;\n}\nbutton.list-group-item {\n width: 100%;\n text-align: left;\n}\n.list-group-item.disabled,\n.list-group-item.disabled:hover,\n.list-group-item.disabled:focus {\n background-color: #eeeeee;\n color: #777777;\n cursor: not-allowed;\n}\n.list-group-item.disabled .list-group-item-heading,\n.list-group-item.disabled:hover .list-group-item-heading,\n.list-group-item.disabled:focus .list-group-item-heading {\n color: inherit;\n}\n.list-group-item.disabled .list-group-item-text,\n.list-group-item.disabled:hover .list-group-item-text,\n.list-group-item.disabled:focus .list-group-item-text {\n color: #777777;\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n z-index: 2;\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.list-group-item.active .list-group-item-heading,\n.list-group-item.active:hover .list-group-item-heading,\n.list-group-item.active:focus .list-group-item-heading,\n.list-group-item.active .list-group-item-heading > small,\n.list-group-item.active:hover .list-group-item-heading > small,\n.list-group-item.active:focus .list-group-item-heading > small,\n.list-group-item.active .list-group-item-heading > .small,\n.list-group-item.active:hover .list-group-item-heading > .small,\n.list-group-item.active:focus .list-group-item-heading > .small {\n color: inherit;\n}\n.list-group-item.active .list-group-item-text,\n.list-group-item.active:hover .list-group-item-text,\n.list-group-item.active:focus .list-group-item-text {\n color: #c7ddef;\n}\n.list-group-item-success {\n color: #3c763d;\n background-color: #dff0d8;\n}\na.list-group-item-success,\nbutton.list-group-item-success {\n color: #3c763d;\n}\na.list-group-item-success .list-group-item-heading,\nbutton.list-group-item-success .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-success:hover,\nbutton.list-group-item-success:hover,\na.list-group-item-success:focus,\nbutton.list-group-item-success:focus {\n color: #3c763d;\n background-color: #d0e9c6;\n}\na.list-group-item-success.active,\nbutton.list-group-item-success.active,\na.list-group-item-success.active:hover,\nbutton.list-group-item-success.active:hover,\na.list-group-item-success.active:focus,\nbutton.list-group-item-success.active:focus {\n color: #fff;\n background-color: #3c763d;\n border-color: #3c763d;\n}\n.list-group-item-info {\n color: #31708f;\n background-color: #d9edf7;\n}\na.list-group-item-info,\nbutton.list-group-item-info {\n color: #31708f;\n}\na.list-group-item-info .list-group-item-heading,\nbutton.list-group-item-info .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-info:hover,\nbutton.list-group-item-info:hover,\na.list-group-item-info:focus,\nbutton.list-group-item-info:focus {\n color: #31708f;\n background-color: #c4e3f3;\n}\na.list-group-item-info.active,\nbutton.list-group-item-info.active,\na.list-group-item-info.active:hover,\nbutton.list-group-item-info.active:hover,\na.list-group-item-info.active:focus,\nbutton.list-group-item-info.active:focus {\n color: #fff;\n background-color: #31708f;\n border-color: #31708f;\n}\n.list-group-item-warning {\n color: #8a6d3b;\n background-color: #fcf8e3;\n}\na.list-group-item-warning,\nbutton.list-group-item-warning {\n color: #8a6d3b;\n}\na.list-group-item-warning .list-group-item-heading,\nbutton.list-group-item-warning .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-warning:hover,\nbutton.list-group-item-warning:hover,\na.list-group-item-warning:focus,\nbutton.list-group-item-warning:focus {\n color: #8a6d3b;\n background-color: #faf2cc;\n}\na.list-group-item-warning.active,\nbutton.list-group-item-warning.active,\na.list-group-item-warning.active:hover,\nbutton.list-group-item-warning.active:hover,\na.list-group-item-warning.active:focus,\nbutton.list-group-item-warning.active:focus {\n color: #fff;\n background-color: #8a6d3b;\n border-color: #8a6d3b;\n}\n.list-group-item-danger {\n color: #a94442;\n background-color: #f2dede;\n}\na.list-group-item-danger,\nbutton.list-group-item-danger {\n color: #a94442;\n}\na.list-group-item-danger .list-group-item-heading,\nbutton.list-group-item-danger .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-danger:hover,\nbutton.list-group-item-danger:hover,\na.list-group-item-danger:focus,\nbutton.list-group-item-danger:focus {\n color: #a94442;\n background-color: #ebcccc;\n}\na.list-group-item-danger.active,\nbutton.list-group-item-danger.active,\na.list-group-item-danger.active:hover,\nbutton.list-group-item-danger.active:hover,\na.list-group-item-danger.active:focus,\nbutton.list-group-item-danger.active:focus {\n color: #fff;\n background-color: #a94442;\n border-color: #a94442;\n}\n.list-group-item-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.list-group-item-text {\n margin-bottom: 0;\n line-height: 1.3;\n}\n.panel {\n margin-bottom: 20px;\n background-color: #fff;\n border: 1px solid transparent;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.panel-body {\n padding: 15px;\n}\n.panel-heading {\n padding: 10px 15px;\n border-bottom: 1px solid transparent;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel-heading > .dropdown .dropdown-toggle {\n color: inherit;\n}\n.panel-title {\n margin-top: 0;\n margin-bottom: 0;\n font-size: 16px;\n color: inherit;\n}\n.panel-title > a,\n.panel-title > small,\n.panel-title > .small,\n.panel-title > small > a,\n.panel-title > .small > a {\n color: inherit;\n}\n.panel-footer {\n padding: 10px 15px;\n background-color: #f5f5f5;\n border-top: 1px solid #ddd;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .list-group,\n.panel > .panel-collapse > .list-group {\n margin-bottom: 0;\n}\n.panel > .list-group .list-group-item,\n.panel > .panel-collapse > .list-group .list-group-item {\n border-width: 1px 0;\n border-radius: 0;\n}\n.panel > .list-group:first-child .list-group-item:first-child,\n.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {\n border-top: 0;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .list-group:last-child .list-group-item:last-child,\n.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {\n border-bottom: 0;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.panel-heading + .list-group .list-group-item:first-child {\n border-top-width: 0;\n}\n.list-group + .panel-footer {\n border-top-width: 0;\n}\n.panel > .table,\n.panel > .table-responsive > .table,\n.panel > .panel-collapse > .table {\n margin-bottom: 0;\n}\n.panel > .table caption,\n.panel > .table-responsive > .table caption,\n.panel > .panel-collapse > .table caption {\n padding-left: 15px;\n padding-right: 15px;\n}\n.panel > .table:first-child,\n.panel > .table-responsive:first-child > .table:first-child {\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {\n border-top-right-radius: 3px;\n}\n.panel > .table:last-child,\n.panel > .table-responsive:last-child > .table:last-child {\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {\n border-bottom-right-radius: 3px;\n}\n.panel > .panel-body + .table,\n.panel > .panel-body + .table-responsive,\n.panel > .table + .panel-body,\n.panel > .table-responsive + .panel-body {\n border-top: 1px solid #ddd;\n}\n.panel > .table > tbody:first-child > tr:first-child th,\n.panel > .table > tbody:first-child > tr:first-child td {\n border-top: 0;\n}\n.panel > .table-bordered,\n.panel > .table-responsive > .table-bordered {\n border: 0;\n}\n.panel > .table-bordered > thead > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,\n.panel > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-bordered > thead > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,\n.panel > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-bordered > tfoot > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n}\n.panel > .table-bordered > thead > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,\n.panel > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-bordered > thead > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,\n.panel > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-bordered > tfoot > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n}\n.panel > .table-bordered > thead > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,\n.panel > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-bordered > thead > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,\n.panel > .table-bordered > tbody > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {\n border-bottom: 0;\n}\n.panel > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-bordered > tfoot > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {\n border-bottom: 0;\n}\n.panel > .table-responsive {\n border: 0;\n margin-bottom: 0;\n}\n.panel-group {\n margin-bottom: 20px;\n}\n.panel-group .panel {\n margin-bottom: 0;\n border-radius: 4px;\n}\n.panel-group .panel + .panel {\n margin-top: 5px;\n}\n.panel-group .panel-heading {\n border-bottom: 0;\n}\n.panel-group .panel-heading + .panel-collapse > .panel-body,\n.panel-group .panel-heading + .panel-collapse > .list-group {\n border-top: 1px solid #ddd;\n}\n.panel-group .panel-footer {\n border-top: 0;\n}\n.panel-group .panel-footer + .panel-collapse .panel-body {\n border-bottom: 1px solid #ddd;\n}\n.panel-default {\n border-color: #ddd;\n}\n.panel-default > .panel-heading {\n color: #333333;\n background-color: #f5f5f5;\n border-color: #ddd;\n}\n.panel-default > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ddd;\n}\n.panel-default > .panel-heading .badge {\n color: #f5f5f5;\n background-color: #333333;\n}\n.panel-default > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ddd;\n}\n.panel-primary {\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading {\n color: #fff;\n background-color: #337ab7;\n border-color: #337ab7;\n}\n.panel-primary > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #337ab7;\n}\n.panel-primary > .panel-heading .badge {\n color: #337ab7;\n background-color: #fff;\n}\n.panel-primary > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #337ab7;\n}\n.panel-success {\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading {\n color: #3c763d;\n background-color: #dff0d8;\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #d6e9c6;\n}\n.panel-success > .panel-heading .badge {\n color: #dff0d8;\n background-color: #3c763d;\n}\n.panel-success > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #d6e9c6;\n}\n.panel-info {\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading {\n color: #31708f;\n background-color: #d9edf7;\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #bce8f1;\n}\n.panel-info > .panel-heading .badge {\n color: #d9edf7;\n background-color: #31708f;\n}\n.panel-info > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #bce8f1;\n}\n.panel-warning {\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading {\n color: #8a6d3b;\n background-color: #fcf8e3;\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #faebcc;\n}\n.panel-warning > .panel-heading .badge {\n color: #fcf8e3;\n background-color: #8a6d3b;\n}\n.panel-warning > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #faebcc;\n}\n.panel-danger {\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading {\n color: #a94442;\n background-color: #f2dede;\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ebccd1;\n}\n.panel-danger > .panel-heading .badge {\n color: #f2dede;\n background-color: #a94442;\n}\n.panel-danger > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ebccd1;\n}\n.embed-responsive {\n position: relative;\n display: block;\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.embed-responsive .embed-responsive-item,\n.embed-responsive iframe,\n.embed-responsive embed,\n.embed-responsive object,\n.embed-responsive video {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n border: 0;\n}\n.embed-responsive-16by9 {\n padding-bottom: 56.25%;\n}\n.embed-responsive-4by3 {\n padding-bottom: 75%;\n}\n.well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border: 1px solid #e3e3e3;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.well blockquote {\n border-color: #ddd;\n border-color: rgba(0, 0, 0, 0.15);\n}\n.well-lg {\n padding: 24px;\n border-radius: 6px;\n}\n.well-sm {\n padding: 9px;\n border-radius: 3px;\n}\n.close {\n float: right;\n font-size: 21px;\n font-weight: bold;\n line-height: 1;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: 0.2;\n filter: alpha(opacity=20);\n}\n.close:hover,\n.close:focus {\n color: #000;\n text-decoration: none;\n cursor: pointer;\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\nbutton.close {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n}\n.modal-open {\n overflow: hidden;\n}\n.modal {\n display: none;\n overflow: hidden;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1050;\n -webkit-overflow-scrolling: touch;\n outline: 0;\n}\n.modal.fade .modal-dialog {\n -webkit-transform: translate(0, -25%);\n -ms-transform: translate(0, -25%);\n -o-transform: translate(0, -25%);\n transform: translate(0, -25%);\n -webkit-transition: -webkit-transform 0.3s ease-out;\n -moz-transition: -moz-transform 0.3s ease-out;\n -o-transition: -o-transform 0.3s ease-out;\n transition: transform 0.3s ease-out;\n}\n.modal.in .modal-dialog {\n -webkit-transform: translate(0, 0);\n -ms-transform: translate(0, 0);\n -o-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n}\n.modal-content {\n position: relative;\n background-color: #fff;\n border: 1px solid #999;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n background-clip: padding-box;\n outline: 0;\n}\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1040;\n background-color: #000;\n}\n.modal-backdrop.fade {\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.modal-backdrop.in {\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\n.modal-header {\n padding: 15px;\n border-bottom: 1px solid #e5e5e5;\n}\n.modal-header .close {\n margin-top: -2px;\n}\n.modal-title {\n margin: 0;\n line-height: 1.42857143;\n}\n.modal-body {\n position: relative;\n padding: 15px;\n}\n.modal-footer {\n padding: 15px;\n text-align: right;\n border-top: 1px solid #e5e5e5;\n}\n.modal-footer .btn + .btn {\n margin-left: 5px;\n margin-bottom: 0;\n}\n.modal-footer .btn-group .btn + .btn {\n margin-left: -1px;\n}\n.modal-footer .btn-block + .btn-block {\n margin-left: 0;\n}\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n@media (min-width: 768px) {\n .modal-dialog {\n width: 600px;\n margin: 30px auto;\n }\n .modal-content {\n -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n }\n .modal-sm {\n width: 300px;\n }\n}\n@media (min-width: 992px) {\n .modal-lg {\n width: 900px;\n }\n}\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n font-size: 12px;\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.tooltip.in {\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.tooltip.top {\n margin-top: -3px;\n padding: 5px 0;\n}\n.tooltip.right {\n margin-left: 3px;\n padding: 0 5px;\n}\n.tooltip.bottom {\n margin-top: 3px;\n padding: 5px 0;\n}\n.tooltip.left {\n margin-left: -3px;\n padding: 0 5px;\n}\n.tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #fff;\n text-align: center;\n background-color: #000;\n border-radius: 4px;\n}\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-left .tooltip-arrow {\n bottom: 0;\n right: 5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.top-right .tooltip-arrow {\n bottom: 0;\n left: 5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n.tooltip.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #000;\n}\n.tooltip.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -5px;\n border-width: 5px 0 5px 5px;\n border-left-color: #000;\n}\n.tooltip.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-left .tooltip-arrow {\n top: 0;\n right: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.tooltip.bottom-right .tooltip-arrow {\n top: 0;\n left: 5px;\n margin-top: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: none;\n max-width: 276px;\n padding: 1px;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n font-size: 14px;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n}\n.popover.top {\n margin-top: -10px;\n}\n.popover.right {\n margin-left: 10px;\n}\n.popover.bottom {\n margin-top: 10px;\n}\n.popover.left {\n margin-left: -10px;\n}\n.popover-title {\n margin: 0;\n padding: 8px 14px;\n font-size: 14px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-radius: 5px 5px 0 0;\n}\n.popover-content {\n padding: 9px 14px;\n}\n.popover > .arrow,\n.popover > .arrow:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.popover > .arrow {\n border-width: 11px;\n}\n.popover > .arrow:after {\n border-width: 10px;\n content: \"\";\n}\n.popover.top > .arrow {\n left: 50%;\n margin-left: -11px;\n border-bottom-width: 0;\n border-top-color: #999999;\n border-top-color: rgba(0, 0, 0, 0.25);\n bottom: -11px;\n}\n.popover.top > .arrow:after {\n content: \" \";\n bottom: 1px;\n margin-left: -10px;\n border-bottom-width: 0;\n border-top-color: #fff;\n}\n.popover.right > .arrow {\n top: 50%;\n left: -11px;\n margin-top: -11px;\n border-left-width: 0;\n border-right-color: #999999;\n border-right-color: rgba(0, 0, 0, 0.25);\n}\n.popover.right > .arrow:after {\n content: \" \";\n left: 1px;\n bottom: -10px;\n border-left-width: 0;\n border-right-color: #fff;\n}\n.popover.bottom > .arrow {\n left: 50%;\n margin-left: -11px;\n border-top-width: 0;\n border-bottom-color: #999999;\n border-bottom-color: rgba(0, 0, 0, 0.25);\n top: -11px;\n}\n.popover.bottom > .arrow:after {\n content: \" \";\n top: 1px;\n margin-left: -10px;\n border-top-width: 0;\n border-bottom-color: #fff;\n}\n.popover.left > .arrow {\n top: 50%;\n right: -11px;\n margin-top: -11px;\n border-right-width: 0;\n border-left-color: #999999;\n border-left-color: rgba(0, 0, 0, 0.25);\n}\n.popover.left > .arrow:after {\n content: \" \";\n right: 1px;\n border-right-width: 0;\n border-left-color: #fff;\n bottom: -10px;\n}\n.carousel {\n position: relative;\n}\n.carousel-inner {\n position: relative;\n overflow: hidden;\n width: 100%;\n}\n.carousel-inner > .item {\n display: none;\n position: relative;\n -webkit-transition: 0.6s ease-in-out left;\n -o-transition: 0.6s ease-in-out left;\n transition: 0.6s ease-in-out left;\n}\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n line-height: 1;\n}\n@media all and (transform-3d), (-webkit-transform-3d) {\n .carousel-inner > .item {\n -webkit-transition: -webkit-transform 0.6s ease-in-out;\n -moz-transition: -moz-transform 0.6s ease-in-out;\n -o-transition: -o-transform 0.6s ease-in-out;\n transition: transform 0.6s ease-in-out;\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-perspective: 1000px;\n -moz-perspective: 1000px;\n perspective: 1000px;\n }\n .carousel-inner > .item.next,\n .carousel-inner > .item.active.right {\n -webkit-transform: translate3d(100%, 0, 0);\n transform: translate3d(100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.prev,\n .carousel-inner > .item.active.left {\n -webkit-transform: translate3d(-100%, 0, 0);\n transform: translate3d(-100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.next.left,\n .carousel-inner > .item.prev.right,\n .carousel-inner > .item.active {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n left: 0;\n }\n}\n.carousel-inner > .active,\n.carousel-inner > .next,\n.carousel-inner > .prev {\n display: block;\n}\n.carousel-inner > .active {\n left: 0;\n}\n.carousel-inner > .next,\n.carousel-inner > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n}\n.carousel-inner > .next {\n left: 100%;\n}\n.carousel-inner > .prev {\n left: -100%;\n}\n.carousel-inner > .next.left,\n.carousel-inner > .prev.right {\n left: 0;\n}\n.carousel-inner > .active.left {\n left: -100%;\n}\n.carousel-inner > .active.right {\n left: 100%;\n}\n.carousel-control {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 15%;\n opacity: 0.5;\n filter: alpha(opacity=50);\n font-size: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n background-color: rgba(0, 0, 0, 0);\n}\n.carousel-control.left {\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);\n}\n.carousel-control.right {\n left: auto;\n right: 0;\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);\n}\n.carousel-control:hover,\n.carousel-control:focus {\n outline: 0;\n color: #fff;\n text-decoration: none;\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-left,\n.carousel-control .glyphicon-chevron-right {\n position: absolute;\n top: 50%;\n margin-top: -10px;\n z-index: 5;\n display: inline-block;\n}\n.carousel-control .icon-prev,\n.carousel-control .glyphicon-chevron-left {\n left: 50%;\n margin-left: -10px;\n}\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-right {\n right: 50%;\n margin-right: -10px;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next {\n width: 20px;\n height: 20px;\n line-height: 1;\n font-family: serif;\n}\n.carousel-control .icon-prev:before {\n content: '\\2039';\n}\n.carousel-control .icon-next:before {\n content: '\\203a';\n}\n.carousel-indicators {\n position: absolute;\n bottom: 10px;\n left: 50%;\n z-index: 15;\n width: 60%;\n margin-left: -30%;\n padding-left: 0;\n list-style: none;\n text-align: center;\n}\n.carousel-indicators li {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin: 1px;\n text-indent: -999px;\n border: 1px solid #fff;\n border-radius: 10px;\n cursor: pointer;\n background-color: #000 \\9;\n background-color: rgba(0, 0, 0, 0);\n}\n.carousel-indicators .active {\n margin: 0;\n width: 12px;\n height: 12px;\n background-color: #fff;\n}\n.carousel-caption {\n position: absolute;\n left: 15%;\n right: 15%;\n bottom: 20px;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: #fff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n}\n.carousel-caption .btn {\n text-shadow: none;\n}\n@media screen and (min-width: 768px) {\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-prev,\n .carousel-control .icon-next {\n width: 30px;\n height: 30px;\n margin-top: -10px;\n font-size: 30px;\n }\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .icon-prev {\n margin-left: -10px;\n }\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-next {\n margin-right: -10px;\n }\n .carousel-caption {\n left: 20%;\n right: 20%;\n padding-bottom: 30px;\n }\n .carousel-indicators {\n bottom: 20px;\n }\n}\n.clearfix:before,\n.clearfix:after,\n.dl-horizontal dd:before,\n.dl-horizontal dd:after,\n.container:before,\n.container:after,\n.container-fluid:before,\n.container-fluid:after,\n.row:before,\n.row:after,\n.form-horizontal .form-group:before,\n.form-horizontal .form-group:after,\n.btn-toolbar:before,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:before,\n.btn-group-vertical > .btn-group:after,\n.nav:before,\n.nav:after,\n.navbar:before,\n.navbar:after,\n.navbar-header:before,\n.navbar-header:after,\n.navbar-collapse:before,\n.navbar-collapse:after,\n.pager:before,\n.pager:after,\n.panel-body:before,\n.panel-body:after,\n.modal-header:before,\n.modal-header:after,\n.modal-footer:before,\n.modal-footer:after {\n content: \" \";\n display: table;\n}\n.clearfix:after,\n.dl-horizontal dd:after,\n.container:after,\n.container-fluid:after,\n.row:after,\n.form-horizontal .form-group:after,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:after,\n.nav:after,\n.navbar:after,\n.navbar-header:after,\n.navbar-collapse:after,\n.pager:after,\n.panel-body:after,\n.modal-header:after,\n.modal-footer:after {\n clear: both;\n}\n.center-block {\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n.hidden {\n display: none !important;\n}\n.affix {\n position: fixed;\n}\n@-ms-viewport {\n width: device-width;\n}\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n display: none !important;\n}\n.visible-xs-block,\n.visible-xs-inline,\n.visible-xs-inline-block,\n.visible-sm-block,\n.visible-sm-inline,\n.visible-sm-inline-block,\n.visible-md-block,\n.visible-md-inline,\n.visible-md-inline-block,\n.visible-lg-block,\n.visible-lg-inline,\n.visible-lg-inline-block {\n display: none !important;\n}\n@media (max-width: 767px) {\n .visible-xs {\n display: block !important;\n }\n table.visible-xs {\n display: table !important;\n }\n tr.visible-xs {\n display: table-row !important;\n }\n th.visible-xs,\n td.visible-xs {\n display: table-cell !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-block {\n display: block !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline {\n display: inline !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm {\n display: block !important;\n }\n table.visible-sm {\n display: table !important;\n }\n tr.visible-sm {\n display: table-row !important;\n }\n th.visible-sm,\n td.visible-sm {\n display: table-cell !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-block {\n display: block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline {\n display: inline !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md {\n display: block !important;\n }\n table.visible-md {\n display: table !important;\n }\n tr.visible-md {\n display: table-row !important;\n }\n th.visible-md,\n td.visible-md {\n display: table-cell !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-block {\n display: block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline {\n display: inline !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg {\n display: block !important;\n }\n table.visible-lg {\n display: table !important;\n }\n tr.visible-lg {\n display: table-row !important;\n }\n th.visible-lg,\n td.visible-lg {\n display: table-cell !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-block {\n display: block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline {\n display: inline !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline-block {\n display: inline-block !important;\n }\n}\n@media (max-width: 767px) {\n .hidden-xs {\n display: none !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .hidden-sm {\n display: none !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .hidden-md {\n display: none !important;\n }\n}\n@media (min-width: 1200px) {\n .hidden-lg {\n display: none !important;\n }\n}\n.visible-print {\n display: none !important;\n}\n@media print {\n .visible-print {\n display: block !important;\n }\n table.visible-print {\n display: table !important;\n }\n tr.visible-print {\n display: table-row !important;\n }\n th.visible-print,\n td.visible-print {\n display: table-cell !important;\n }\n}\n.visible-print-block {\n display: none !important;\n}\n@media print {\n .visible-print-block {\n display: block !important;\n }\n}\n.visible-print-inline {\n display: none !important;\n}\n@media print {\n .visible-print-inline {\n display: inline !important;\n }\n}\n.visible-print-inline-block {\n display: none !important;\n}\n@media print {\n .visible-print-inline-block {\n display: inline-block !important;\n }\n}\n@media print {\n .hidden-print {\n display: none !important;\n }\n}\n/*# sourceMappingURL=bootstrap.css.map */","/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\n\n//\n// 1. Set default font family to sans-serif.\n// 2. Prevent iOS and IE text size adjust after device orientation change,\n// without disabling user zoom.\n//\n\nhtml {\n font-family: sans-serif; // 1\n -ms-text-size-adjust: 100%; // 2\n -webkit-text-size-adjust: 100%; // 2\n}\n\n//\n// Remove default margin.\n//\n\nbody {\n margin: 0;\n}\n\n// HTML5 display definitions\n// ==========================================================================\n\n//\n// Correct `block` display not defined for any HTML5 element in IE 8/9.\n// Correct `block` display not defined for `details` or `summary` in IE 10/11\n// and Firefox.\n// Correct `block` display not defined for `main` in IE 11.\n//\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n//\n// 1. Correct `inline-block` display not defined in IE 8/9.\n// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n//\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; // 1\n vertical-align: baseline; // 2\n}\n\n//\n// Prevent modern browsers from displaying `audio` without controls.\n// Remove excess height in iOS 5 devices.\n//\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n//\n// Address `[hidden]` styling not present in IE 8/9/10.\n// Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.\n//\n\n[hidden],\ntemplate {\n display: none;\n}\n\n// Links\n// ==========================================================================\n\n//\n// Remove the gray background color from active links in IE 10.\n//\n\na {\n background-color: transparent;\n}\n\n//\n// Improve readability of focused elements when they are also in an\n// active/hover state.\n//\n\na:active,\na:hover {\n outline: 0;\n}\n\n// Text-level semantics\n// ==========================================================================\n\n//\n// Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n//\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n//\n// Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n//\n\nb,\nstrong {\n font-weight: bold;\n}\n\n//\n// Address styling not present in Safari and Chrome.\n//\n\ndfn {\n font-style: italic;\n}\n\n//\n// Address variable `h1` font-size and margin within `section` and `article`\n// contexts in Firefox 4+, Safari, and Chrome.\n//\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n//\n// Address styling not present in IE 8/9.\n//\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n//\n// Address inconsistent and variable font size in all browsers.\n//\n\nsmall {\n font-size: 80%;\n}\n\n//\n// Prevent `sub` and `sup` affecting `line-height` in all browsers.\n//\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n// Embedded content\n// ==========================================================================\n\n//\n// Remove border when inside `a` element in IE 8/9/10.\n//\n\nimg {\n border: 0;\n}\n\n//\n// Correct overflow not hidden in IE 9/10/11.\n//\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n// Grouping content\n// ==========================================================================\n\n//\n// Address margin not present in IE 8/9 and Safari.\n//\n\nfigure {\n margin: 1em 40px;\n}\n\n//\n// Address differences between Firefox and other browsers.\n//\n\nhr {\n box-sizing: content-box;\n height: 0;\n}\n\n//\n// Contain overflow in all browsers.\n//\n\npre {\n overflow: auto;\n}\n\n//\n// Address odd `em`-unit font size rendering in all browsers.\n//\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n// Forms\n// ==========================================================================\n\n//\n// Known limitation: by default, Chrome and Safari on OS X allow very limited\n// styling of `select`, unless a `border` property is set.\n//\n\n//\n// 1. Correct color not being inherited.\n// Known issue: affects color of disabled elements.\n// 2. Correct font properties not being inherited.\n// 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n//\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; // 1\n font: inherit; // 2\n margin: 0; // 3\n}\n\n//\n// Address `overflow` set to `hidden` in IE 8/9/10/11.\n//\n\nbutton {\n overflow: visible;\n}\n\n//\n// Address inconsistent `text-transform` inheritance for `button` and `select`.\n// All other form control elements do not inherit `text-transform` values.\n// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n// Correct `select` style inheritance in Firefox.\n//\n\nbutton,\nselect {\n text-transform: none;\n}\n\n//\n// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n// and `video` controls.\n// 2. Correct inability to style clickable `input` types in iOS.\n// 3. Improve usability and consistency of cursor style between image-type\n// `input` and others.\n//\n\nbutton,\nhtml input[type=\"button\"], // 1\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; // 2\n cursor: pointer; // 3\n}\n\n//\n// Re-set default cursor for disabled elements.\n//\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n//\n// Remove inner padding and border in Firefox 4+.\n//\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n//\n// Address Firefox 4+ setting `line-height` on `input` using `!important` in\n// the UA stylesheet.\n//\n\ninput {\n line-height: normal;\n}\n\n//\n// It's recommended that you don't attempt to style these elements.\n// Firefox's implementation doesn't respect box-sizing, padding, or width.\n//\n// 1. Address box sizing set to `content-box` in IE 8/9/10.\n// 2. Remove excess padding in IE 8/9/10.\n//\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; // 1\n padding: 0; // 2\n}\n\n//\n// Fix the cursor style for Chrome's increment/decrement buttons. For certain\n// `font-size` values of the `input`, it causes the cursor style of the\n// decrement button to change from `default` to `text`.\n//\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n//\n// 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n// 2. Address `box-sizing` set to `border-box` in Safari and Chrome.\n//\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; // 1\n box-sizing: content-box; //2\n}\n\n//\n// Remove inner padding and search cancel button in Safari and Chrome on OS X.\n// Safari (but not Chrome) clips the cancel button when the search input has\n// padding (and `textfield` appearance).\n//\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n//\n// Define consistent border, margin, and padding.\n//\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n//\n// 1. Correct `color` not being inherited in IE 8/9/10/11.\n// 2. Remove padding so people aren't caught out if they zero out fieldsets.\n//\n\nlegend {\n border: 0; // 1\n padding: 0; // 2\n}\n\n//\n// Remove default vertical scrollbar in IE 8/9/10/11.\n//\n\ntextarea {\n overflow: auto;\n}\n\n//\n// Don't inherit the `font-weight` (applied by a rule above).\n// NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n//\n\noptgroup {\n font-weight: bold;\n}\n\n// Tables\n// ==========================================================================\n\n//\n// Remove most spacing between table cells.\n//\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n","/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n\n// ==========================================================================\n// Print styles.\n// Inlined to avoid the additional HTTP request: h5bp.com/r\n// ==========================================================================\n\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important; // Black prints faster: h5bp.com/s\n box-shadow: none !important;\n text-shadow: none !important;\n }\n\n a,\n a:visited {\n text-decoration: underline;\n }\n\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n\n // Don't show links that are fragment identifiers,\n // or use the `javascript:` pseudo protocol\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n\n thead {\n display: table-header-group; // h5bp.com/t\n }\n\n tr,\n img {\n page-break-inside: avoid;\n }\n\n img {\n max-width: 100% !important;\n }\n\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n\n h2,\n h3 {\n page-break-after: avoid;\n }\n\n // Bootstrap specific changes start\n\n // Bootstrap components\n .navbar {\n display: none;\n }\n .btn,\n .dropup > .btn {\n > .caret {\n border-top-color: #000 !important;\n }\n }\n .label {\n border: 1px solid #000;\n }\n\n .table {\n border-collapse: collapse !important;\n\n td,\n th {\n background-color: #fff !important;\n }\n }\n .table-bordered {\n th,\n td {\n border: 1px solid #ddd !important;\n }\n }\n\n // Bootstrap specific changes end\n}\n","//\n// Glyphicons for Bootstrap\n//\n// Since icons are fonts, they can be placed anywhere text is placed and are\n// thus automatically sized to match the surrounding child. To use, create an\n// inline element with the appropriate classes, like so:\n//\n// Star\n\n// Import the fonts\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('@{icon-font-path}@{icon-font-name}.eot');\n src: url('@{icon-font-path}@{icon-font-name}.eot?#iefix') format('embedded-opentype'),\n url('@{icon-font-path}@{icon-font-name}.woff2') format('woff2'),\n url('@{icon-font-path}@{icon-font-name}.woff') format('woff'),\n url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype'),\n url('@{icon-font-path}@{icon-font-name}.svg#@{icon-font-svg-id}') format('svg');\n}\n\n// Catchall baseclass\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Individual icons\n.glyphicon-asterisk { &:before { content: \"\\002a\"; } }\n.glyphicon-plus { &:before { content: \"\\002b\"; } }\n.glyphicon-euro,\n.glyphicon-eur { &:before { content: \"\\20ac\"; } }\n.glyphicon-minus { &:before { content: \"\\2212\"; } }\n.glyphicon-cloud { &:before { content: \"\\2601\"; } }\n.glyphicon-envelope { &:before { content: \"\\2709\"; } }\n.glyphicon-pencil { &:before { content: \"\\270f\"; } }\n.glyphicon-glass { &:before { content: \"\\e001\"; } }\n.glyphicon-music { &:before { content: \"\\e002\"; } }\n.glyphicon-search { &:before { content: \"\\e003\"; } }\n.glyphicon-heart { &:before { content: \"\\e005\"; } }\n.glyphicon-star { &:before { content: \"\\e006\"; } }\n.glyphicon-star-empty { &:before { content: \"\\e007\"; } }\n.glyphicon-user { &:before { content: \"\\e008\"; } }\n.glyphicon-film { &:before { content: \"\\e009\"; } }\n.glyphicon-th-large { &:before { content: \"\\e010\"; } }\n.glyphicon-th { &:before { content: \"\\e011\"; } }\n.glyphicon-th-list { &:before { content: \"\\e012\"; } }\n.glyphicon-ok { &:before { content: \"\\e013\"; } }\n.glyphicon-remove { &:before { content: \"\\e014\"; } }\n.glyphicon-zoom-in { &:before { content: \"\\e015\"; } }\n.glyphicon-zoom-out { &:before { content: \"\\e016\"; } }\n.glyphicon-off { &:before { content: \"\\e017\"; } }\n.glyphicon-signal { &:before { content: \"\\e018\"; } }\n.glyphicon-cog { &:before { content: \"\\e019\"; } }\n.glyphicon-trash { &:before { content: \"\\e020\"; } }\n.glyphicon-home { &:before { content: \"\\e021\"; } }\n.glyphicon-file { &:before { content: \"\\e022\"; } }\n.glyphicon-time { &:before { content: \"\\e023\"; } }\n.glyphicon-road { &:before { content: \"\\e024\"; } }\n.glyphicon-download-alt { &:before { content: \"\\e025\"; } }\n.glyphicon-download { &:before { content: \"\\e026\"; } }\n.glyphicon-upload { &:before { content: \"\\e027\"; } }\n.glyphicon-inbox { &:before { content: \"\\e028\"; } }\n.glyphicon-play-circle { &:before { content: \"\\e029\"; } }\n.glyphicon-repeat { &:before { content: \"\\e030\"; } }\n.glyphicon-refresh { &:before { content: \"\\e031\"; } }\n.glyphicon-list-alt { &:before { content: \"\\e032\"; } }\n.glyphicon-lock { &:before { content: \"\\e033\"; } }\n.glyphicon-flag { &:before { content: \"\\e034\"; } }\n.glyphicon-headphones { &:before { content: \"\\e035\"; } }\n.glyphicon-volume-off { &:before { content: \"\\e036\"; } }\n.glyphicon-volume-down { &:before { content: \"\\e037\"; } }\n.glyphicon-volume-up { &:before { content: \"\\e038\"; } }\n.glyphicon-qrcode { &:before { content: \"\\e039\"; } }\n.glyphicon-barcode { &:before { content: \"\\e040\"; } }\n.glyphicon-tag { &:before { content: \"\\e041\"; } }\n.glyphicon-tags { &:before { content: \"\\e042\"; } }\n.glyphicon-book { &:before { content: \"\\e043\"; } }\n.glyphicon-bookmark { &:before { content: \"\\e044\"; } }\n.glyphicon-print { &:before { content: \"\\e045\"; } }\n.glyphicon-camera { &:before { content: \"\\e046\"; } }\n.glyphicon-font { &:before { content: \"\\e047\"; } }\n.glyphicon-bold { &:before { content: \"\\e048\"; } }\n.glyphicon-italic { &:before { content: \"\\e049\"; } }\n.glyphicon-text-height { &:before { content: \"\\e050\"; } }\n.glyphicon-text-width { &:before { content: \"\\e051\"; } }\n.glyphicon-align-left { &:before { content: \"\\e052\"; } }\n.glyphicon-align-center { &:before { content: \"\\e053\"; } }\n.glyphicon-align-right { &:before { content: \"\\e054\"; } }\n.glyphicon-align-justify { &:before { content: \"\\e055\"; } }\n.glyphicon-list { &:before { content: \"\\e056\"; } }\n.glyphicon-indent-left { &:before { content: \"\\e057\"; } }\n.glyphicon-indent-right { &:before { content: \"\\e058\"; } }\n.glyphicon-facetime-video { &:before { content: \"\\e059\"; } }\n.glyphicon-picture { &:before { content: \"\\e060\"; } }\n.glyphicon-map-marker { &:before { content: \"\\e062\"; } }\n.glyphicon-adjust { &:before { content: \"\\e063\"; } }\n.glyphicon-tint { &:before { content: \"\\e064\"; } }\n.glyphicon-edit { &:before { content: \"\\e065\"; } }\n.glyphicon-share { &:before { content: \"\\e066\"; } }\n.glyphicon-check { &:before { content: \"\\e067\"; } }\n.glyphicon-move { &:before { content: \"\\e068\"; } }\n.glyphicon-step-backward { &:before { content: \"\\e069\"; } }\n.glyphicon-fast-backward { &:before { content: \"\\e070\"; } }\n.glyphicon-backward { &:before { content: \"\\e071\"; } }\n.glyphicon-play { &:before { content: \"\\e072\"; } }\n.glyphicon-pause { &:before { content: \"\\e073\"; } }\n.glyphicon-stop { &:before { content: \"\\e074\"; } }\n.glyphicon-forward { &:before { content: \"\\e075\"; } }\n.glyphicon-fast-forward { &:before { content: \"\\e076\"; } }\n.glyphicon-step-forward { &:before { content: \"\\e077\"; } }\n.glyphicon-eject { &:before { content: \"\\e078\"; } }\n.glyphicon-chevron-left { &:before { content: \"\\e079\"; } }\n.glyphicon-chevron-right { &:before { content: \"\\e080\"; } }\n.glyphicon-plus-sign { &:before { content: \"\\e081\"; } }\n.glyphicon-minus-sign { &:before { content: \"\\e082\"; } }\n.glyphicon-remove-sign { &:before { content: \"\\e083\"; } }\n.glyphicon-ok-sign { &:before { content: \"\\e084\"; } }\n.glyphicon-question-sign { &:before { content: \"\\e085\"; } }\n.glyphicon-info-sign { &:before { content: \"\\e086\"; } }\n.glyphicon-screenshot { &:before { content: \"\\e087\"; } }\n.glyphicon-remove-circle { &:before { content: \"\\e088\"; } }\n.glyphicon-ok-circle { &:before { content: \"\\e089\"; } }\n.glyphicon-ban-circle { &:before { content: \"\\e090\"; } }\n.glyphicon-arrow-left { &:before { content: \"\\e091\"; } }\n.glyphicon-arrow-right { &:before { content: \"\\e092\"; } }\n.glyphicon-arrow-up { &:before { content: \"\\e093\"; } }\n.glyphicon-arrow-down { &:before { content: \"\\e094\"; } }\n.glyphicon-share-alt { &:before { content: \"\\e095\"; } }\n.glyphicon-resize-full { &:before { content: \"\\e096\"; } }\n.glyphicon-resize-small { &:before { content: \"\\e097\"; } }\n.glyphicon-exclamation-sign { &:before { content: \"\\e101\"; } }\n.glyphicon-gift { &:before { content: \"\\e102\"; } }\n.glyphicon-leaf { &:before { content: \"\\e103\"; } }\n.glyphicon-fire { &:before { content: \"\\e104\"; } }\n.glyphicon-eye-open { &:before { content: \"\\e105\"; } }\n.glyphicon-eye-close { &:before { content: \"\\e106\"; } }\n.glyphicon-warning-sign { &:before { content: \"\\e107\"; } }\n.glyphicon-plane { &:before { content: \"\\e108\"; } }\n.glyphicon-calendar { &:before { content: \"\\e109\"; } }\n.glyphicon-random { &:before { content: \"\\e110\"; } }\n.glyphicon-comment { &:before { content: \"\\e111\"; } }\n.glyphicon-magnet { &:before { content: \"\\e112\"; } }\n.glyphicon-chevron-up { &:before { content: \"\\e113\"; } }\n.glyphicon-chevron-down { &:before { content: \"\\e114\"; } }\n.glyphicon-retweet { &:before { content: \"\\e115\"; } }\n.glyphicon-shopping-cart { &:before { content: \"\\e116\"; } }\n.glyphicon-folder-close { &:before { content: \"\\e117\"; } }\n.glyphicon-folder-open { &:before { content: \"\\e118\"; } }\n.glyphicon-resize-vertical { &:before { content: \"\\e119\"; } }\n.glyphicon-resize-horizontal { &:before { content: \"\\e120\"; } }\n.glyphicon-hdd { &:before { content: \"\\e121\"; } }\n.glyphicon-bullhorn { &:before { content: \"\\e122\"; } }\n.glyphicon-bell { &:before { content: \"\\e123\"; } }\n.glyphicon-certificate { &:before { content: \"\\e124\"; } }\n.glyphicon-thumbs-up { &:before { content: \"\\e125\"; } }\n.glyphicon-thumbs-down { &:before { content: \"\\e126\"; } }\n.glyphicon-hand-right { &:before { content: \"\\e127\"; } }\n.glyphicon-hand-left { &:before { content: \"\\e128\"; } }\n.glyphicon-hand-up { &:before { content: \"\\e129\"; } }\n.glyphicon-hand-down { &:before { content: \"\\e130\"; } }\n.glyphicon-circle-arrow-right { &:before { content: \"\\e131\"; } }\n.glyphicon-circle-arrow-left { &:before { content: \"\\e132\"; } }\n.glyphicon-circle-arrow-up { &:before { content: \"\\e133\"; } }\n.glyphicon-circle-arrow-down { &:before { content: \"\\e134\"; } }\n.glyphicon-globe { &:before { content: \"\\e135\"; } }\n.glyphicon-wrench { &:before { content: \"\\e136\"; } }\n.glyphicon-tasks { &:before { content: \"\\e137\"; } }\n.glyphicon-filter { &:before { content: \"\\e138\"; } }\n.glyphicon-briefcase { &:before { content: \"\\e139\"; } }\n.glyphicon-fullscreen { &:before { content: \"\\e140\"; } }\n.glyphicon-dashboard { &:before { content: \"\\e141\"; } }\n.glyphicon-paperclip { &:before { content: \"\\e142\"; } }\n.glyphicon-heart-empty { &:before { content: \"\\e143\"; } }\n.glyphicon-link { &:before { content: \"\\e144\"; } }\n.glyphicon-phone { &:before { content: \"\\e145\"; } }\n.glyphicon-pushpin { &:before { content: \"\\e146\"; } }\n.glyphicon-usd { &:before { content: \"\\e148\"; } }\n.glyphicon-gbp { &:before { content: \"\\e149\"; } }\n.glyphicon-sort { &:before { content: \"\\e150\"; } }\n.glyphicon-sort-by-alphabet { &:before { content: \"\\e151\"; } }\n.glyphicon-sort-by-alphabet-alt { &:before { content: \"\\e152\"; } }\n.glyphicon-sort-by-order { &:before { content: \"\\e153\"; } }\n.glyphicon-sort-by-order-alt { &:before { content: \"\\e154\"; } }\n.glyphicon-sort-by-attributes { &:before { content: \"\\e155\"; } }\n.glyphicon-sort-by-attributes-alt { &:before { content: \"\\e156\"; } }\n.glyphicon-unchecked { &:before { content: \"\\e157\"; } }\n.glyphicon-expand { &:before { content: \"\\e158\"; } }\n.glyphicon-collapse-down { &:before { content: \"\\e159\"; } }\n.glyphicon-collapse-up { &:before { content: \"\\e160\"; } }\n.glyphicon-log-in { &:before { content: \"\\e161\"; } }\n.glyphicon-flash { &:before { content: \"\\e162\"; } }\n.glyphicon-log-out { &:before { content: \"\\e163\"; } }\n.glyphicon-new-window { &:before { content: \"\\e164\"; } }\n.glyphicon-record { &:before { content: \"\\e165\"; } }\n.glyphicon-save { &:before { content: \"\\e166\"; } }\n.glyphicon-open { &:before { content: \"\\e167\"; } }\n.glyphicon-saved { &:before { content: \"\\e168\"; } }\n.glyphicon-import { &:before { content: \"\\e169\"; } }\n.glyphicon-export { &:before { content: \"\\e170\"; } }\n.glyphicon-send { &:before { content: \"\\e171\"; } }\n.glyphicon-floppy-disk { &:before { content: \"\\e172\"; } }\n.glyphicon-floppy-saved { &:before { content: \"\\e173\"; } }\n.glyphicon-floppy-remove { &:before { content: \"\\e174\"; } }\n.glyphicon-floppy-save { &:before { content: \"\\e175\"; } }\n.glyphicon-floppy-open { &:before { content: \"\\e176\"; } }\n.glyphicon-credit-card { &:before { content: \"\\e177\"; } }\n.glyphicon-transfer { &:before { content: \"\\e178\"; } }\n.glyphicon-cutlery { &:before { content: \"\\e179\"; } }\n.glyphicon-header { &:before { content: \"\\e180\"; } }\n.glyphicon-compressed { &:before { content: \"\\e181\"; } }\n.glyphicon-earphone { &:before { content: \"\\e182\"; } }\n.glyphicon-phone-alt { &:before { content: \"\\e183\"; } }\n.glyphicon-tower { &:before { content: \"\\e184\"; } }\n.glyphicon-stats { &:before { content: \"\\e185\"; } }\n.glyphicon-sd-video { &:before { content: \"\\e186\"; } }\n.glyphicon-hd-video { &:before { content: \"\\e187\"; } }\n.glyphicon-subtitles { &:before { content: \"\\e188\"; } }\n.glyphicon-sound-stereo { &:before { content: \"\\e189\"; } }\n.glyphicon-sound-dolby { &:before { content: \"\\e190\"; } }\n.glyphicon-sound-5-1 { &:before { content: \"\\e191\"; } }\n.glyphicon-sound-6-1 { &:before { content: \"\\e192\"; } }\n.glyphicon-sound-7-1 { &:before { content: \"\\e193\"; } }\n.glyphicon-copyright-mark { &:before { content: \"\\e194\"; } }\n.glyphicon-registration-mark { &:before { content: \"\\e195\"; } }\n.glyphicon-cloud-download { &:before { content: \"\\e197\"; } }\n.glyphicon-cloud-upload { &:before { content: \"\\e198\"; } }\n.glyphicon-tree-conifer { &:before { content: \"\\e199\"; } }\n.glyphicon-tree-deciduous { &:before { content: \"\\e200\"; } }\n.glyphicon-cd { &:before { content: \"\\e201\"; } }\n.glyphicon-save-file { &:before { content: \"\\e202\"; } }\n.glyphicon-open-file { &:before { content: \"\\e203\"; } }\n.glyphicon-level-up { &:before { content: \"\\e204\"; } }\n.glyphicon-copy { &:before { content: \"\\e205\"; } }\n.glyphicon-paste { &:before { content: \"\\e206\"; } }\n// The following 2 Glyphicons are omitted for the time being because\n// they currently use Unicode codepoints that are outside the\n// Basic Multilingual Plane (BMP). Older buggy versions of WebKit can't handle\n// non-BMP codepoints in CSS string escapes, and thus can't display these two icons.\n// Notably, the bug affects some older versions of the Android Browser.\n// More info: https://github.com/twbs/bootstrap/issues/10106\n// .glyphicon-door { &:before { content: \"\\1f6aa\"; } }\n// .glyphicon-key { &:before { content: \"\\1f511\"; } }\n.glyphicon-alert { &:before { content: \"\\e209\"; } }\n.glyphicon-equalizer { &:before { content: \"\\e210\"; } }\n.glyphicon-king { &:before { content: \"\\e211\"; } }\n.glyphicon-queen { &:before { content: \"\\e212\"; } }\n.glyphicon-pawn { &:before { content: \"\\e213\"; } }\n.glyphicon-bishop { &:before { content: \"\\e214\"; } }\n.glyphicon-knight { &:before { content: \"\\e215\"; } }\n.glyphicon-baby-formula { &:before { content: \"\\e216\"; } }\n.glyphicon-tent { &:before { content: \"\\26fa\"; } }\n.glyphicon-blackboard { &:before { content: \"\\e218\"; } }\n.glyphicon-bed { &:before { content: \"\\e219\"; } }\n.glyphicon-apple { &:before { content: \"\\f8ff\"; } }\n.glyphicon-erase { &:before { content: \"\\e221\"; } }\n.glyphicon-hourglass { &:before { content: \"\\231b\"; } }\n.glyphicon-lamp { &:before { content: \"\\e223\"; } }\n.glyphicon-duplicate { &:before { content: \"\\e224\"; } }\n.glyphicon-piggy-bank { &:before { content: \"\\e225\"; } }\n.glyphicon-scissors { &:before { content: \"\\e226\"; } }\n.glyphicon-bitcoin { &:before { content: \"\\e227\"; } }\n.glyphicon-btc { &:before { content: \"\\e227\"; } }\n.glyphicon-xbt { &:before { content: \"\\e227\"; } }\n.glyphicon-yen { &:before { content: \"\\00a5\"; } }\n.glyphicon-jpy { &:before { content: \"\\00a5\"; } }\n.glyphicon-ruble { &:before { content: \"\\20bd\"; } }\n.glyphicon-rub { &:before { content: \"\\20bd\"; } }\n.glyphicon-scale { &:before { content: \"\\e230\"; } }\n.glyphicon-ice-lolly { &:before { content: \"\\e231\"; } }\n.glyphicon-ice-lolly-tasted { &:before { content: \"\\e232\"; } }\n.glyphicon-education { &:before { content: \"\\e233\"; } }\n.glyphicon-option-horizontal { &:before { content: \"\\e234\"; } }\n.glyphicon-option-vertical { &:before { content: \"\\e235\"; } }\n.glyphicon-menu-hamburger { &:before { content: \"\\e236\"; } }\n.glyphicon-modal-window { &:before { content: \"\\e237\"; } }\n.glyphicon-oil { &:before { content: \"\\e238\"; } }\n.glyphicon-grain { &:before { content: \"\\e239\"; } }\n.glyphicon-sunglasses { &:before { content: \"\\e240\"; } }\n.glyphicon-text-size { &:before { content: \"\\e241\"; } }\n.glyphicon-text-color { &:before { content: \"\\e242\"; } }\n.glyphicon-text-background { &:before { content: \"\\e243\"; } }\n.glyphicon-object-align-top { &:before { content: \"\\e244\"; } }\n.glyphicon-object-align-bottom { &:before { content: \"\\e245\"; } }\n.glyphicon-object-align-horizontal{ &:before { content: \"\\e246\"; } }\n.glyphicon-object-align-left { &:before { content: \"\\e247\"; } }\n.glyphicon-object-align-vertical { &:before { content: \"\\e248\"; } }\n.glyphicon-object-align-right { &:before { content: \"\\e249\"; } }\n.glyphicon-triangle-right { &:before { content: \"\\e250\"; } }\n.glyphicon-triangle-left { &:before { content: \"\\e251\"; } }\n.glyphicon-triangle-bottom { &:before { content: \"\\e252\"; } }\n.glyphicon-triangle-top { &:before { content: \"\\e253\"; } }\n.glyphicon-console { &:before { content: \"\\e254\"; } }\n.glyphicon-superscript { &:before { content: \"\\e255\"; } }\n.glyphicon-subscript { &:before { content: \"\\e256\"; } }\n.glyphicon-menu-left { &:before { content: \"\\e257\"; } }\n.glyphicon-menu-right { &:before { content: \"\\e258\"; } }\n.glyphicon-menu-down { &:before { content: \"\\e259\"; } }\n.glyphicon-menu-up { &:before { content: \"\\e260\"; } }\n","//\n// Scaffolding\n// --------------------------------------------------\n\n\n// Reset the box-sizing\n//\n// Heads up! This reset may cause conflicts with some third-party widgets.\n// For recommendations on resolving such conflicts, see\n// http://getbootstrap.com/getting-started/#third-box-sizing\n* {\n .box-sizing(border-box);\n}\n*:before,\n*:after {\n .box-sizing(border-box);\n}\n\n\n// Body reset\n\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n\nbody {\n font-family: @font-family-base;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @text-color;\n background-color: @body-bg;\n}\n\n// Reset fonts for relevant elements\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n\n// Links\n\na {\n color: @link-color;\n text-decoration: none;\n\n &:hover,\n &:focus {\n color: @link-hover-color;\n text-decoration: @link-hover-decoration;\n }\n\n &:focus {\n .tab-focus();\n }\n}\n\n\n// Figures\n//\n// We reset this here because previously Normalize had no `figure` margins. This\n// ensures we don't break anyone's use of the element.\n\nfigure {\n margin: 0;\n}\n\n\n// Images\n\nimg {\n vertical-align: middle;\n}\n\n// Responsive images (ensure images don't scale beyond their parents)\n.img-responsive {\n .img-responsive();\n}\n\n// Rounded corners\n.img-rounded {\n border-radius: @border-radius-large;\n}\n\n// Image thumbnails\n//\n// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.\n.img-thumbnail {\n padding: @thumbnail-padding;\n line-height: @line-height-base;\n background-color: @thumbnail-bg;\n border: 1px solid @thumbnail-border;\n border-radius: @thumbnail-border-radius;\n .transition(all .2s ease-in-out);\n\n // Keep them at most 100% wide\n .img-responsive(inline-block);\n}\n\n// Perfect circle\n.img-circle {\n border-radius: 50%; // set radius in percents\n}\n\n\n// Horizontal rules\n\nhr {\n margin-top: @line-height-computed;\n margin-bottom: @line-height-computed;\n border: 0;\n border-top: 1px solid @hr-border;\n}\n\n\n// Only display content to screen readers\n//\n// See: http://a11yproject.com/posts/how-to-hide-content\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0,0,0,0);\n border: 0;\n}\n\n// Use in conjunction with .sr-only to only display content when it's focused.\n// Useful for \"Skip to main content\" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1\n// Credit: HTML5 Boilerplate\n\n.sr-only-focusable {\n &:active,\n &:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n }\n}\n\n\n// iOS \"clickable elements\" fix for role=\"button\"\n//\n// Fixes \"clickability\" issue (and more generally, the firing of events such as focus as well)\n// for traditionally non-focusable elements with role=\"button\"\n// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile\n\n[role=\"button\"] {\n cursor: pointer;\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They have been removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility) {\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// WebKit-style focus\n\n.tab-focus() {\n // WebKit-specific. Other browsers will keep their default outline style.\n // (Initially tried to also force default via `outline: initial`,\n // but that seems to erroneously remove the outline in Firefox altogether.)\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n","// Image Mixins\n// - Responsive image\n// - Retina image\n\n\n// Responsive image\n//\n// Keep images from scaling beyond the width of their parents.\n.img-responsive(@display: block) {\n display: @display;\n max-width: 100%; // Part 1: Set a maximum relative to the parent\n height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching\n}\n\n\n// Retina image\n//\n// Short retina mixin for setting background-image and -size. Note that the\n// spelling of `min--moz-device-pixel-ratio` is intentional.\n.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {\n background-image: url(\"@{file-1x}\");\n\n @media\n only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and ( min--moz-device-pixel-ratio: 2),\n only screen and ( -o-min-device-pixel-ratio: 2/1),\n only screen and ( min-device-pixel-ratio: 2),\n only screen and ( min-resolution: 192dpi),\n only screen and ( min-resolution: 2dppx) {\n background-image: url(\"@{file-2x}\");\n background-size: @width-1x @height-1x;\n }\n}\n","//\n// Typography\n// --------------------------------------------------\n\n\n// Headings\n// -------------------------\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6 {\n font-family: @headings-font-family;\n font-weight: @headings-font-weight;\n line-height: @headings-line-height;\n color: @headings-color;\n\n small,\n .small {\n font-weight: normal;\n line-height: 1;\n color: @headings-small-color;\n }\n}\n\nh1, .h1,\nh2, .h2,\nh3, .h3 {\n margin-top: @line-height-computed;\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 65%;\n }\n}\nh4, .h4,\nh5, .h5,\nh6, .h6 {\n margin-top: (@line-height-computed / 2);\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 75%;\n }\n}\n\nh1, .h1 { font-size: @font-size-h1; }\nh2, .h2 { font-size: @font-size-h2; }\nh3, .h3 { font-size: @font-size-h3; }\nh4, .h4 { font-size: @font-size-h4; }\nh5, .h5 { font-size: @font-size-h5; }\nh6, .h6 { font-size: @font-size-h6; }\n\n\n// Body text\n// -------------------------\n\np {\n margin: 0 0 (@line-height-computed / 2);\n}\n\n.lead {\n margin-bottom: @line-height-computed;\n font-size: floor((@font-size-base * 1.15));\n font-weight: 300;\n line-height: 1.4;\n\n @media (min-width: @screen-sm-min) {\n font-size: (@font-size-base * 1.5);\n }\n}\n\n\n// Emphasis & misc\n// -------------------------\n\n// Ex: (12px small font / 14px base font) * 100% = about 85%\nsmall,\n.small {\n font-size: floor((100% * @font-size-small / @font-size-base));\n}\n\nmark,\n.mark {\n background-color: @state-warning-bg;\n padding: .2em;\n}\n\n// Alignment\n.text-left { text-align: left; }\n.text-right { text-align: right; }\n.text-center { text-align: center; }\n.text-justify { text-align: justify; }\n.text-nowrap { white-space: nowrap; }\n\n// Transformation\n.text-lowercase { text-transform: lowercase; }\n.text-uppercase { text-transform: uppercase; }\n.text-capitalize { text-transform: capitalize; }\n\n// Contextual colors\n.text-muted {\n color: @text-muted;\n}\n.text-primary {\n .text-emphasis-variant(@brand-primary);\n}\n.text-success {\n .text-emphasis-variant(@state-success-text);\n}\n.text-info {\n .text-emphasis-variant(@state-info-text);\n}\n.text-warning {\n .text-emphasis-variant(@state-warning-text);\n}\n.text-danger {\n .text-emphasis-variant(@state-danger-text);\n}\n\n// Contextual backgrounds\n// For now we'll leave these alongside the text classes until v4 when we can\n// safely shift things around (per SemVer rules).\n.bg-primary {\n // Given the contrast here, this is the only class to have its color inverted\n // automatically.\n color: #fff;\n .bg-variant(@brand-primary);\n}\n.bg-success {\n .bg-variant(@state-success-bg);\n}\n.bg-info {\n .bg-variant(@state-info-bg);\n}\n.bg-warning {\n .bg-variant(@state-warning-bg);\n}\n.bg-danger {\n .bg-variant(@state-danger-bg);\n}\n\n\n// Page header\n// -------------------------\n\n.page-header {\n padding-bottom: ((@line-height-computed / 2) - 1);\n margin: (@line-height-computed * 2) 0 @line-height-computed;\n border-bottom: 1px solid @page-header-border-color;\n}\n\n\n// Lists\n// -------------------------\n\n// Unordered and Ordered lists\nul,\nol {\n margin-top: 0;\n margin-bottom: (@line-height-computed / 2);\n ul,\n ol {\n margin-bottom: 0;\n }\n}\n\n// List options\n\n// Unstyled keeps list items block level, just removes default browser padding and list-style\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n\n// Inline turns list items into inline-block\n.list-inline {\n .list-unstyled();\n margin-left: -5px;\n\n > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n }\n}\n\n// Description Lists\ndl {\n margin-top: 0; // Remove browser default\n margin-bottom: @line-height-computed;\n}\ndt,\ndd {\n line-height: @line-height-base;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0; // Undo browser default\n}\n\n// Horizontal description lists\n//\n// Defaults to being stacked without any of the below styles applied, until the\n// grid breakpoint is reached (default of ~768px).\n\n.dl-horizontal {\n dd {\n &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present\n }\n\n @media (min-width: @dl-horizontal-breakpoint) {\n dt {\n float: left;\n width: (@dl-horizontal-offset - 20);\n clear: left;\n text-align: right;\n .text-overflow();\n }\n dd {\n margin-left: @dl-horizontal-offset;\n }\n }\n}\n\n\n// Misc\n// -------------------------\n\n// Abbreviations and acronyms\nabbr[title],\n// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted @abbr-border-color;\n}\n.initialism {\n font-size: 90%;\n .text-uppercase();\n}\n\n// Blockquotes\nblockquote {\n padding: (@line-height-computed / 2) @line-height-computed;\n margin: 0 0 @line-height-computed;\n font-size: @blockquote-font-size;\n border-left: 5px solid @blockquote-border-color;\n\n p,\n ul,\n ol {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n // Note: Deprecated small and .small as of v3.1.0\n // Context: https://github.com/twbs/bootstrap/issues/11660\n footer,\n small,\n .small {\n display: block;\n font-size: 80%; // back to default font-size\n line-height: @line-height-base;\n color: @blockquote-small-color;\n\n &:before {\n content: '\\2014 \\00A0'; // em dash, nbsp\n }\n }\n}\n\n// Opposite alignment of blockquote\n//\n// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid @blockquote-border-color;\n border-left: 0;\n text-align: right;\n\n // Account for citation\n footer,\n small,\n .small {\n &:before { content: ''; }\n &:after {\n content: '\\00A0 \\2014'; // nbsp, em dash\n }\n }\n}\n\n// Addresses\naddress {\n margin-bottom: @line-height-computed;\n font-style: normal;\n line-height: @line-height-base;\n}\n","// Typography\n\n.text-emphasis-variant(@color) {\n color: @color;\n a&:hover,\n a&:focus {\n color: darken(@color, 10%);\n }\n}\n","// Contextual backgrounds\n\n.bg-variant(@color) {\n background-color: @color;\n a&:hover,\n a&:focus {\n background-color: darken(@color, 10%);\n }\n}\n","// Text overflow\n// Requires inline-block or block for proper styling\n\n.text-overflow() {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","//\n// Code (inline and block)\n// --------------------------------------------------\n\n\n// Inline and block code styles\ncode,\nkbd,\npre,\nsamp {\n font-family: @font-family-monospace;\n}\n\n// Inline code\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: @code-color;\n background-color: @code-bg;\n border-radius: @border-radius-base;\n}\n\n// User input typically entered via keyboard\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: @kbd-color;\n background-color: @kbd-bg;\n border-radius: @border-radius-small;\n box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);\n\n kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n }\n}\n\n// Blocks of code\npre {\n display: block;\n padding: ((@line-height-computed - 1) / 2);\n margin: 0 0 (@line-height-computed / 2);\n font-size: (@font-size-base - 1); // 14px to 13px\n line-height: @line-height-base;\n word-break: break-all;\n word-wrap: break-word;\n color: @pre-color;\n background-color: @pre-bg;\n border: 1px solid @pre-border-color;\n border-radius: @border-radius-base;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n }\n}\n\n// Enable scrollable blocks of code\n.pre-scrollable {\n max-height: @pre-scrollable-max-height;\n overflow-y: scroll;\n}\n","//\n// Grid system\n// --------------------------------------------------\n\n\n// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n.container {\n .container-fixed();\n\n @media (min-width: @screen-sm-min) {\n width: @container-sm;\n }\n @media (min-width: @screen-md-min) {\n width: @container-md;\n }\n @media (min-width: @screen-lg-min) {\n width: @container-lg;\n }\n}\n\n\n// Fluid container\n//\n// Utilizes the mixin meant for fixed width containers, but without any defined\n// width for fluid, full width layouts.\n\n.container-fluid {\n .container-fixed();\n}\n\n\n// Row\n//\n// Rows contain and clear the floats of your columns.\n\n.row {\n .make-row();\n}\n\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n.make-grid-columns();\n\n\n// Extra small grid\n//\n// Columns, offsets, pushes, and pulls for extra small devices like\n// smartphones.\n\n.make-grid(xs);\n\n\n// Small grid\n//\n// Columns, offsets, pushes, and pulls for the small device range, from phones\n// to tablets.\n\n@media (min-width: @screen-sm-min) {\n .make-grid(sm);\n}\n\n\n// Medium grid\n//\n// Columns, offsets, pushes, and pulls for the desktop device range.\n\n@media (min-width: @screen-md-min) {\n .make-grid(md);\n}\n\n\n// Large grid\n//\n// Columns, offsets, pushes, and pulls for the large desktop device range.\n\n@media (min-width: @screen-lg-min) {\n .make-grid(lg);\n}\n","// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n// Centered container element\n.container-fixed(@gutter: @grid-gutter-width) {\n margin-right: auto;\n margin-left: auto;\n padding-left: floor((@gutter / 2));\n padding-right: ceil((@gutter / 2));\n &:extend(.clearfix all);\n}\n\n// Creates a wrapper for a series of columns\n.make-row(@gutter: @grid-gutter-width) {\n margin-left: ceil((@gutter / -2));\n margin-right: floor((@gutter / -2));\n &:extend(.clearfix all);\n}\n\n// Generate the extra small columns\n.make-xs-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n float: left;\n width: percentage((@columns / @grid-columns));\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n}\n.make-xs-column-offset(@columns) {\n margin-left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-push(@columns) {\n left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-pull(@columns) {\n right: percentage((@columns / @grid-columns));\n}\n\n// Generate the small columns\n.make-sm-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-sm-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-offset(@columns) {\n @media (min-width: @screen-sm-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-push(@columns) {\n @media (min-width: @screen-sm-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-pull(@columns) {\n @media (min-width: @screen-sm-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the medium columns\n.make-md-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-md-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-offset(@columns) {\n @media (min-width: @screen-md-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-push(@columns) {\n @media (min-width: @screen-md-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-pull(@columns) {\n @media (min-width: @screen-md-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the large columns\n.make-lg-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-lg-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-offset(@columns) {\n @media (min-width: @screen-lg-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-push(@columns) {\n @media (min-width: @screen-lg-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-pull(@columns) {\n @media (min-width: @screen-lg-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `@grid-columns`.\n\n.make-grid-columns() {\n // Common styles for all sizes of grid columns, widths 1-12\n .col(@index) { // initial\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general; \"=<\" isn't a typo\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n position: relative;\n // Prevent columns from collapsing when empty\n min-height: 1px;\n // Inner gutter via padding\n padding-left: ceil((@grid-gutter-width / 2));\n padding-right: floor((@grid-gutter-width / 2));\n }\n }\n .col(1); // kickstart it\n}\n\n.float-grid-columns(@class) {\n .col(@index) { // initial\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n float: left;\n }\n }\n .col(1); // kickstart it\n}\n\n.calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {\n .col-@{class}-@{index} {\n width: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {\n .col-@{class}-push-@{index} {\n left: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {\n .col-@{class}-push-0 {\n left: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {\n .col-@{class}-pull-@{index} {\n right: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {\n .col-@{class}-pull-0 {\n right: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = offset) {\n .col-@{class}-offset-@{index} {\n margin-left: percentage((@index / @grid-columns));\n }\n}\n\n// Basic looping in LESS\n.loop-grid-columns(@index, @class, @type) when (@index >= 0) {\n .calc-grid-column(@index, @class, @type);\n // next iteration\n .loop-grid-columns((@index - 1), @class, @type);\n}\n\n// Create grid for specific class\n.make-grid(@class) {\n .float-grid-columns(@class);\n .loop-grid-columns(@grid-columns, @class, width);\n .loop-grid-columns(@grid-columns, @class, pull);\n .loop-grid-columns(@grid-columns, @class, push);\n .loop-grid-columns(@grid-columns, @class, offset);\n}\n","//\n// Tables\n// --------------------------------------------------\n\n\ntable {\n background-color: @table-bg;\n}\ncaption {\n padding-top: @table-cell-padding;\n padding-bottom: @table-cell-padding;\n color: @text-muted;\n text-align: left;\n}\nth {\n text-align: left;\n}\n\n\n// Baseline styles\n\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: @line-height-computed;\n // Cells\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-cell-padding;\n line-height: @line-height-base;\n vertical-align: top;\n border-top: 1px solid @table-border-color;\n }\n }\n }\n // Bottom align for column headings\n > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid @table-border-color;\n }\n // Remove top border from thead by default\n > caption + thead,\n > colgroup + thead,\n > thead:first-child {\n > tr:first-child {\n > th,\n > td {\n border-top: 0;\n }\n }\n }\n // Account for multiple tbody instances\n > tbody + tbody {\n border-top: 2px solid @table-border-color;\n }\n\n // Nesting\n .table {\n background-color: @body-bg;\n }\n}\n\n\n// Condensed table w/ half padding\n\n.table-condensed {\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-condensed-cell-padding;\n }\n }\n }\n}\n\n\n// Bordered version\n//\n// Add borders all around the table and between all the columns.\n\n.table-bordered {\n border: 1px solid @table-border-color;\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n border: 1px solid @table-border-color;\n }\n }\n }\n > thead > tr {\n > th,\n > td {\n border-bottom-width: 2px;\n }\n }\n}\n\n\n// Zebra-striping\n//\n// Default zebra-stripe styles (alternating gray and transparent backgrounds)\n\n.table-striped {\n > tbody > tr:nth-of-type(odd) {\n background-color: @table-bg-accent;\n }\n}\n\n\n// Hover effect\n//\n// Placed here since it has to come after the potential zebra striping\n\n.table-hover {\n > tbody > tr:hover {\n background-color: @table-bg-hover;\n }\n}\n\n\n// Table cell sizing\n//\n// Reset default table behavior\n\ntable col[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-column;\n}\ntable {\n td,\n th {\n &[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-cell;\n }\n }\n}\n\n\n// Table backgrounds\n//\n// Exact selectors below required to override `.table-striped` and prevent\n// inheritance to nested tables.\n\n// Generate the contextual variants\n.table-row-variant(active; @table-bg-active);\n.table-row-variant(success; @state-success-bg);\n.table-row-variant(info; @state-info-bg);\n.table-row-variant(warning; @state-warning-bg);\n.table-row-variant(danger; @state-danger-bg);\n\n\n// Responsive tables\n//\n// Wrap your tables in `.table-responsive` and we'll make them mobile friendly\n// by enabling horizontal scrolling. Only applies <768px. Everything above that\n// will display normally.\n\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)\n\n @media screen and (max-width: @screen-xs-max) {\n width: 100%;\n margin-bottom: (@line-height-computed * 0.75);\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid @table-border-color;\n\n // Tighten up spacing\n > .table {\n margin-bottom: 0;\n\n // Ensure the content doesn't wrap\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n white-space: nowrap;\n }\n }\n }\n }\n\n // Special overrides for the bordered tables\n > .table-bordered {\n border: 0;\n\n // Nuke the appropriate borders so that the parent can handle them\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th:first-child,\n > td:first-child {\n border-left: 0;\n }\n > th:last-child,\n > td:last-child {\n border-right: 0;\n }\n }\n }\n\n // Only nuke the last row's bottom-border in `tbody` and `tfoot` since\n // chances are there will be only one `tr` in a `thead` and that would\n // remove the border altogether.\n > tbody,\n > tfoot {\n > tr:last-child {\n > th,\n > td {\n border-bottom: 0;\n }\n }\n }\n\n }\n }\n}\n","// Tables\n\n.table-row-variant(@state; @background) {\n // Exact selectors below required to override `.table-striped` and prevent\n // inheritance to nested tables.\n .table > thead > tr,\n .table > tbody > tr,\n .table > tfoot > tr {\n > td.@{state},\n > th.@{state},\n &.@{state} > td,\n &.@{state} > th {\n background-color: @background;\n }\n }\n\n // Hover states for `.table-hover`\n // Note: this is not available for cells or rows within `thead` or `tfoot`.\n .table-hover > tbody > tr {\n > td.@{state}:hover,\n > th.@{state}:hover,\n &.@{state}:hover > td,\n &:hover > .@{state},\n &.@{state}:hover > th {\n background-color: darken(@background, 5%);\n }\n }\n}\n","//\n// Forms\n// --------------------------------------------------\n\n\n// Normalize non-controls\n//\n// Restyle and baseline non-control form elements.\n\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n // Chrome and Firefox set a `min-width: min-content;` on fieldsets,\n // so we reset that to ensure it behaves more like a standard block element.\n // See https://github.com/twbs/bootstrap/issues/12359.\n min-width: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: @line-height-computed;\n font-size: (@font-size-base * 1.5);\n line-height: inherit;\n color: @legend-color;\n border: 0;\n border-bottom: 1px solid @legend-border-color;\n}\n\nlabel {\n display: inline-block;\n max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)\n margin-bottom: 5px;\n font-weight: bold;\n}\n\n\n// Normalize form controls\n//\n// While most of our form styles require extra classes, some basic normalization\n// is required to ensure optimum display with or without those classes to better\n// address browser inconsistencies.\n\n// Override content-box in Normalize (* isn't specific enough)\ninput[type=\"search\"] {\n .box-sizing(border-box);\n}\n\n// Position radios and checkboxes better\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9; // IE8-9\n line-height: normal;\n}\n\ninput[type=\"file\"] {\n display: block;\n}\n\n// Make range inputs behave like textual form controls\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\n\n// Make multiple select elements height not fixed\nselect[multiple],\nselect[size] {\n height: auto;\n}\n\n// Focus for file, radio, and checkbox\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n .tab-focus();\n}\n\n// Adjust output element\noutput {\n display: block;\n padding-top: (@padding-base-vertical + 1);\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n}\n\n\n// Common form controls\n//\n// Shared size and type resets for form controls. Apply `.form-control` to any\n// of the following form controls:\n//\n// select\n// textarea\n// input[type=\"text\"]\n// input[type=\"password\"]\n// input[type=\"datetime\"]\n// input[type=\"datetime-local\"]\n// input[type=\"date\"]\n// input[type=\"month\"]\n// input[type=\"time\"]\n// input[type=\"week\"]\n// input[type=\"number\"]\n// input[type=\"email\"]\n// input[type=\"url\"]\n// input[type=\"search\"]\n// input[type=\"tel\"]\n// input[type=\"color\"]\n\n.form-control {\n display: block;\n width: 100%;\n height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)\n padding: @padding-base-vertical @padding-base-horizontal;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n background-color: @input-bg;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid @input-border;\n border-radius: @input-border-radius; // Note: This has no effect on s in CSS.\n .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));\n .transition(~\"border-color ease-in-out .15s, box-shadow ease-in-out .15s\");\n\n // Customize the `:focus` state to imitate native WebKit styles.\n .form-control-focus();\n\n // Placeholder\n .placeholder();\n\n // Unstyle the caret on ``\n// element gets special love because it's special, and that's a fact!\n.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n height: @input-height;\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n border-radius: @border-radius;\n\n select& {\n height: @input-height;\n line-height: @input-height;\n }\n\n textarea&,\n select[multiple]& {\n height: auto;\n }\n}\n","//\n// Buttons\n// --------------------------------------------------\n\n\n// Base styles\n// --------------------------------------------------\n\n.btn {\n display: inline-block;\n margin-bottom: 0; // For input.btn\n font-weight: @btn-font-weight;\n text-align: center;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid transparent;\n white-space: nowrap;\n .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @btn-border-radius-base);\n .user-select(none);\n\n &,\n &:active,\n &.active {\n &:focus,\n &.focus {\n .tab-focus();\n }\n }\n\n &:hover,\n &:focus,\n &.focus {\n color: @btn-default-color;\n text-decoration: none;\n }\n\n &:active,\n &.active {\n outline: 0;\n background-image: none;\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n cursor: @cursor-disabled;\n .opacity(.65);\n .box-shadow(none);\n }\n\n a& {\n &.disabled,\n fieldset[disabled] & {\n pointer-events: none; // Future-proof disabling of clicks on `` elements\n }\n }\n}\n\n\n// Alternate buttons\n// --------------------------------------------------\n\n.btn-default {\n .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);\n}\n.btn-primary {\n .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);\n}\n// Success appears as green\n.btn-success {\n .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);\n}\n// Info appears as blue-green\n.btn-info {\n .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);\n}\n// Warning appears as orange\n.btn-warning {\n .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);\n}\n// Danger and error appear as red\n.btn-danger {\n .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);\n}\n\n\n// Link buttons\n// -------------------------\n\n// Make a button look and behave like a link\n.btn-link {\n color: @link-color;\n font-weight: normal;\n border-radius: 0;\n\n &,\n &:active,\n &.active,\n &[disabled],\n fieldset[disabled] & {\n background-color: transparent;\n .box-shadow(none);\n }\n &,\n &:hover,\n &:focus,\n &:active {\n border-color: transparent;\n }\n &:hover,\n &:focus {\n color: @link-hover-color;\n text-decoration: @link-hover-decoration;\n background-color: transparent;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @btn-link-disabled-color;\n text-decoration: none;\n }\n }\n}\n\n\n// Button Sizes\n// --------------------------------------------------\n\n.btn-lg {\n // line-height: ensure even-numbered height of button next to large input\n .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @btn-border-radius-large);\n}\n.btn-sm {\n // line-height: ensure proper height of button next to small input\n .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);\n}\n.btn-xs {\n .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);\n}\n\n\n// Block button\n// --------------------------------------------------\n\n.btn-block {\n display: block;\n width: 100%;\n}\n\n// Vertically space out multiple block buttons\n.btn-block + .btn-block {\n margin-top: 5px;\n}\n\n// Specificity overrides\ninput[type=\"submit\"],\ninput[type=\"reset\"],\ninput[type=\"button\"] {\n &.btn-block {\n width: 100%;\n }\n}\n","// Button variants\n//\n// Easily pump out default styles, as well as :hover, :focus, :active,\n// and disabled options for all buttons\n\n.button-variant(@color; @background; @border) {\n color: @color;\n background-color: @background;\n border-color: @border;\n\n &:focus,\n &.focus {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 25%);\n }\n &:hover {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 12%);\n }\n &:active,\n &.active,\n .open > .dropdown-toggle& {\n color: @color;\n background-color: darken(@background, 10%);\n border-color: darken(@border, 12%);\n\n &:hover,\n &:focus,\n &.focus {\n color: @color;\n background-color: darken(@background, 17%);\n border-color: darken(@border, 25%);\n }\n }\n &:active,\n &.active,\n .open > .dropdown-toggle& {\n background-image: none;\n }\n &.disabled,\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus,\n &.focus {\n background-color: @background;\n border-color: @border;\n }\n }\n\n .badge {\n color: @background;\n background-color: @color;\n }\n}\n\n// Button sizes\n.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n border-radius: @border-radius;\n}\n","// Opacity\n\n.opacity(@opacity) {\n opacity: @opacity;\n // IE8 filter\n @opacity-ie: (@opacity * 100);\n filter: ~\"alpha(opacity=@{opacity-ie})\";\n}\n","//\n// Component animations\n// --------------------------------------------------\n\n// Heads up!\n//\n// We don't use the `.opacity()` mixin here since it causes a bug with text\n// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.\n\n.fade {\n opacity: 0;\n .transition(opacity .15s linear);\n &.in {\n opacity: 1;\n }\n}\n\n.collapse {\n display: none;\n\n &.in { display: block; }\n tr&.in { display: table-row; }\n tbody&.in { display: table-row-group; }\n}\n\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n .transition-property(~\"height, visibility\");\n .transition-duration(.35s);\n .transition-timing-function(ease);\n}\n","//\n// Dropdown menus\n// --------------------------------------------------\n\n\n// Dropdown arrow/caret\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: @caret-width-base dashed;\n border-top: @caret-width-base solid ~\"\\9\"; // IE8\n border-right: @caret-width-base solid transparent;\n border-left: @caret-width-base solid transparent;\n}\n\n// The dropdown wrapper (div)\n.dropup,\n.dropdown {\n position: relative;\n}\n\n// Prevent the focus on the dropdown toggle when closing dropdowns\n.dropdown-toggle:focus {\n outline: 0;\n}\n\n// The dropdown menu (ul)\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: @zindex-dropdown;\n display: none; // none by default, but block on \"open\" of the menu\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0; // override default ul\n list-style: none;\n font-size: @font-size-base;\n text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)\n background-color: @dropdown-bg;\n border: 1px solid @dropdown-fallback-border; // IE8 fallback\n border: 1px solid @dropdown-border;\n border-radius: @border-radius-base;\n .box-shadow(0 6px 12px rgba(0,0,0,.175));\n background-clip: padding-box;\n\n // Aligns the dropdown menu to right\n //\n // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`\n &.pull-right {\n right: 0;\n left: auto;\n }\n\n // Dividers (basically an hr) within the dropdown\n .divider {\n .nav-divider(@dropdown-divider-bg);\n }\n\n // Links within the dropdown menu\n > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: @line-height-base;\n color: @dropdown-link-color;\n white-space: nowrap; // prevent links from randomly breaking onto new lines\n }\n}\n\n// Hover/Focus state\n.dropdown-menu > li > a {\n &:hover,\n &:focus {\n text-decoration: none;\n color: @dropdown-link-hover-color;\n background-color: @dropdown-link-hover-bg;\n }\n}\n\n// Active state\n.dropdown-menu > .active > a {\n &,\n &:hover,\n &:focus {\n color: @dropdown-link-active-color;\n text-decoration: none;\n outline: 0;\n background-color: @dropdown-link-active-bg;\n }\n}\n\n// Disabled state\n//\n// Gray out text and ensure the hover/focus state remains gray\n\n.dropdown-menu > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @dropdown-link-disabled-color;\n }\n\n // Nuke hover/focus effects\n &:hover,\n &:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none; // Remove CSS gradient\n .reset-filter();\n cursor: @cursor-disabled;\n }\n}\n\n// Open state for the dropdown\n.open {\n // Show the menu\n > .dropdown-menu {\n display: block;\n }\n\n // Remove the outline when :focus is triggered\n > a {\n outline: 0;\n }\n}\n\n// Menu positioning\n//\n// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown\n// menu with the parent.\n.dropdown-menu-right {\n left: auto; // Reset the default from `.dropdown-menu`\n right: 0;\n}\n// With v3, we enabled auto-flipping if you have a dropdown within a right\n// aligned nav component. To enable the undoing of that, we provide an override\n// to restore the default dropdown menu alignment.\n//\n// This is only for left-aligning a dropdown menu within a `.navbar-right` or\n// `.pull-right` nav component.\n.dropdown-menu-left {\n left: 0;\n right: auto;\n}\n\n// Dropdown section headers\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: @font-size-small;\n line-height: @line-height-base;\n color: @dropdown-header-color;\n white-space: nowrap; // as with > li > a\n}\n\n// Backdrop to catch body clicks on mobile, etc.\n.dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: (@zindex-dropdown - 10);\n}\n\n// Right aligned dropdowns\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n\n// Allow for dropdowns to go bottom up (aka, dropup-menu)\n//\n// Just add .dropup after the standard .dropdown class and you're set, bro.\n// TODO: abstract this so that the navbar fixed styles are not placed here?\n\n.dropup,\n.navbar-fixed-bottom .dropdown {\n // Reverse the caret\n .caret {\n border-top: 0;\n border-bottom: @caret-width-base dashed;\n border-bottom: @caret-width-base solid ~\"\\9\"; // IE8\n content: \"\";\n }\n // Different positioning for bottom up menu\n .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 2px;\n }\n}\n\n\n// Component alignment\n//\n// Reiterate per navbar.less and the modified component alignment there.\n\n@media (min-width: @grid-float-breakpoint) {\n .navbar-right {\n .dropdown-menu {\n .dropdown-menu-right();\n }\n // Necessary for overrides of the default right aligned menu.\n // Will remove come v4 in all likelihood.\n .dropdown-menu-left {\n .dropdown-menu-left();\n }\n }\n}\n","// Horizontal dividers\n//\n// Dividers (basically an hr) within dropdowns and nav lists\n\n.nav-divider(@color: #e5e5e5) {\n height: 1px;\n margin: ((@line-height-computed / 2) - 1) 0;\n overflow: hidden;\n background-color: @color;\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n","//\n// Button groups\n// --------------------------------------------------\n\n// Make the div behave like a button\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle; // match .btn alignment given font-size hack above\n > .btn {\n position: relative;\n float: left;\n // Bring the \"active\" button to the front\n &:hover,\n &:focus,\n &:active,\n &.active {\n z-index: 2;\n }\n }\n}\n\n// Prevent double borders when buttons are next to each other\n.btn-group {\n .btn + .btn,\n .btn + .btn-group,\n .btn-group + .btn,\n .btn-group + .btn-group {\n margin-left: -1px;\n }\n}\n\n// Optional: Group multiple button groups together for a toolbar\n.btn-toolbar {\n margin-left: -5px; // Offset the first child's margin\n &:extend(.clearfix all);\n\n .btn,\n .btn-group,\n .input-group {\n float: left;\n }\n > .btn,\n > .btn-group,\n > .input-group {\n margin-left: 5px;\n }\n}\n\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n\n// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match\n.btn-group > .btn:first-child {\n margin-left: 0;\n &:not(:last-child):not(.dropdown-toggle) {\n .border-right-radius(0);\n }\n}\n// Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n .border-left-radius(0);\n}\n\n// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child:not(:last-child) {\n > .btn:last-child,\n > .dropdown-toggle {\n .border-right-radius(0);\n }\n}\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n .border-left-radius(0);\n}\n\n// On active and open, don't show outline\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n\n\n// Sizing\n//\n// Remix the default button sizing classes into new ones for easier manipulation.\n\n.btn-group-xs > .btn { &:extend(.btn-xs); }\n.btn-group-sm > .btn { &:extend(.btn-sm); }\n.btn-group-lg > .btn { &:extend(.btn-lg); }\n\n\n// Split button dropdowns\n// ----------------------\n\n// Give the line between buttons some depth\n.btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n}\n\n// The clickable button for toggling the menu\n// Remove the gradient and set the same inset shadow as the :active state\n.btn-group.open .dropdown-toggle {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n\n // Show no shadow for `.btn-link` since it has no other button styles.\n &.btn-link {\n .box-shadow(none);\n }\n}\n\n\n// Reposition the caret\n.btn .caret {\n margin-left: 0;\n}\n// Carets in other button sizes\n.btn-lg .caret {\n border-width: @caret-width-large @caret-width-large 0;\n border-bottom-width: 0;\n}\n// Upside down carets for .dropup\n.dropup .btn-lg .caret {\n border-width: 0 @caret-width-large @caret-width-large;\n}\n\n\n// Vertical button groups\n// ----------------------\n\n.btn-group-vertical {\n > .btn,\n > .btn-group,\n > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n }\n\n // Clear floats so dropdown menus can be properly placed\n > .btn-group {\n &:extend(.clearfix all);\n > .btn {\n float: none;\n }\n }\n\n > .btn + .btn,\n > .btn + .btn-group,\n > .btn-group + .btn,\n > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n }\n}\n\n.btn-group-vertical > .btn {\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n &:first-child:not(:last-child) {\n .border-top-radius(@btn-border-radius-base);\n .border-bottom-radius(0);\n }\n &:last-child:not(:first-child) {\n .border-top-radius(0);\n .border-bottom-radius(@btn-border-radius-base);\n }\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) {\n > .btn:last-child,\n > .dropdown-toggle {\n .border-bottom-radius(0);\n }\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n .border-top-radius(0);\n}\n\n\n// Justified button groups\n// ----------------------\n\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n > .btn,\n > .btn-group {\n float: none;\n display: table-cell;\n width: 1%;\n }\n > .btn-group .btn {\n width: 100%;\n }\n\n > .btn-group .dropdown-menu {\n left: auto;\n }\n}\n\n\n// Checkbox and radio options\n//\n// In order to support the browser's form validation feedback, powered by the\n// `required` attribute, we have to \"hide\" the inputs via `clip`. We cannot use\n// `display: none;` or `visibility: hidden;` as that also hides the popover.\n// Simply visually hiding the inputs via `opacity` would leave them clickable in\n// certain cases which is prevented by using `clip` and `pointer-events`.\n// This way, we ensure a DOM element is visible to position the popover from.\n//\n// See https://github.com/twbs/bootstrap/pull/12794 and\n// https://github.com/twbs/bootstrap/pull/14559 for more information.\n\n[data-toggle=\"buttons\"] {\n > .btn,\n > .btn-group > .btn {\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0,0,0,0);\n pointer-events: none;\n }\n }\n}\n","// Single side border-radius\n\n.border-top-radius(@radius) {\n border-top-right-radius: @radius;\n border-top-left-radius: @radius;\n}\n.border-right-radius(@radius) {\n border-bottom-right-radius: @radius;\n border-top-right-radius: @radius;\n}\n.border-bottom-radius(@radius) {\n border-bottom-right-radius: @radius;\n border-bottom-left-radius: @radius;\n}\n.border-left-radius(@radius) {\n border-bottom-left-radius: @radius;\n border-top-left-radius: @radius;\n}\n","//\n// Input groups\n// --------------------------------------------------\n\n// Base styles\n// -------------------------\n.input-group {\n position: relative; // For dropdowns\n display: table;\n border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table\n\n // Undo padding and float of grid classes\n &[class*=\"col-\"] {\n float: none;\n padding-left: 0;\n padding-right: 0;\n }\n\n .form-control {\n // Ensure that the input is always above the *appended* addon button for\n // proper border colors.\n position: relative;\n z-index: 2;\n\n // IE9 fubars the placeholder attribute in text inputs and the arrows on\n // select elements in input groups. To fix it, we float the input. Details:\n // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855\n float: left;\n\n width: 100%;\n margin-bottom: 0;\n\n &:focus {\n z-index: 3;\n }\n }\n}\n\n// Sizing options\n//\n// Remix the default form control sizing classes into new ones for easier\n// manipulation.\n\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n .input-lg();\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n .input-sm();\n}\n\n\n// Display as table-cell\n// -------------------------\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n}\n// Addon and addon wrapper for buttons\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle; // Match the inputs\n}\n\n// Text input groups\n// -------------------------\n.input-group-addon {\n padding: @padding-base-vertical @padding-base-horizontal;\n font-size: @font-size-base;\n font-weight: normal;\n line-height: 1;\n color: @input-color;\n text-align: center;\n background-color: @input-group-addon-bg;\n border: 1px solid @input-group-addon-border-color;\n border-radius: @input-border-radius;\n\n // Sizing\n &.input-sm {\n padding: @padding-small-vertical @padding-small-horizontal;\n font-size: @font-size-small;\n border-radius: @input-border-radius-small;\n }\n &.input-lg {\n padding: @padding-large-vertical @padding-large-horizontal;\n font-size: @font-size-large;\n border-radius: @input-border-radius-large;\n }\n\n // Nuke default margins from checkboxes and radios to vertically center within.\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n margin-top: 0;\n }\n}\n\n// Reset rounded corners\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n .border-right-radius(0);\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n .border-left-radius(0);\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n\n// Button input groups\n// -------------------------\n.input-group-btn {\n position: relative;\n // Jankily prevent input button groups from wrapping with `white-space` and\n // `font-size` in combination with `inline-block` on buttons.\n font-size: 0;\n white-space: nowrap;\n\n // Negative margin for spacing, position for bringing hovered/focused/actived\n // element above the siblings.\n > .btn {\n position: relative;\n + .btn {\n margin-left: -1px;\n }\n // Bring the \"active\" button to the front\n &:hover,\n &:focus,\n &:active {\n z-index: 2;\n }\n }\n\n // Negative margin to only have a 1px border between the two\n &:first-child {\n > .btn,\n > .btn-group {\n margin-right: -1px;\n }\n }\n &:last-child {\n > .btn,\n > .btn-group {\n z-index: 2;\n margin-left: -1px;\n }\n }\n}\n","//\n// Navs\n// --------------------------------------------------\n\n\n// Base class\n// --------------------------------------------------\n\n.nav {\n margin-bottom: 0;\n padding-left: 0; // Override default ul/ol\n list-style: none;\n &:extend(.clearfix all);\n\n > li {\n position: relative;\n display: block;\n\n > a {\n position: relative;\n display: block;\n padding: @nav-link-padding;\n &:hover,\n &:focus {\n text-decoration: none;\n background-color: @nav-link-hover-bg;\n }\n }\n\n // Disabled state sets text to gray and nukes hover/tab effects\n &.disabled > a {\n color: @nav-disabled-link-color;\n\n &:hover,\n &:focus {\n color: @nav-disabled-link-hover-color;\n text-decoration: none;\n background-color: transparent;\n cursor: @cursor-disabled;\n }\n }\n }\n\n // Open dropdowns\n .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @nav-link-hover-bg;\n border-color: @link-color;\n }\n }\n\n // Nav dividers (deprecated with v3.0.1)\n //\n // This should have been removed in v3 with the dropping of `.nav-list`, but\n // we missed it. We don't currently support this anywhere, but in the interest\n // of maintaining backward compatibility in case you use it, it's deprecated.\n .nav-divider {\n .nav-divider();\n }\n\n // Prevent IE8 from misplacing imgs\n //\n // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989\n > li > a > img {\n max-width: none;\n }\n}\n\n\n// Tabs\n// -------------------------\n\n// Give the tabs something to sit on\n.nav-tabs {\n border-bottom: 1px solid @nav-tabs-border-color;\n > li {\n float: left;\n // Make the list-items overlay the bottom border\n margin-bottom: -1px;\n\n // Actual tabs (as links)\n > a {\n margin-right: 2px;\n line-height: @line-height-base;\n border: 1px solid transparent;\n border-radius: @border-radius-base @border-radius-base 0 0;\n &:hover {\n border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color;\n }\n }\n\n // Active state, and its :hover to override normal :hover\n &.active > a {\n &,\n &:hover,\n &:focus {\n color: @nav-tabs-active-link-hover-color;\n background-color: @nav-tabs-active-link-hover-bg;\n border: 1px solid @nav-tabs-active-link-hover-border-color;\n border-bottom-color: transparent;\n cursor: default;\n }\n }\n }\n // pulling this in mainly for less shorthand\n &.nav-justified {\n .nav-justified();\n .nav-tabs-justified();\n }\n}\n\n\n// Pills\n// -------------------------\n.nav-pills {\n > li {\n float: left;\n\n // Links rendered as pills\n > a {\n border-radius: @nav-pills-border-radius;\n }\n + li {\n margin-left: 2px;\n }\n\n // Active state\n &.active > a {\n &,\n &:hover,\n &:focus {\n color: @nav-pills-active-link-hover-color;\n background-color: @nav-pills-active-link-hover-bg;\n }\n }\n }\n}\n\n\n// Stacked pills\n.nav-stacked {\n > li {\n float: none;\n + li {\n margin-top: 2px;\n margin-left: 0; // no need for this gap between nav items\n }\n }\n}\n\n\n// Nav variations\n// --------------------------------------------------\n\n// Justified nav links\n// -------------------------\n\n.nav-justified {\n width: 100%;\n\n > li {\n float: none;\n > a {\n text-align: center;\n margin-bottom: 5px;\n }\n }\n\n > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n }\n\n @media (min-width: @screen-sm-min) {\n > li {\n display: table-cell;\n width: 1%;\n > a {\n margin-bottom: 0;\n }\n }\n }\n}\n\n// Move borders to anchors instead of bottom of list\n//\n// Mixin for adding on top the shared `.nav-justified` styles for our tabs\n.nav-tabs-justified {\n border-bottom: 0;\n\n > li > a {\n // Override margin from .nav-tabs\n margin-right: 0;\n border-radius: @border-radius-base;\n }\n\n > .active > a,\n > .active > a:hover,\n > .active > a:focus {\n border: 1px solid @nav-tabs-justified-link-border-color;\n }\n\n @media (min-width: @screen-sm-min) {\n > li > a {\n border-bottom: 1px solid @nav-tabs-justified-link-border-color;\n border-radius: @border-radius-base @border-radius-base 0 0;\n }\n > .active > a,\n > .active > a:hover,\n > .active > a:focus {\n border-bottom-color: @nav-tabs-justified-active-link-border-color;\n }\n }\n}\n\n\n// Tabbable tabs\n// -------------------------\n\n// Hide tabbable panes to start, show them when `.active`\n.tab-content {\n > .tab-pane {\n display: none;\n }\n > .active {\n display: block;\n }\n}\n\n\n// Dropdowns\n// -------------------------\n\n// Specific dropdowns\n.nav-tabs .dropdown-menu {\n // make dropdown border overlap tab border\n margin-top: -1px;\n // Remove the top rounded corners here since there is a hard edge above the menu\n .border-top-radius(0);\n}\n","//\n// Navbars\n// --------------------------------------------------\n\n\n// Wrapper and base class\n//\n// Provide a static navbar from which we expand to create full-width, fixed, and\n// other navbar variations.\n\n.navbar {\n position: relative;\n min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)\n margin-bottom: @navbar-margin-bottom;\n border: 1px solid transparent;\n\n // Prevent floats from breaking the navbar\n &:extend(.clearfix all);\n\n @media (min-width: @grid-float-breakpoint) {\n border-radius: @navbar-border-radius;\n }\n}\n\n\n// Navbar heading\n//\n// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy\n// styling of responsive aspects.\n\n.navbar-header {\n &:extend(.clearfix all);\n\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n }\n}\n\n\n// Navbar collapse (body)\n//\n// Group your navbar content into this for easy collapsing and expanding across\n// various device sizes. By default, this content is collapsed when <768px, but\n// will expand past that for a horizontal display.\n//\n// To start (on mobile devices) the navbar links, forms, and buttons are stacked\n// vertically and include a `max-height` to overflow in case you have too much\n// content for the user's viewport.\n\n.navbar-collapse {\n overflow-x: visible;\n padding-right: @navbar-padding-horizontal;\n padding-left: @navbar-padding-horizontal;\n border-top: 1px solid transparent;\n box-shadow: inset 0 1px 0 rgba(255,255,255,.1);\n &:extend(.clearfix all);\n -webkit-overflow-scrolling: touch;\n\n &.in {\n overflow-y: auto;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n width: auto;\n border-top: 0;\n box-shadow: none;\n\n &.collapse {\n display: block !important;\n height: auto !important;\n padding-bottom: 0; // Override default setting\n overflow: visible !important;\n }\n\n &.in {\n overflow-y: visible;\n }\n\n // Undo the collapse side padding for navbars with containers to ensure\n // alignment of right-aligned contents.\n .navbar-fixed-top &,\n .navbar-static-top &,\n .navbar-fixed-bottom & {\n padding-left: 0;\n padding-right: 0;\n }\n }\n}\n\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n .navbar-collapse {\n max-height: @navbar-collapse-max-height;\n\n @media (max-device-width: @screen-xs-min) and (orientation: landscape) {\n max-height: 200px;\n }\n }\n}\n\n\n// Both navbar header and collapse\n//\n// When a container is present, change the behavior of the header and collapse.\n\n.container,\n.container-fluid {\n > .navbar-header,\n > .navbar-collapse {\n margin-right: -@navbar-padding-horizontal;\n margin-left: -@navbar-padding-horizontal;\n\n @media (min-width: @grid-float-breakpoint) {\n margin-right: 0;\n margin-left: 0;\n }\n }\n}\n\n\n//\n// Navbar alignment options\n//\n// Display the navbar across the entirety of the page or fixed it to the top or\n// bottom of the page.\n\n// Static top (unfixed, but 100% wide) navbar\n.navbar-static-top {\n z-index: @zindex-navbar;\n border-width: 0 0 1px;\n\n @media (min-width: @grid-float-breakpoint) {\n border-radius: 0;\n }\n}\n\n// Fix the top/bottom navbars when screen real estate supports it\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: @zindex-navbar-fixed;\n\n // Undo the rounded corners\n @media (min-width: @grid-float-breakpoint) {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0; // override .navbar defaults\n border-width: 1px 0 0;\n}\n\n\n// Brand/project name\n\n.navbar-brand {\n float: left;\n padding: @navbar-padding-vertical @navbar-padding-horizontal;\n font-size: @font-size-large;\n line-height: @line-height-computed;\n height: @navbar-height;\n\n &:hover,\n &:focus {\n text-decoration: none;\n }\n\n > img {\n display: block;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n .navbar > .container &,\n .navbar > .container-fluid & {\n margin-left: -@navbar-padding-horizontal;\n }\n }\n}\n\n\n// Navbar toggle\n//\n// Custom button for toggling the `.navbar-collapse`, powered by the collapse\n// JavaScript plugin.\n\n.navbar-toggle {\n position: relative;\n float: right;\n margin-right: @navbar-padding-horizontal;\n padding: 9px 10px;\n .navbar-vertical-align(34px);\n background-color: transparent;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid transparent;\n border-radius: @border-radius-base;\n\n // We remove the `outline` here, but later compensate by attaching `:hover`\n // styles to `:focus`.\n &:focus {\n outline: 0;\n }\n\n // Bars\n .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n }\n .icon-bar + .icon-bar {\n margin-top: 4px;\n }\n\n @media (min-width: @grid-float-breakpoint) {\n display: none;\n }\n}\n\n\n// Navbar nav links\n//\n// Builds on top of the `.nav` components with its own modifier class to make\n// the nav the full height of the horizontal nav (above 768px).\n\n.navbar-nav {\n margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;\n\n > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: @line-height-computed;\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display when collapsed\n .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n box-shadow: none;\n > li > a,\n .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n > li > a {\n line-height: @line-height-computed;\n &:hover,\n &:focus {\n background-image: none;\n }\n }\n }\n }\n\n // Uncollapse the nav\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n margin: 0;\n\n > li {\n float: left;\n > a {\n padding-top: @navbar-padding-vertical;\n padding-bottom: @navbar-padding-vertical;\n }\n }\n }\n}\n\n\n// Navbar form\n//\n// Extension of the `.form-inline` with some extra flavor for optimum display in\n// our navbars.\n\n.navbar-form {\n margin-left: -@navbar-padding-horizontal;\n margin-right: -@navbar-padding-horizontal;\n padding: 10px @navbar-padding-horizontal;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n @shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n\n // Mixin behavior for optimum display\n .form-inline();\n\n .form-group {\n @media (max-width: @grid-float-breakpoint-max) {\n margin-bottom: 5px;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n\n // Vertically center in expanded, horizontal navbar\n .navbar-vertical-align(@input-height-base);\n\n // Undo 100% width for pull classes\n @media (min-width: @grid-float-breakpoint) {\n width: auto;\n border: 0;\n margin-left: 0;\n margin-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n .box-shadow(none);\n }\n}\n\n\n// Dropdown menus\n\n// Menu position and menu carets\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n .border-top-radius(0);\n}\n// Menu position and menu caret support for dropups via extra dropup class\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n margin-bottom: 0;\n .border-top-radius(@navbar-border-radius);\n .border-bottom-radius(0);\n}\n\n\n// Buttons in navbars\n//\n// Vertically center a button within a navbar (when *not* in a form).\n\n.navbar-btn {\n .navbar-vertical-align(@input-height-base);\n\n &.btn-sm {\n .navbar-vertical-align(@input-height-small);\n }\n &.btn-xs {\n .navbar-vertical-align(22);\n }\n}\n\n\n// Text in navbars\n//\n// Add a class to make any element properly align itself vertically within the navbars.\n\n.navbar-text {\n .navbar-vertical-align(@line-height-computed);\n\n @media (min-width: @grid-float-breakpoint) {\n float: left;\n margin-left: @navbar-padding-horizontal;\n margin-right: @navbar-padding-horizontal;\n }\n}\n\n\n// Component alignment\n//\n// Repurpose the pull utilities as their own navbar utilities to avoid specificity\n// issues with parents and chaining. Only do this when the navbar is uncollapsed\n// though so that navbar contents properly stack and align in mobile.\n//\n// Declared after the navbar components to ensure more specificity on the margins.\n\n@media (min-width: @grid-float-breakpoint) {\n .navbar-left { .pull-left(); }\n .navbar-right {\n .pull-right();\n margin-right: -@navbar-padding-horizontal;\n\n ~ .navbar-right {\n margin-right: 0;\n }\n }\n}\n\n\n// Alternate navbars\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n background-color: @navbar-default-bg;\n border-color: @navbar-default-border;\n\n .navbar-brand {\n color: @navbar-default-brand-color;\n &:hover,\n &:focus {\n color: @navbar-default-brand-hover-color;\n background-color: @navbar-default-brand-hover-bg;\n }\n }\n\n .navbar-text {\n color: @navbar-default-color;\n }\n\n .navbar-nav {\n > li > a {\n color: @navbar-default-link-color;\n\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n background-color: @navbar-default-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-active-color;\n background-color: @navbar-default-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n background-color: @navbar-default-link-disabled-bg;\n }\n }\n }\n\n .navbar-toggle {\n border-color: @navbar-default-toggle-border-color;\n &:hover,\n &:focus {\n background-color: @navbar-default-toggle-hover-bg;\n }\n .icon-bar {\n background-color: @navbar-default-toggle-icon-bar-bg;\n }\n }\n\n .navbar-collapse,\n .navbar-form {\n border-color: @navbar-default-border;\n }\n\n // Dropdown menu items\n .navbar-nav {\n // Remove background color from open dropdown\n > .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @navbar-default-link-active-bg;\n color: @navbar-default-link-active-color;\n }\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display when collapsed\n .open .dropdown-menu {\n > li > a {\n color: @navbar-default-link-color;\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n background-color: @navbar-default-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-active-color;\n background-color: @navbar-default-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n background-color: @navbar-default-link-disabled-bg;\n }\n }\n }\n }\n }\n\n\n // Links in navbars\n //\n // Add a class to ensure links outside the navbar nav are colored correctly.\n\n .navbar-link {\n color: @navbar-default-link-color;\n &:hover {\n color: @navbar-default-link-hover-color;\n }\n }\n\n .btn-link {\n color: @navbar-default-link-color;\n &:hover,\n &:focus {\n color: @navbar-default-link-hover-color;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @navbar-default-link-disabled-color;\n }\n }\n }\n}\n\n// Inverse navbar\n\n.navbar-inverse {\n background-color: @navbar-inverse-bg;\n border-color: @navbar-inverse-border;\n\n .navbar-brand {\n color: @navbar-inverse-brand-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-brand-hover-color;\n background-color: @navbar-inverse-brand-hover-bg;\n }\n }\n\n .navbar-text {\n color: @navbar-inverse-color;\n }\n\n .navbar-nav {\n > li > a {\n color: @navbar-inverse-link-color;\n\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n background-color: @navbar-inverse-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-active-color;\n background-color: @navbar-inverse-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n background-color: @navbar-inverse-link-disabled-bg;\n }\n }\n }\n\n // Darken the responsive nav toggle\n .navbar-toggle {\n border-color: @navbar-inverse-toggle-border-color;\n &:hover,\n &:focus {\n background-color: @navbar-inverse-toggle-hover-bg;\n }\n .icon-bar {\n background-color: @navbar-inverse-toggle-icon-bar-bg;\n }\n }\n\n .navbar-collapse,\n .navbar-form {\n border-color: darken(@navbar-inverse-bg, 7%);\n }\n\n // Dropdowns\n .navbar-nav {\n > .open > a {\n &,\n &:hover,\n &:focus {\n background-color: @navbar-inverse-link-active-bg;\n color: @navbar-inverse-link-active-color;\n }\n }\n\n @media (max-width: @grid-float-breakpoint-max) {\n // Dropdowns get custom display\n .open .dropdown-menu {\n > .dropdown-header {\n border-color: @navbar-inverse-border;\n }\n .divider {\n background-color: @navbar-inverse-border;\n }\n > li > a {\n color: @navbar-inverse-link-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n background-color: @navbar-inverse-link-hover-bg;\n }\n }\n > .active > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-active-color;\n background-color: @navbar-inverse-link-active-bg;\n }\n }\n > .disabled > a {\n &,\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n background-color: @navbar-inverse-link-disabled-bg;\n }\n }\n }\n }\n }\n\n .navbar-link {\n color: @navbar-inverse-link-color;\n &:hover {\n color: @navbar-inverse-link-hover-color;\n }\n }\n\n .btn-link {\n color: @navbar-inverse-link-color;\n &:hover,\n &:focus {\n color: @navbar-inverse-link-hover-color;\n }\n &[disabled],\n fieldset[disabled] & {\n &:hover,\n &:focus {\n color: @navbar-inverse-link-disabled-color;\n }\n }\n }\n}\n","// Navbar vertical align\n//\n// Vertically center elements in the navbar.\n// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.\n\n.navbar-vertical-align(@element-height) {\n margin-top: ((@navbar-height - @element-height) / 2);\n margin-bottom: ((@navbar-height - @element-height) / 2);\n}\n","//\n// Utility classes\n// --------------------------------------------------\n\n\n// Floats\n// -------------------------\n\n.clearfix {\n .clearfix();\n}\n.center-block {\n .center-block();\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n\n\n// Toggling content\n// -------------------------\n\n// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n .text-hide();\n}\n\n\n// Hide from screenreaders and browsers\n//\n// Credit: HTML5 Boilerplate\n\n.hidden {\n display: none !important;\n}\n\n\n// For Affix plugin\n// -------------------------\n\n.affix {\n position: fixed;\n}\n","//\n// Breadcrumbs\n// --------------------------------------------------\n\n\n.breadcrumb {\n padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;\n margin-bottom: @line-height-computed;\n list-style: none;\n background-color: @breadcrumb-bg;\n border-radius: @border-radius-base;\n\n > li {\n display: inline-block;\n\n + li:before {\n content: \"@{breadcrumb-separator}\\00a0\"; // Unicode space added since inline-block means non-collapsing white-space\n padding: 0 5px;\n color: @breadcrumb-color;\n }\n }\n\n > .active {\n color: @breadcrumb-active-color;\n }\n}\n","//\n// Pagination (multiple pages)\n// --------------------------------------------------\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: @line-height-computed 0;\n border-radius: @border-radius-base;\n\n > li {\n display: inline; // Remove list-style and block-level defaults\n > a,\n > span {\n position: relative;\n float: left; // Collapse white-space\n padding: @padding-base-vertical @padding-base-horizontal;\n line-height: @line-height-base;\n text-decoration: none;\n color: @pagination-color;\n background-color: @pagination-bg;\n border: 1px solid @pagination-border;\n margin-left: -1px;\n }\n &:first-child {\n > a,\n > span {\n margin-left: 0;\n .border-left-radius(@border-radius-base);\n }\n }\n &:last-child {\n > a,\n > span {\n .border-right-radius(@border-radius-base);\n }\n }\n }\n\n > li > a,\n > li > span {\n &:hover,\n &:focus {\n z-index: 2;\n color: @pagination-hover-color;\n background-color: @pagination-hover-bg;\n border-color: @pagination-hover-border;\n }\n }\n\n > .active > a,\n > .active > span {\n &,\n &:hover,\n &:focus {\n z-index: 3;\n color: @pagination-active-color;\n background-color: @pagination-active-bg;\n border-color: @pagination-active-border;\n cursor: default;\n }\n }\n\n > .disabled {\n > span,\n > span:hover,\n > span:focus,\n > a,\n > a:hover,\n > a:focus {\n color: @pagination-disabled-color;\n background-color: @pagination-disabled-bg;\n border-color: @pagination-disabled-border;\n cursor: @cursor-disabled;\n }\n }\n}\n\n// Sizing\n// --------------------------------------------------\n\n// Large\n.pagination-lg {\n .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);\n}\n\n// Small\n.pagination-sm {\n .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);\n}\n","// Pagination\n\n.pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {\n > li {\n > a,\n > span {\n padding: @padding-vertical @padding-horizontal;\n font-size: @font-size;\n line-height: @line-height;\n }\n &:first-child {\n > a,\n > span {\n .border-left-radius(@border-radius);\n }\n }\n &:last-child {\n > a,\n > span {\n .border-right-radius(@border-radius);\n }\n }\n }\n}\n","//\n// Pager pagination\n// --------------------------------------------------\n\n\n.pager {\n padding-left: 0;\n margin: @line-height-computed 0;\n list-style: none;\n text-align: center;\n &:extend(.clearfix all);\n li {\n display: inline;\n > a,\n > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: @pager-bg;\n border: 1px solid @pager-border;\n border-radius: @pager-border-radius;\n }\n\n > a:hover,\n > a:focus {\n text-decoration: none;\n background-color: @pager-hover-bg;\n }\n }\n\n .next {\n > a,\n > span {\n float: right;\n }\n }\n\n .previous {\n > a,\n > span {\n float: left;\n }\n }\n\n .disabled {\n > a,\n > a:hover,\n > a:focus,\n > span {\n color: @pager-disabled-color;\n background-color: @pager-bg;\n cursor: @cursor-disabled;\n }\n }\n}\n","//\n// Labels\n// --------------------------------------------------\n\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: @label-color;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n\n // Add hover effects, but only for links\n a& {\n &:hover,\n &:focus {\n color: @label-link-hover-color;\n text-decoration: none;\n cursor: pointer;\n }\n }\n\n // Empty labels collapse automatically (not available in IE8)\n &:empty {\n display: none;\n }\n\n // Quick fix for labels in buttons\n .btn & {\n position: relative;\n top: -1px;\n }\n}\n\n// Colors\n// Contextual variations (linked labels get darker on :hover)\n\n.label-default {\n .label-variant(@label-default-bg);\n}\n\n.label-primary {\n .label-variant(@label-primary-bg);\n}\n\n.label-success {\n .label-variant(@label-success-bg);\n}\n\n.label-info {\n .label-variant(@label-info-bg);\n}\n\n.label-warning {\n .label-variant(@label-warning-bg);\n}\n\n.label-danger {\n .label-variant(@label-danger-bg);\n}\n","// Labels\n\n.label-variant(@color) {\n background-color: @color;\n\n &[href] {\n &:hover,\n &:focus {\n background-color: darken(@color, 10%);\n }\n }\n}\n","//\n// Badges\n// --------------------------------------------------\n\n\n// Base class\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: @font-size-small;\n font-weight: @badge-font-weight;\n color: @badge-color;\n line-height: @badge-line-height;\n vertical-align: middle;\n white-space: nowrap;\n text-align: center;\n background-color: @badge-bg;\n border-radius: @badge-border-radius;\n\n // Empty badges collapse automatically (not available in IE8)\n &:empty {\n display: none;\n }\n\n // Quick fix for badges in buttons\n .btn & {\n position: relative;\n top: -1px;\n }\n\n .btn-xs &,\n .btn-group-xs > .btn & {\n top: 0;\n padding: 1px 5px;\n }\n\n // Hover state, but only for links\n a& {\n &:hover,\n &:focus {\n color: @badge-link-hover-color;\n text-decoration: none;\n cursor: pointer;\n }\n }\n\n // Account for badges in navs\n .list-group-item.active > &,\n .nav-pills > .active > a > & {\n color: @badge-active-color;\n background-color: @badge-active-bg;\n }\n\n .list-group-item > & {\n float: right;\n }\n\n .list-group-item > & + & {\n margin-right: 5px;\n }\n\n .nav-pills > li > a > & {\n margin-left: 3px;\n }\n}\n","//\n// Jumbotron\n// --------------------------------------------------\n\n\n.jumbotron {\n padding-top: @jumbotron-padding;\n padding-bottom: @jumbotron-padding;\n margin-bottom: @jumbotron-padding;\n color: @jumbotron-color;\n background-color: @jumbotron-bg;\n\n h1,\n .h1 {\n color: @jumbotron-heading-color;\n }\n\n p {\n margin-bottom: (@jumbotron-padding / 2);\n font-size: @jumbotron-font-size;\n font-weight: 200;\n }\n\n > hr {\n border-top-color: darken(@jumbotron-bg, 10%);\n }\n\n .container &,\n .container-fluid & {\n border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container\n padding-left: (@grid-gutter-width / 2);\n padding-right: (@grid-gutter-width / 2);\n }\n\n .container {\n max-width: 100%;\n }\n\n @media screen and (min-width: @screen-sm-min) {\n padding-top: (@jumbotron-padding * 1.6);\n padding-bottom: (@jumbotron-padding * 1.6);\n\n .container &,\n .container-fluid & {\n padding-left: (@jumbotron-padding * 2);\n padding-right: (@jumbotron-padding * 2);\n }\n\n h1,\n .h1 {\n font-size: @jumbotron-heading-font-size;\n }\n }\n}\n","//\n// Thumbnails\n// --------------------------------------------------\n\n\n// Mixin and adjust the regular image class\n.thumbnail {\n display: block;\n padding: @thumbnail-padding;\n margin-bottom: @line-height-computed;\n line-height: @line-height-base;\n background-color: @thumbnail-bg;\n border: 1px solid @thumbnail-border;\n border-radius: @thumbnail-border-radius;\n .transition(border .2s ease-in-out);\n\n > img,\n a > img {\n &:extend(.img-responsive);\n margin-left: auto;\n margin-right: auto;\n }\n\n // Add a hover state for linked versions only\n a&:hover,\n a&:focus,\n a&.active {\n border-color: @link-color;\n }\n\n // Image captions\n .caption {\n padding: @thumbnail-caption-padding;\n color: @thumbnail-caption-color;\n }\n}\n","//\n// Alerts\n// --------------------------------------------------\n\n\n// Base styles\n// -------------------------\n\n.alert {\n padding: @alert-padding;\n margin-bottom: @line-height-computed;\n border: 1px solid transparent;\n border-radius: @alert-border-radius;\n\n // Headings for larger alerts\n h4 {\n margin-top: 0;\n // Specified for the h4 to prevent conflicts of changing @headings-color\n color: inherit;\n }\n\n // Provide class for links that match alerts\n .alert-link {\n font-weight: @alert-link-font-weight;\n }\n\n // Improve alignment and spacing of inner content\n > p,\n > ul {\n margin-bottom: 0;\n }\n\n > p + p {\n margin-top: 5px;\n }\n}\n\n// Dismissible alerts\n//\n// Expand the right padding and account for the close button's positioning.\n\n.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.\n.alert-dismissible {\n padding-right: (@alert-padding + 20);\n\n // Adjust close link position\n .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n }\n}\n\n// Alternate styles\n//\n// Generate contextual modifier classes for colorizing the alert.\n\n.alert-success {\n .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);\n}\n\n.alert-info {\n .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);\n}\n\n.alert-warning {\n .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);\n}\n\n.alert-danger {\n .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);\n}\n","// Alerts\n\n.alert-variant(@background; @border; @text-color) {\n background-color: @background;\n border-color: @border;\n color: @text-color;\n\n hr {\n border-top-color: darken(@border, 5%);\n }\n .alert-link {\n color: darken(@text-color, 10%);\n }\n}\n","//\n// Progress bars\n// --------------------------------------------------\n\n\n// Bar animations\n// -------------------------\n\n// WebKit\n@-webkit-keyframes progress-bar-stripes {\n from { background-position: 40px 0; }\n to { background-position: 0 0; }\n}\n\n// Spec and IE10+\n@keyframes progress-bar-stripes {\n from { background-position: 40px 0; }\n to { background-position: 0 0; }\n}\n\n\n// Bar itself\n// -------------------------\n\n// Outer container\n.progress {\n overflow: hidden;\n height: @line-height-computed;\n margin-bottom: @line-height-computed;\n background-color: @progress-bg;\n border-radius: @progress-border-radius;\n .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));\n}\n\n// Bar of progress\n.progress-bar {\n float: left;\n width: 0%;\n height: 100%;\n font-size: @font-size-small;\n line-height: @line-height-computed;\n color: @progress-bar-color;\n text-align: center;\n background-color: @progress-bar-bg;\n .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));\n .transition(width .6s ease);\n}\n\n// Striped bars\n//\n// `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the\n// `.progress-bar-striped` class, which you just add to an existing\n// `.progress-bar`.\n.progress-striped .progress-bar,\n.progress-bar-striped {\n #gradient > .striped();\n background-size: 40px 40px;\n}\n\n// Call animation for the active one\n//\n// `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the\n// `.progress-bar.active` approach.\n.progress.active .progress-bar,\n.progress-bar.active {\n .animation(progress-bar-stripes 2s linear infinite);\n}\n\n\n// Variations\n// -------------------------\n\n.progress-bar-success {\n .progress-bar-variant(@progress-bar-success-bg);\n}\n\n.progress-bar-info {\n .progress-bar-variant(@progress-bar-info-bg);\n}\n\n.progress-bar-warning {\n .progress-bar-variant(@progress-bar-warning-bg);\n}\n\n.progress-bar-danger {\n .progress-bar-variant(@progress-bar-danger-bg);\n}\n","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Progress bars\n\n.progress-bar-variant(@color) {\n background-color: @color;\n\n // Deprecated parent class requirement as of v3.2.0\n .progress-striped & {\n #gradient > .striped();\n }\n}\n",".media {\n // Proper spacing between instances of .media\n margin-top: 15px;\n\n &:first-child {\n margin-top: 0;\n }\n}\n\n.media,\n.media-body {\n zoom: 1;\n overflow: hidden;\n}\n\n.media-body {\n width: 10000px;\n}\n\n.media-object {\n display: block;\n\n // Fix collapse in webkit from max-width: 100% and display: table-cell.\n &.img-thumbnail {\n max-width: none;\n }\n}\n\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n\n.media-middle {\n vertical-align: middle;\n}\n\n.media-bottom {\n vertical-align: bottom;\n}\n\n// Reset margins on headings for tighter default spacing\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n\n// Media list variation\n//\n// Undo default ul/ol styles\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n","//\n// List groups\n// --------------------------------------------------\n\n\n// Base class\n//\n// Easily usable on
    + + +   + + +
    + + + + + + +
    +
    +
    +
      +
    • Docs »
    • + +
    • Developer’s Certificate of Origin 1.1
    • +
    • + +
    • +
      + classic layout +
      +
    +
    +
    +
    + +
    +

    Developer’s Certificate of Origin 1.1

    +

    By making a contribution to this project, I certify that:

    +
      +
    1. The contribution was created in whole or in part by me and I +have the right to submit it under the open source license +indicated in the file; or
    2. +
    3. The contribution is based upon previous work that, to the best +of my knowledge, is covered under an appropriate open source +license and I have the right under that license to submit that +work with modifications, whether created in whole or in part +by me, under the same open source license (unless I am +permitted to submit under a different license), as indicated +in the file; or
    4. +
    5. The contribution was provided directly to me by some other +person who certified (1), (2) or (3) and I have not modified +it.
    6. +
    7. I understand and agree that this project and the contribution +are public and that a record of the contribution (including all +personal information I submit with it, including my sign-off) is +maintained indefinitely and may be redistributed consistent with +this project or the open source license(s) involved.
    8. +
    +
    + + +
    +
    + + + + +
    + +
    +

    + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

    +
    + + Built with Sphinx using a theme provided by Read the Docs. + +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/_downloads/ELDocs.tmbundle.zip b/sna/user_guide/_downloads/ELDocs.tmbundle.zip new file mode 100644 index 0000000..f7a11b3 Binary files /dev/null and b/sna/user_guide/_downloads/ELDocs.tmbundle.zip differ diff --git a/sna/user_guide/_images/appflowchart.gif b/sna/user_guide/_images/appflowchart.gif new file mode 100644 index 0000000..422332c Binary files /dev/null and b/sna/user_guide/_images/appflowchart.gif differ diff --git a/sna/user_guide/_images/smile.gif b/sna/user_guide/_images/smile.gif new file mode 100644 index 0000000..bf09225 Binary files /dev/null and b/sna/user_guide/_images/smile.gif differ diff --git a/sna/user_guide/_static/ajax-loader.gif b/sna/user_guide/_static/ajax-loader.gif new file mode 100644 index 0000000..61faf8c Binary files /dev/null and b/sna/user_guide/_static/ajax-loader.gif differ diff --git a/sna/user_guide/_static/basic.css b/sna/user_guide/_static/basic.css new file mode 100644 index 0000000..967e36c --- /dev/null +++ b/sna/user_guide/_static/basic.css @@ -0,0 +1,537 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox input[type="text"] { + width: 170px; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + width: 30px; +} + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li div.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable dl, table.indextable dd { + margin-top: 0; + margin-bottom: 0; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- general body styles --------------------------------------------------- */ + +a.headerlink { + visibility: hidden; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.field-list ul { + padding-left: 1em; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px 7px 0 7px; + background-color: #ffe; + width: 40%; + float: right; +} + +p.sidebar-title { + font-weight: bold; +} + +/* -- topics ---------------------------------------------------------------- */ + +div.topic { + border: 1px solid #ccc; + padding: 7px 7px 0 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +div.admonition dl { + margin-bottom: 0; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + border: 0; + border-collapse: collapse; +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +table.field-list td, table.field-list th { + border: 0 !important; +} + +table.footnote td, table.footnote th { + border: 0 !important; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +dl { + margin-bottom: 15px; +} + +dd p { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +dt:target, .highlighted { + background-color: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.optional { + font-size: 1.3em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +td.linenos pre { + padding: 5px 0px; + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + margin-left: 0.5em; +} + +table.highlighttable td { + padding: 0 0.5em 0 0.5em; +} + +tt.descname { + background-color: transparent; + font-weight: bold; + font-size: 1.2em; +} + +tt.descclassname { + background-color: transparent; +} + +tt.xref, a tt { + background-color: transparent; + font-weight: bold; +} + +h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/sna/user_guide/_static/ci-icon.ico b/sna/user_guide/_static/ci-icon.ico new file mode 100644 index 0000000..7ecfce2 Binary files /dev/null and b/sna/user_guide/_static/ci-icon.ico differ diff --git a/sna/user_guide/_static/comment-bright.png b/sna/user_guide/_static/comment-bright.png new file mode 100644 index 0000000..551517b Binary files /dev/null and b/sna/user_guide/_static/comment-bright.png differ diff --git a/sna/user_guide/_static/comment-close.png b/sna/user_guide/_static/comment-close.png new file mode 100644 index 0000000..09b54be Binary files /dev/null and b/sna/user_guide/_static/comment-close.png differ diff --git a/sna/user_guide/_static/comment.png b/sna/user_guide/_static/comment.png new file mode 100644 index 0000000..92feb52 Binary files /dev/null and b/sna/user_guide/_static/comment.png differ diff --git a/sna/user_guide/_static/css/badge_only.css b/sna/user_guide/_static/css/badge_only.css new file mode 100644 index 0000000..7e17fb1 --- /dev/null +++ b/sna/user_guide/_static/css/badge_only.css @@ -0,0 +1,2 @@ +.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../font/fontawesome_webfont.eot");src:url("../font/fontawesome_webfont.eot?#iefix") format("embedded-opentype"),url("../font/fontawesome_webfont.woff") format("woff"),url("../font/fontawesome_webfont.ttf") format("truetype"),url("../font/fontawesome_webfont.svg#FontAwesome") format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa{display:inline-block;text-decoration:inherit}li .fa{display:inline-block}li .fa-large:before,li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas li .fa{width:0.8em}ul.fas li .fa-large:before,ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}img{width:100%;height:auto}} +/*# sourceMappingURL=badge_only.css.map */ diff --git a/sna/user_guide/_static/css/citheme.css b/sna/user_guide/_static/css/citheme.css new file mode 100644 index 0000000..a2a3b3e --- /dev/null +++ b/sna/user_guide/_static/css/citheme.css @@ -0,0 +1,88 @@ +@import 'theme.css'; + +.highlighted { + padding: 0px !important; + font-weight: inherit !important; + background-color: #f1d40f !important; +} + +#nav { + background-color: #494949; + margin: 0; + padding: 0; + display: none; +} + +#nav2 { + background: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAARgAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABAMDAwMDBAMDBAYEAwQGBwUEBAUHCAYGBwYGCAoICQkJCQgKCgwMDAwMCgwMDQ0MDBERERERFBQUFBQUFBQUFAEEBQUIBwgPCgoPFA4ODhQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAMgAzAwERAAIRAQMRAf/EAFkAAQADAQAAAAAAAAAAAAAAAAABBQcIAQEAAAAAAAAAAAAAAAAAAAAAEAABAgYDAAAAAAAAAAAAAAAAAVERAtMEFJRVBxgRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AMRAAAAAAAA7a87dZcCu3e1wHnbrLgV272uA87dZcCu3e1wHnbrLgV272uA87dZcCu3e1wHnbrLgV272uA87dZcCu3e1wN/wJGAYEjAMCRgGBIwDAkYBgSMAwJGAsoIwCCMAgjAIIwCCMAgjAIIwEgAAAAAAAAAAAAAAAAAAAAAAAH//2Q==) repeat-x scroll left top transparent; + margin: 0; + padding: 0 310px 0 0; + text-align: right; + display: none; +} + +#nav_inner { + background-color: transparent; + font-family: Lucida Grande,Verdana,Geneva,sans-serif; + font-size: 11px; + margin: 0; + padding: 8px 12px 0 20px; +} + +div#pulldown-menu { + -moz-column-count: 5; + -moz-column-gap: 20px; + -webkit-column-count: 5; + -webkit-column-gap: 20px; + column-count: 5; + column-gap: 20px; + -webkit-column-rule: 1px groove #b8b8b8; + -moz-column-rule: 1px groove #b8b8b8; + column-rule: 1px groove #b8b8b8; +} + +#pulldown-menu > ul { + padding-top: 10px; + padding-bottom: 10px; + -webkit-column-break-inside: avoid; /*Chrome, Safari*/ + display: table; /*Firefox*/ + break-inside: avoid; /*IE 10+ theoretically*/ +} + +#pulldown-menu ul li.toctree-l2 { + font-size: 0.82em; + margin-left: 20px; + list-style-image: url(data:image/gif;base64,R0lGODlhCwAJALMJAO7u7uTk5PLy8unp6fb29t7e3vj4+Li4uIWFheTk5AAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAkALAAAAAALAAkAAAQoMJ1JqTQ4Z3SI98jHCWSJkByArCyiHkMsIzEX3DeCc0Xv+4hEa5iIAAA7); +} + +#pulldown-menu ul li.toctree-l1 a { + color: #ffffff; + text-decoration: none; + font-size: 12px; + font-family: "Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif; + font-weight: 700; +} + +#pulldown-menu ul li.toctree-l2 a { + text-decoration: none; + font-size: 11px; + line-height: 1.4em; + font-weight: 300; + font-family: Lucida Grande,Verdana,Geneva,sans-serif; + color: #aaaaaa; +} + +/*hide pulldown menu on mobile devices*/ +@media (max-width: 768px) { /*tablet size defined by theme*/ + #closeMe { + display: none; + } + + #pulldown { + display: none; + } + + #openToc { + display: none; + } +} \ No newline at end of file diff --git a/sna/user_guide/_static/css/theme.css b/sna/user_guide/_static/css/theme.css new file mode 100644 index 0000000..64d4114 --- /dev/null +++ b/sna/user_guide/_static/css/theme.css @@ -0,0 +1,5 @@ +*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:hover,a:active{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;color:#000;text-decoration:none}mark{background:#ff0;color:#000;font-style:italic;font-weight:bold}pre,code,.rst-content tt,kbd,samp{font-family:monospace,serif;_font-family:"courier new",monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:before,q:after{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}ul,ol,dl{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:0;margin:0;padding:0}label{cursor:pointer}legend{border:0;*margin-left:-7px;padding:0;white-space:normal}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*width:13px;*height:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top;resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:0.2em 0;background:#ccc;color:#000;padding:0.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none !important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{html,body,section{background:none !important}*{box-shadow:none !important;text-shadow:none !important;filter:none !important;-ms-filter:none !important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:1.5cm 0.5cm 2.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}.fa:before,.rst-content .admonition-title:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content dl dt .headerlink:before,.icon:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-alert,.rst-content .note,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .warning,.rst-content .seealso,.rst-content .admonition-todo,.btn,input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],input[type="tel"],input[type="color"],select,textarea,.wy-menu-vertical li.on a,.wy-menu-vertical li.current>a,.wy-side-nav-search>a,.wy-side-nav-search .wy-dropdown>a,.wy-nav-top a{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}/*! + * Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url("../fonts/fontawesome-webfont.eot?v=4.1.0");src:url("../fonts/fontawesome-webfont.eot?#iefix&v=4.1.0") format("embedded-opentype"),url("../fonts/fontawesome-webfont.woff?v=4.1.0") format("woff"),url("../fonts/fontawesome-webfont.ttf?v=4.1.0") format("truetype"),url("../fonts/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular") format("svg");font-weight:normal;font-style:normal}.fa,.rst-content .admonition-title,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content dl dt .headerlink,.icon{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:0.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:0.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:solid 0.08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.rst-content .pull-left.admonition-title,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content dl dt .pull-left.headerlink,.pull-left.icon{margin-right:.3em}.fa.pull-right,.rst-content .pull-right.admonition-title,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-content h4 .pull-right.headerlink,.rst-content h5 .pull-right.headerlink,.rst-content h6 .pull-right.headerlink,.rst-content dl dt .pull-right.headerlink,.pull-right.icon{margin-left:.3em}.fa-spin{-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0);-webkit-transform:scale(-1, 1);-moz-transform:scale(-1, 1);-ms-transform:scale(-1, 1);-o-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:scale(1, -1);-moz-transform:scale(1, -1);-ms-transform:scale(1, -1);-o-transform:scale(1, -1);transform:scale(1, -1)}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before,.icon-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-gear:before,.fa-cog:before{content:""}.fa-trash-o:before{content:""}.fa-home:before,.icon-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-rotate-right:before,.fa-repeat:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before,.icon-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before{content:""}.fa-check-circle:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.rst-content .admonition-title:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before,.icon-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-warning:before,.fa-exclamation-triangle:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-gears:before,.fa-cogs:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook:before{content:""}.fa-github:before,.icon-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before,.icon-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.icon-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before,.icon-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-save:before,.fa-floppy-o:before{content:""}.fa-square:before{content:""}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before,.wy-dropdown .caret:before,.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-unsorted:before,.fa-sort:before{content:""}.fa-sort-down:before,.fa-sort-desc:before{content:""}.fa-sort-up:before,.fa-sort-asc:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-legal:before,.fa-gavel:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-flash:before,.fa-bolt:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-paste:before,.fa-clipboard:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-unlink:before,.fa-chain-broken:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:""}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:""}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:""}.fa-euro:before,.fa-eur:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-rupee:before,.fa-inr:before{content:""}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:""}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:""}.fa-won:before,.fa-krw:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before,.icon-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-turkish-lira:before,.fa-try:before{content:""}.fa-plus-square-o:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-institution:before,.fa-bank:before,.fa-university:before{content:""}.fa-mortar-board:before,.fa-graduation-cap:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-square:before,.fa-pied-piper:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:""}.fa-file-zip-o:before,.fa-file-archive-o:before{content:""}.fa-file-sound-o:before,.fa-file-audio-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before{content:""}.fa-ge:before,.fa-empire:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-send:before,.fa-paper-plane:before{content:""}.fa-send-o:before,.fa-paper-plane-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa,.rst-content .admonition-title,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content dl dt .headerlink,.icon,.wy-dropdown .caret,.wy-inline-validate.wy-inline-validate-success .wy-input-context,.wy-inline-validate.wy-inline-validate-danger .wy-input-context,.wy-inline-validate.wy-inline-validate-warning .wy-input-context,.wy-inline-validate.wy-inline-validate-info .wy-input-context{font-family:inherit}.fa:before,.rst-content .admonition-title:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content dl dt .headerlink:before,.icon:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before{font-family:"FontAwesome";display:inline-block;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa,a .rst-content .admonition-title,.rst-content a .admonition-title,a .rst-content h1 .headerlink,.rst-content h1 a .headerlink,a .rst-content h2 .headerlink,.rst-content h2 a .headerlink,a .rst-content h3 .headerlink,.rst-content h3 a .headerlink,a .rst-content h4 .headerlink,.rst-content h4 a .headerlink,a .rst-content h5 .headerlink,.rst-content h5 a .headerlink,a .rst-content h6 .headerlink,.rst-content h6 a .headerlink,a .rst-content dl dt .headerlink,.rst-content dl dt a .headerlink,a .icon{display:inline-block;text-decoration:inherit}.btn .fa,.btn .rst-content .admonition-title,.rst-content .btn .admonition-title,.btn .rst-content h1 .headerlink,.rst-content h1 .btn .headerlink,.btn .rst-content h2 .headerlink,.rst-content h2 .btn .headerlink,.btn .rst-content h3 .headerlink,.rst-content h3 .btn .headerlink,.btn .rst-content h4 .headerlink,.rst-content h4 .btn .headerlink,.btn .rst-content h5 .headerlink,.rst-content h5 .btn .headerlink,.btn .rst-content h6 .headerlink,.rst-content h6 .btn .headerlink,.btn .rst-content dl dt .headerlink,.rst-content dl dt .btn .headerlink,.btn .icon,.nav .fa,.nav .rst-content .admonition-title,.rst-content .nav .admonition-title,.nav .rst-content h1 .headerlink,.rst-content h1 .nav .headerlink,.nav .rst-content h2 .headerlink,.rst-content h2 .nav .headerlink,.nav .rst-content h3 .headerlink,.rst-content h3 .nav .headerlink,.nav .rst-content h4 .headerlink,.rst-content h4 .nav .headerlink,.nav .rst-content h5 .headerlink,.rst-content h5 .nav .headerlink,.nav .rst-content h6 .headerlink,.rst-content h6 .nav .headerlink,.nav .rst-content dl dt .headerlink,.rst-content dl dt .nav .headerlink,.nav .icon{display:inline}.btn .fa.fa-large,.btn .rst-content .fa-large.admonition-title,.rst-content .btn .fa-large.admonition-title,.btn .rst-content h1 .fa-large.headerlink,.rst-content h1 .btn .fa-large.headerlink,.btn .rst-content h2 .fa-large.headerlink,.rst-content h2 .btn .fa-large.headerlink,.btn .rst-content h3 .fa-large.headerlink,.rst-content h3 .btn .fa-large.headerlink,.btn .rst-content h4 .fa-large.headerlink,.rst-content h4 .btn .fa-large.headerlink,.btn .rst-content h5 .fa-large.headerlink,.rst-content h5 .btn .fa-large.headerlink,.btn .rst-content h6 .fa-large.headerlink,.rst-content h6 .btn .fa-large.headerlink,.btn .rst-content dl dt .fa-large.headerlink,.rst-content dl dt .btn .fa-large.headerlink,.btn .fa-large.icon,.nav .fa.fa-large,.nav .rst-content .fa-large.admonition-title,.rst-content .nav .fa-large.admonition-title,.nav .rst-content h1 .fa-large.headerlink,.rst-content h1 .nav .fa-large.headerlink,.nav .rst-content h2 .fa-large.headerlink,.rst-content h2 .nav .fa-large.headerlink,.nav .rst-content h3 .fa-large.headerlink,.rst-content h3 .nav .fa-large.headerlink,.nav .rst-content h4 .fa-large.headerlink,.rst-content h4 .nav .fa-large.headerlink,.nav .rst-content h5 .fa-large.headerlink,.rst-content h5 .nav .fa-large.headerlink,.nav .rst-content h6 .fa-large.headerlink,.rst-content h6 .nav .fa-large.headerlink,.nav .rst-content dl dt .fa-large.headerlink,.rst-content dl dt .nav .fa-large.headerlink,.nav .fa-large.icon{line-height:0.9em}.btn .fa.fa-spin,.btn .rst-content .fa-spin.admonition-title,.rst-content .btn .fa-spin.admonition-title,.btn .rst-content h1 .fa-spin.headerlink,.rst-content h1 .btn .fa-spin.headerlink,.btn .rst-content h2 .fa-spin.headerlink,.rst-content h2 .btn .fa-spin.headerlink,.btn .rst-content h3 .fa-spin.headerlink,.rst-content h3 .btn .fa-spin.headerlink,.btn .rst-content h4 .fa-spin.headerlink,.rst-content h4 .btn .fa-spin.headerlink,.btn .rst-content h5 .fa-spin.headerlink,.rst-content h5 .btn .fa-spin.headerlink,.btn .rst-content h6 .fa-spin.headerlink,.rst-content h6 .btn .fa-spin.headerlink,.btn .rst-content dl dt .fa-spin.headerlink,.rst-content dl dt .btn .fa-spin.headerlink,.btn .fa-spin.icon,.nav .fa.fa-spin,.nav .rst-content .fa-spin.admonition-title,.rst-content .nav .fa-spin.admonition-title,.nav .rst-content h1 .fa-spin.headerlink,.rst-content h1 .nav .fa-spin.headerlink,.nav .rst-content h2 .fa-spin.headerlink,.rst-content h2 .nav .fa-spin.headerlink,.nav .rst-content h3 .fa-spin.headerlink,.rst-content h3 .nav .fa-spin.headerlink,.nav .rst-content h4 .fa-spin.headerlink,.rst-content h4 .nav .fa-spin.headerlink,.nav .rst-content h5 .fa-spin.headerlink,.rst-content h5 .nav .fa-spin.headerlink,.nav .rst-content h6 .fa-spin.headerlink,.rst-content h6 .nav .fa-spin.headerlink,.nav .rst-content dl dt .fa-spin.headerlink,.rst-content dl dt .nav .fa-spin.headerlink,.nav .fa-spin.icon{display:inline-block}.btn.fa:before,.rst-content .btn.admonition-title:before,.rst-content h1 .btn.headerlink:before,.rst-content h2 .btn.headerlink:before,.rst-content h3 .btn.headerlink:before,.rst-content h4 .btn.headerlink:before,.rst-content h5 .btn.headerlink:before,.rst-content h6 .btn.headerlink:before,.rst-content dl dt .btn.headerlink:before,.btn.icon:before{opacity:0.5;-webkit-transition:opacity 0.05s ease-in;-moz-transition:opacity 0.05s ease-in;transition:opacity 0.05s ease-in}.btn.fa:hover:before,.rst-content .btn.admonition-title:hover:before,.rst-content h1 .btn.headerlink:hover:before,.rst-content h2 .btn.headerlink:hover:before,.rst-content h3 .btn.headerlink:hover:before,.rst-content h4 .btn.headerlink:hover:before,.rst-content h5 .btn.headerlink:hover:before,.rst-content h6 .btn.headerlink:hover:before,.rst-content dl dt .btn.headerlink:hover:before,.btn.icon:hover:before{opacity:1}.btn-mini .fa:before,.btn-mini .rst-content .admonition-title:before,.rst-content .btn-mini .admonition-title:before,.btn-mini .rst-content h1 .headerlink:before,.rst-content h1 .btn-mini .headerlink:before,.btn-mini .rst-content h2 .headerlink:before,.rst-content h2 .btn-mini .headerlink:before,.btn-mini .rst-content h3 .headerlink:before,.rst-content h3 .btn-mini .headerlink:before,.btn-mini .rst-content h4 .headerlink:before,.rst-content h4 .btn-mini .headerlink:before,.btn-mini .rst-content h5 .headerlink:before,.rst-content h5 .btn-mini .headerlink:before,.btn-mini .rst-content h6 .headerlink:before,.rst-content h6 .btn-mini .headerlink:before,.btn-mini .rst-content dl dt .headerlink:before,.rst-content dl dt .btn-mini .headerlink:before,.btn-mini .icon:before{font-size:14px;vertical-align:-15%}.wy-alert,.rst-content .note,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .warning,.rst-content .seealso,.rst-content .admonition-todo{padding:12px;line-height:24px;margin-bottom:24px;background:#dedede}.wy-alert-title,.rst-content .admonition-title{color:#fff;font-weight:bold;display:block;color:#fff;background:#8ba8af;margin:-12px;padding:6px 12px;margin-bottom:12px}.wy-alert.wy-alert-danger,.rst-content .wy-alert-danger.note,.rst-content .wy-alert-danger.attention,.rst-content .wy-alert-danger.caution,.rst-content .danger,.rst-content .error,.rst-content .wy-alert-danger.hint,.rst-content .wy-alert-danger.important,.rst-content .wy-alert-danger.tip,.rst-content .wy-alert-danger.warning,.rst-content .wy-alert-danger.seealso,.rst-content .wy-alert-danger.admonition-todo{background:#fdf3f2}.wy-alert.wy-alert-danger .wy-alert-title,.rst-content .wy-alert-danger.note .wy-alert-title,.rst-content .wy-alert-danger.attention .wy-alert-title,.rst-content .wy-alert-danger.caution .wy-alert-title,.rst-content .danger .wy-alert-title,.rst-content .error .wy-alert-title,.rst-content .wy-alert-danger.hint .wy-alert-title,.rst-content .wy-alert-danger.important .wy-alert-title,.rst-content .wy-alert-danger.tip .wy-alert-title,.rst-content .wy-alert-danger.warning .wy-alert-title,.rst-content .wy-alert-danger.seealso .wy-alert-title,.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,.wy-alert.wy-alert-danger .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-danger .admonition-title,.rst-content .wy-alert-danger.note .admonition-title,.rst-content .wy-alert-danger.attention .admonition-title,.rst-content .wy-alert-danger.caution .admonition-title,.rst-content .danger .admonition-title,.rst-content .error .admonition-title,.rst-content .wy-alert-danger.hint .admonition-title,.rst-content .wy-alert-danger.important .admonition-title,.rst-content .wy-alert-danger.tip .admonition-title,.rst-content .wy-alert-danger.warning .admonition-title,.rst-content .wy-alert-danger.seealso .admonition-title,.rst-content .wy-alert-danger.admonition-todo .admonition-title{background:#f29f97}.wy-alert.wy-alert-warning,.rst-content .wy-alert-warning.note,.rst-content .attention,.rst-content .caution,.rst-content .wy-alert-warning.danger,.rst-content .wy-alert-warning.error,.rst-content .wy-alert-warning.hint,.rst-content .wy-alert-warning.important,.rst-content .wy-alert-warning.tip,.rst-content .warning,.rst-content .wy-alert-warning.seealso,.rst-content .admonition-todo{background:#ffedcc}.wy-alert.wy-alert-warning .wy-alert-title,.rst-content .wy-alert-warning.note .wy-alert-title,.rst-content .attention .wy-alert-title,.rst-content .caution .wy-alert-title,.rst-content .wy-alert-warning.danger .wy-alert-title,.rst-content .wy-alert-warning.error .wy-alert-title,.rst-content .wy-alert-warning.hint .wy-alert-title,.rst-content .wy-alert-warning.important .wy-alert-title,.rst-content .wy-alert-warning.tip .wy-alert-title,.rst-content .warning .wy-alert-title,.rst-content .wy-alert-warning.seealso .wy-alert-title,.rst-content .admonition-todo .wy-alert-title,.wy-alert.wy-alert-warning .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-warning .admonition-title,.rst-content .wy-alert-warning.note .admonition-title,.rst-content .attention .admonition-title,.rst-content .caution .admonition-title,.rst-content .wy-alert-warning.danger .admonition-title,.rst-content .wy-alert-warning.error .admonition-title,.rst-content .wy-alert-warning.hint .admonition-title,.rst-content .wy-alert-warning.important .admonition-title,.rst-content .wy-alert-warning.tip .admonition-title,.rst-content .warning .admonition-title,.rst-content .wy-alert-warning.seealso .admonition-title,.rst-content .admonition-todo .admonition-title{background:#f0b37e}.wy-alert.wy-alert-info,.rst-content .note,.rst-content .wy-alert-info.attention,.rst-content .wy-alert-info.caution,.rst-content .wy-alert-info.danger,.rst-content .wy-alert-info.error,.rst-content .wy-alert-info.hint,.rst-content .wy-alert-info.important,.rst-content .wy-alert-info.tip,.rst-content .wy-alert-info.warning,.rst-content .seealso,.rst-content .wy-alert-info.admonition-todo{background:#dedede}.wy-alert.wy-alert-info .wy-alert-title,.rst-content .note .wy-alert-title,.rst-content .wy-alert-info.attention .wy-alert-title,.rst-content .wy-alert-info.caution .wy-alert-title,.rst-content .wy-alert-info.danger .wy-alert-title,.rst-content .wy-alert-info.error .wy-alert-title,.rst-content .wy-alert-info.hint .wy-alert-title,.rst-content .wy-alert-info.important .wy-alert-title,.rst-content .wy-alert-info.tip .wy-alert-title,.rst-content .wy-alert-info.warning .wy-alert-title,.rst-content .seealso .wy-alert-title,.rst-content .wy-alert-info.admonition-todo .wy-alert-title,.wy-alert.wy-alert-info .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-info .admonition-title,.rst-content .note .admonition-title,.rst-content .wy-alert-info.attention .admonition-title,.rst-content .wy-alert-info.caution .admonition-title,.rst-content .wy-alert-info.danger .admonition-title,.rst-content .wy-alert-info.error .admonition-title,.rst-content .wy-alert-info.hint .admonition-title,.rst-content .wy-alert-info.important .admonition-title,.rst-content .wy-alert-info.tip .admonition-title,.rst-content .wy-alert-info.warning .admonition-title,.rst-content .seealso .admonition-title,.rst-content .wy-alert-info.admonition-todo .admonition-title{background:#8ba8af}.wy-alert.wy-alert-success,.rst-content .wy-alert-success.note,.rst-content .wy-alert-success.attention,.rst-content .wy-alert-success.caution,.rst-content .wy-alert-success.danger,.rst-content .wy-alert-success.error,.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .wy-alert-success.warning,.rst-content .wy-alert-success.seealso,.rst-content .wy-alert-success.admonition-todo{background:#dedede}.wy-alert.wy-alert-success .wy-alert-title,.rst-content .wy-alert-success.note .wy-alert-title,.rst-content .wy-alert-success.attention .wy-alert-title,.rst-content .wy-alert-success.caution .wy-alert-title,.rst-content .wy-alert-success.danger .wy-alert-title,.rst-content .wy-alert-success.error .wy-alert-title,.rst-content .hint .wy-alert-title,.rst-content .important .wy-alert-title,.rst-content .tip .wy-alert-title,.rst-content .wy-alert-success.warning .wy-alert-title,.rst-content .wy-alert-success.seealso .wy-alert-title,.rst-content .wy-alert-success.admonition-todo .wy-alert-title,.wy-alert.wy-alert-success .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-success .admonition-title,.rst-content .wy-alert-success.note .admonition-title,.rst-content .wy-alert-success.attention .admonition-title,.rst-content .wy-alert-success.caution .admonition-title,.rst-content .wy-alert-success.danger .admonition-title,.rst-content .wy-alert-success.error .admonition-title,.rst-content .hint .admonition-title,.rst-content .important .admonition-title,.rst-content .tip .admonition-title,.rst-content .wy-alert-success.warning .admonition-title,.rst-content .wy-alert-success.seealso .admonition-title,.rst-content .wy-alert-success.admonition-todo .admonition-title{background:#dd4814}.wy-alert.wy-alert-neutral,.rst-content .wy-alert-neutral.note,.rst-content .wy-alert-neutral.attention,.rst-content .wy-alert-neutral.caution,.rst-content .wy-alert-neutral.danger,.rst-content .wy-alert-neutral.error,.rst-content .wy-alert-neutral.hint,.rst-content .wy-alert-neutral.important,.rst-content .wy-alert-neutral.tip,.rst-content .wy-alert-neutral.warning,.rst-content .wy-alert-neutral.seealso,.rst-content .wy-alert-neutral.admonition-todo{background:#f3f6f6}.wy-alert.wy-alert-neutral .wy-alert-title,.rst-content .wy-alert-neutral.note .wy-alert-title,.rst-content .wy-alert-neutral.attention .wy-alert-title,.rst-content .wy-alert-neutral.caution .wy-alert-title,.rst-content .wy-alert-neutral.danger .wy-alert-title,.rst-content .wy-alert-neutral.error .wy-alert-title,.rst-content .wy-alert-neutral.hint .wy-alert-title,.rst-content .wy-alert-neutral.important .wy-alert-title,.rst-content .wy-alert-neutral.tip .wy-alert-title,.rst-content .wy-alert-neutral.warning .wy-alert-title,.rst-content .wy-alert-neutral.seealso .wy-alert-title,.rst-content .wy-alert-neutral.admonition-todo .wy-alert-title,.wy-alert.wy-alert-neutral .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-neutral .admonition-title,.rst-content .wy-alert-neutral.note .admonition-title,.rst-content .wy-alert-neutral.attention .admonition-title,.rst-content .wy-alert-neutral.caution .admonition-title,.rst-content .wy-alert-neutral.danger .admonition-title,.rst-content .wy-alert-neutral.error .admonition-title,.rst-content .wy-alert-neutral.hint .admonition-title,.rst-content .wy-alert-neutral.important .admonition-title,.rst-content .wy-alert-neutral.tip .admonition-title,.rst-content .wy-alert-neutral.warning .admonition-title,.rst-content .wy-alert-neutral.seealso .admonition-title,.rst-content .wy-alert-neutral.admonition-todo .admonition-title{color:#404040;background:#e1e4e5}.wy-alert.wy-alert-neutral a,.rst-content .wy-alert-neutral.note a,.rst-content .wy-alert-neutral.attention a,.rst-content .wy-alert-neutral.caution a,.rst-content .wy-alert-neutral.danger a,.rst-content .wy-alert-neutral.error a,.rst-content .wy-alert-neutral.hint a,.rst-content .wy-alert-neutral.important a,.rst-content .wy-alert-neutral.tip a,.rst-content .wy-alert-neutral.warning a,.rst-content .wy-alert-neutral.seealso a,.rst-content .wy-alert-neutral.admonition-todo a{color:#dd4814}.wy-alert p:last-child,.rst-content .note p:last-child,.rst-content .attention p:last-child,.rst-content .caution p:last-child,.rst-content .danger p:last-child,.rst-content .error p:last-child,.rst-content .hint p:last-child,.rst-content .important p:last-child,.rst-content .tip p:last-child,.rst-content .warning p:last-child,.rst-content .seealso p:last-child,.rst-content .admonition-todo p:last-child{margin-bottom:0}.wy-tray-container{position:fixed;bottom:0px;left:0;z-index:600}.wy-tray-container li{display:block;width:300px;background:transparent;color:#fff;text-align:center;box-shadow:0 5px 5px 0 rgba(0,0,0,0.1);padding:0 24px;min-width:20%;opacity:0;height:0;line-height:56px;overflow:hidden;-webkit-transition:all 0.3s ease-in;-moz-transition:all 0.3s ease-in;transition:all 0.3s ease-in}.wy-tray-container li.wy-tray-item-success{background:#27AE60}.wy-tray-container li.wy-tray-item-info{background:#dd4814}.wy-tray-container li.wy-tray-item-warning{background:#E67E22}.wy-tray-container li.wy-tray-item-danger{background:#E74C3C}.wy-tray-container li.on{opacity:1;height:56px}@media screen and (max-width: 768px){.wy-tray-container{bottom:auto;top:0;width:100%}.wy-tray-container li{width:100%}}button{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;cursor:pointer;line-height:normal;-webkit-appearance:button;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button[disabled]{cursor:default}.btn{display:inline-block;border-radius:2px;line-height:normal;white-space:nowrap;text-align:center;cursor:pointer;font-size:100%;padding:6px 12px 8px 12px;color:#fff;border:1px solid rgba(0,0,0,0.1);background-color:#27AE60;text-decoration:none;font-weight:normal;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;box-shadow:0px 1px 2px -1px rgba(255,255,255,0.5) inset,0px -2px 0px 0px rgba(0,0,0,0.1) inset;outline-none:false;vertical-align:middle;*display:inline;zoom:1;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all 0.1s linear;-moz-transition:all 0.1s linear;transition:all 0.1s linear}.btn-hover{background:#2e8ece;color:#fff}.btn:hover{background:#2cc36b;color:#fff}.btn:focus{background:#2cc36b;outline:0}.btn:active{box-shadow:0px -1px 0px 0px rgba(0,0,0,0.05) inset,0px 2px 0px 0px rgba(0,0,0,0.1) inset;padding:8px 12px 6px 12px}.btn:visited{color:#fff}.btn:disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none}.btn-disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none}.btn-disabled:hover,.btn-disabled:focus,.btn-disabled:active{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none}.btn::-moz-focus-inner{padding:0;border:0}.btn-small{font-size:80%}.btn-info{background-color:#dd4814 !important}.btn-info:hover{background-color:#2e8ece !important}.btn-neutral{background-color:#f3f6f6 !important;color:#404040 !important}.btn-neutral:hover{background-color:#e5ebeb !important;color:#404040}.btn-neutral:visited{color:#404040 !important}.btn-success{background-color:#27AE60 !important}.btn-success:hover{background-color:#295 !important}.btn-danger{background-color:#E74C3C !important}.btn-danger:hover{background-color:#ea6153 !important}.btn-warning{background-color:#E67E22 !important}.btn-warning:hover{background-color:#e98b39 !important}.btn-invert{background-color:#222}.btn-invert:hover{background-color:#2f2f2f !important}.btn-link{background-color:transparent !important;color:#dd4814;box-shadow:none;border-color:transparent !important}.btn-link:hover{background-color:transparent !important;color:#409ad5 !important;box-shadow:none}.btn-link:active{background-color:transparent !important;color:#409ad5 !important;box-shadow:none}.btn-link:visited{color:#97310e}.wy-btn-group .btn,.wy-control .btn{vertical-align:middle}.wy-btn-group{margin-bottom:24px;*zoom:1}.wy-btn-group:before,.wy-btn-group:after{display:table;content:""}.wy-btn-group:after{clear:both}.wy-dropdown{position:relative;display:inline-block}.wy-dropdown-active .wy-dropdown-menu{display:block}.wy-dropdown-menu{position:absolute;left:0;display:none;float:left;top:100%;min-width:100%;background:#fcfcfc;z-index:100;border:solid 1px #cfd7dd;box-shadow:0 2px 2px 0 rgba(0,0,0,0.1);padding:12px}.wy-dropdown-menu>dd>a{display:block;clear:both;color:#404040;white-space:nowrap;font-size:90%;padding:0 12px;cursor:pointer}.wy-dropdown-menu>dd>a:hover{background:#dd4814;color:#fff}.wy-dropdown-menu>dd.divider{border-top:solid 1px #cfd7dd;margin:6px 0}.wy-dropdown-menu>dd.search{padding-bottom:12px}.wy-dropdown-menu>dd.search input[type="search"]{width:100%}.wy-dropdown-menu>dd.call-to-action{background:#e3e3e3;text-transform:uppercase;font-weight:500;font-size:80%}.wy-dropdown-menu>dd.call-to-action:hover{background:#e3e3e3}.wy-dropdown-menu>dd.call-to-action .btn{color:#fff}.wy-dropdown.wy-dropdown-up .wy-dropdown-menu{bottom:100%;top:auto;left:auto;right:0}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu{background:#fcfcfc;margin-top:2px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a{padding:6px 12px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover{background:#dd4814;color:#fff}.wy-dropdown.wy-dropdown-left .wy-dropdown-menu{right:0;text-align:right}.wy-dropdown-arrow:before{content:" ";border-bottom:5px solid #f5f5f5;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;display:block;top:-4px;left:50%;margin-left:-3px}.wy-dropdown-arrow.wy-dropdown-arrow-left:before{left:11px}.wy-form-stacked select{display:block}.wy-form-aligned input,.wy-form-aligned textarea,.wy-form-aligned select,.wy-form-aligned .wy-help-inline,.wy-form-aligned label{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-form-aligned .wy-control-group>label{display:inline-block;vertical-align:middle;width:10em;margin:6px 12px 0 0;float:left}.wy-form-aligned .wy-control{float:left}.wy-form-aligned .wy-control label{display:block}.wy-form-aligned .wy-control select{margin-top:6px}fieldset{border:0;margin:0;padding:0}legend{display:block;width:100%;border:0;padding:0;white-space:normal;margin-bottom:24px;font-size:150%;*margin-left:-7px}label{display:block;margin:0 0 0.3125em 0;color:#333;font-size:90%}input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}.wy-control-group{margin-bottom:24px;*zoom:1;max-width:68em;margin-left:auto;margin-right:auto;*zoom:1}.wy-control-group:before,.wy-control-group:after{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group:before,.wy-control-group:after{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group.wy-control-group-required>label:after{content:" *";color:#E74C3C}.wy-control-group .wy-form-full,.wy-control-group .wy-form-halves,.wy-control-group .wy-form-thirds{padding-bottom:12px}.wy-control-group .wy-form-full select,.wy-control-group .wy-form-halves select,.wy-control-group .wy-form-thirds select{width:100%}.wy-control-group .wy-form-full input[type="text"],.wy-control-group .wy-form-full input[type="password"],.wy-control-group .wy-form-full input[type="email"],.wy-control-group .wy-form-full input[type="url"],.wy-control-group .wy-form-full input[type="date"],.wy-control-group .wy-form-full input[type="month"],.wy-control-group .wy-form-full input[type="time"],.wy-control-group .wy-form-full input[type="datetime"],.wy-control-group .wy-form-full input[type="datetime-local"],.wy-control-group .wy-form-full input[type="week"],.wy-control-group .wy-form-full input[type="number"],.wy-control-group .wy-form-full input[type="search"],.wy-control-group .wy-form-full input[type="tel"],.wy-control-group .wy-form-full input[type="color"],.wy-control-group .wy-form-halves input[type="text"],.wy-control-group .wy-form-halves input[type="password"],.wy-control-group .wy-form-halves input[type="email"],.wy-control-group .wy-form-halves input[type="url"],.wy-control-group .wy-form-halves input[type="date"],.wy-control-group .wy-form-halves input[type="month"],.wy-control-group .wy-form-halves input[type="time"],.wy-control-group .wy-form-halves input[type="datetime"],.wy-control-group .wy-form-halves input[type="datetime-local"],.wy-control-group .wy-form-halves input[type="week"],.wy-control-group .wy-form-halves input[type="number"],.wy-control-group .wy-form-halves input[type="search"],.wy-control-group .wy-form-halves input[type="tel"],.wy-control-group .wy-form-halves input[type="color"],.wy-control-group .wy-form-thirds input[type="text"],.wy-control-group .wy-form-thirds input[type="password"],.wy-control-group .wy-form-thirds input[type="email"],.wy-control-group .wy-form-thirds input[type="url"],.wy-control-group .wy-form-thirds input[type="date"],.wy-control-group .wy-form-thirds input[type="month"],.wy-control-group .wy-form-thirds input[type="time"],.wy-control-group .wy-form-thirds input[type="datetime"],.wy-control-group .wy-form-thirds input[type="datetime-local"],.wy-control-group .wy-form-thirds input[type="week"],.wy-control-group .wy-form-thirds input[type="number"],.wy-control-group .wy-form-thirds input[type="search"],.wy-control-group .wy-form-thirds input[type="tel"],.wy-control-group .wy-form-thirds input[type="color"]{width:100%}.wy-control-group .wy-form-full{float:left;display:block;margin-right:2.35765%;width:100%;margin-right:0}.wy-control-group .wy-form-full:last-child{margin-right:0}.wy-control-group .wy-form-halves{float:left;display:block;margin-right:2.35765%;width:48.82117%}.wy-control-group .wy-form-halves:last-child{margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(2n){margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(2n+1){clear:left}.wy-control-group .wy-form-thirds{float:left;display:block;margin-right:2.35765%;width:31.76157%}.wy-control-group .wy-form-thirds:last-child{margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n){margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n+1){clear:left}.wy-control-group.wy-control-group-no-input .wy-control{margin:6px 0 0 0;font-size:90%}.wy-control-no-input{display:inline-block;margin:6px 0 0 0;font-size:90%}.wy-control-group.fluid-input input[type="text"],.wy-control-group.fluid-input input[type="password"],.wy-control-group.fluid-input input[type="email"],.wy-control-group.fluid-input input[type="url"],.wy-control-group.fluid-input input[type="date"],.wy-control-group.fluid-input input[type="month"],.wy-control-group.fluid-input input[type="time"],.wy-control-group.fluid-input input[type="datetime"],.wy-control-group.fluid-input input[type="datetime-local"],.wy-control-group.fluid-input input[type="week"],.wy-control-group.fluid-input input[type="number"],.wy-control-group.fluid-input input[type="search"],.wy-control-group.fluid-input input[type="tel"],.wy-control-group.fluid-input input[type="color"]{width:100%}.wy-form-message-inline{display:inline-block;padding-left:0.3em;color:#666;vertical-align:middle;font-size:90%}.wy-form-message{display:block;color:#999;font-size:70%;margin-top:0.3125em;font-style:italic}input{line-height:normal}input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;*overflow:visible}input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],input[type="tel"],input[type="color"]{-webkit-appearance:none;padding:6px;display:inline-block;border:1px solid #ccc;font-size:80%;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;box-shadow:inset 0 1px 3px #ddd;border-radius:0;-webkit-transition:border 0.3s linear;-moz-transition:border 0.3s linear;transition:border 0.3s linear}input[type="datetime-local"]{padding:0.34375em 0.625em}input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin-right:0.3125em;*height:13px;*width:13px}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}input[type="text"]:focus,input[type="password"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus{outline:0;outline:thin dotted \9;border-color:#333}input.no-focus:focus{border-color:#ccc !important}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:1px auto #129FEA}input[type="text"][disabled],input[type="password"][disabled],input[type="email"][disabled],input[type="url"][disabled],input[type="date"][disabled],input[type="month"][disabled],input[type="time"][disabled],input[type="datetime"][disabled],input[type="datetime-local"][disabled],input[type="week"][disabled],input[type="number"][disabled],input[type="search"][disabled],input[type="tel"][disabled],input[type="color"][disabled]{cursor:not-allowed;background-color:#f3f6f6;color:#cad2d3}input:focus:invalid,textarea:focus:invalid,select:focus:invalid{color:#E74C3C;border:1px solid #E74C3C}input:focus:invalid:focus,textarea:focus:invalid:focus,select:focus:invalid:focus{border-color:#E74C3C}input[type="file"]:focus:invalid:focus,input[type="radio"]:focus:invalid:focus,input[type="checkbox"]:focus:invalid:focus{outline-color:#E74C3C}input.wy-input-large{padding:12px;font-size:100%}textarea{overflow:auto;vertical-align:top;width:100%;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif}select,textarea{padding:0.5em 0.625em;display:inline-block;border:1px solid #ccc;font-size:80%;box-shadow:inset 0 1px 3px #ddd;-webkit-transition:border 0.3s linear;-moz-transition:border 0.3s linear;transition:border 0.3s linear}select{border:1px solid #ccc;background-color:#fff}select[multiple]{height:auto}select:focus,textarea:focus{outline:0}select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#fff;color:#cad2d3;border-color:transparent}.wy-checkbox,.wy-radio{margin:6px 0;color:#404040;display:block}.wy-checkbox input,.wy-radio input{vertical-align:baseline}.wy-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-input-prefix,.wy-input-suffix{white-space:nowrap;padding:6px}.wy-input-prefix .wy-input-context,.wy-input-suffix .wy-input-context{line-height:27px;padding:0 8px;display:inline-block;font-size:80%;background-color:#f3f6f6;border:solid 1px #ccc;color:#999}.wy-input-suffix .wy-input-context{border-left:0}.wy-input-prefix .wy-input-context{border-right:0}.wy-control-group.wy-control-group-error .wy-form-message,.wy-control-group.wy-control-group-error>label{color:#E74C3C}.wy-control-group.wy-control-group-error input[type="text"],.wy-control-group.wy-control-group-error input[type="password"],.wy-control-group.wy-control-group-error input[type="email"],.wy-control-group.wy-control-group-error input[type="url"],.wy-control-group.wy-control-group-error input[type="date"],.wy-control-group.wy-control-group-error input[type="month"],.wy-control-group.wy-control-group-error input[type="time"],.wy-control-group.wy-control-group-error input[type="datetime"],.wy-control-group.wy-control-group-error input[type="datetime-local"],.wy-control-group.wy-control-group-error input[type="week"],.wy-control-group.wy-control-group-error input[type="number"],.wy-control-group.wy-control-group-error input[type="search"],.wy-control-group.wy-control-group-error input[type="tel"],.wy-control-group.wy-control-group-error input[type="color"]{border:solid 1px #E74C3C}.wy-control-group.wy-control-group-error textarea{border:solid 1px #E74C3C}.wy-inline-validate{white-space:nowrap}.wy-inline-validate .wy-input-context{padding:0.5em 0.625em;display:inline-block;font-size:80%}.wy-inline-validate.wy-inline-validate-success .wy-input-context{color:#27AE60}.wy-inline-validate.wy-inline-validate-danger .wy-input-context{color:#E74C3C}.wy-inline-validate.wy-inline-validate-warning .wy-input-context{color:#E67E22}.wy-inline-validate.wy-inline-validate-info .wy-input-context{color:#dd4814}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.rotate-180{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.rotate-270{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.mirror{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.mirror.rotate-90{-webkit-transform:scaleX(-1) rotate(90deg);-moz-transform:scaleX(-1) rotate(90deg);-ms-transform:scaleX(-1) rotate(90deg);-o-transform:scaleX(-1) rotate(90deg);transform:scaleX(-1) rotate(90deg)}.mirror.rotate-180{-webkit-transform:scaleX(-1) rotate(180deg);-moz-transform:scaleX(-1) rotate(180deg);-ms-transform:scaleX(-1) rotate(180deg);-o-transform:scaleX(-1) rotate(180deg);transform:scaleX(-1) rotate(180deg)}.mirror.rotate-270{-webkit-transform:scaleX(-1) rotate(270deg);-moz-transform:scaleX(-1) rotate(270deg);-ms-transform:scaleX(-1) rotate(270deg);-o-transform:scaleX(-1) rotate(270deg);transform:scaleX(-1) rotate(270deg)}@media only screen and (max-width: 480px){.wy-form button[type="submit"]{margin:0.7em 0 0}.wy-form input[type="text"],.wy-form input[type="password"],.wy-form input[type="email"],.wy-form input[type="url"],.wy-form input[type="date"],.wy-form input[type="month"],.wy-form input[type="time"],.wy-form input[type="datetime"],.wy-form input[type="datetime-local"],.wy-form input[type="week"],.wy-form input[type="number"],.wy-form input[type="search"],.wy-form input[type="tel"],.wy-form input[type="color"]{margin-bottom:0.3em;display:block}.wy-form label{margin-bottom:0.3em;display:block}.wy-form input[type="password"],.wy-form input[type="email"],.wy-form input[type="url"],.wy-form input[type="date"],.wy-form input[type="month"],.wy-form input[type="time"],.wy-form input[type="datetime"],.wy-form input[type="datetime-local"],.wy-form input[type="week"],.wy-form input[type="number"],.wy-form input[type="search"],.wy-form input[type="tel"],.wy-form input[type="color"]{margin-bottom:0}.wy-form-aligned .wy-control-group label{margin-bottom:0.3em;text-align:left;display:block;width:100%}.wy-form-aligned .wy-control{margin:1.5em 0 0 0}.wy-form .wy-help-inline,.wy-form-message-inline,.wy-form-message{display:block;font-size:80%;padding:6px 0}}@media screen and (max-width: 768px){.tablet-hide{display:none}.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}}@media screen and (max-width: 480px){.mobile-hide{display:none}}.float-left{float:left}.float-right{float:right}.full-width{width:100%}.wy-table,.rst-content table.docutils,.rst-content table.field-list{border-collapse:collapse;border-spacing:0;empty-cells:show;margin-bottom:24px}.wy-table caption,.rst-content table.docutils caption,.rst-content table.field-list caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.wy-table td,.rst-content table.docutils td,.rst-content table.field-list td,.wy-table th,.rst-content table.docutils th,.rst-content table.field-list th{font-size:90%;margin:0;overflow:visible;padding:8px 16px}.wy-table td:first-child,.rst-content table.docutils td:first-child,.rst-content table.field-list td:first-child,.wy-table th:first-child,.rst-content table.docutils th:first-child,.rst-content table.field-list th:first-child{border-left-width:0}.wy-table thead,.rst-content table.docutils thead,.rst-content table.field-list thead{color:#000;text-align:left;vertical-align:bottom;white-space:nowrap}.wy-table thead th,.rst-content table.docutils thead th,.rst-content table.field-list thead th{font-weight:bold;border-bottom:solid 2px #e1e4e5}.wy-table td,.rst-content table.docutils td,.rst-content table.field-list td{background-color:transparent;vertical-align:middle}.wy-table td p,.rst-content table.docutils td p,.rst-content table.field-list td p{line-height:18px}.wy-table td p:last-child,.rst-content table.docutils td p:last-child,.rst-content table.field-list td p:last-child{margin-bottom:0}.wy-table .wy-table-cell-min,.rst-content table.docutils .wy-table-cell-min,.rst-content table.field-list .wy-table-cell-min{width:1%;padding-right:0}.wy-table .wy-table-cell-min input[type=checkbox],.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox],.wy-table .wy-table-cell-min input[type=checkbox],.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox]{margin:0}.wy-table-secondary{color:gray;font-size:90%}.wy-table-tertiary{color:gray;font-size:80%}.wy-table-odd td,.wy-table-striped tr:nth-child(2n-1) td,.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td{background-color:#f3f6f6}.wy-table-backed{background-color:#f3f6f6}.wy-table-bordered-all,.rst-content table.docutils{border:1px solid #e1e4e5}.wy-table-bordered-all td,.rst-content table.docutils td{border-bottom:1px solid #e1e4e5;border-left:1px solid #e1e4e5}.wy-table-bordered-all tbody>tr:last-child td,.rst-content table.docutils tbody>tr:last-child td{border-bottom-width:0}.wy-table-bordered{border:1px solid #e1e4e5}.wy-table-bordered-rows td{border-bottom:1px solid #e1e4e5}.wy-table-bordered-rows tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal td,.wy-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #e1e4e5}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-responsive{margin-bottom:24px;max-width:100%;overflow:auto}.wy-table-responsive table{margin-bottom:0 !important}a{color:#dd4814;text-decoration:none;cursor:pointer}a:hover{color:#97310e}a:visited{color:#97310e}html{height:100%;overflow-x:hidden}body{font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;font-weight:normal;color:#404040;min-height:100%;overflow-x:hidden;background:#edf0f2}.wy-text-left{text-align:left}.wy-text-center{text-align:center}.wy-text-right{text-align:right}.wy-text-large{font-size:120%}.wy-text-normal{font-size:100%}.wy-text-small,small{font-size:80%}.wy-text-strike{text-decoration:line-through}.wy-text-warning{color:#E67E22 !important}a.wy-text-warning:hover{color:#eb9950 !important}.wy-text-info{color:#dd4814 !important}a.wy-text-info:hover{color:#409ad5 !important}.wy-text-success{color:#27AE60 !important}a.wy-text-success:hover{color:#36d278 !important}.wy-text-danger{color:#E74C3C !important}a.wy-text-danger:hover{color:#ed7669 !important}.wy-text-neutral{color:#404040 !important}a.wy-text-neutral:hover{color:#595959 !important}h1,h2,h3,h4,h5,h6,legend{margin-top:0;font-weight:700;font-family:"Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif}p{line-height:24px;margin:0;font-size:16px;margin-bottom:24px}h1{font-size:175%}h2{font-size:150%}h3{font-size:125%}h4{font-size:115%}h5{font-size:110%}h6{font-size:100%}hr{display:block;height:1px;border:0;border-top:1px solid #e1e4e5;margin:24px 0;padding:0}code,.rst-content tt{white-space:nowrap;max-width:100%;background:#fff;border:solid 1px #e1e4e5;font-size:75%;padding:0 5px;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;color:#E74C3C;overflow-x:auto}code.code-large,.rst-content tt.code-large{font-size:90%}.wy-plain-list-disc,.rst-content .section ul,.rst-content .toctree-wrapper ul,article ul{list-style:disc;line-height:24px;margin-bottom:24px}.wy-plain-list-disc li,.rst-content .section ul li,.rst-content .toctree-wrapper ul li,article ul li{list-style:disc;margin-left:24px}.wy-plain-list-disc li p:last-child,.rst-content .section ul li p:last-child,.rst-content .toctree-wrapper ul li p:last-child,article ul li p:last-child{margin-bottom:0}.wy-plain-list-disc li ul,.rst-content .section ul li ul,.rst-content .toctree-wrapper ul li ul,article ul li ul{margin-bottom:0}.wy-plain-list-disc li li,.rst-content .section ul li li,.rst-content .toctree-wrapper ul li li,article ul li li{list-style:circle}.wy-plain-list-disc li li li,.rst-content .section ul li li li,.rst-content .toctree-wrapper ul li li li,article ul li li li{list-style:square}.wy-plain-list-disc li ol li,.rst-content .section ul li ol li,.rst-content .toctree-wrapper ul li ol li,article ul li ol li{list-style:decimal}.wy-plain-list-decimal,.rst-content .section ol,.rst-content ol.arabic,article ol{list-style:decimal;line-height:24px;margin-bottom:24px}.wy-plain-list-decimal li,.rst-content .section ol li,.rst-content ol.arabic li,article ol li{list-style:decimal;margin-left:24px}.wy-plain-list-decimal li p:last-child,.rst-content .section ol li p:last-child,.rst-content ol.arabic li p:last-child,article ol li p:last-child{margin-bottom:0}.wy-plain-list-decimal li ul,.rst-content .section ol li ul,.rst-content ol.arabic li ul,article ol li ul{margin-bottom:0}.wy-plain-list-decimal li ul li,.rst-content .section ol li ul li,.rst-content ol.arabic li ul li,article ol li ul li{list-style:disc}.codeblock-example{border:1px solid #e1e4e5;border-bottom:none;padding:24px;padding-top:48px;font-weight:500;background:#fff;position:relative}.codeblock-example:after{content:"Example";position:absolute;top:0px;left:0px;background:#97310e;color:#fff;padding:6px 12px}.codeblock-example.prettyprint-example-only{border:1px solid #e1e4e5;margin-bottom:24px}.codeblock,pre.literal-block,.rst-content .literal-block,.rst-content pre.literal-block,div[class^='highlight']{border:1px solid #e1e4e5;padding:0px;overflow-x:auto;background:#fff;margin:1px 0 24px 0}.codeblock div[class^='highlight'],pre.literal-block div[class^='highlight'],.rst-content .literal-block div[class^='highlight'],div[class^='highlight'] div[class^='highlight']{border:none;background:none;margin:0}div[class^='highlight'] td.code{width:100%}.linenodiv pre{border-right:solid 1px #e6e9ea;margin:0;padding:12px 12px;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;line-height:1.5;color:#d9d9d9}div[class^='highlight'] pre{white-space:pre;margin:0;padding:12px 12px;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;line-height:1.5;display:block;overflow:auto;color:#404040}@media print{.codeblock,pre.literal-block,.rst-content .literal-block,.rst-content pre.literal-block,div[class^='highlight'],div[class^='highlight'] pre{white-space:pre-wrap}}.hll{background-color:#ffc;margin:0 -12px;padding:0 12px;display:block}.c{color:#998;font-style:italic}.err{color:#a61717;background-color:#e3d2d2}.k{font-weight:bold}.o{font-weight:bold}.cm{color:#998;font-style:italic}.cp{color:#999;font-weight:bold}.c1{color:#998;font-style:italic}.cs{color:#999;font-weight:bold;font-style:italic}.gd{color:#000;background-color:#fdd}.gd .x{color:#000;background-color:#faa}.ge{font-style:italic}.gr{color:#a00}.gh{color:#999}.gi{color:#000;background-color:#dfd}.gi .x{color:#000;background-color:#afa}.go{color:#888}.gp{color:#555}.gs{font-weight:bold}.gu{color:purple;font-weight:bold}.gt{color:#a00}.kc{font-weight:bold}.kd{font-weight:bold}.kn{font-weight:bold}.kp{font-weight:bold}.kr{font-weight:bold}.kt{color:#458;font-weight:bold}.m{color:#099}.s{color:#d14}.n{color:#333}.na{color:teal}.nb{color:#0086b3}.nc{color:#458;font-weight:bold}.no{color:teal}.ni{color:purple}.ne{color:#900;font-weight:bold}.nf{color:#900;font-weight:bold}.nn{color:#555}.nt{color:navy}.nv{color:teal}.ow{font-weight:bold}.w{color:#bbb}.mf{color:#099}.mh{color:#099}.mi{color:#099}.mo{color:#099}.sb{color:#d14}.sc{color:#d14}.sd{color:#d14}.s2{color:#d14}.se{color:#d14}.sh{color:#d14}.si{color:#d14}.sx{color:#d14}.sr{color:#009926}.s1{color:#d14}.ss{color:#990073}.bp{color:#999}.vc{color:teal}.vg{color:teal}.vi{color:teal}.il{color:#099}.gc{color:#999;background-color:#EAF2F5}.wy-breadcrumbs li{display:inline-block}.wy-breadcrumbs li.wy-breadcrumbs-aside{float:right}.wy-breadcrumbs li a{display:inline-block;padding:5px}.wy-breadcrumbs li a:first-child{padding-left:0}.wy-breadcrumbs-extra{margin-bottom:0;color:#b3b3b3;font-size:80%;display:inline-block}@media screen and (max-width: 480px){.wy-breadcrumbs-extra{display:none}.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}@media print{.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}.wy-affix{position:fixed;top:1.618em}.wy-menu a:hover{text-decoration:none}.wy-menu-horiz{*zoom:1}.wy-menu-horiz:before,.wy-menu-horiz:after{display:table;content:""}.wy-menu-horiz:after{clear:both}.wy-menu-horiz ul,.wy-menu-horiz li{display:inline-block}.wy-menu-horiz li:hover{background:rgba(255,255,255,0.1)}.wy-menu-horiz li.divide-left{border-left:solid 1px #404040}.wy-menu-horiz li.divide-right{border-right:solid 1px #404040}.wy-menu-horiz a{height:32px;display:inline-block;line-height:32px;padding:0 16px}.wy-menu-vertical header{height:32px;display:inline-block;line-height:32px;padding:0 1.618em;display:block;font-weight:bold;text-transform:uppercase;font-size:80%;color:#dd4814;white-space:nowrap}.wy-menu-vertical ul{margin-bottom:0}.wy-menu-vertical li.divide-top{border-top:solid 1px #404040}.wy-menu-vertical li.divide-bottom{border-bottom:solid 1px #404040}.wy-menu-vertical li.current{background:#e3e3e3}.wy-menu-vertical li.current a{color:gray;border-right:solid 1px #c9c9c9;padding:0.4045em 2.427em}.wy-menu-vertical li.current a:hover{background:#d6d6d6}.wy-menu-vertical li.on a,.wy-menu-vertical li.current>a{color:#404040;padding:0.4045em 1.618em;font-weight:bold;position:relative;background:#fcfcfc;border:none;border-bottom:solid 1px #c9c9c9;border-top:solid 1px #c9c9c9;padding-left:1.618em -4px}.wy-menu-vertical li.on a:hover,.wy-menu-vertical li.current>a:hover{background:#fcfcfc}.wy-menu-vertical li.toctree-l2.current>a{background:#c9c9c9;padding:0.4045em 2.427em}.wy-menu-vertical li.current ul{display:block}.wy-menu-vertical li ul{margin-bottom:0;display:none}.wy-menu-vertical .local-toc li ul{display:block}.wy-menu-vertical li ul li a{margin-bottom:0;color:#b3b3b3;font-weight:normal}.wy-menu-vertical a{display:inline-block;line-height:18px;padding:0.4045em 1.618em;display:block;position:relative;font-size:90%;color:#b3b3b3}.wy-menu-vertical a:hover{background-color:#4e4a4a;cursor:pointer}.wy-menu-vertical a:active{background-color:#dd4814;cursor:pointer;color:#fff}.wy-side-nav-search{z-index:200;background-color:#dd4814;text-align:center;padding:0.809em;display:block;color:#fcfcfc;margin-bottom:0.809em}.wy-side-nav-search input[type=text]{width:100%;border-radius:50px;padding:6px 12px;border-color:#97310e}.wy-side-nav-search img{display:block;margin:auto auto 0.809em auto;height:45px;width:45px;background-color:#dd4814;padding:5px;border-radius:100%}.wy-side-nav-search>a,.wy-side-nav-search .wy-dropdown>a{color:#fcfcfc;font-size:100%;font-weight:bold;display:inline-block;padding:4px 6px;margin-bottom:0.809em}.wy-side-nav-search>a:hover,.wy-side-nav-search .wy-dropdown>a:hover{background:rgba(255,255,255,0.1)}.wy-nav .wy-menu-vertical header{color:#dd4814}.wy-nav .wy-menu-vertical a{color:#b3b3b3}.wy-nav .wy-menu-vertical a:hover{background-color:#dd4814;color:#fff}[data-menu-wrap]{-webkit-transition:all 0.2s ease-in;-moz-transition:all 0.2s ease-in;transition:all 0.2s ease-in;position:absolute;opacity:1;width:100%;opacity:0}[data-menu-wrap].move-center{left:0;right:auto;opacity:1}[data-menu-wrap].move-left{right:auto;left:-100%;opacity:0}[data-menu-wrap].move-right{right:-100%;left:auto;opacity:0}.wy-body-for-nav{background:left repeat-y #fcfcfc;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxOERBMTRGRDBFMUUxMUUzODUwMkJCOThDMEVFNURFMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxOERBMTRGRTBFMUUxMUUzODUwMkJCOThDMEVFNURFMCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjE4REExNEZCMEUxRTExRTM4NTAyQkI5OEMwRUU1REUwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjE4REExNEZDMEUxRTExRTM4NTAyQkI5OEMwRUU1REUwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+EwrlwAAAAA5JREFUeNpiMDU0BAgwAAE2AJgB9BnaAAAAAElFTkSuQmCC);background-size:300px 1px}.wy-grid-for-nav{position:absolute;width:100%;height:100%}.wy-nav-side{position:absolute;top:0;left:0;width:300px;overflow:hidden;min-height:100%;background:#343131;z-index:200}.wy-nav-top{display:none;background:#dd4814;color:#fff;padding:0.4045em 0.809em;position:relative;line-height:50px;text-align:center;font-size:100%;*zoom:1}.wy-nav-top:before,.wy-nav-top:after{display:table;content:""}.wy-nav-top:after{clear:both}.wy-nav-top a{color:#fff;font-weight:bold}.wy-nav-top img{margin-right:12px;height:45px;width:45px;background-color:#dd4814;padding:5px;border-radius:100%}.wy-nav-top i{font-size:30px;float:left;cursor:pointer}.wy-nav-content-wrap{margin-left:300px;background:#fcfcfc;min-height:100%}.wy-nav-content{padding:1.618em 3.236em;height:100x;margin:auto}.wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,0.2);display:none;z-index:499}.wy-body-mask.on{display:block}footer{color:#999}footer p{margin-bottom:12px}.rst-footer-buttons{*zoom:1}.rst-footer-buttons:before,.rst-footer-buttons:after{display:table;content:""}.rst-footer-buttons:after{clear:both}#search-results .search li{margin-bottom:24px;border-bottom:solid 1px #e1e4e5;padding-bottom:24px}#search-results .search li:first-child{border-top:solid 1px #e1e4e5;padding-top:24px}#search-results .search li a{font-size:120%;margin-bottom:12px;display:inline-block}#search-results .context{color:gray;font-size:90%}@media screen and (max-width: 768px){.wy-body-for-nav{background:#fcfcfc}.wy-nav-top{display:block}.wy-nav-side{left:-300px}.wy-nav-side.shift{width:85%;left:0}.wy-nav-content-wrap{margin-left:0}.wy-nav-content-wrap .wy-nav-content{padding:1.618em}.wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden}}@media screen and (min-width: 1400px){.wy-nav-content-wrap{background:rgba(0,0,0,0.05)}.wy-nav-content{margin:0;background:#fcfcfc}}@media print{.rst-versions,footer,.wy-nav-side{display:none}.wy-nav-content-wrap{margin-left:0}}nav.stickynav{position:fixed;top:0}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#dd4814;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa,.rst-versions .rst-current-version .rst-content .admonition-title,.rst-content .rst-versions .rst-current-version .admonition-title,.rst-versions .rst-current-version .rst-content h1 .headerlink,.rst-content h1 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h2 .headerlink,.rst-content h2 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h3 .headerlink,.rst-content h3 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h4 .headerlink,.rst-content h4 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h5 .headerlink,.rst-content h5 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h6 .headerlink,.rst-content h6 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content dl dt .headerlink,.rst-content dl dt .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .icon{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}img{width:100%;height:auto}}.rst-content img{max-width:100%;height:auto !important}.rst-content div.figure{margin-bottom:24px}.rst-content div.figure.align-center{text-align:center}.rst-content .section>img,.rst-content .section>a>img{margin-bottom:24px}.rst-content blockquote{margin-left:24px;line-height:24px;margin-bottom:24px}.rst-content .note .last,.rst-content .attention .last,.rst-content .caution .last,.rst-content .danger .last,.rst-content .error .last,.rst-content .hint .last,.rst-content .important .last,.rst-content .tip .last,.rst-content .warning .last,.rst-content .seealso .last,.rst-content .admonition-todo .last{margin-bottom:0}.rst-content .admonition-title:before{margin-right:4px}.rst-content .admonition table{border-color:rgba(0,0,0,0.1)}.rst-content .admonition table td,.rst-content .admonition table th{background:transparent !important;border-color:rgba(0,0,0,0.1) !important}.rst-content .section ol.loweralpha,.rst-content .section ol.loweralpha li{list-style:lower-alpha}.rst-content .section ol.upperalpha,.rst-content .section ol.upperalpha li{list-style:upper-alpha}.rst-content .section ol p,.rst-content .section ul p{margin-bottom:12px}.rst-content .line-block{margin-left:24px}.rst-content .topic-title{font-weight:bold;margin-bottom:12px}.rst-content .toc-backref{color:#404040}.rst-content .align-right{float:right;margin:0px 0px 24px 24px}.rst-content .align-left{float:left;margin:0px 24px 24px 0px}.rst-content .align-center{margin:auto;display:block}.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content dl dt .headerlink{display:none;visibility:hidden;font-size:14px}.rst-content h1 .headerlink:after,.rst-content h2 .headerlink:after,.rst-content h3 .headerlink:after,.rst-content h4 .headerlink:after,.rst-content h5 .headerlink:after,.rst-content h6 .headerlink:after,.rst-content dl dt .headerlink:after{visibility:visible;content:"";font-family:FontAwesome;display:inline-block}.rst-content h1:hover .headerlink,.rst-content h2:hover .headerlink,.rst-content h3:hover .headerlink,.rst-content h4:hover .headerlink,.rst-content h5:hover .headerlink,.rst-content h6:hover .headerlink,.rst-content dl dt:hover .headerlink{display:inline-block}.rst-content .sidebar{float:right;width:40%;display:block;margin:0 0 24px 24px;padding:24px;background:#f3f6f6;border:solid 1px #e1e4e5}.rst-content .sidebar p,.rst-content .sidebar ul,.rst-content .sidebar dl{font-size:90%}.rst-content .sidebar .last{margin-bottom:0}.rst-content .sidebar .sidebar-title{display:block;font-family:"Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif;font-weight:bold;background:#e1e4e5;padding:6px 12px;margin:-24px;margin-bottom:24px;font-size:100%}.rst-content .highlighted{background:#F1C40F;display:inline-block;font-weight:bold;padding:0 6px}.rst-content .footnote-reference,.rst-content .citation-reference{vertical-align:super;font-size:90%}.rst-content table.docutils.citation,.rst-content table.docutils.footnote{background:none;border:none;color:#999}.rst-content table.docutils.citation td,.rst-content table.docutils.citation tr,.rst-content table.docutils.footnote td,.rst-content table.docutils.footnote tr{border:none;background-color:transparent !important;white-space:normal}.rst-content table.docutils.citation td.label,.rst-content table.docutils.footnote td.label{padding-left:0;padding-right:0;vertical-align:top}.rst-content table.field-list{border:none}.rst-content table.field-list td{border:none;padding-top:5px}.rst-content table.field-list td>strong{display:inline-block;margin-top:3px}.rst-content table.field-list .field-name{padding-right:10px;text-align:left;white-space:nowrap}.rst-content table.field-list .field-body{text-align:left;padding-left:0}.rst-content tt{color:#000}.rst-content tt big,.rst-content tt em{font-size:100% !important;line-height:normal}.rst-content tt .xref,a .rst-content tt{font-weight:bold}.rst-content a tt{color:#dd4814}.rst-content dl{margin-bottom:24px}.rst-content dl dt{font-weight:bold}.rst-content dl p,.rst-content dl table,.rst-content dl ul,.rst-content dl ol{margin-bottom:12px !important}.rst-content dl dd{margin:0 0 12px 24px}.rst-content dl:not(.docutils){margin-bottom:24px}.rst-content dl:not(.docutils) dt{display:inline-block;margin:6px 0;font-size:90%;line-height:normal;background:#dedede;color:#dd4814;border-top:solid 3px #8ba8af;padding:6px;position:relative}.rst-content dl:not(.docutils) dt:before{color:#8ba8af}.rst-content dl:not(.docutils) dt .headerlink{color:#404040;font-size:100% !important}.rst-content dl:not(.docutils) dl dt{margin-bottom:6px;border:none;border-left:solid 3px #ccc;background:#f0f0f0;color:gray}.rst-content dl:not(.docutils) dl dt .headerlink{color:#404040;font-size:100% !important}.rst-content dl:not(.docutils) dt:first-child{margin-top:0}.rst-content dl:not(.docutils) tt{font-weight:bold}.rst-content dl:not(.docutils) tt.descname,.rst-content dl:not(.docutils) tt.descclassname{background-color:transparent;border:none;padding:0;font-size:100% !important}.rst-content dl:not(.docutils) tt.descname{font-weight:bold}.rst-content dl:not(.docutils) .optional{display:inline-block;padding:0 4px;color:#000;font-weight:bold}.rst-content dl:not(.docutils) .property{display:inline-block;padding-right:8px}.rst-content .viewcode-link,.rst-content .viewcode-back{display:inline-block;color:#27AE60;font-size:80%;padding-left:24px}.rst-content .viewcode-back{display:block;float:right}.rst-content p.rubric{margin-bottom:12px;font-weight:bold}@media screen and (max-width: 480px){.rst-content .sidebar{width:100%}}span[id*='MathJax-Span']{color:#404040}.math{text-align:center} +/*# sourceMappingURL=theme.css.map */ diff --git a/sna/user_guide/_static/doctools.js b/sna/user_guide/_static/doctools.js new file mode 100644 index 0000000..c5455c9 --- /dev/null +++ b/sna/user_guide/_static/doctools.js @@ -0,0 +1,238 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Sphinx JavaScript utilities for all documentation. + * + * :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/** + * select a different prefix for underscore + */ +$u = _.noConflict(); + +/** + * make the code below compatible with browsers without + * an installed firebug like debugger +if (!window.console || !console.firebug) { + var names = ["log", "debug", "info", "warn", "error", "assert", "dir", + "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", + "profile", "profileEnd"]; + window.console = {}; + for (var i = 0; i < names.length; ++i) + window.console[names[i]] = function() {}; +} + */ + +/** + * small helper function to urldecode strings + */ +jQuery.urldecode = function(x) { + return decodeURIComponent(x).replace(/\+/g, ' '); +}; + +/** + * small helper function to urlencode strings + */ +jQuery.urlencode = encodeURIComponent; + +/** + * This function returns the parsed url parameters of the + * current request. Multiple values per key are supported, + * it will always return arrays of strings for the value parts. + */ +jQuery.getQueryParameters = function(s) { + if (typeof s == 'undefined') + s = document.location.search; + var parts = s.substr(s.indexOf('?') + 1).split('&'); + var result = {}; + for (var i = 0; i < parts.length; i++) { + var tmp = parts[i].split('=', 2); + var key = jQuery.urldecode(tmp[0]); + var value = jQuery.urldecode(tmp[1]); + if (key in result) + result[key].push(value); + else + result[key] = [value]; + } + return result; +}; + +/** + * highlight a given string on a jquery object by wrapping it in + * span elements with the given class name. + */ +jQuery.fn.highlightText = function(text, className) { + function highlight(node) { + if (node.nodeType == 3) { + var val = node.nodeValue; + var pos = val.toLowerCase().indexOf(text); + if (pos >= 0 && !jQuery(node.parentNode).hasClass(className)) { + var span = document.createElement("span"); + span.className = className; + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + node.parentNode.insertBefore(span, node.parentNode.insertBefore( + document.createTextNode(val.substr(pos + text.length)), + node.nextSibling)); + node.nodeValue = val.substr(0, pos); + } + } + else if (!jQuery(node).is("button, select, textarea")) { + jQuery.each(node.childNodes, function() { + highlight(this); + }); + } + } + return this.each(function() { + highlight(this); + }); +}; + +/** + * Small JavaScript module for the documentation. + */ +var Documentation = { + + init : function() { + this.fixFirefoxAnchorBug(); + this.highlightSearchWords(); + this.initIndexTable(); + }, + + /** + * i18n support + */ + TRANSLATIONS : {}, + PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; }, + LOCALE : 'unknown', + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext : function(string) { + var translated = Documentation.TRANSLATIONS[string]; + if (typeof translated == 'undefined') + return string; + return (typeof translated == 'string') ? translated : translated[0]; + }, + + ngettext : function(singular, plural, n) { + var translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated == 'undefined') + return (n == 1) ? singular : plural; + return translated[Documentation.PLURALEXPR(n)]; + }, + + addTranslations : function(catalog) { + for (var key in catalog.messages) + this.TRANSLATIONS[key] = catalog.messages[key]; + this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); + this.LOCALE = catalog.locale; + }, + + /** + * add context elements like header anchor links + */ + addContextElements : function() { + $('div[id] > :header:first').each(function() { + $('\u00B6'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this headline')). + appendTo(this); + }); + $('dt[id]').each(function() { + $('\u00B6'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this definition')). + appendTo(this); + }); + }, + + /** + * workaround a firefox stupidity + */ + fixFirefoxAnchorBug : function() { + if (document.location.hash && $.browser.mozilla) + window.setTimeout(function() { + document.location.href += ''; + }, 10); + }, + + /** + * highlight the search words provided in the url in the text + */ + highlightSearchWords : function() { + var params = $.getQueryParameters(); + var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; + if (terms.length) { + var body = $('div.body'); + if (!body.length) { + body = $('body'); + } + window.setTimeout(function() { + $.each(terms, function() { + body.highlightText(this.toLowerCase(), 'highlighted'); + }); + }, 10); + $('') + .appendTo($('#searchbox')); + } + }, + + /** + * init the domain index toggle buttons + */ + initIndexTable : function() { + var togglers = $('img.toggler').click(function() { + var src = $(this).attr('src'); + var idnum = $(this).attr('id').substr(7); + $('tr.cg-' + idnum).toggle(); + if (src.substr(-9) == 'minus.png') + $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); + else + $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); + }).css('display', ''); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { + togglers.click(); + } + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords : function() { + $('#searchbox .highlight-link').fadeOut(300); + $('span.highlighted').removeClass('highlighted'); + }, + + /** + * make the url absolute + */ + makeURL : function(relativeURL) { + return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; + }, + + /** + * get the current relative url + */ + getCurrentURL : function() { + var path = document.location.pathname; + var parts = path.split(/\//); + $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { + if (this == '..') + parts.pop(); + }); + var url = parts.join('/'); + return path.substring(url.lastIndexOf('/') + 1, path.length - 1); + } +}; + +// quick alias for translations +_ = Documentation.gettext; + +$(document).ready(function() { + Documentation.init(); +}); diff --git a/sna/user_guide/_static/down-pressed.png b/sna/user_guide/_static/down-pressed.png new file mode 100644 index 0000000..6f7ad78 Binary files /dev/null and b/sna/user_guide/_static/down-pressed.png differ diff --git a/sna/user_guide/_static/down.png b/sna/user_guide/_static/down.png new file mode 100644 index 0000000..3003a88 Binary files /dev/null and b/sna/user_guide/_static/down.png differ diff --git a/sna/user_guide/_static/file.png b/sna/user_guide/_static/file.png new file mode 100644 index 0000000..d18082e Binary files /dev/null and b/sna/user_guide/_static/file.png differ diff --git a/sna/user_guide/_static/fonts/FontAwesome.otf b/sna/user_guide/_static/fonts/FontAwesome.otf new file mode 100644 index 0000000..8b0f54e Binary files /dev/null and b/sna/user_guide/_static/fonts/FontAwesome.otf differ diff --git a/sna/user_guide/_static/fonts/fontawesome-webfont.eot b/sna/user_guide/_static/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000..7c79c6a Binary files /dev/null and b/sna/user_guide/_static/fonts/fontawesome-webfont.eot differ diff --git a/sna/user_guide/_static/fonts/fontawesome-webfont.svg b/sna/user_guide/_static/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..45fdf33 --- /dev/null +++ b/sna/user_guide/_static/fonts/fontawesome-webfont.svg @@ -0,0 +1,414 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/_static/fonts/fontawesome-webfont.ttf b/sna/user_guide/_static/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000..e89738d Binary files /dev/null and b/sna/user_guide/_static/fonts/fontawesome-webfont.ttf differ diff --git a/sna/user_guide/_static/fonts/fontawesome-webfont.woff b/sna/user_guide/_static/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000..8c1748a Binary files /dev/null and b/sna/user_guide/_static/fonts/fontawesome-webfont.woff differ diff --git a/sna/user_guide/_static/images/ci-icon.ico b/sna/user_guide/_static/images/ci-icon.ico new file mode 100644 index 0000000..c4246f8 Binary files /dev/null and b/sna/user_guide/_static/images/ci-icon.ico differ diff --git a/sna/user_guide/_static/jquery.js b/sna/user_guide/_static/jquery.js new file mode 100644 index 0000000..3883779 --- /dev/null +++ b/sna/user_guide/_static/jquery.js @@ -0,0 +1,2 @@ +/*! jQuery v1.8.3 jquery.com | jquery.org/license */ +(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write(""),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t
    a",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="
    t
    ",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="
    ",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;ti.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="
    ",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="

    ",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t0)for(i=r;i=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*\s*$/g,Nt={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X
    ","
    "]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1>");try{for(;r1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]===""&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("
    ").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window); \ No newline at end of file diff --git a/sna/user_guide/_static/js/oldtheme.js b/sna/user_guide/_static/js/oldtheme.js new file mode 100644 index 0000000..60520cc --- /dev/null +++ b/sna/user_guide/_static/js/oldtheme.js @@ -0,0 +1,47 @@ +$( document ).ready(function() { + // Shift nav in mobile when clicking the menu. + $(document).on('click', "[data-toggle='wy-nav-top']", function() { + $("[data-toggle='wy-nav-shift']").toggleClass("shift"); + $("[data-toggle='rst-versions']").toggleClass("shift"); + }); + // Close menu when you click a link. + $(document).on('click', ".wy-menu-vertical .current ul li a", function() { + $("[data-toggle='wy-nav-shift']").removeClass("shift"); + $("[data-toggle='rst-versions']").toggleClass("shift"); + }); + $(document).on('click', "[data-toggle='rst-current-version']", function() { + $("[data-toggle='rst-versions']").toggleClass("shift-up"); + }); + // Make tables responsive + $("table.docutils:not(.field-list)").wrap("
    "); +}); + +window.SphinxRtdTheme = (function (jquery) { + var stickyNav = (function () { + var navBar, + win, + stickyNavCssClass = 'stickynav', + applyStickNav = function () { + if (navBar.height() <= win.height()) { + navBar.addClass(stickyNavCssClass); + } else { + navBar.removeClass(stickyNavCssClass); + } + }, + enable = function () { + applyStickNav(); + win.on('resize', applyStickNav); + }, + init = function () { + navBar = jquery('nav.wy-nav-side:first'); + win = jquery(window); + }; + jquery(init); + return { + enable : enable + }; + }()); + return { + StickyNav : stickyNav + }; +}($)); diff --git a/sna/user_guide/_static/js/theme.js b/sna/user_guide/_static/js/theme.js new file mode 100644 index 0000000..081d77b --- /dev/null +++ b/sna/user_guide/_static/js/theme.js @@ -0,0 +1,131 @@ +$(document).ready(function () { + // Shift nav in mobile when clicking the menu. + $(document).on('click', "[data-toggle='wy-nav-top']", function () { + $("[data-toggle='wy-nav-shift']").toggleClass("shift"); + $("[data-toggle='rst-versions']").toggleClass("shift"); + }); + // Close menu when you click a link. + $(document).on('click', ".wy-menu-vertical .current ul li a", function () { + $("[data-toggle='wy-nav-shift']").removeClass("shift"); + $("[data-toggle='rst-versions']").toggleClass("shift"); + }); + $(document).on('click', "[data-toggle='rst-current-version']", function () { + $("[data-toggle='rst-versions']").toggleClass("shift-up"); + }); + // Make tables responsive + $("table.docutils:not(.field-list)").wrap("
    "); + // --- + // START DOC MODIFICATION BY RUFNEX + // v1.0 04.02.2015 + // Add ToogleButton to get FullWidth-View by Johannes Gamperl codeigniter.de + + $('#openToc').click(function () { + $('#nav').slideToggle(); + }); + $('#closeMe').toggle( + function () + { + setCookie('ciNav', 'yes', 365); + $('#nav2').show(); + $('#topMenu').remove(); + $('body').css({background: 'none'}); + $('.wy-nav-content-wrap').css({background: 'none', 'margin-left': 0}); + $('.wy-breadcrumbs').append('
    ' + $('.wy-form').parent().html() + '
    '); + $('.wy-nav-side').toggle(); + }, + function () + { + setCookie('ciNav', 'no', 365); + $('#topMenu').remove(); + $('#nav').hide(); + $('#nav2').hide(); + $('body').css({background: '#edf0f2;'}); + $('.wy-nav-content-wrap').css({background: 'none repeat scroll 0 0 #fcfcfc;', 'margin-left': '300px'}); + $('.wy-nav-side').show(); + } + ); + if (getCookie('ciNav') == 'yes') + { + $('#closeMe').trigger('click'); + //$('#nav').slideToggle(); + } + // END MODIFICATION --- + +}); + +// Rufnex Cookie functions +function setCookie(cname, cvalue, exdays) { + // expire the old cookie if existed to avoid multiple cookies with the same name + if (getCookie(cname)) { + document.cookie = cname + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; + } + var d = new Date(); + d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); + var expires = "expires=" + d.toGMTString(); + document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/"; +} +function getCookie(cname) { + var name = cname + "="; + var ca = document.cookie.split(';'); + for (var i = 0; i < ca.length; i++) { + var c = ca[i]; + while (c.charAt(0) == ' ') + c = c.substring(1); + if (c.indexOf(name) == 0) { + return c.substring(name.length, c.length); + } + } + return ''; +} +// End + +// resize window +$(window).on('resize', function(){ + // show side nav on small screens when pulldown is enabled + if (getCookie('ciNav') == 'yes' && $(window).width() <= 768) { // 768px is the tablet size defined by the theme + $('.wy-nav-side').show(); + } + // changing css with jquery seems to override the default css media query + // change margin + else if (getCookie('ciNav') == 'no' && $(window).width() <= 768) { + $('.wy-nav-content-wrap').css({'margin-left': 0}); + } + // hide side nav on large screens when pulldown is enabled + else if (getCookie('ciNav') == 'yes' && $(window).width() > 768) { + $('.wy-nav-side').hide(); + } + // change margin + else if (getCookie('ciNav') == 'no' && $(window).width() > 768) { + $('.wy-nav-content-wrap').css({'margin-left': '300px'}); + } +}); + +window.SphinxRtdTheme = (function (jquery) { + var stickyNav = (function () { + var navBar, + win, + stickyNavCssClass = 'stickynav', + applyStickNav = function () { + if (navBar.height() <= win.height()) { + navBar.addClass(stickyNavCssClass); + } else { + navBar.removeClass(stickyNavCssClass); + } + }, + enable = function () { + applyStickNav(); + win.on('resize', applyStickNav); + }, + init = function () { + navBar = jquery('nav.wy-nav-side:first'); + win = jquery(window); + }; + jquery(init); + return { + enable: enable + }; + }()); + return { + StickyNav: stickyNav + }; +}($)); diff --git a/sna/user_guide/_static/minus.png b/sna/user_guide/_static/minus.png new file mode 100644 index 0000000..da1c562 Binary files /dev/null and b/sna/user_guide/_static/minus.png differ diff --git a/sna/user_guide/_static/plus.png b/sna/user_guide/_static/plus.png new file mode 100644 index 0000000..b3cb374 Binary files /dev/null and b/sna/user_guide/_static/plus.png differ diff --git a/sna/user_guide/_static/pygments.css b/sna/user_guide/_static/pygments.css new file mode 100644 index 0000000..7236764 --- /dev/null +++ b/sna/user_guide/_static/pygments.css @@ -0,0 +1,63 @@ +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #999988; font-style: italic } /* Comment */ +.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.highlight .k { font-weight: bold } /* Keyword */ +.highlight .o { font-weight: bold } /* Operator */ +.highlight .ch { color: #999988; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ +.highlight .cpf { color: #999988; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #aa0000 } /* Generic.Error */ +.highlight .gh { color: #999999 } /* Generic.Heading */ +.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #555555 } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ +.highlight .gt { color: #aa0000 } /* Generic.Traceback */ +.highlight .kc { font-weight: bold } /* Keyword.Constant */ +.highlight .kd { font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #009999 } /* Literal.Number */ +.highlight .s { color: #bb8844 } /* Literal.String */ +.highlight .na { color: #008080 } /* Name.Attribute */ +.highlight .nb { color: #999999 } /* Name.Builtin */ +.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ +.highlight .no { color: #008080 } /* Name.Constant */ +.highlight .ni { color: #800080 } /* Name.Entity */ +.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ +.highlight .nn { color: #555555 } /* Name.Namespace */ +.highlight .nt { color: #000080 } /* Name.Tag */ +.highlight .nv { color: #008080 } /* Name.Variable */ +.highlight .ow { font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #009999 } /* Literal.Number.Bin */ +.highlight .mf { color: #009999 } /* Literal.Number.Float */ +.highlight .mh { color: #009999 } /* Literal.Number.Hex */ +.highlight .mi { color: #009999 } /* Literal.Number.Integer */ +.highlight .mo { color: #009999 } /* Literal.Number.Oct */ +.highlight .sb { color: #bb8844 } /* Literal.String.Backtick */ +.highlight .sc { color: #bb8844 } /* Literal.String.Char */ +.highlight .sd { color: #bb8844 } /* Literal.String.Doc */ +.highlight .s2 { color: #bb8844 } /* Literal.String.Double */ +.highlight .se { color: #bb8844 } /* Literal.String.Escape */ +.highlight .sh { color: #bb8844 } /* Literal.String.Heredoc */ +.highlight .si { color: #bb8844 } /* Literal.String.Interpol */ +.highlight .sx { color: #bb8844 } /* Literal.String.Other */ +.highlight .sr { color: #808000 } /* Literal.String.Regex */ +.highlight .s1 { color: #bb8844 } /* Literal.String.Single */ +.highlight .ss { color: #bb8844 } /* Literal.String.Symbol */ +.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #008080 } /* Name.Variable.Class */ +.highlight .vg { color: #008080 } /* Name.Variable.Global */ +.highlight .vi { color: #008080 } /* Name.Variable.Instance */ +.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/sna/user_guide/_static/searchtools.js b/sna/user_guide/_static/searchtools.js new file mode 100644 index 0000000..6e1f06b --- /dev/null +++ b/sna/user_guide/_static/searchtools.js @@ -0,0 +1,622 @@ +/* + * searchtools.js_t + * ~~~~~~~~~~~~~~~~ + * + * Sphinx JavaScript utilties for the full-text search. + * + * :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + + +/** + * Porter Stemmer + */ +var Stemmer = function() { + + var step2list = { + ational: 'ate', + tional: 'tion', + enci: 'ence', + anci: 'ance', + izer: 'ize', + bli: 'ble', + alli: 'al', + entli: 'ent', + eli: 'e', + ousli: 'ous', + ization: 'ize', + ation: 'ate', + ator: 'ate', + alism: 'al', + iveness: 'ive', + fulness: 'ful', + ousness: 'ous', + aliti: 'al', + iviti: 'ive', + biliti: 'ble', + logi: 'log' + }; + + var step3list = { + icate: 'ic', + ative: '', + alize: 'al', + iciti: 'ic', + ical: 'ic', + ful: '', + ness: '' + }; + + var c = "[^aeiou]"; // consonant + var v = "[aeiouy]"; // vowel + var C = c + "[^aeiouy]*"; // consonant sequence + var V = v + "[aeiou]*"; // vowel sequence + + var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 + var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 + var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 + var s_v = "^(" + C + ")?" + v; // vowel in stem + + this.stemWord = function (w) { + var stem; + var suffix; + var firstch; + var origword = w; + + if (w.length < 3) + return w; + + var re; + var re2; + var re3; + var re4; + + firstch = w.substr(0,1); + if (firstch == "y") + w = firstch.toUpperCase() + w.substr(1); + + // Step 1a + re = /^(.+?)(ss|i)es$/; + re2 = /^(.+?)([^s])s$/; + + if (re.test(w)) + w = w.replace(re,"$1$2"); + else if (re2.test(w)) + w = w.replace(re2,"$1$2"); + + // Step 1b + re = /^(.+?)eed$/; + re2 = /^(.+?)(ed|ing)$/; + if (re.test(w)) { + var fp = re.exec(w); + re = new RegExp(mgr0); + if (re.test(fp[1])) { + re = /.$/; + w = w.replace(re,""); + } + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1]; + re2 = new RegExp(s_v); + if (re2.test(stem)) { + w = stem; + re2 = /(at|bl|iz)$/; + re3 = new RegExp("([^aeiouylsz])\\1$"); + re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re2.test(w)) + w = w + "e"; + else if (re3.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + else if (re4.test(w)) + w = w + "e"; + } + } + + // Step 1c + re = /^(.+?)y$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(s_v); + if (re.test(stem)) + w = stem + "i"; + } + + // Step 2 + re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step2list[suffix]; + } + + // Step 3 + re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step3list[suffix]; + } + + // Step 4 + re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + re2 = /^(.+?)(s|t)(ion)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + if (re.test(stem)) + w = stem; + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1] + fp[2]; + re2 = new RegExp(mgr1); + if (re2.test(stem)) + w = stem; + } + + // Step 5 + re = /^(.+?)e$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + re2 = new RegExp(meq1); + re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) + w = stem; + } + re = /ll$/; + re2 = new RegExp(mgr1); + if (re.test(w) && re2.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + + // and turn initial Y back to y + if (firstch == "y") + w = firstch.toLowerCase() + w.substr(1); + return w; + } +} + + + +/** + * Simple result scoring code. + */ +var Scorer = { + // Implement the following function to further tweak the score for each result + // The function takes a result array [filename, title, anchor, descr, score] + // and returns the new score. + /* + score: function(result) { + return result[4]; + }, + */ + + // query matches the full name of an object + objNameMatch: 11, + // or matches in the last dotted part of the object name + objPartialMatch: 6, + // Additive scores depending on the priority of the object + objPrio: {0: 15, // used to be importantResults + 1: 5, // used to be objectResults + 2: -5}, // used to be unimportantResults + // Used when the priority is not in the mapping. + objPrioDefault: 0, + + // query found in title + title: 15, + // query found in terms + term: 5 +}; + + +/** + * Search Module + */ +var Search = { + + _index : null, + _queued_query : null, + _pulse_status : -1, + + init : function() { + var params = $.getQueryParameters(); + if (params.q) { + var query = params.q[0]; + $('input[name="q"]')[0].value = query; + this.performSearch(query); + } + }, + + loadIndex : function(url) { + $.ajax({type: "GET", url: url, data: null, + dataType: "script", cache: true, + complete: function(jqxhr, textstatus) { + if (textstatus != "success") { + document.getElementById("searchindexloader").src = url; + } + }}); + }, + + setIndex : function(index) { + var q; + this._index = index; + if ((q = this._queued_query) !== null) { + this._queued_query = null; + Search.query(q); + } + }, + + hasIndex : function() { + return this._index !== null; + }, + + deferQuery : function(query) { + this._queued_query = query; + }, + + stopPulse : function() { + this._pulse_status = 0; + }, + + startPulse : function() { + if (this._pulse_status >= 0) + return; + function pulse() { + var i; + Search._pulse_status = (Search._pulse_status + 1) % 4; + var dotString = ''; + for (i = 0; i < Search._pulse_status; i++) + dotString += '.'; + Search.dots.text(dotString); + if (Search._pulse_status > -1) + window.setTimeout(pulse, 500); + } + pulse(); + }, + + /** + * perform a search for something (or wait until index is loaded) + */ + performSearch : function(query) { + // create the required interface elements + this.out = $('#search-results'); + this.title = $('

    ' + _('Searching') + '

    ').appendTo(this.out); + this.dots = $('').appendTo(this.title); + this.status = $('

    ').appendTo(this.out); + this.output = $('
    '); + } + // Prettify the comment rating. + comment.pretty_rating = comment.rating + ' point' + + (comment.rating == 1 ? '' : 's'); + // Make a class (for displaying not yet moderated comments differently) + comment.css_class = comment.displayed ? '' : ' moderate'; + // Create a div for this comment. + var context = $.extend({}, opts, comment); + var div = $(renderTemplate(commentTemplate, context)); + + // If the user has voted on this comment, highlight the correct arrow. + if (comment.vote) { + var direction = (comment.vote == 1) ? 'u' : 'd'; + div.find('#' + direction + 'v' + comment.id).hide(); + div.find('#' + direction + 'u' + comment.id).show(); + } + + if (opts.moderator || comment.text != '[deleted]') { + div.find('a.reply').show(); + if (comment.proposal_diff) + div.find('#sp' + comment.id).show(); + if (opts.moderator && !comment.displayed) + div.find('#cm' + comment.id).show(); + if (opts.moderator || (opts.username == comment.username)) + div.find('#dc' + comment.id).show(); + } + return div; + } + + /** + * A simple template renderer. Placeholders such as <%id%> are replaced + * by context['id'] with items being escaped. Placeholders such as <#id#> + * are not escaped. + */ + function renderTemplate(template, context) { + var esc = $(document.createElement('div')); + + function handle(ph, escape) { + var cur = context; + $.each(ph.split('.'), function() { + cur = cur[this]; + }); + return escape ? esc.text(cur || "").html() : cur; + } + + return template.replace(/<([%#])([\w\.]*)\1>/g, function() { + return handle(arguments[2], arguments[1] == '%' ? true : false); + }); + } + + /** Flash an error message briefly. */ + function showError(message) { + $(document.createElement('div')).attr({'class': 'popup-error'}) + .append($(document.createElement('div')) + .attr({'class': 'error-message'}).text(message)) + .appendTo('body') + .fadeIn("slow") + .delay(2000) + .fadeOut("slow"); + } + + /** Add a link the user uses to open the comments popup. */ + $.fn.comment = function() { + return this.each(function() { + var id = $(this).attr('id').substring(1); + var count = COMMENT_METADATA[id]; + var title = count + ' comment' + (count == 1 ? '' : 's'); + var image = count > 0 ? opts.commentBrightImage : opts.commentImage; + var addcls = count == 0 ? ' nocomment' : ''; + $(this) + .append( + $(document.createElement('a')).attr({ + href: '#', + 'class': 'sphinx-comment-open' + addcls, + id: 'ao' + id + }) + .append($(document.createElement('img')).attr({ + src: image, + alt: 'comment', + title: title + })) + .click(function(event) { + event.preventDefault(); + show($(this).attr('id').substring(2)); + }) + ) + .append( + $(document.createElement('a')).attr({ + href: '#', + 'class': 'sphinx-comment-close hidden', + id: 'ah' + id + }) + .append($(document.createElement('img')).attr({ + src: opts.closeCommentImage, + alt: 'close', + title: 'close' + })) + .click(function(event) { + event.preventDefault(); + hide($(this).attr('id').substring(2)); + }) + ); + }); + }; + + var opts = { + processVoteURL: '/_process_vote', + addCommentURL: '/_add_comment', + getCommentsURL: '/_get_comments', + acceptCommentURL: '/_accept_comment', + deleteCommentURL: '/_delete_comment', + commentImage: '/static/_static/comment.png', + closeCommentImage: '/static/_static/comment-close.png', + loadingImage: '/static/_static/ajax-loader.gif', + commentBrightImage: '/static/_static/comment-bright.png', + upArrow: '/static/_static/up.png', + downArrow: '/static/_static/down.png', + upArrowPressed: '/static/_static/up-pressed.png', + downArrowPressed: '/static/_static/down-pressed.png', + voting: false, + moderator: false + }; + + if (typeof COMMENT_OPTIONS != "undefined") { + opts = jQuery.extend(opts, COMMENT_OPTIONS); + } + + var popupTemplate = '\ +
    \ +

    \ + Sort by:\ + best rated\ + newest\ + oldest\ +

    \ +
    Comments
    \ +
    \ + loading comments...
    \ +
      \ +
      \ +

      Add a comment\ + (markup):

      \ +
      \ + reStructured text markup: *emph*, **strong**, \ + ``code``, \ + code blocks: :: and an indented block after blank line
      \ +
      \ + \ +

      \ + \ + Propose a change ▹\ + \ + \ + Propose a change ▿\ + \ +

      \ + \ + \ + \ + \ + \ +
      \ +
      '; + + var commentTemplate = '\ +
      \ +
      \ +
      \ + \ + \ + \ + \ + \ + \ +
      \ +
      \ + \ + \ + \ + \ + \ + \ +
      \ +
      \ +
      \ +

      \ + <%username%>\ + <%pretty_rating%>\ + <%time.delta%>\ +

      \ +
      <#text#>
      \ +

      \ + \ + reply ▿\ + proposal ▹\ + proposal ▿\ + \ + \ +

      \ +
      \
      +<#proposal_diff#>\
      +        
      \ +
        \ +
        \ +
        \ +
        \ + '; + + var replyTemplate = '\ +
      • \ +
        \ +
        \ + \ + \ + \ + \ + \ + \ +
        \ +
      • '; + + $(document).ready(function() { + init(); + }); +})(jQuery); + +$(document).ready(function() { + // add comment anchors for all paragraphs that are commentable + $('.sphinx-has-comment').comment(); + + // highlight search words in search results + $("div.context").each(function() { + var params = $.getQueryParameters(); + var terms = (params.q) ? params.q[0].split(/\s+/) : []; + var result = $(this); + $.each(terms, function() { + result.highlightText(this.toLowerCase(), 'highlighted'); + }); + }); + + // directly open comment window if requested + var anchor = document.location.hash; + if (anchor.substring(0, 9) == '#comment-') { + $('#ao' + anchor.substring(9)).click(); + document.location.hash = '#s' + anchor.substring(9); + } +}); diff --git a/sna/user_guide/changelog.html b/sna/user_guide/changelog.html new file mode 100644 index 0000000..4b35315 --- /dev/null +++ b/sna/user_guide/changelog.html @@ -0,0 +1,4069 @@ + + + + + + + + + + Change Log — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Change Log
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Change Log

        +
        +

        Version 3.1.4

        +

        Release Date: March 23, 2017

        + +
        +

        Bug fixes for 3.1.4

        +
          +
        • Fixed a regression (#4975) - Loader Library couldn’t handle objects passed as view variables.
        • +
        • Fixed a bug (#4977) - Loader Library method helper() could accept any character as a filename extension separator.
        • +
        • Fixed a regression where the Session Library would fail on a session_regenerate_id(TRUE) call with the ‘database’ driver.
        • +
        • Fixed a bug (#4987) - Query Builder caching didn’t keep track of table aliases.
        • +
        • Fixed a bug where Text Helper function ascii_to_entities() wasn’t byte-safe when mbstring.func_overload is enabled.
        • +
        • Fixed a bug where CI_Log, CI_Output, CI_Email and CI_Zip didn’t handle strings in a byte-safe manner when mbstring.func_overload is enabled.
        • +
        • Fixed a bug where Session Library didn’t read session data in a byte-safe manner when mbstring.func_overload is enabled.
        • +
        • Fixed a bug (#4990) - Profiler didn’t close <pre> tags it generated.
        • +
        • Fixed a bug (#4990) - Profiler didn’t HTML-escape quotes for $_SESSION variables.
        • +
        • Fixed a bug where Input Library method set_cookie() didn’t allow its httponly and secure parameters to be overriden to FALSE.
        • +
        • Fixed a bug (#5006) - common function get_mimes() didn’t load application/config/mimes.php if an environment specific config exists.
        • +
        • Fixed a bug (#5006) - common function remove_invisible_characters() didn’t remove URL-encoded 0x7F.
        • +
        • Fixed a bug (#4815) - Database Library stripped URL-encoded sequences while escaping strings with the ‘mssql’ driver.
        • +
        • Fixed a bug (#5044) - HTML Helper function img() didn’t accept data: URI schemes for the image source.
        • +
        • Fixed a bug (#5050) - Database Library tried to access an undefined property in a number of error handling cases.
        • +
        • Fixed a bug (#5057) - Database driver ‘postgre’ didn’t actually apply extra options (such as ‘connect_timeout’) to its DSN.
        • +
        +
        +
        +
        +

        Version 3.1.3

        +

        Release Date: Jan 09, 2017

        +
          +
        • Security
            +
          • Fixed an XSS vulnerability in Security Library method xss_clean().
          • +
          • Fixed a possible file inclusion vulnerability in Loader Library method vars().
          • +
          • Fixed a possible remote code execution vulnerability in the Email Library when ‘mail’ or ‘sendmail’ are used (thanks to Paul Buonopane from NamePros).
          • +
          • Added protection against timing side-channel attacks in Security Library method csrf_verify().
          • +
          • Added protection against BREACH attacks targeting the CSRF token field generated by Form Helper function form_open().
          • +
          +
        • +
        • General Changes
            +
          • Deprecated $config['allow_get_array'].
          • +
          • Deprecated $config['standardize_newlines'].
          • +
          • Deprecated Date Helper function nice_date().
          • +
          +
        • +
        +
        +

        Bug fixes for 3.1.3

        +
          +
        • Fixed a bug (#4886) - Database Library didn’t differentiate bind markers inside double-quoted strings in queries.
        • +
        • Fixed a bug (#4890) - XML-RPC Library didn’t work on PHP 7.
        • +
        • Fixed a regression (#4887) - File Uploading Library triggered fatal errors due to numerous PHP distribution channels (XAMPP and cPanel confirmed) explicitly disabling ext/fileinfo by default.
        • +
        • Fixed a bug (#4679) - Input Library method ip_address() didn’t properly resolve $config['proxy_ips'] IPv6 addresses.
        • +
        • Fixed a bug (#4902) - Image Manipulation Library processing via ImageMagick didn’t work.
        • +
        • Fixed a bug (#4905) - Loader Library didn’t take into account possible user-provided directory paths when loading helpers.
        • +
        • Fixed a bug (#4916) - Session Library with sess_match_ip enabled was unusable for IPv6 clients when using the ‘database’ driver on MySQL 5.7.5+.
        • +
        • Fixed a bug (#4917) - Date Helper function nice_date() didn’t handle YYYYMMDD inputs properly.
        • +
        • Fixed a bug (#4923) - Session Library could execute an erroneous SQL query with the ‘database’ driver, if the lock attempt times out.
        • +
        • Fixed a bug (#4927) - Output Library method get_header() returned the first matching header, regardless of whether it would be replaced by a second set_header() call.
        • +
        • Fixed a bug (#4844) - Email Library didn’t apply escapeshellarg() to the while passing the Sendmail -f parameter through popen().
        • +
        • Fixed a bug (#4928) - the bootstrap file didn’t check if config/constants.php exists before trying to load it.
        • +
        • Fixed a bug (#4937) - Image Manipulation Library method initialize() didn’t translate new_image inputs to absolute paths.
        • +
        • Fixed a bug (#4941) - Query Builder method order_by() didn’t work with ‘RANDOM’ under the ‘pdo/sqlite’ driver.
        • +
        • Fixed a regression (#4892) - Query Builder method update_batch() didn’t properly handle identifier escaping.
        • +
        • Fixed a bug (#4953) - Database Forge method create_table() didn’t update an internal tables list cache if it exists but is empty.
        • +
        • Fixed a bug (#4958) - Query Builder method count_all_results() didn’t take into account cached ORDER BY clauses.
        • +
        • Fixed a bug (#4804) - Query Builder method insert_batch() could fail if the input array pointer was modified.
        • +
        • Fixed a bug (#4962) - Database Force method alter_table() would fail with the ‘oci8’ driver.
        • +
        • Fixed a bug (#4457) - Image Manipulation Library method get_image_properties() didn’t detect invalid images.
        • +
        • Fixed a bug (#4765) - Email Library didn’t send the User-Agent header without a prior call to clear().
        • +
        +
        +
        +
        +

        Version 3.1.2

        +

        Release Date: Oct 28, 2016

        +
          +
        • Security
            +
          • Fixed a number of new vulnerabilities in Security Library method xss_clean().
          • +
          +
        • +
        • General Changes
            +
          • Allowed PHP 4-style constructors (Matching_name::Matching_name() methods) to be used as routes, if there’s a __construct() to override them.
          • +
          +
        • +
        +
        +

        Bug fixes for 3.1.2

        +
          +
        • Fixed a regression (#4874) - Session Library didn’t take into account session.hash_bits_per_character when validating session IDs.
        • +
        • Fixed a bug (#4871) - Query Builder method update_batch() didn’t properly handle identifier escaping.
        • +
        • Fixed a bug (#4884) - Query Builder didn’t properly parse field names ending in ‘is’ when used inside WHERE and HAVING statements.
        • +
        • Fixed a bug where CI_Log, CI_Output, CI_Email and CI_Zip didn’t handle strings in a byte-safe manner when mbstring.func_overload is enabled.
        • +
        +
        +
        +
        +

        Version 3.1.1

        +

        Release Date: Oct 22, 2016

        + +
        +

        Bug fixes for 3.1.1

        +
          +
        • Fixed a bug (#4732) - Session Library triggered errors while writing data for a newly-created sessions with the ‘memcached’ driver.
        • +
        • Fixed a regression (#4736) - Image Manipulation Library processing via ImageMagick didn’t work.
        • +
        • Fixed a bug (#4737) - Query Builder didn’t add an OFFSET when LIMIT is zero or unused.
        • +
        • Fixed a regression (#4739) - Email Library doesn’t properly separate attachment bodies from headers.
        • +
        • Fixed a bug (#4754) - Unit Testing Library method result() didn’t translate res_datatype.
        • +
        • Fixed a bug (#4759) - Form Validation, Trackback and XML-RPC libraries treated URI schemes in a case-sensitive manner.
        • +
        • Fixed a bug (#4762) - Cache Library ‘file’ driver method get_metadata() checked TTL time against mtime instead of the cache item’s creation time.
        • +
        • Fixed a bug where File Uploading Library generated error messages on PHP 7.1.
        • +
        • Fixed a bug (#4780) - compatibility function hex2bin() didn’t reject inputs of type “resource”.
        • +
        • Fixed a bug (#4787) - Form Validation Library method valid_email() triggered E_WARNING when input emails have empty domain names.
        • +
        • Fixed a bug (#4805) - Database driver ‘mysqli’ didn’t use the MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT flag properly.
        • +
        • Fixed a bug (#4808) - Database method is_write_type() only looked at the first line of a queries using RETURNING with the ‘postgre’, ‘pdo/pgsql’, ‘odbc’ and ‘pdo/odbc’ drivers.
        • +
        • Fixed a bug where Query Builder method insert_batch() tried to execute an unsupported SQL query with the ‘ibase’ and ‘pdo/firebird’ drivers.
        • +
        • Fixed a bug (#4809) - Database driver ‘pdo/mysql’ didn’t turn off AUTOCOMMIT when starting a transaction.
        • +
        • Fixed a bug (#4822) - CAPTCHA Helper didn’t clear expired PNG images.
        • +
        • Fixed a bug (#4823) - Session Library ‘files’ driver could enter an infinite loop if mbstring.func_overload is enabled.
        • +
        • Fixed a bug (#4851) - Database Forge didn’t quote schema names passed to its create_database() method.
        • +
        • Fixed a bug (#4863) - HTML Table Library method set_caption() was missing method chaining support.
        • +
        • Fixed a bug (#4843) - XML-RPC Library client class didn’t set a read/write socket timeout.
        • +
        • Fixed a bug (#4865) - uncaught exceptions didn’t set the HTTP Response status code to 500 unless display_errors was turned On.
        • +
        • Fixed a bug (#4830) - Session Library didn’t take into account the new session INI settings in PHP 7.1.
        • +
        +
        +
        +
        +

        Version 3.1.0

        +

        Release Date: July 26, 2016

        +
          +
        • Security
            +
          • Fixed an SQL injection in the ‘odbc’ database driver.
          • +
          • Updated set_realpath() Path Helper function to filter-out php:// wrapper inputs.
          • +
          • Officially dropped any kind of support for PHP 5.2.x and anything under 5.3.7.
          • +
          +
        • +
        • General Changes
            +
          • Updated Image Manipulation Library to validate width and height configuration values.
          • +
          • Updated Encryption Library to always prefer random_bytes() when it is available.
          • +
          • Updated Session Library to log ‘debug’ messages when using fallbacks to session.save_path (php.ini) or ‘sess_use_database’, ‘sess_table_name’ settings.
          • +
          • Added a ‘LONGTEXT’ to ‘STRING’ alias to Database Forge for the ‘cubrid’, ‘pdo/cubrid’ drivers.
          • +
          • Added ‘TINYINT’, ‘MEDIUMINT’, ‘INT’ and ‘BIGINT’ aliases to ‘NUMBER’ to Database Forge for the ‘oci8’, ‘pdo/oci’ drivers.
          • +
          • password_hash() compatibility function changes:
              +
            • Changed salt-generation logic to prefer random_bytes() when it is available.
            • +
            • Changed salt-generation logic to prefer direct access to /dev/urandom over openssl_random_pseudo_bytes().
            • +
            • Changed salt-generation logic to error if openssl_random_pseudo_bytes() sets its $crypto_strong flag to FALSE.
            • +
            +
          • +
          +
        • +
        +
        +

        Bug fixes for 3.1.0

        +
          +
        • Fixed a bug where Image Manipulation Library didn’t escape image source paths passed to ImageMagick as shell arguments.
        • +
        • Fixed a bug (#861) - Database Forge method create_table() incorrectly accepts field width constraints for MSSQL/SQLSRV integer-type columns.
        • +
        • Fixed a bug (#4562) - Cache Library didn’t check if Memcached::quit() is available before calling it.
        • +
        • Fixed a bug (#4563) - Input Library method request_headers() ignores $xss_clean parameter value after first call.
        • +
        • Fixed a bug (#4605) - Config Library method site_url() stripped trailing slashes from relative URIs passed to it.
        • +
        • Fixed a bug (#4613) - Email Library failed to send multiple emails via SMTP due to “already authenticated” errors when keep-alive is enabled.
        • +
        • Fixed a bug (#4633) - Form Validation Library ignored multiple “callback” rules for empty, non-required fields.
        • +
        • Fixed a bug (#4637) - Database method error() returned FALSE with the ‘oci8’ driver if there was no error.
        • +
        • Fixed a bug (#4647) - Query Builder method count_all_results() doesn’t take into account GROUP BY clauses while deciding whether to do a subquery or not.
        • +
        • Fixed a bug where Session Library ‘redis’ driver didn’t properly detect if a connection is properly closed on PHP 5.x.
        • +
        • Fixed a bug (#4583) - Email Library didn’t properly handle inline attachments in HTML emails.
        • +
        • Fixed a bug where Database method db_select() didn’t clear metadata cached for the previously used database.
        • +
        • Fixed a bug (#4675) - File Helper function delete_files() treated symbolic links as regular directories.
        • +
        • Fixed a bug (#4674) - Database driver ‘dblib’ triggered E_WARNING messages while connecting.
        • +
        • Fixed a bug (#4678) - Database Forge tried to use unsupported IF NOT EXISTS clause when creating tables on Oracle.
        • +
        • Fixed a bug (#4691) - File Uploading Library method data() returns wrong ‘raw_name’ when the filename extension is also contained in the raw filename.
        • +
        • Fixed a bug (#4679) - Input Library method ip_address() errors with a matching $config['proxy_ips'] IPv6 address.
        • +
        • Fixed a bug (#4695) - User Agent Library didn’t load the config/user_agents.php file when there’s no User-Agent HTTP request header.
        • +
        • Fixed a bug (#4713) - Query Builder methods insert_batch(), update_batch() could return wrong affected rows count.
        • +
        • Fixed a bug (#4712) - Email Library doesn’t sent RSET to SMTP servers after a failure and while using keep-alive.
        • +
        • Fixed a bug (#4724) - Common function is_https() compared the X-Forwarded-Proto HTTP header case-sensitively.
        • +
        • Fixed a bug (#4725) - Common function remove_invisible_characters() searched case-sensitively for URL-encoded characters.
        • +
        +
        +
        +
        +

        Version 3.0.6

        +

        Release Date: March 21, 2016

        +
          +
        • General Changes
            +
          • Added a destructor to Cache Library ‘memcached’ driver to ensure that Memcache(d) connections are properly closed.
          • +
          • Deprecated Form Validation Library method prep_for_form().
          • +
          +
        • +
        +
        +

        Bug fixes for 3.0.6

        +
          +
        • Fixed a bug (#4516) - Form Validation Library always accepted empty array inputs.
        • +
        • Fixed a bug where Session Library allowed accessing $_SESSION values as class properties but isset() didn’t work on them.
        • +
        • Fixed a bug where Form Validation Library modified the $_POST array when the data being validated was actually provided via set_data().
        • +
        • Fixed a bug (#4539) - Migration Library applied migrations before validating that all migrations within the requested version range are valid.
        • +
        • Fixed a bug (#4539) - Migration Library triggered failures for migrations that are out of the requested version range.
        • +
        +
        +
        +
        +

        Version 3.0.5

        +

        Release Date: March 11, 2016

        +
          +
        • Core
            +
          • Changed Loader Library to allow $autoload['drivers'] assigning with custom property names.
          • +
          • Changed Loader Library to ignore variables prefixed with ‘_ci_’ when loading views.
          • +
          +
        • +
        • General Changes
            +
          • Updated the Session Library to produce friendlier error messages on failures with drivers other than ‘files’.
          • +
          +
        • +
        • Query Builder
            +
          • Added a $batch_size parameter to the insert_batch() method (defaults to 100).
          • +
          • Added a $batch_size parameter to the update_batch() method (defaults to 100).
          • +
          +
        • +
        +
        +

        Bug fixes for 3.0.5

        +
          +
        • Fixed a bug (#4391) - Email Library method reply_to() didn’t apply Q-encoding.
        • +
        • Fixed a bug (#4384) - Pagination Library ignored (possible) cur_page configuration value.
        • +
        • Fixed a bug (#4395) - Query Builder method count_all_results() still fails if an ORDER BY condition is used.
        • +
        • Fixed a bug (#4399) - Query Builder methods insert_batch(), update_batch() produced confusing error messages when called with no data and db_debug is enabled.
        • +
        • Fixed a bug (#4401) - Query Builder breaks WHERE and HAVING conditions that use IN() with strings containing a closing parenthesis.
        • +
        • Fixed a regression in Form Helper functions set_checkbox(), set_radio() where “checked” inputs aren’t recognized after a form submit.
        • +
        • Fixed a bug (#4407) - Text Helper function word_censor() doesn’t work under PHP 7 if there’s no custom replacement provided.
        • +
        • Fixed a bug (#4415) - Form Validation Library rule valid_url didn’t accept URLs with IPv6 addresses enclosed in square brackets under PHP 5 (upstream bug).
        • +
        • Fixed a bug (#4427) - CAPTCHA Helper triggers an error if the provided character pool is too small.
        • +
        • Fixed a bug (#4430) - File Uploading Library option file_ext_tolower didn’t work.
        • +
        • Fixed a bug (#4431) - Query Builder method join() discarded opening parentheses.
        • +
        • Fixed a bug (#4424) - Session Library triggered a PHP warning when writing a newly created session with the ‘redis’ driver.
        • +
        • Fixed a bug (#4437) - Inflector Helper function humanize() didn’t escape its $separator parameter while using it in a regular expression.
        • +
        • Fixed a bug where Session Library didn’t properly handle its locks’ statuses with the ‘memcached’ driver.
        • +
        • Fixed a bug where Session Library triggered a PHP warning when writing a newly created session with the ‘memcached’ driver.
        • +
        • Fixed a bug (#4449) - Query Builder method join() breaks conditions containing IS NULL, IS NOT NULL.
        • +
        • Fixed a bug (#4491) - Session Library didn’t clean-up internal variables for emulated locks with the ‘redis’ driver.
        • +
        • Fixed a bug where Session Library didn’t clean-up internal variables for emulated locks with the ‘memcached’ driver.
        • +
        • Fixed a bug where Database transactions didn’t work with the ‘ibase’ driver.
        • +
        • Fixed a bug (#4475) - Security Library method strip_image_tags() preserves only the first URL character from non-quoted src attributes.
        • +
        • Fixed a bug where Profiler Library didn’t apply htmlspecialchars() to all displayed inputs.
        • +
        • Fixed a bug (#4277) - Cache Library triggered fatal errors if accessing the Memcache(d) and/or Redis driver and they are not available on the system.
        • +
        • Fixed a bug where Cache Library method is_supported() logged an error message when it returns FALSE for the APC and Wincache drivers.
        • +
        +
        +
        +
        +

        Version 3.0.4

        +

        Release Date: January 13, 2016

        +
          +
        • General Changes
            +
          • Updated Security Library method get_random_bytes() to use PHP 7’s random_bytes() function when possible.
          • +
          • Updated Encryption Library method create_key() to use PHP 7’s random_bytes() function when possible.
          • +
          +
        • +
        • Database
            +
          • Added support for OFFSET-FETCH with Oracle 12c for the ‘oci8’ and ‘pdo/oci’ drivers.
          • +
          • Added support for the new MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT constant from PHP 5.6.16 for the ‘mysqli’ driver.
          • +
          +
        • +
        +
        +

        Bug fixes for 3.0.4

        +
          +
        • Fixed a bug (#4212) - Query Builder method count_all_results() could fail if an ORDER BY condition is used.
        • +
        • Fixed a bug where Form Helper functions set_checkbox(), set_radio() didn’t “uncheck” inputs on a submitted form if the default state is “checked”.
        • +
        • Fixed a bug (#4217) - Config Library method base_url() didn’t use proper formatting for IPv6 when it falls back to $_SERVER['SERVER_ADDR'].
        • +
        • Fixed a bug where CAPTCHA Helper entered an infinite loop while generating a random string.
        • +
        • Fixed a bug (#4223) - Database method simple_query() blindly executes queries without checking if the connection was initialized properly.
        • +
        • Fixed a bug (#4244) - Email Library could improperly use “unsafe” US-ASCII characters during Quoted-printable encoding.
        • +
        • Fixed a bug (#4245) - Database Forge couldn’t properly handle SET and ENUM type fields with string values.
        • +
        • Fixed a bug (#4283) - String Helper function alternator() couldn’t be called without arguments.
        • +
        • Fixed a bug (#4306) - Database method version() didn’t work properly with the ‘mssql’ driver.
        • +
        • Fixed a bug (#4039) - Session Library could generate multiple (redundant) warnings in case of a read failure with the ‘files’ driver, due to a bug in PHP.
        • +
        • Fixed a bug where Session Library didn’t have proper error handling on PHP 5 (due to a PHP bug).
        • +
        • Fixed a bug (#4312) - Form Validation Library didn’t provide error feedback for failed validation on empty requests.
        • +
        • Fixed a bug where Database method version() returned banner text instead of only the version number with the ‘oci8’ and ‘pdo/oci’ drivers.
        • +
        • Fixed a bug (#4331) - Database method error() didn’t really work for connection errors with the ‘mysqli’ driver.
        • +
        • Fixed a bug (#4343) - Email Library failing with a “More than one ‘from’ person” message when using sendmail.
        • +
        • Fixed a bug (#4350) - Loader Library method model() logic directly instantiated the CI_Model or MY_Model classes.
        • +
        • Fixed a bug (#4337) - Database method query() didn’t return a result set for queries with the RETURNING statement on PostgreSQL.
        • +
        • Fixed a bug (#4362) - Session Library doesn’t properly maintain its state after ID regeneration with the ‘redis’ and ‘memcached’ drivers on PHP 7.
        • +
        • Fixed a bug (#4349) - Database drivers ‘mysql’, ‘mysqli’, ‘pdo/mysql’ discard other sql_mode flags when “stricton” is enabled.
        • +
        • Fixed a bug (#4349) - Database drivers ‘mysql’, ‘mysqli’, ‘pdo/mysql’ don’t turn off STRICT_TRANS_TABLES on MySQL 5.7+ when “stricton” is disabled.
        • +
        • Fixed a bug (#4374) - Session Library with the ‘database’ driver could be affected by userspace Query Builder conditions.
        • +
        +
        +
        +
        +

        Version 3.0.3

        +

        Release Date: October 31, 2015

        +
          +
        • Security
            +
          • Fixed an XSS attack vector in Security Library method xss_clean().
          • +
          • Changed Config Library method base_url() to fallback to $_SERVER['SERVER_ADDR'] when $config['base_url'] is empty in order to avoid Host header injections.
          • +
          • Changed CAPTCHA Helper to use the operating system’s PRNG when possible.
          • +
          +
        • +
        • Database +
        • +
        +
        +

        Bug fixes for 3.0.3

        +
          +
        • Fixed a bug (#4170) - Database method insert_id() could return an identity from the wrong scope with the ‘sqlsrv’ driver.
        • +
        • Fixed a bug (#4179) - Session Library doesn’t properly maintain its state after ID regeneration with the ‘database’ driver on PHP 7.
        • +
        • Fixed a bug (#4173) - Database Forge method add_key() didn’t allow creation of non-PRIMARY composite keys after the “bugfix” for #3968.
        • +
        • Fixed a bug (#4171) - Database Transactions didn’t work with nesting in methods trans_begin(), trans_commit(), trans_rollback().
        • +
        • Fixed a bug where Database Transaction methods trans_begin(), trans_commit(), trans_rollback() ignored failures.
        • +
        • Fixed a bug where all Database Transaction methods returned TRUE while transactions are actually disabled.
        • +
        • Fixed a bug where common function html_escape() modified keys of its array inputs.
        • +
        • Fixed a bug (#4192) - Email Library wouldn’t always have proper Quoted-printable encoding due to a bug in PHP’s own mb_mime_encodeheader() function.
        • +
        +
        +
        +
        +

        Version 3.0.2

        +

        Release Date: October 8, 2015

        +
          +
        • Security +
        • +
        • General Changes
            +
          • Updated the application/config/constants.php file to check if constants aren’t already defined before doing that.
          • +
          • Changed Loader Library method model() to only apply ucfirst() and not strtolower() to the requested class name.
          • +
          • Changed Config Library methods base_url(), site_url() to allow protocol-relative URLs by passing an empty string as the protocol.
          • +
          +
        • +
        +
        +

        Bug fixes for 3.0.2

        +
          +
        • Fixed a bug (#2284) - Database method protect_identifiers() breaks when Query Builder isn’t enabled.
        • +
        • Fixed a bug (#4052) - Routing with anonymous functions didn’t work for routes that don’t use regular expressions.
        • +
        • Fixed a bug (#4056) - Input Library method get_request_header() could not return a value unless request_headers() was called beforehand.
        • +
        • Fixed a bug where the Database Class entered an endless loop if it fails to connect with the ‘sqlsrv’ driver.
        • +
        • Fixed a bug (#4065) - Database method protect_identifiers() treats a traling space as an alias separator if the input doesn’t contain ‘ AS ‘.
        • +
        • Fixed a bug (#4066) - Cache Library couldn’t fallback to a backup driver if the primary one is Memcache(d) or Redis.
        • +
        • Fixed a bug (#4073) - Email Library method send() could return TRUE in case of an actual failure when an SMTP command fails.
        • +
        • Fixed a bug (#4086) - Query Builder didn’t apply dbprefix to LIKE conditions if the pattern included spaces.
        • +
        • Fixed a bug (#4091) - Cache Library ‘file’ driver could be tricked into accepting empty cache item IDs.
        • +
        • Fixed a bug (#4093) - Query Builder modified string values containing ‘AND’, ‘OR’ while compiling WHERE conditions.
        • +
        • Fixed a bug (#4096) - Query Builder didn’t apply dbprefix when compiling BETWEEN conditions.
        • +
        • Fixed a bug (#4105) - Form Validation Library didn’t allow pipe characters inside “bracket parameters” when using a string ruleset.
        • +
        • Fixed a bug (#4109) - Routing to default_controller didn’t work when enable_query_strings is set to TRUE.
        • +
        • Fixed a bug (#4044) - Cache Library ‘redis’ driver didn’t catch RedisException that could be thrown during authentication.
        • +
        • Fixed a bug (#4120) - Database method error() didn’t return error info when called after query() with the ‘mssql’ driver.
        • +
        • Fixed a bug (#4116) - Pagination Library set the wrong page number on the “data-ci-pagination-page” attribute in generated links.
        • +
        • Fixed a bug where Pagination Library added the ‘rel=”start”’ attribute to the first displayed link even if it’s not actually linking the first page.
        • +
        • Fixed a bug (#4137) - Error Handling breaks for the new Error exceptions under PHP 7.
        • +
        • Fixed a bug (#4126) - Form Validation Library method reset_validation() discarded validation rules from config files.
        • +
        +
        +
        +
        +

        Version 3.0.1

        +

        Release Date: August 7, 2015

        +
          +
        • Core +
        • +
        • Database
            +
          • Added list_fields() support for SQLite (‘sqlite3’ and ‘pdo_sqlite’ drivers).
          • +
          • Added SSL connection support for the ‘mysqli’ and ‘pdo_mysql’ drivers.
          • +
          +
        • +
        • Libraries
            +
          • File Uploading Library changes:
              +
            • Changed method set_error() to accept a custom log level (defaults to ‘error’).
            • +
            • Errors “no_file_selected”, “file_partial”, “stopped_by_extension”, “no_file_types”, “invalid_filetype”, “bad_filename” are now logged at the ‘debug’ level.
            • +
            • Errors “file_exceeds_limit”, “file_exceeds_form_limit”, “invalid_filesize”, “invalid_dimensions” are now logged at the ‘info’ level.
            • +
            +
          • +
          • Added ‘is_resource’ to the available expectations in Unit Testing Library.
          • +
          +
        • +
        • Helpers
            +
          • Added Unicode support to URL Helper function url_title().
          • +
          • Added support for passing the “extra” parameter as an array to all Form Helper functions that use it.
          • +
          +
        • +
        • Core
            +
          • Added support for defining a list of specific query parameters in $config['cache_query_string'] for the Output Library.
          • +
          • Added class existence and inheritance checks to CI_Loader::model() in order to ease debugging in case of name collisions.
          • +
          +
        • +
        +
        +

        Bug fixes for 3.0.1

        +
          +
        • Fixed a bug (#3733) - Autoloading of libraries with aliases didn’t work, although it was advertised to.
        • +
        • Fixed a bug (#3744) - Redis Caching driver didn’t handle authentication failures properly.
        • +
        • Fixed a bug (#3761) - URL Helper function anchor() didn’t work with array inputs.
        • +
        • Fixed a bug (#3773) - db_select() didn’t work for MySQL with the PDO Database driver.
        • +
        • Fixed a bug (#3771) - Form Validation Library was looking for a ‘form_validation_’ prefix when trying to translate field name labels.
        • +
        • Fixed a bug (#3787) - FTP Library method delete_dir() failed when the target has subdirectories.
        • +
        • Fixed a bug (#3801) - Output Library method _display_cache() incorrectly looked for the last modified time of a directory instead of the cache file.
        • +
        • Fixed a bug (#3816) - Form Validation Library treated empty string values as non-existing ones.
        • +
        • Fixed a bug (#3823) - Session Library drivers Redis and Memcached didn’t properly handle locks that are blocking the request for more than 30 seconds.
        • +
        • Fixed a bug (#3846) - Image Manipulation Library method image_mirror_gd() didn’t properly initialize its variables.
        • +
        • Fixed a bug (#3854) - field_data() didn’t work properly with the Oracle (OCI8) database driver.
        • +
        • Fixed a bug in the Database Utility Class method csv_from_result() didn’t work with a whitespace CSV delimiter.
        • +
        • Fixed a bug (#3890) - Input Library method get_request_header() treated header names as case-sensitive.
        • +
        • Fixed a bug (#3903) - Form Validation Library ignored “unnamed” closure validation rules.
        • +
        • Fixed a bug (#3904) - Form Validation Library ignored “named” callback rules when the field is empty and there’s no ‘required’ rule.
        • +
        • Fixed a bug (#3922) - Email and XML-RPC libraries could enter an infinite loop due to PHP bug #39598.
        • +
        • Fixed a bug (#3913) - Cache Library didn’t work with the direct $this->cache->$driver_name->method() syntax with Redis and Memcache(d).
        • +
        • Fixed a bug (#3932) - Query Builder didn’t properly compile WHERE and HAVING conditions for field names that end with “and”, “or”.
        • +
        • Fixed a bug in Query Builder where delete() didn’t properly work on multiple tables with a WHERE condition previously set via where().
        • +
        • Fixed a bug (#3952) - Database method list_fields() didn’t work with SQLite3.
        • +
        • Fixed a bug (#3955) - Cache Library methods increment() and decrement() ignored the ‘key_prefix’ setting.
        • +
        • Fixed a bug (#3963) - Unit Testing Library wrongly tried to translate filenames, line numbers and notes values in test results.
        • +
        • Fixed a bug (#3965) - File Uploading Library ignored the “encrypt_name” setting when “overwrite” is enabled.
        • +
        • Fixed a bug (#3968) - Database Forge method add_key() didn’t treat array inputs as composite keys unless it’s a PRIMARY KEY.
        • +
        • Fixed a bug (#3715) - Pagination Library could generate broken link when a protocol-relative base URL is used.
        • +
        • Fixed a bug (#3828) - Output Library method delete_cache() couldn’t delete index page caches.
        • +
        • Fixed a bug (#3704) - Database method stored_procedure() in the ‘oci8’ driver didn’t properly bind parameters.
        • +
        • Fixed a bug (#3778) - Download Helper function force_download() incorrectly sent a Pragma response header.
        • +
        • Fixed a bug (#3752) - $routing['directory'] overrides were not properly handled and always resulted in a 404 “Not Found” error.
        • +
        • Fixed a bug (#3279) - Query Builder methods update() and get_compiled_update() did double escaping on the table name if it was provided via from().
        • +
        • Fixed a bug (#3991) - $config['rewrite_short_tags'] never worked due to function_exists('eval') always returning FALSE.
        • +
        • Fixed a bug where the File Uploading Library library will not properly configure its maximum file size unless the input value is of type integer.
        • +
        • Fixed a bug (#4000) - Pagination Library didn’t enable “rel” attributes by default if no attributes-related config options were used.
        • +
        • Fixed a bug (#4004) - URI Class didn’t properly parse the request URI if it contains a colon followed by a digit.
        • +
        • Fixed a bug in Query Builder where the $escape parameter for some methods only affected field names.
        • +
        • Fixed a bug (#4012) - Query Builder methods where_in(), or_where_in(), where_not_in(), or_where_not_in() didn’t take into account previously cached WHERE conditions when query cache is in use.
        • +
        • Fixed a bug (#4015) - Email Library method set_header() didn’t support method chaining, although it was advertised.
        • +
        • Fixed a bug (#4027) - Routing with HTTP verbs only worked if the route request method was declared in all-lowercase letters.
        • +
        • Fixed a bug (#4026) - Database Transactions always rollback if any previous query() call fails.
        • +
        • Fixed a bug (#4023) - String Helper function increment_string() didn’t escape its $separator parameter.
        • +
        +
        +
        +
        +

        Version 3.0.0

        +

        Release Date: March 30, 2015

        +
          +
        • License
            +
          • CodeIgniter has been relicensed with the MIT License, eliminating its old proprietary licensing.
          • +
          +
        • +
        • General Changes
            +
          • PHP 5.1.6 is no longer supported. CodeIgniter now requires PHP 5.2.4 and recommends PHP 5.4+ or newer to be used.
          • +
          • Changed filenaming convention (class file names now must be Ucfirst and everything else in lowercase).
          • +
          • Changed the default database driver to ‘mysqli’ (the old ‘mysql’ driver is DEPRECATED).
          • +
          • $_SERVER['CI_ENV'] can now be set to control the ENVIRONMENT constant.
          • +
          • Added an optional backtrace to php-error template.
          • +
          • Added Android to the list of user agents.
          • +
          • Added Windows 7, Windows 8, Windows 8.1, Android, Blackberry, iOS and PlayStation 3 to the list of user platforms.
          • +
          • Added Fennec (Firefox for mobile) to the list of mobile user agents.
          • +
          • Ability to log certain error types, not all under a threshold.
          • +
          • Added support for pem, p10, p12, p7a, p7c, p7m, p7r, p7s, crt, crl, der, kdb, rsa, cer, sst, csr Certs to mimes.php.
          • +
          • Added support for pgp, gpg, zsh and cdr files to mimes.php.
          • +
          • Added support for 3gp, 3g2, mp4, wmv, f4v, vlc Video files to mimes.php.
          • +
          • Added support for m4a, aac, m4u, xspf, au, ac3, flac, ogg, wma Audio files to mimes.php.
          • +
          • Added support for kmz and kml (Google Earth) files to mimes.php.
          • +
          • Added support for ics Calendar files to mimes.php.
          • +
          • Added support for rar, jar and 7zip archives to mimes.php.
          • +
          • Updated support for xml (‘application/xml’) and xsl (‘application/xml’, ‘text/xsl’) files in mimes.php.
          • +
          • Updated support for doc files in mimes.php.
          • +
          • Updated support for docx files in mimes.php.
          • +
          • Updated support for php files in mimes.php.
          • +
          • Updated support for zip files in mimes.php.
          • +
          • Updated support for csv files in mimes.php.
          • +
          • Added Romanian, Greek, Vietnamese and Cyrilic characters in application/config/foreign_characters.php.
          • +
          • Changed logger to only chmod when file is first created.
          • +
          • Removed previously deprecated SHA1 Library.
          • +
          • Removed previously deprecated use of $autoload['core'] in application/config/autoload.php. +Only entries in $autoload['libraries'] are auto-loaded now.
          • +
          • Removed previously deprecated EXT constant.
          • +
          • Updated all classes to be written in PHP 5 style, with visibility declarations and no var usage for properties.
          • +
          • Added an Exception handler.
          • +
          • Moved error templates to application/views/errors/ and made the path configurable via $config['error_views_path'].
          • +
          • Added support non-HTML error templates for CLI applications.
          • +
          • Moved the Log class to application/core/
          • +
          • Global config files are loaded first, then environment ones. Environment config keys overwrite base ones, allowing to only set the keys we want changed per environment.
          • +
          • Changed detection of $view_folder so that if it’s not found in the current path, it will now also be searched for under the application folder.
          • +
          • Path constants BASEPATH, APPPATH and VIEWPATH are now (internally) defined as absolute paths.
          • +
          • Updated email validation methods to use filter_var() instead of PCRE.
          • +
          • Changed environment defaults to report all errors in development and only fatal ones in testing, production but only display them in development.
          • +
          • Updated ip_address database field lengths from 16 to 45 for supporting IPv6 address on Trackback Library and Captcha Helper.
          • +
          • Removed cheatsheets and quick_reference PDFs from the documentation.
          • +
          • Added availability checks where usage of dangerous functions like eval() and exec() is required.
          • +
          • Added support for changing the file extension of log files using $config['log_file_extension'].
          • +
          • Added support for turning newline standardization on/off via $config['standardize_newlines'] and set it to FALSE by default.
          • +
          • Added configuration setting $config['composer_autoload'] to enable loading of a Composer auto-loader.
          • +
          • Removed the automatic conversion of ‘programmatic characters’ to HTML entities from the URI Library.
          • +
          • Changed log messages that say a class or file was loaded to “info” level instead of “debug”, so that they don’t pollute log files when $config['log_threshold'] is set to 2 (debug).
          • +
          +
        • +
        • Helpers
            +
          • Date Helper changes include:
              +
            • Added an optional third parameter to timespan() that constrains the number of time units displayed.
            • +
            • Added an optional parameter to timezone_menu() that allows more attributes to be added to the generated select tag.
            • +
            • Added function date_range() that generates a list of dates between a specified period.
            • +
            • Deprecated standard_date(), which now just uses the native date() with DateTime constants.
            • +
            • Changed now() to work with all timezone strings supported by PHP.
            • +
            • Changed days_in_month() to use the native cal_days_in_month() PHP function, if available.
            • +
            +
          • +
          • URL Helper changes include:
              +
            • Deprecated separator options dash and underscore for function url_title() (they are only aliases for ‘-‘ and ‘_’ respectively).
            • +
            • url_title() will now trim extra dashes from beginning and end.
            • +
            • anchor_popup() will now fill the href attribute with the URL and its JS code will return FALSE instead.
            • +
            • Added JS window name support to the anchor_popup() function.
            • +
            • Added support for menubar attribute to the anchor_popup().
            • +
            • Added support (auto-detection) for HTTP/1.1 response codes 303, 307 in redirect().
            • +
            • Changed redirect() to choose the refresh method only on IIS servers, instead of all servers on Windows (when auto is used).
            • +
            • Changed anchor(), anchor_popup(), and redirect() to support protocol-relative URLs (e.g. //ellislab.com/codeigniter).
            • +
            +
          • +
          • HTML Helper changes include:
              +
            • Added more doctypes.
            • +
            • Changed application and environment config files to be loaded in a cascade-like manner.
            • +
            • Changed doctype() to cache and only load once the doctypes array.
            • +
            • Deprecated functions nbs() and br(), which are just aliases for the native str_repeat() with &nbsp; and <br /> respectively.
            • +
            +
          • +
          • Inflector Helper changes include: +
          • +
          • Download Helper changes include:
              +
            • Added an optional third parameter to force_download() that enables/disables sending the actual file MIME type in the Content-Type header (disabled by default).
            • +
            • Added a work-around in force_download() for a bug Android <= 2.1, where the filename extension needs to be in uppercase.
            • +
            • Added support for reading from an existing file path by passing NULL as the second parameter to force_download() (useful for large files and/or safely transmitting binary data).
            • +
            +
          • +
          • Form Helper changes include: +
          • +
          • Security Helper changes include: +
          • +
          • Smiley Helper changes include:
              +
            • Deprecated the whole helper as too specific for CodeIgniter.
            • +
            • Removed previously deprecated function js_insert_smiley().
            • +
            • Changed application and environment config files to be loaded in a cascade-like manner.
            • +
            • The smileys array is now cached and loaded only once.
            • +
            +
          • +
          • File Helper changes include:
              +
            • set_realpath() can now also handle file paths as opposed to just directories.
            • +
            • Added an optional paramater to delete_files() to enable it to skip deleting files such as .htaccess and index.html.
            • +
            • Deprecated function read_file() - it’s just an alias for PHP’s native file_get_contents().
            • +
            +
          • +
          • String Helper changes include:
              +
            • Deprecated function repeater() - it’s just an alias for PHP’s native str_repeat().
            • +
            • Deprecated function trim_slashes() - it’s just an alias for PHP’s native trim() (with a slash as its second argument).
            • +
            • Deprecated randomization type options unique and encrypt for funcion random_string() (they are only aliases for md5 and sha1 respectively).
            • +
            +
          • +
          • CAPTCHA Helper changes include:
              +
            • Added word_length and pool options to allow customization of the generated word.
            • +
            • Added colors configuration to allow customization for the background, border, text and grid colors.
            • +
            • Added filename to the returned array elements.
            • +
            • Updated to use imagepng() in case that imagejpeg() isn’t available.
            • +
            • Added font_size option to allow customization of font size.
            • +
            • Added img_id option to set id attribute of captcha image.
            • +
            +
          • +
          • Text Helper changes include: +
          • +
          • Directory Helper directory_map() will now append DIRECTORY_SEPARATOR to directory names in the returned array.
          • +
          • Array Helper element() and elements() now return NULL instead of FALSE when the required elements don’t exist.
          • +
          • Language Helper lang() now accepts an optional list of additional HTML attributes.
          • +
          • Deprecated the Email Helper as its valid_email(), send_email() functions are now only aliases for PHP native functions filter_var() and mail() respectively.
          • +
          +
        • +
        • Database
            +
          • DEPRECATED the ‘mysql’, ‘sqlite’, ‘mssql’ and ‘pdo/dblib’ (also known as ‘pdo/mssql’ or ‘pdo/sybase’) drivers.
          • +
          • Added dsn configuration setting for drivers that support DSN strings (PDO, PostgreSQL, Oracle, ODBC, CUBRID).
          • +
          • Added schema configuration setting (defaults to public) for drivers that might need it (currently used by PostgreSQL and ODBC).
          • +
          • Added save_queries configuration setting to application/config/database.php (defaults to TRUE).
          • +
          • Removed autoinit configuration setting as it doesn’t make sense to instantiate the database class but not connect to the database.
          • +
          • Added subdrivers support (currently only used by PDO).
          • +
          • Added an optional database name parameter to db_select().
          • +
          • Removed protect_identifiers() and renamed internal method _protect_identifiers() to it instead - it was just an alias.
          • +
          • Renamed internal method _escape_identifiers() to escape_identifiers().
          • +
          • Updated escape_identifiers() to accept an array of fields as well as strings.
          • +
          • MySQL and MySQLi drivers now require at least MySQL version 5.1.
          • +
          • Added a $persistent parameter to db_connect() and changed db_pconnect() to be an alias for db_connect(TRUE).
          • +
          • db_set_charset() now only requires one parameter (collation was only needed due to legacy support for MySQL versions prior to 5.1).
          • +
          • db_select() will now always (if required by the driver) be called by db_connect() instead of only when initializing.
          • +
          • Replaced the _error_message() and _error_number() methods with error(), which returns an array containing the last database error code and message.
          • +
          • Improved version() implementation so that drivers that have a native function to get the version number don’t have to be defined in the core DB_driver class.
          • +
          • Added capability for packages to hold config/database.php config files.
          • +
          • Added MySQL client compression support.
          • +
          • Added encrypted connections support (for mysql, sqlsrv and PDO with sqlsrv).
          • +
          • Removed Loader Class from Database error tracing to better find the likely culprit.
          • +
          • Added support for SQLite3 database driver.
          • +
          • Added Interbase/Firebird database support via the ibase driver.
          • +
          • Added ODBC support for create_database(), drop_database() and drop_table() in Database Forge.
          • +
          • Added support to binding arrays as IN() sets in query().
          • +
          • Query Builder changes include:
              +
            • Renamed the Active Record class to Query Builder to remove confusion with the Active Record design pattern.
            • +
            • Added the ability to insert objects with insert_batch().
            • +
            • Added new methods that return the SQL string of queries without executing them: get_compiled_select(), get_compiled_insert(), get_compiled_update(), get_compiled_delete().
            • +
            • Added an optional parameter that allows to disable escaping (useful for custom fields) for methods join(), order_by(), where_in(), or_where_in(), where_not_in(), or_where_not_in(), insert(), insert_batch().
            • +
            • Added support for join() with multiple conditions.
            • +
            • Added support for USING in join().
            • +
            • Added support for EXISTS in where().
            • +
            • Added seed values support for random ordering with order_by(seed, 'RANDOM').
            • +
            • Changed limit() to ignore NULL values instead of always casting to integer.
            • +
            • Changed offset() to ignore empty values instead of always casting to integer.
            • +
            • Methods insert_batch() and update_batch() now return an integer representing the number of rows affected by them.
            • +
            • Methods where(), or_where(), having() and or_having() now convert trailing = and <>, != SQL operators to IS NULL and IS NOT NULL respectively when the supplied comparison value is NULL.
            • +
            • Added method chaining support to reset_query(), start_cache(), stop_cache() and flush_cache().
            • +
            • Added an optional second parameter to count_all_results() to disable resetting of QB values.
            • +
            +
          • +
          • Database Results changes include:
              +
            • Added a constructor to the DB_result class and moved all driver-specific properties and logic out of the base DB_driver class to allow better abstraction.
            • +
            • Added method unbuffered_row() for fetching a row without prefetching the whole result (consume less memory).
            • +
            • Renamed former method _data_seek() to data_seek() and made it public.
            • +
            +
          • +
          • Improved support for the MySQLi driver, including:
              +
            • OOP style usage of the PHP extension is now used, instead of the procedural aliases.
            • +
            • Server version checking is now done via mysqli::$server_info instead of running an SQL query.
            • +
            • Added persistent connections support for PHP >= 5.3.
            • +
            • Added support for configuring socket pipe connections.
            • +
            • Added support for backup() in Database Utilities.
            • +
            • Changed methods trans_begin(), trans_commit() and trans_rollback() to use the PHP API instead of sending queries.
            • +
            +
          • +
          • Improved support of the PDO driver, including:
              +
            • Added support for create_database(), drop_database() and drop_table() in Database Forge.
            • +
            • Added support for list_fields() in Database Results.
            • +
            • Subdrivers are now isolated from each other instead of being in one large class.
            • +
            +
          • +
          • Improved support of the PostgreSQL driver, including:
              +
            • pg_version() is now used to get the database version number, when possible.
            • +
            • Added db_set_charset() support.
            • +
            • Added support for optimize_table() in Database Utilities (rebuilds table indexes).
            • +
            • Added boolean data type support in escape().
            • +
            • Added update_batch() support.
            • +
            • Removed limit() and order_by() support for UPDATE and DELETE queries as PostgreSQL does not support those features.
            • +
            • Added a work-around for dead persistent connections to be re-created after a database restart.
            • +
            • Changed db_connect() to include the (new) schema value into Postgre’s search_path session variable.
            • +
            • pg_escape_literal() is now used for escaping strings, if available.
            • +
            +
          • +
          • Improved support of the CUBRID driver, including:
              +
            • Added DSN string support.
            • +
            • Added persistent connections support.
            • +
            • Improved list_databases() in Database Utility (until now only the currently used database was returned).
            • +
            +
          • +
          • Improved support of the MSSQL and SQLSRV drivers, including:
              +
            • Added random ordering support.
            • +
            • Added support for optimize_table() in Database Utility.
            • +
            • Added escaping with QUOTE_IDENTIFIER setting detection.
            • +
            • Added port handling support for UNIX-based systems (MSSQL driver).
            • +
            • Added OFFSET support for SQL Server 2005 and above.
            • +
            • Added db_set_charset() support (MSSQL driver).
            • +
            • Added a scrollable property to enable configuration of the cursor to use (SQLSRV driver).
            • +
            • Added support and auto-detection for the SQLSRV_CURSOR_CLIENT_BUFFERED scrollable cursor flag (SQLSRV driver).
            • +
            • Changed default behavior to not use SQLSRV_CURSOR_STATIC due to performance issues (SQLSRV driver).
            • +
            +
          • +
          • Improved support of the Oracle (OCI8) driver, including:
              +
            • Added DSN string support (Easy Connect and TNS).
            • +
            • Added support for drop_table() in Database Forge.
            • +
            • Added support for list_databases() in Database Utilities.
            • +
            • Generally improved for speed and cleaned up all of its components.
            • +
            • num_rows() is now only called explicitly by the developer and no longer re-executes statements.
            • +
            +
          • +
          • Improved support of the SQLite driver, including: +
          • +
          • Database Forge changes include:
              +
            • Added an optional second parameter to drop_table() that allows adding the IF EXISTS condition, which is no longer the default.
            • +
            • Added support for passing a custom database object to the loader.
            • +
            • Added support for passing custom table attributes (such as ENGINE for MySQL) to create_table().
            • +
            • Added support for usage of the FIRST clause in add_column() for MySQL and CUBRID.
            • +
            • Added partial support for field comments (MySQL, PostgreSQL, Oracle).
            • +
            • Deprecated add_column()‘s third method. AFTER clause should now be added to the field definition array instead.
            • +
            • Overall improved support for all of the drivers.
            • +
            +
          • +
          • Database Utility changes include:
              +
            • Added support for passing a custom database object to the loader.
            • +
            • Modified the class to no longer extend Database Forge, which has been a deprecated behavior for awhile.
            • +
            • Overall improved support for all of the drivers.
            • +
            • Added foreign_key_checks option to MySQL/MySQLi backup, allowing statement to disable/re-enable foreign key checks to be inserted into the backup output.
            • +
            +
          • +
          +
        • +
        • Libraries
            +
          • Added a new Encryption Library to replace the old, largely insecure Encrypt Library.
          • +
          • Encrypt Library changes include:
              +
            • Deprecated the library in favor of the new Encryption Library.
            • +
            • Added support for hashing algorithms other than SHA1 and MD5.
            • +
            • Removed previously deprecated sha1() method.
            • +
            +
          • +
          • Session Library changes include:
              +
            • Completely re-written the library to use self-contained drivers via $config['sess_driver'].
            • +
            • Added ‘files’, ‘database’, ‘redis’ and ‘memcached’ drivers (using ‘files’ by default).
            • +
            • Added $config['sess_save_path'] setting to specify where the session data is stored, depending on the driver.
            • +
            • Dropped support for storing session data in cookies (which renders $config['sess_encrypt_cookie'] useless and is therefore also removed).
            • +
            • Dropped official support for storing session data in databases other than MySQL and PostgreSQL.
            • +
            • Changed table structure for the ‘database’ driver.
            • +
            • Added a new tempdata feature that allows setting userdata items with expiration time (mark_as_temp(), tempdata(), set_tempdata(), unset_tempdata()).
            • +
            • Changed method keep_flashdata() to also accept an array of keys.
            • +
            • Changed methods userdata(), flashdata() to return an array of all userdata/flashdata when no parameter is passed.
            • +
            • Deprecated method all_userdata() - it is now just an alias for userdata() with no parameters.
            • +
            • Added method has_userdata() that verifies the existence of a userdata item.
            • +
            • Added debug level log messages for key events in the session validation process.
            • +
            • Dropped support for the sess_match_useragent option.
            • +
            +
          • +
          • File Uploading Library changes include:
              +
            • Added method chaining support.
            • +
            • Added support for using array notation in file field names.
            • +
            • Added max_filename_increment and file_ext_tolower configuration settings.
            • +
            • Added min_width and min_height configuration settings for images.
            • +
            • Added mod_mime_fix configuration setting to disable suffixing multiple file extensions with an underscore.
            • +
            • Added the possibility pass allowed_types as an array.
            • +
            • Added an $index parameter to the method data().
            • +
            • Added a $reset parameter to method initialize().
            • +
            • Removed method clean_file_name() and its usage in favor of Security Library‘s sanitize_filename().
            • +
            • Removed method mimes_types().
            • +
            • Changed CI_Upload::_prep_filename() to simply replace all (but the last) dots in the filename with underscores, instead of suffixing them.
            • +
            +
          • +
          • Calendar Library changes include:
              +
            • Added method chaining support.
            • +
            • Added configuration to generate days of other months instead of blank cells.
            • +
            • Added auto-configuration for next_prev_url if it is empty and show_prev_next is set to TRUE.
            • +
            • Added support for templating via an array in addition to the encoded string.
            • +
            • Changed method get_total_days() to be an alias for Date Helper days_in_month().
            • +
            +
          • +
          • Cart Library changes include:
              +
            • Deprecated the library as too specific for CodeIgniter.
            • +
            • Added method remove() to remove a cart item, updating with quantity of 0 seemed like a hack but has remained to retain compatibility.
            • +
            • Added method get_item() to enable retrieving data for a single cart item.
            • +
            • Added unicode support for product names.
            • +
            • Added support for disabling product name strictness via the $product_name_safe property.
            • +
            • Changed insert() method to auto-increment quantity for an item when inserted twice instead of resetting it.
            • +
            • Changed update() method to support updating all properties attached to an item and not to require ‘qty’.
            • +
            +
          • +
          • Image Manipulation Library changes include:
              +
            • The initialize() method now only sets existing class properties.
            • +
            • Added support for 3-length hex color values for wm_font_color and wm_shadow_color properties, as well as validation for them.
            • +
            • Class properties wm_font_color, wm_shadow_color and wm_use_drop_shadow are now protected, to avoid breaking the text_watermark() method if they are set manually after initialization.
            • +
            • If property maintain_ratio is set to TRUE, image_reproportion() now doesn’t need both width and height to be specified.
            • +
            • Property maintain_ratio is now taken into account when resizing images using ImageMagick library.
            • +
            • Added support for maintaining transparency for PNG images when watermarking.
            • +
            • Added a file_permissions setting.
            • +
            +
          • +
          • Form Validation Library changes include:
              +
            • Added method error_array() to return all error messages as an array.
            • +
            • Added method set_data() to set an alternative data array to be validated instead of the default $_POST.
            • +
            • Added method reset_validation() which resets internal validation variables in case of multiple validation routines.
            • +
            • Added support for setting error delimiters in the config file via $config['error_prefix'] and $config['error_suffix'].
            • +
            • Internal method _execute() now considers input data to be invalid if a specified rule is not found.
            • +
            • Removed method is_numeric() as it exists as a native PHP function and _execute() will find and use that (the is_numeric rule itself is deprecated since 1.6.1).
            • +
            • Native PHP functions used as rules can now accept an additional parameter, other than the data itself.
            • +
            • Updated method set_rules() to accept an array of rules as well as a string.
            • +
            • Fields that have empty rules set no longer run through validation (and therefore are not considered erroneous).
            • +
            • Added rule differs to check if the value of a field differs from the value of another field.
            • +
            • Added rule valid_url.
            • +
            • Added rule in_list to check if the value of a field is within a given list.
            • +
            • Added support for named parameters in error messages.
            • +
            • Language line keys must now be prefixed with form_validation_.
            • +
            • Added rule alpha_numeric_spaces.
            • +
            • Added support for custom error messages per field rule.
            • +
            • Added support for callable rules when they are passed as an array.
            • +
            • Added support for non-ASCII domains in valid_email rule, depending on the Intl extension.
            • +
            • Changed the debug message about an error message not being set to include the rule name it is about.
            • +
            +
          • +
          • Caching Library changes include:
              +
            • Added Wincache driver.
            • +
            • Added Redis driver.
            • +
            • Added a key_prefix option for cache IDs.
            • +
            • Updated driver is_supported() methods to log at the “debug” level.
            • +
            • Added option to store raw values instead of CI-formatted ones (APC, Memcache).
            • +
            • Added atomic increment/decrement feature via increment(), decrement().
            • +
            +
          • +
          • E-mail Library changes include:
              +
            • Added a custom filename parameter to attach() as $this->email->attach($filename, $disposition, $newname).
            • +
            • Added possibility to send attachment as buffer string in attach() as $this->email->attach($buffer, $disposition, $newname, $mime).
            • +
            • Added possibility to attach remote files by passing a URL.
            • +
            • Added method attachment_cid() to enable embedding inline attachments into HTML.
            • +
            • Added dsn (delivery status notification) option.
            • +
            • Renamed method _set_header() to set_header() and made it public to enable adding custom headers.
            • +
            • Successfully sent emails will automatically clear the parameters.
            • +
            • Added a return_path parameter to the from() method.
            • +
            • Removed the second parameter (character limit) from internal method _prep_quoted_printable() as it is never used.
            • +
            • Internal method _prep_quoted_printable() will now utilize the native quoted_printable_encode(), imap_8bit() functions (if available) when CRLF is set to “rn”.
            • +
            • Default charset now relies on the global $config['charset'] setting.
            • +
            • Removed unused protected method _get_ip() (Input Library‘s ip_address() should be used anyway).
            • +
            • Internal method _prep_q_encoding() now utilizes PHP’s mbstring and iconv extensions (when available) and no longer has a second ($from) argument.
            • +
            • Added an optional parameter to print_debugger() to allow specifying which parts of the message should be printed (‘headers’, ‘subject’, ‘body’).
            • +
            • Added SMTP keepalive option to avoid opening the connection for each send() call. Accessible as $smtp_keepalive.
            • +
            • Public method set_header() now filters the input by removing all “\r” and “\n” characters.
            • +
            • Added support for non-ASCII domains in valid_email(), depending on the Intl extension.
            • +
            +
          • +
          • Pagination Library changes include:
              +
            • Deprecated usage of the “anchor_class” setting (use the new “attributes” setting instead).
            • +
            • Added method chaining support to initialize() method.
            • +
            • Added support for the anchor “rel” attribute.
            • +
            • Added support for setting custom attributes.
            • +
            • Added support for language translations of the first_link, next_link, prev_link and last_link values.
            • +
            • Added support for $config['num_links'] = 0 configuration.
            • +
            • Added $config['reuse_query_string'] to allow automatic repopulation of query string arguments, combined with normal URI segments.
            • +
            • Added $config['use_global_url_suffix'] to allow overriding the library ‘suffix’ value with that of the global $config['url_suffix'] setting.
            • +
            • Removed the default &nbsp; from a number of the configuration variables.
            • +
            +
          • +
          • Profiler Library changes include:
              +
            • Database object names are now being displayed.
            • +
            • The sum of all queries running times in seconds is now being displayed.
            • +
            • Added support for displaying the HTTP DNT (“Do Not Track”) header.
            • +
            • Added support for displaying $_FILES.
            • +
            +
          • +
          • Migration Library changes include:
              +
            • Added support for timestamp-based migrations (enabled by default).
            • +
            • Added $config['migration_type'] to allow switching between sequential and timestamp migrations.
            • +
            +
          • +
          • XML-RPC Library changes include:
              +
            • Added the ability to use a proxy.
            • +
            • Added Basic HTTP authentication support.
            • +
            +
          • +
          • User Agent Library changes include:
              +
            • Added check to detect if robots are pretending to be mobile clients (helps with e.g. Google indexing mobile website versions).
            • +
            • Added method parse() to allow parsing a custom user-agent string, different from the current visitor’s.
            • +
            +
          • +
          • HTML Table Library changes include:
              +
            • Added method chaining support.
            • +
            • Added support for setting table class defaults in a config file.
            • +
            +
          • +
          • Zip Library changes include:
              +
            • Method read_file() can now also alter the original file path/name while adding files to an archive.
            • +
            • Added support for changing the compression level.
            • +
            +
          • +
          • Trackback Library method receive() will now utilize iconv() if it is available but mb_convert_encoding() is not.
          • +
          +
        • +
        • Core
            +
          • Routing changes include:
              +
            • Added support for multiple levels of controller directories.
            • +
            • Added support for per-directory default_controller and 404_override classes.
            • +
            • Added possibility to route requests using HTTP verbs.
            • +
            • Added possibility to route requests using callbacks.
            • +
            • Added a new reserved route (translate_uri_dashes) to allow usage of dashes in the controller and method URI segments.
            • +
            • Deprecated methods fetch_directory(), fetch_class() and fetch_method() in favor of their respective public properties.
            • +
            • Removed method _set_overrides() and moved its logic to the class constructor.
            • +
            +
          • +
          • URI Library changes include:
              +
            • Added conditional PCRE UTF-8 support to the “invalid URI characters” check and removed the preg_quote() call from it to allow more flexibility.
            • +
            • Renamed method _filter_uri() to filter_uri().
            • +
            • Changed method filter_uri() to accept by reference and removed its return value.
            • +
            • Changed private methods to protected so that MY_URI can override them.
            • +
            • Renamed internal method _parse_cli_args() to _parse_argv().
            • +
            • Renamed internal method _detect_uri() to _parse_request_uri().
            • +
            • Changed _parse_request_uri() to accept absolute URIs for compatibility with HTTP/1.1 as per RFC2616 <http://www.ietf.org/rfc/rfc2616.txt>.
            • +
            • Added protected method _parse_query_string() to URI paths in the the QUERY_STRING value, like _parse_request_uri() does.
            • +
            • Changed URI string detection logic to always default to REQUEST_URI unless configured otherwise or under CLI.
            • +
            • Removed methods _remove_url_suffix(), _explode_segments() and moved their logic into _set_uri_string().
            • +
            • Removed method _fetch_uri_string() and moved its logic into the class constructor.
            • +
            • Removed method _reindex_segments().
            • +
            +
          • +
          • Loader Library changes include:
              +
            • Added method chaining support.
            • +
            • Added method get_vars() to the Loader to retrieve all variables loaded with $this->load->vars().
            • +
            • _ci_autoloader() is now a protected method.
            • +
            • Added autoloading of drivers with $autoload['drivers'].
            • +
            • $config['rewrite_short_tags'] now has no effect when using PHP 5.4 as <?= will always be available.
            • +
            • Changed method config() to return whatever CI_Config::load() returns instead of always being void.
            • +
            • Added support for library and model aliasing on autoload.
            • +
            • Changed method is_loaded() to ask for the (case sensitive) library name instead of its instance name.
            • +
            • Removed $_base_classes property and unified all class data in $_ci_classes instead.
            • +
            • Added method clear_vars() to allow clearing the cached variables for views.
            • +
            +
          • +
          • Input Library changes include:
              +
            • Deprecated the $config['global_xss_filtering'] setting.
            • +
            • Added method() to retrieve $_SERVER['REQUEST_METHOD'].
            • +
            • Added support for arrays and network addresses (e.g. 192.168.1.1/24) for use with the proxy_ips setting.
            • +
            • Added method input_stream() to aid in using php://input stream data such as one passed via PUT, DELETE and PATCH requests.
            • +
            • Changed method valid_ip() to use PHP’s native filter_var() function.
            • +
            • Changed internal method _sanitize_globals() to skip enforcing reversal of register_globals in PHP 5.4+, where this functionality no longer exists.
            • +
            • Changed methods get(), post(), get_post(), cookie(), server(), user_agent() to return NULL instead of FALSE when no value is found.
            • +
            • Changed default value of the $xss_clean parameter to NULL for all methods that utilize it, the default value is now determined by the $config['global_xss_filtering'] setting.
            • +
            • Added method post_get() and changed get_post() to search in GET data first. Both methods’ names now properly match their GET/POST data search priorities.
            • +
            • Changed method _fetch_from_array() to parse array notation in field name.
            • +
            • Changed method _fetch_from_array() to allow retrieving multiple fields at once.
            • +
            • Added an option for _clean_input_keys() to return FALSE instead of terminating the whole script.
            • +
            • Deprecated the is_cli_request() method, it is now an alias for the new is_cli() common function.
            • +
            • Added an $xss_clean parameter to method user_agent() and removed the $user_agent property.
            • +
            • Added property $raw_input_stream to access php://input data.
            • +
            +
          • +
          • Common functions changes include:
              +
            • Added function get_mimes() to return the application/config/mimes.php array.
            • +
            • Added support for HTTP code 303 (“See Other”) in set_status_header().
            • +
            • Removed redundant conditional to determine HTTP server protocol in set_status_header().
            • +
            • Renamed _exception_handler() to _error_handler() and replaced it with a real exception handler.
            • +
            • Changed _error_handler() to respect php.ini display_errors setting.
            • +
            • Added function is_https() to check if a secure connection is used.
            • +
            • Added function is_cli() to replace the CI_Input::is_cli_request() method.
            • +
            • Added function function_usable() to work around a bug in Suhosin <http://www.hardened-php.net/suhosin/>.
            • +
            • Removed the third ($php_error) argument from function log_message().
            • +
            • Changed internal function load_class() to accept a constructor parameter instead of (previously unused) class name prefix.
            • +
            • Removed default parameter value of is_php().
            • +
            • Added a second argument $double_encode to html_escape().
            • +
            • Changed function config_item() to return NULL instead of FALSE when no value is found.
            • +
            • Changed function set_status_header() to return immediately when run under CLI.
            • +
            +
          • +
          • Output Library changes include:
              +
            • Added a second argument to method set_content_type() that allows setting the document charset as well.
            • +
            • Added methods get_content_type() and get_header().
            • +
            • Added method delete_cache().
            • +
            • Added configuration option $config['cache_query_string'] to enable taking the query string into account when caching.
            • +
            • Changed caching behavior to compress the output before storing it, if $config['compress_output'] is enabled.
            • +
            +
          • +
          • Config Library changes include:
              +
            • Changed site_url() method to accept an array as well.
            • +
            • Removed internal method _assign_to_config() and moved its implementation to CodeIgniter.php instead.
            • +
            • item() now returns NULL instead of FALSE when the required config item doesn’t exist.
            • +
            • Added an optional second parameter to both base_url() and site_url() that allows enforcing of a protocol different than the one in the base_url configuration setting.
            • +
            • Added HTTP “Host” header character validation to prevent cache poisoning attacks when base_url auto-detection is used.
            • +
            +
          • +
          • Security Library changes include:
              +
            • Added $config['csrf_regeneration'], which makes CSRF token regeneration optional.
            • +
            • Added $config['csrf_exclude_uris'], allowing for exclusion of URIs from the CSRF protection (regular expressions are supported).
            • +
            • Added method strip_image_tags().
            • +
            • Added method get_random_bytes() and switched CSRF & XSS token generation to use it.
            • +
            • Modified method sanitize_filename() to read a public $filename_bad_chars property for getting the invalid characters list.
            • +
            • Return status code of 403 instead of a 500 if CSRF protection is enabled but a token is missing from a request.
            • +
            +
          • +
          • Language Library changes include:
              +
            • Changed method load() to filter the language name with ctype_alpha().
            • +
            • Changed method load() to also accept an array of language files.
            • +
            • Added an optional second parameter to method line() to disable error logging for line keys that were not found.
            • +
            • Language files are now loaded in a cascading style with the one in system/ always loaded and overridden afterwards, if another one is found.
            • +
            +
          • +
          • Hooks Library changes include:
              +
            • Added support for closure hooks (or anything that is_callable() returns TRUE for).
            • +
            • Renamed method _call_hook() to call_hook().
            • +
            • Class instances are now stored in order to maintain their state.
            • +
            +
          • +
          • UTF-8 Library changes include:
              +
            • UTF8_ENABLED now requires only one of Multibyte String or iconv to be available instead of both.
            • +
            • Changed method clean_string() to utilize mb_convert_encoding() if it is available.
            • +
            • Renamed method _is_ascii() to is_ascii() and made it public.
            • +
            +
          • +
          • Log Library changes include:
              +
            • Added a $config['log_file_permissions'] setting.
            • +
            • Changed the library constructor to try to create the log_path directory if it doesn’t exist.
            • +
            • Added support for microseconds (“u” date format character) in $config['log_date_format'].
            • +
            +
          • +
          • Added compatibility layers for:
              +
            • Multibyte String (limited support).
            • +
            • Hash (hash_equals(), hash_pbkdf2()).
            • +
            • Password Hashing.
            • +
            • Standard Functions ``array_column()`, array_replace(), array_replace_recursive(), hex2bin(), quoted_printable_encode().
            • +
            +
          • +
          • Removed CI_CORE boolean constant from CodeIgniter.php (no longer Reactor and Core versions).
          • +
          • Added support for HTTP-Only cookies with new config option cookie_httponly (default FALSE).
          • +
          • $config['time_reference'] now supports all timezone strings supported by PHP.
          • +
          • Fatal PHP errors are now also passed to _error_handler(), so they can be logged.
          • +
          +
        • +
        +
        +

        Bug fixes for 3.0

        +
          +
        • Fixed a bug where unlink() raised an error if cache file did not exist when you try to delete it.
        • +
        • Fixed a bug (#181) - a typo in the form validation language file.
        • +
        • Fixed a bug (#159, #163) - Query Builder nested transactions didn’t work properly due to $_trans_depth not being incremented.
        • +
        • Fixed a bug (#737, #75) - Pagination anchor class was not set properly when using initialize method.
        • +
        • Fixed a bug (#419) - URL Helper auto_link() didn’t recognize URLs that come after a word boundary.
        • +
        • Fixed a bug (#724) - Form Validation Library rule is_unique didn’t check if a database connection exists.
        • +
        • Fixed a bug (#647) - Zip Library internal method _get_mod_time() didn’t suppress possible “stat failed” errors generated by filemtime().
        • +
        • Fixed a bug (#157, #174) - Image Manipulation Library method clear() didn’t completely clear properties.
        • +
        • Fixed a bug where Database Forge method create_table() with PostgreSQL database could lead to fetching the whole table.
        • +
        • Fixed a bug (#795) - Form Helper form_open() didn’t add the default form method and accept-charset when an empty array is passed to it.
        • +
        • Fixed a bug (#797) - Date Helper timespan() was using incorrect seconds for year and month.
        • +
        • Fixed a bug in Cart Library method contents() where if called without a TRUE (or equal) parameter, it would fail due to a typo.
        • +
        • Fixed a bug (#406) - SQLSRV DB driver not returning resource on db_pconnect().
        • +
        • Fixed a bug in Image Manipulation Library method gd_loaded() where it was possible for the script execution to end or a PHP E_WARNING message to be emitted.
        • +
        • Fixed a bug in the Pagination library where when use_page_numbers=TRUE previous link and page 1 link did not have the same url.
        • +
        • Fixed a bug (#561) - errors in XML-RPC Library were not properly escaped.
        • +
        • Fixed a bug (#904) - Loader Library method initialize() caused a PHP Fatal error to be triggered if error level E_STRICT is used.
        • +
        • Fixed a hosting edge case where an empty $_SERVER['HTTPS'] variable would evaluate to ‘on’.
        • +
        • Fixed a bug (#154) - Session Library method sess_update() caused the session to be destroyed on pages where multiple AJAX requests were executed at once.
        • +
        • Fixed a possible bug in Input Libary method is_ajax_request() where some clients might not send the X-Requested-With HTTP header value exactly as ‘XmlHttpRequest’.
        • +
        • Fixed a bug (#1039) - Database Utilities internal method _backup() method failed for the ‘mysql’ driver due to a table name not being escaped.
        • +
        • Fixed a bug (#1070) - CI_DB_driver::initialize() didn’t set a character set if a database is not selected.
        • +
        • Fixed a bug (#177) - Form Validation Library method set_value() didn’t set the default value if POST data is NULL.
        • +
        • Fixed a bug (#68, #414) - :Oracle’s escape_str() didn’t properly escape LIKE wild characters.
        • +
        • Fixed a bug (#81) - ODBC’s list_fields() and field_data() methods skipped the first column due to odbc_field_*() functions’ index starting at 1 instead of 0.
        • +
        • Fixed a bug (#129) - ODBC’s num_rows() method returned -1 in some cases, due to not all subdrivers supporting the odbc_num_rows() function.
        • +
        • Fixed a bug (#153) - E_NOTICE being generated by getimagesize() in the File Uploading Library.
        • +
        • Fixed a bug (#611) - SQLSRV’s error handling methods used to issue warnings when there’s no actual error.
        • +
        • Fixed a bug (#1036) - is_write_type() method in the Database Library didn’t return TRUE for RENAME queries.
        • +
        • Fixed a bug in PDO’s _version() method where it used to return the client version as opposed to the server one.
        • +
        • Fixed a bug in PDO’s insert_id() method where it could’ve failed if it’s used with Postgre versions prior to 8.1.
        • +
        • Fixed a bug in CUBRID’s affected_rows() method where a connection resource was passed to cubrid_affected_rows() instead of a result.
        • +
        • Fixed a bug (#638) - db_set_charset() ignored its arguments and always used the configured charset instead.
        • +
        • Fixed a bug (#413) - Oracle’s error handling methods used to only return connection-related errors.
        • +
        • Fixed a bug (#1101) - Database Result method field_data() for ‘mysql’, ‘mysqli’ drivers was implemented as if it was handling a DESCRIBE result instead of the actual result set.
        • +
        • Fixed a bug in Oracle’s Database Forge method _create_table() where it failed with AUTO_INCREMENT as it’s not supported.
        • +
        • Fixed a bug (#1080) - when using the SMTP protocol, Email Library method send() was returning TRUE even if the connection/authentication against the server failed.
        • +
        • Fixed a bug (#306) - ODBC’s insert_id() method was calling non-existent function odbc_insert_id(), which resulted in a fatal error.
        • +
        • Fixed a bug in Oracle’s Database Result implementation where the cursor ID passed to it was always NULL.
        • +
        • Fixed a bug (#64) - Regular expression in DB_query_builder.php failed to handle queries containing SQL bracket delimiters in the JOIN condition.
        • +
        • Fixed a bug in the Session Library where a PHP E_NOTICE error was triggered by _unserialize() due to results from databases such as MSSQL and Oracle being space-padded on the right.
        • +
        • Fixed a bug (#501) - Form Validation Library method set_rules() depended on count($_POST) instead of actually checking if the request method ‘POST’ before aborting.
        • +
        • Fixed a bug (#136) - PostgreSQL and MySQL’s escape_str() method didn’t properly escape LIKE wild characters.
        • +
        • Fixed a bug in Loader Library method library() where some PHP versions wouldn’t execute the class constructor.
        • +
        • Fixed a bug (#88) - An unexisting property was used for configuration of the Memcache cache driver.
        • +
        • Fixed a bug (#14) - Database Forge method create_database() didn’t utilize the configured database character set.
        • +
        • Fixed a bug (#23, #1238) - Database Caching method delete_all() used to delete .htaccess and index.html files, which is a potential security risk.
        • +
        • Fixed a bug in Trackback Library method validate_url() where it didn’t actually do anything, due to input not being passed by reference.
        • +
        • Fixed a bug (#11, #183, #863) - Form Validation Library method _execute() silently continued to the next rule, if a rule method/function is not found.
        • +
        • Fixed a bug (#122) - routed URI string was being reported incorrectly in sub-directories.
        • +
        • Fixed a bug (#1241) - Zip Library method read_dir() wasn’t compatible with Windows.
        • +
        • Fixed a bug (#306) - ODBC driver didn’t have an _insert_batch() method, which resulted in fatal error being triggered when insert_batch() is used with it.
        • +
        • Fixed a bug in MSSQL and SQLSrv’s _truncate() where the TABLE keyword was missing.
        • +
        • Fixed a bug in PDO’s trans_commit() method where it failed due to an erroneous property name.
        • +
        • Fixed a bug (#798) - Query Builder method update() used to ignore LIKE conditions that were set with like().
        • +
        • Fixed a bug in Oracle’s and MSSQL’s delete() methods where an erroneous SQL statement was generated when used with limit().
        • +
        • Fixed a bug in SQLSRV’s delete() method where like() and limit() conditions were ignored.
        • +
        • Fixed a bug (#1265) - Database connections were always closed, regardless of the ‘pconnect’ option value.
        • +
        • Fixed a bug (#128) - Language Library did not correctly keep track of loaded language files.
        • +
        • Fixed a bug (#1349) - File Uploading Library method get_extension() returned the original filename when it didn’t have an actual extension.
        • +
        • Fixed a bug (#1273) - Query Builder method set_update_batch() generated an E_NOTICE message.
        • +
        • Fixed a bug (#44, #110) - File Uploading Library method clean_file_name() didn’t clear ‘!’ and ‘#’ characters.
        • +
        • Fixed a bug (#121) - Database Results method row() returned an array when there’s no actual result to be returned.
        • +
        • Fixed a bug (#319) - SQLSRV’s affected_rows() method failed due to a scrollable cursor being created for write-type queries.
        • +
        • Fixed a bug (#356) - Database driver ‘postgre’ didn’t have an _update_batch() method, which resulted in fatal error being triggered when update_batch() is used with it.
        • +
        • Fixed a bug (#784, #862) - Database Forge method create_table() failed on SQLSRV/MSSQL when used with ‘IF NOT EXISTS’.
        • +
        • Fixed a bug (#1419) - Driver Library had a static variable that was causing an error.
        • +
        • Fixed a bug (#1411) - the Email Library used its own short list of MIMEs instead the one from config/mimes.php.
        • +
        • Fixed a bug where php.ini setting magic_quotes_runtime wasn’t turned off for PHP 5.3 (where it is indeed deprecated, but not non-existent).
        • +
        • Fixed a bug (#666) - Output Library method set_content_type() didn’t set the document charset.
        • +
        • Fixed a bug (#784, #861) - Database Forge method create_table() used to accept constraints for MSSQL/SQLSRV integer-type columns.
        • +
        • Fixed a bug (#706) - SQLSRV/MSSSQL Database drivers didn’t escape field names.
        • +
        • Fixed a bug (#1452) - Query Builder method protect_identifiers() didn’t properly detect identifiers with spaces in their names.
        • +
        • Fixed a bug where Query Builder method protect_identifiers() ignored its extra arguments when the value passed to it is an array.
        • +
        • Fixed a bug where Query Builder internal method _has_operator() didn’t detect BETWEEN.
        • +
        • Fixed a bug where Query Builder method join() failed with identifiers containing dashes.
        • +
        • Fixed a bug (#1264) - Database Forge and Database Utilities didn’t update/reset the databases and tables list cache when a table or a database is created, dropped or renamed.
        • +
        • Fixed a bug (#7) - Query Builder method join() only escaped one set of conditions.
        • +
        • Fixed a bug (#1321) - CI_Exceptions couldn’t find the errors/ directory in some cases.
        • +
        • Fixed a bug (#1202) - Encrypt Library encode_from_legacy() didn’t set back the encrypt mode on failure.
        • +
        • Fixed a bug (#145) - Database Class method compile_binds() failed when the bind marker was present in a literal string within the query.
        • +
        • Fixed a bug in Query Builder method protect_identifiers() where if passed along with the field names, operators got escaped as well.
        • +
        • Fixed a bug (#10) - URI Library internal method _detect_uri() failed with paths containing a colon.
        • +
        • Fixed a bug (#1387) - Query Builder method from() didn’t escape table aliases.
        • +
        • Fixed a bug (#520) - Date Helper function :php:func:nice_date() failed when the optional second parameter is not passed.
        • +
        • Fixed a bug (#318) - Profiling Library setting query_toggle_count was not settable as described in the manual.
        • +
        • Fixed a bug (#938) - Config Library method site_url() added a question mark to the URL string when query strings are enabled even if it already existed.
        • +
        • Fixed a bug (#999) - Config Library method site_url() always appended $config['url_suffix'] to the end of the URL string, regardless of whether a query string exists in it.
        • +
        • Fixed a bug where URL Helper function anchor_popup() ignored the attributes argument if it is not an array.
        • +
        • Fixed a bug (#1328) - Form Validation Library didn’t properly check the type of the form fields before processing them.
        • +
        • Fixed a bug (#79) - Form Validation Library didn’t properly validate array fields that use associative keys or have custom indexes.
        • +
        • Fixed a bug (#427) - Form Validation Library method strip_image_tags() was an alias to a non-existent method.
        • +
        • Fixed a bug (#1545) - Query Builder method limit() wasn’t executed properly under Oracle.
        • +
        • Fixed a bug (#1551) - Date Helper function standard_date() didn’t properly format W3C and ATOM standard dates.
        • +
        • Fixed a bug where Query Builder method join() escaped literal values as if they were fields.
        • +
        • Fixed a bug (#135) - PHP Error logging was impossible without the errors being displayed.
        • +
        • Fixed a bug (#1613) - Form Helper functions form_multiselect(), form_dropdown() didn’t properly handle empty array option groups.
        • +
        • Fixed a bug (#1605) - Pagination Library produced incorrect previous and next link values.
        • +
        • Fixed a bug in SQLSRV’s affected_rows() method where an erroneous function name was used.
        • +
        • Fixed a bug (#1000) - Change syntax of $view_file to $_ci_view_file to prevent being overwritten by application.
        • +
        • Fixed a bug (#1757) - Directory Helper function directory_map() was skipping files and directories named ‘0’.
        • +
        • Fixed a bug (#1789) - Database Library method escape_str() escaped quote characters in LIKE conditions twice under MySQL.
        • +
        • Fixed a bug (#395) - Unit Testing Library method result() didn’t properly check array result columns when called from report().
        • +
        • Fixed a bug (#1692) - Database Class method display_error() didn’t properly trace the possible error source on Windows systems.
        • +
        • Fixed a bug (#1745) - Database Class method is_write_type() didn’t return TRUE for LOAD queries.
        • +
        • Fixed a bug (#1765) - Database Class didn’t properly detect connection errors for the ‘mysqli’ driver.
        • +
        • Fixed a bug (#1257) - Query Builder used to (unnecessarily) group FROM clause contents, which breaks certain queries and is invalid for some databases.
        • +
        • Fixed a bug (#1709) - Email headers were broken when using long email subjects and rn as CRLF.
        • +
        • Fixed a bug where MB_ENABLED constant was only declared if UTF8_ENABLED was set to TRUE.
        • +
        • Fixed a bug where the Session Library accepted cookies with last_activity values being in the future.
        • +
        • Fixed a bug (#1897) - Email Library triggered PHP E_WARNING errors when mail protocol used and to() is never called.
        • +
        • Fixed a bug (#1409) - Email Library didn’t properly handle multibyte characters when applying Q-encoding to headers.
        • +
        • Fixed a bug where Email Library ignored its wordwrap setting while handling alternative messages.
        • +
        • Fixed a bug (#1476, #1909) - Pagination Library didn’t take into account actual routing when determining the current page.
        • +
        • Fixed a bug (#1766) - Query Builder didn’t always take into account the dbprefix setting.
        • +
        • Fixed a bug (#779) - URI Class didn’t always trim slashes from the uri_string as shown in the documentation.
        • +
        • Fixed a bug (#134) - Database Caching method delete_cache() didn’t work in some cases due to cachedir not being initialized properly.
        • +
        • Fixed a bug (#191) - Loader Library ignored attempts for (re)loading databases to get_instance()->db even when the old database connection is dead.
        • +
        • Fixed a bug (#1255) - User Agent Library method is_referral() only checked if $_SERVER['HTTP_REFERER'] exists.
        • +
        • Fixed a bug (#1146) - Download Helper function force_download() incorrectly sent Cache-Control directives pre-check and post-check to Internet Explorer.
        • +
        • Fixed a bug (#1811) - URI Library didn’t properly cache segments for uri_to_assoc() and ruri_to_assoc().
        • +
        • Fixed a bug (#1506) - Form Helpers set empty name attributes.
        • +
        • Fixed a bug (#59) - Query Builder method count_all_results() ignored the DISTINCT clause.
        • +
        • Fixed a bug (#1624) - Form Validation Library rule matches didn’t property handle array field names.
        • +
        • Fixed a bug (#1630) - Form Helper function set_value() didn’t escape HTML entities.
        • +
        • Fixed a bug (#142) - Form Helper function form_dropdown() didn’t escape HTML entities in option values.
        • +
        • Fixed a bug (#50) - Session Library unnecessarily stripped slashed from serialized data, making it impossible to read objects in a namespace.
        • +
        • Fixed a bug (#658) - Routing wildcard :any didn’t work as advertised and matched multiple URI segments instead of all characters within a single segment.
        • +
        • Fixed a bug (#1938) - Email Library removed multiple spaces inside a pre-formatted plain text message.
        • +
        • Fixed a bug (#122) - URI Library method ruri_string() didn’t include a directory if one is used.
        • +
        • Fixed a bug - Routing Library didn’t properly handle default_controller in a subdirectory when a method is also specified.
        • +
        • Fixed a bug (#953) - post_controller_constructor hook wasn’t called with a 404_override.
        • +
        • Fixed a bug (#1220) - Profiler Library didn’t display information for database objects that are instantiated inside models.
        • +
        • Fixed a bug (#1978) - Directory Helper function directory_map()‘s return array didn’t make a distinction between directories and file indexes when a directory with a numeric name is present.
        • +
        • Fixed a bug (#777) - Loader Library didn’t look for helper extensions in added package paths.
        • +
        • Fixed a bug (#18) - APC Cache driver didn’t (un)serialize data, resulting in failure to store objects.
        • +
        • Fixed a bug (#188) - Unit Testing Library filled up logs with error messages for non-existing language keys.
        • +
        • Fixed a bug (#113) - Form Validation Library didn’t properly handle empty fields that were specified as an array.
        • +
        • Fixed a bug (#2061) - Routing Class didn’t properly sanitize directory, controller and function triggers with enable_query_strings set to TRUE.
        • +
        • Fixed a bug - SQLSRV didn’t support escape_like_str() or escaping an array of values.
        • +
        • Fixed a bug - Database Results method list_fields() didn’t reset its field pointer for the ‘mysql’, ‘mysqli’ and ‘mssql’ drivers.
        • +
        • Fixed a bug (#2211) - Migration Library extensions couldn’t execute CI_Migration::__construct().
        • +
        • Fixed a bug (#2255) - Email Library didn’t apply smtp_timeout to socket reads and writes.
        • +
        • Fixed a bug (#2239) - Email Library improperly handled the Subject when used with bcc_batch_mode resulting in E_WARNING messages and an empty Subject.
        • +
        • Fixed a bug (#2234) - Query Builder didn’t reset JOIN cache for write-type queries.
        • +
        • Fixed a bug (#2298) - Database Results method next_row() kept returning the last row, allowing for infinite loops.
        • +
        • Fixed a bug (#2236, #2639) - Form Helper functions set_value(), set_select(), set_radio(), set_checkbox() didn’t parse array notation for keys if the rule was not present in the Form Validation Library.
        • +
        • Fixed a bug (#2353) - Query Builder erroneously prefixed literal strings with dbprefix.
        • +
        • Fixed a bug (#78) - Cart Library didn’t allow non-English letters in product names.
        • +
        • Fixed a bug (#77) - Database Class didn’t properly handle the transaction “test mode” flag.
        • +
        • Fixed a bug (#2380) - URI Routing method fetch_method() returned ‘index’ if the requested method name matches its controller name.
        • +
        • Fixed a bug (#2388) - Email Library used to ignore attachment errors, resulting in broken emails being sent.
        • +
        • Fixed a bug (#2498) - Form Validation Library rule valid_base64 only checked characters instead of actual validity.
        • +
        • Fixed a bug (#2425) - OCI8 database driver method stored_procedure() didn’t log an error unless db_debug was set to TRUE.
        • +
        • Fixed a bug (#2490) - Database Class method query() returning boolean instead of a result object for PostgreSQL-specific INSERT INTO ... RETURNING statements.
        • +
        • Fixed a bug (#249) - Cache Library didn’t properly handle Memcache(d) configurations with missing options.
        • +
        • Fixed a bug (#180) - config_item() didn’t take into account run-time configuration changes.
        • +
        • Fixed a bug (#2551) - Loader Library method library() didn’t properly check if a class that is being loaded already exists.
        • +
        • Fixed a bug (#2560) - Form Helper function form_open() set the ‘method=”post”’ attribute only if the passed attributes equaled an empty string.
        • +
        • Fixed a bug (#2585) - Query Builder methods min(), max(), avg(), sum() didn’t escape field names.
        • +
        • Fixed a bug (#2590) - Common function log_message() didn’t actually cache the CI_Log class instance.
        • +
        • Fixed a bug (#2609) - Common function get_config() optional argument was only effective on first function call. Also, it can now add items, in addition to updating existing items.
        • +
        • Fixed a bug in the ‘postgre’ database driver where the connection ID wasn’t passed to pg_escape_string().
        • +
        • Fixed a bug (#33) - Script execution was terminated when an invalid cookie key was encountered.
        • +
        • Fixed a bug (#2691) - nested database transactions could end in a deadlock when an error is encountered with db_debug set to TRUE.
        • +
        • Fixed a bug (#2515) - _exception_handler() used to send the 200 “OK” HTTP status code and didn’t stop script exection even on fatal errors.
        • +
        • Fixed a bug - Redis Caching driver didn’t handle connection failures properly.
        • +
        • Fixed a bug (#2756) - Database Class executed the MySQL-specific SET SESSION sql_mode query for all drivers when the ‘stricton’ option is set.
        • +
        • Fixed a bug (#2579) - Query Builder “no escape” functionality didn’t work properly with query cache.
        • +
        • Fixed a bug (#2237) - Parser Library failed if the same tag pair is used more than once within a template.
        • +
        • Fixed a bug (#2143) - Form Validation Library didn’t check for rule groups named in a controller/method manner when trying to load from a config file.
        • +
        • Fixed a bug (#2762) - Hooks Class didn’t properly check if the called class/function exists.
        • +
        • Fixed a bug (#148) - Input Library internal method _clean_input_data() assumed that it data is URL-encoded, stripping certain character sequences from it.
        • +
        • Fixed a bug (#346) - with $config['global_xss_filtering'] turned on, the $_GET, $_POST, $_COOKIE and $_SERVER superglobals were overwritten during initialization time, resulting in XSS filtering being either performed twice or there was no possible way to get the original data, even though options for this do exist.
        • +
        • Fixed an edge case (#555) - User Agent Library reported an incorrect version Opera 10+ due to a non-standard user-agent string.
        • +
        • Fixed a bug (#133) - Text Helper ascii_to_entities() stripped the last character if it happens to be in the extended ASCII group.
        • +
        • Fixed a bug (#2822) - fwrite() was used incorrectly throughout the whole framework, allowing incomplete writes when writing to a network stream and possibly a few other edge cases.
        • +
        • Fixed a bug where User Agent Library methods accept_charset() and accept_lang() didn’t properly parse HTTP headers that contain spaces.
        • +
        • Fixed a bug where default_controller was called instad of triggering a 404 error if the current route is in a controller directory.
        • +
        • Fixed a bug (#2737) - XML-RPC Library used objects as array keys, which triggered E_NOTICE messages.
        • +
        • Fixed a bug (#2771) - Security Library method xss_clean() didn’t take into account HTML5 entities.
        • +
        • Fixed a bug (#2856) - ODBC method affected_rows() passed an incorrect value to odbc_num_rows().
        • +
        • Fixed a bug (#43) Image Manipulation Library method text_watermark() didn’t properly determine watermark placement.
        • +
        • Fixed a bug where HTML Table Library ignored its auto_heading setting if headings were not already set.
        • +
        • Fixed a bug (#2364) - Pagination Library appended the query string (if used) multiple times when there are successive calls to create_links() with no initialize() in between them.
        • +
        • Partially fixed a bug (#261) - UTF-8 class method clean_string() generating log messages and/or not producing the desired result due to an upstream bug in iconv.
        • +
        • Fixed a bug where CI_Xmlrpcs::parseRequest() could fail if $HTTP_RAW_POST_DATA is not populated.
        • +
        • Fixed a bug in Zip Library internal method _get_mod_time() where it was not parsing result returned by filemtime().
        • +
        • Fixed a bug (#3161) - Cache Library methods increment(), decrement() didn’t auto-create non-existent items when using redis and/or file storage.
        • +
        • Fixed a bug (#3189) - Parser Library used double replacement on key->value pairs, exposing a potential template injection vulnerability.
        • +
        • Fixed a bug (#3573) - Email Library violated RFC5321 by sending ‘localhost.localdomain’ as a hostname.
        • +
        • Fixed a bug (#3572) - CI_Security::_remove_evil_attributes() failed for large-sized inputs due to pcre.backtrack_limit and didn’t properly match HTML tags.
        • +
        +
        +
        +
        +

        Version 2.2.3

        +

        Release Date: July 14, 2015

        +
          +
        • Security
            +
          • Removed a fallback to mysql_escape_string() in the ‘mysql’ database driver (escape_str() method) when there’s no active database connection.
          • +
          +
        • +
        +
        +
        +

        Version 2.2.2

        +

        Release Date: April 15, 2015

        +
          +
        • General Changes
            +
          • Added HTTP “Host” header character validation to prevent cache poisoning attacks when base_url auto-detection is used.
          • +
          • Added FSCommand and seekSegmentTime to the “evil attributes” list in CI_Security::xss_clean().
          • +
          +
        • +
        +
        +

        Bug fixes for 2.2.2

        +
          +
        • Fixed a bug (#3665) - CI_Security::entity_decode() triggered warnings under some circumstances.
        • +
        +
        +
        +
        +

        Version 2.2.1

        +

        Release Date: January 22, 2015

        +
          +
        • General Changes
            +
          • Improved security in xss_clean().
          • +
          • Updated timezones in Date Helper.
          • +
          +
        • +
        +
        +

        Bug fixes for 2.2.1

        +
          +
        • Fixed a bug (#3094) - Internal method CI_Input::_clean_input_data() breaks encrypted session cookies.
        • +
        • Fixed a bug (#2268) - Security Library method xss_clean() didn’t properly match JavaScript events.
        • +
        • Fixed a bug (#3309) - Security Library method xss_clean() used an overly-invasive pattern to strip JS event handlers.
        • +
        • Fixed a bug (#2771) - Security Library method xss_clean() didn’t take into account HTML5 entities.
        • +
        • Fixed a bug (#73) - Security Library method sanitize_filename() could be tricked by an XSS attack.
        • +
        • Fixed a bug (#2681) - Security Library method entity_decode() used the PREG_REPLACE_EVAL flag, which is deprecated since PHP 5.5.
        • +
        • Fixed a bug (#3302) - Internal function get_config() triggered an E_NOTICE message on PHP 5.6.
        • +
        • Fixed a bug (#2508) - Config Library didn’t properly detect if the current request is via HTTPS.
        • +
        • Fixed a bug (#3314) - SQLSRV Database driver‘s method count_all() didn’t escape the supplied table name.
        • +
        • Fixed a bug (#3404) - MySQLi Database driver‘s method escape_str() had a wrong fallback to mysql_escape_string() when there was no active connection.
        • +
        • Fixed a bug in the Session Library where session ID regeneration occurred during AJAX requests.
        • +
        +
        +
        +
        +

        Version 2.2.0

        +

        Release Date: June 2, 2014

        +
          +
        • General Changes
            +
          • Security: Encrypt Library method xor_encode() has been removed. The Encrypt Class now requires the Mcrypt extension to be installed.
          • +
          • Security: The Session Library now uses HMAC authentication instead of a simple MD5 checksum.
          • +
          +
        • +
        +
        +

        Bug fixes for 2.2.0

        +
          +
        • Fixed an edge case (#2583) in the Email Library where Suhosin <http://www.hardened-php.net/suhosin/> blocked messages sent via mail() due to trailing newspaces in headers.
        • +
        • Fixed a bug (#696) - make oci_execute() calls inside num_rows() non-committing, since they are only there to reset which row is next in line for oci_fetch calls and thus don’t need to be committed.
        • +
        • Fixed a bug (#2689) - Database Force methods create_table(), drop_table() and rename_table() produced broken SQL for tge ‘sqlsrv’ driver.
        • +
        • Fixed a bug (#2427) - PDO Database driver didn’t properly check for query failures.
        • +
        • Fixed a bug in the Session Library where authentication was not performed for encrypted cookies.
        • +
        +
        +
        +
        +

        Version 2.1.4

        +

        Release Date: July 8, 2013

        +
          +
        • General Changes
            +
          • Improved security in xss_clean().
          • +
          +
        • +
        +
        +

        Bug fixes for 2.1.4

        +
          +
        • Fixed a bug (#1936) - Migration Library method latest() had a typo when retrieving language values.
        • +
        • Fixed a bug (#2021) - Migration Library configuration file was mistakenly using Windows style line feeds.
        • +
        • Fixed a bug (#1273) - E_NOTICE being generated by Query Builder‘s set_update_batch() method.
        • +
        • Fixed a bug (#2337) - Email Library method print_debugger() didn’t apply htmlspecialchars() to headers.
        • +
        +
        +
        +
        +

        Version 2.1.3

        +

        Release Date: October 8, 2012

        + +
        +

        Bug fixes for 2.1.3

        +
          +
        • Fixed a bug (#1543) - File-based Caching method get_metadata() used a non-existent array key to look for the TTL value.
        • +
        • Fixed a bug (#1314) - Session Library method sess_destroy() didn’t destroy the userdata array.
        • +
        • Fixed a bug (#804) - Profiler library was trying to handle objects as strings in some cases, resulting in E_WARNING messages being issued by htmlspecialchars().
        • +
        • Fixed a bug (#1699) - Migration Library ignored the $config['migration_path'] setting.
        • +
        • Fixed a bug (#227) - Input Library allowed unconditional spoofing of HTTP clients’ IP addresses through the HTTP_CLIENT_IP header.
        • +
        • Fixed a bug (#907) - Input Library ignored HTTP_X_CLUSTER_CLIENT_IP and HTTP_X_CLIENT_IP headers when checking for proxies.
        • +
        • Fixed a bug (#940) - csrf_verify() used to set the CSRF cookie while processing a POST request with no actual POST data, which resulted in validating a request that should be considered invalid.
        • +
        • Fixed a bug (#499) - Security Library where a CSRF cookie was created even if $config['csrf_protection'] is set to FALSE.
        • +
        • Fixed a bug (#1715) - Input Library triggered csrf_verify() on CLI requests.
        • +
        • Fixed a bug (#751) - Query Builder didn’t properly handle cached field escaping overrides.
        • +
        • Fixed a bug (#2004) - Query Builder didn’t properly merge cached calls with non-cache ones.
        • +
        +
        +
        +
        +

        Version 2.1.2

        +

        Release Date: June 29, 2012

        +
          +
        • General Changes
            +
          • Improved security in xss_clean().
          • +
          +
        • +
        +
        +
        +

        Version 2.1.1

        +

        Release Date: June 12, 2012

        +
          +
        • General Changes
            +
          • Fixed support for docx, xlsx files in mimes.php.
          • +
          +
        • +
        • Libraries +
        • +
        • Helpers
            +
          • url_title() performance and output improved. You can now use any string as the word delimiter, but ‘dash’ and ‘underscore’ are still supported.
          • +
          +
        • +
        +
        +

        Bug fixes for 2.1.1

        +
          +
        • Fixed a bug (#697) - A wrong array key was used in the File Uploading Library to check for mime-types.
        • +
        • Fixed a bug - form_open() compared $action against site_url() instead of base_url().
        • +
        • Fixed a bug - CI_Upload::_file_mime_type() could’ve failed if mime_content_type() is used for the detection and returns FALSE.
        • +
        • Fixed a bug (#538) - Windows paths were ignored when using the Image Manipulation Library to create a new file.
        • +
        • Fixed a bug - When database caching was enabled, $this->db->query() checked the cache before binding variables which resulted in cached queries never being found.
        • +
        • Fixed a bug - CSRF cookie value was allowed to be any (non-empty) string before being written to the output, making code injection a risk.
        • +
        • Fixed a bug (#726) - PDO put a ‘dbname’ argument in its connection string regardless of the database platform in use, which made it impossible to use SQLite.
        • +
        • Fixed a bug - CI_DB_pdo_driver::num_rows() was not returning properly value with SELECT queries, cause it was relying on PDOStatement::rowCount().
        • +
        • Fixed a bug (#1059) - CI_Image_lib::clear() was not correctly clearing all necessary object properties, namely width and height.
        • +
        +
        +
        +
        +

        Version 2.1.0

        +

        Release Date: November 14, 2011

        +
          +
        • General Changes
            +
          • Callback validation rules can now accept parameters like any other +validation rule.
          • +
          • Added html_escape() to Common +functions to escape HTML output +for preventing XSS.
          • +
          +
        • +
        • Helpers
            +
          • Added increment_string() to String +Helper to turn “foo” into “foo-1” +or “foo-1” into “foo-2”.
          • +
          • Altered form helper - made action on form_open_multipart helper +function call optional. Fixes (#65)
          • +
          • url_title() will now trim extra dashes from beginning and end.
          • +
          • Improved speed of String Helper‘s random_string() method
          • +
          +
        • +
        • Database
            +
          • Added a CUBRID driver to the Database +Driver. Thanks to the CUBRID team for +supplying this patch.
          • +
          • Added a PDO driver to the Database Driver.
          • +
          • Typecast limit and offset in the Database +Driver to integers to avoid possible +injection.
          • +
          • Added additional option ‘none’ for the optional third argument for +$this->db->like() in the Database +Driver.
          • +
          • Added $this->db->insert_batch() support to the OCI8 (Oracle) driver.
          • +
          • Added failover if the main connections in the config should fail
          • +
          +
        • +
        • Libraries
            +
          • Changed $this->cart->insert() in the Cart +Library to return the Row ID if a single +item was inserted successfully.
          • +
          • Added support to set an optional parameter in your callback rules +of validation using the Form Validation +Library.
          • +
          • Added a Migration library to assist with applying +incremental updates to your database schema.
          • +
          • Driver children can be located in any package path.
          • +
          • Added max_filename_increment config setting for Upload library.
          • +
          • Added is_unique to the Form Validation library.
          • +
          • Added $config[‘use_page_numbers’] to the Pagination library, which enables real page numbers in the URI.
          • +
          • Added TLS and SSL Encryption for SMTP.
          • +
          +
        • +
        • Core
            +
          • Changed private functions in CI_URI to protected so MY_URI can +override them.
          • +
          • Removed CI_CORE boolean constant from CodeIgniter.php (no longer Reactor and Core versions).
          • +
          +
        • +
        +
        +

        Bug fixes for 2.1.0

        +
          +
        • Fixed #378 Robots identified as regular browsers by the User Agent +class.
        • +
        • If a config class was loaded first then a library with the same name +is loaded, the config would be ignored.
        • +
        • Fixed a bug (Reactor #19) where 1) the 404_override route was being +ignored in some cases, and 2) auto-loaded libraries were not +available to the 404_override controller when a controller existed +but the requested method did not.
        • +
        • Fixed a bug (Reactor #89) where MySQL export would fail if the table +had hyphens or other non alphanumeric/underscore characters.
        • +
        • Fixed a bug (#105) that stopped query errors from being logged unless database debugging was enabled
        • +
        • Fixed a bug (#160) - Removed unneeded array copy in the file cache +driver.
        • +
        • Fixed a bug (#150) - field_data() now correctly returns column +length.
        • +
        • Fixed a bug (#8) - load_class() now looks for core classes in +APPPATH first, allowing them to be replaced.
        • +
        • Fixed a bug (#24) - ODBC database driver called incorrect parent in __construct().
        • +
        • Fixed a bug (#85) - OCI8 (Oracle) database escape_str() function did not escape correct.
        • +
        • Fixed a bug (#344) - Using schema found in Saving Session Data to a Database, system would throw error “user_data does not have a default value” when deleting then creating a session.
        • +
        • Fixed a bug (#112) - OCI8 (Oracle) driver didn’t pass the configured database character set when connecting.
        • +
        • Fixed a bug (#182) - OCI8 (Oracle) driver used to re-execute the statement whenever num_rows() is called.
        • +
        • Fixed a bug (#82) - WHERE clause field names in the DB update_string() method were not escaped, resulting in failed queries in some cases.
        • +
        • Fixed a bug (#89) - Fix a variable type mismatch in DB display_error() where an array is expected, but a string could be set instead.
        • +
        • Fixed a bug (#467) - Suppress warnings generated from get_magic_quotes_gpc() (deprecated in PHP 5.4)
        • +
        • Fixed a bug (#484) - First time _csrf_set_hash() is called, hash is never set to the cookie (in Security.php).
        • +
        • Fixed a bug (#60) - Added _file_mime_type() method to the File Uploading Library in order to fix a possible MIME-type injection.
        • +
        • Fixed a bug (#537) - Support for all wav type in browser.
        • +
        • Fixed a bug (#576) - Using ini_get() function to detect if apc is enabled or not.
        • +
        • Fixed invalid date time format in Date helper and XMLRPC library.
        • +
        • Fixed a bug (#200) - MySQL queries would be malformed after calling db->count_all() then db->get().
        • +
        +
        +
        +
        +

        Version 2.0.3

        +

        Release Date: August 20, 2011

        +
          +
        • Security

          +
            +
          • An improvement was made to the MySQL and MySQLi drivers to prevent +exposing a potential vector for SQL injection on sites using +multi-byte character sets in the database client connection. +An incompatibility in PHP versions < 5.2.3 and MySQL < 5.0.7 with +mysql_set_charset() creates a situation where using multi-byte +character sets on these environments may potentially expose a SQL +injection attack vector. Latin-1, UTF-8, and other “low ASCII” +character sets are unaffected on all environments.

            +

            If you are running or considering running a multi-byte character +set for your database connection, please pay close attention to +the server environment you are deploying on to ensure you are not +vulnerable.

            +
          • +
          +
        • +
        • General Changes

          +
            +
          • Fixed a bug where there was a misspelling within a code comment in +the index.php file.
          • +
          • Added Session Class userdata to the output profiler. Additionally, +added a show/hide toggle on HTTP Headers, Session Data and Config +Variables.
          • +
          • Removed internal usage of the EXT constant.
          • +
          • Visual updates to the welcome_message view file and default error +templates. Thanks to danijelb +for the pull request.
          • +
          • Added insert_batch() function to the PostgreSQL database driver. +Thanks to epallerols for the patch.
          • +
          • Added “application/x-csv” to mimes.php.
          • +
          • Fixed a bug where Email library +attachments with a ”.” in the name would using invalid MIME-types.
          • +
          +
        • +
        • Helpers

          +
            +
          • Added an optional third parameter to heading() which allows adding +html attributes to the rendered heading tag.
          • +
          • form_open() now only adds a hidden (Cross-site Reference Forgery) +protection field when the form’s action is internal and is set to +the post method. (Reactor #165)
          • +
          • Re-worked plural() and singular() functions in the Inflector +helper to support considerably +more words.
          • +
          +
        • +
        • Libraries

          +
            +
          • Altered Session to use a longer match against the user_agent +string. See upgrade notes if using database sessions.
          • +
          • Added $this->db->set_dbprefix() to the Database +Driver.
          • +
          • Changed $this->cart->insert() in the Cart +Library to return the Row ID if a single +item was inserted successfully.
          • +
          • Added $this->load->get_var() to the Loader +library to retrieve global vars set with +$this->load->view() and $this->load->vars().
          • +
          • Changed $this->db->having() to insert quotes using escape() rather +than escape_str().
          • +
          +
        • +
        +
        +

        Bug fixes for 2.0.3

        +
          +
        • Added ENVIRONMENT to reserved constants. (Reactor #196)
        • +
        • Changed server check to ensure SCRIPT_NAME is defined. (Reactor #57)
        • +
        • Removed APPPATH.’third_party’ from the packages autoloader to negate +needless file stats if no packages exist or if the developer does not +load any other packages by default.
        • +
        • Fixed a bug (Reactor #231) where Sessions Library database table +example SQL did not contain an index on last_activity. See Upgrade +Notes.
        • +
        • Fixed a bug (Reactor #229) where the Sessions Library example SQL in +the documentation contained incorrect SQL.
        • +
        • Fixed a bug (Core #340) where when passing in the second parameter to +$this->db->select(), column names in subsequent queries would not be +properly escaped.
        • +
        • Fixed issue #199 - Attributes passed as string does not include a +space between it and the opening tag.
        • +
        • Fixed a bug where the method $this->cart->total_items() from Cart +Library now returns the sum of the quantity +of all items in the cart instead of your total count.
        • +
        • Fixed a bug where not setting ‘null’ when adding fields in db_forge +for mysql and mysqli drivers would default to NULL instead of NOT +NULL as the docs suggest.
        • +
        • Fixed a bug where using $this->db->select_max(), +$this->db->select_min(), etc could throw notices. Thanks to w43l for +the patch.
        • +
        • Replace checks for STDIN with php_sapi_name() == ‘cli’ which on the +whole is more reliable. This should get parameters in crontab +working.
        • +
        +
        +
        +
        +

        Version 2.0.2

        +

        Release Date: April 7, 2011 +Hg Tag: v2.0.2

        +
          +
        • General changes
            +
          • The Security library was moved to +the core and is now loaded automatically. Please remove your +loading calls.
          • +
          • The CI_SHA class is now deprecated. All supported versions of PHP +provide a sha1() function.
          • +
          • constants.php will now be loaded from the environment folder if +available.
          • +
          • Added language key error logging
          • +
          • Made Environment Support optional. Comment out or delete the +constant to stop environment checks.
          • +
          • Added Environment Support for Hooks.
          • +
          • Added CI_ Prefix to the Cache driver.
          • +
          • Added CLI usage documentation.
          • +
          +
        • +
        • Helpers
            +
          • Removed the previously deprecated dohash() from the Security +helper; use do_hash() instead.
          • +
          • Changed the ‘plural’ function so that it doesn’t ruin the +captalization of your string. It also take into consideration +acronyms which are all caps.
          • +
          +
        • +
        • Database
            +
          • $this->db->count_all_results() will now return an integer +instead of a string.
          • +
          +
        • +
        +
        +

        Bug fixes for 2.0.2

        +
          +
        • Fixed a bug (Reactor #145) where the Output Library had +parse_exec_vars set to protected.
        • +
        • Fixed a bug (Reactor #80) where is_really_writable would create an +empty file when on Windows or with safe_mode enabled.
        • +
        • Fixed various bugs with User Guide.
        • +
        • Added is_cli_request() method to documentation for Input +class.
        • +
        • Added form_validation_lang entries for decimal, less_than and +greater_than.
        • +
        • Fixed issue #153 Escape Str Bug in MSSQL driver.
        • +
        • Fixed issue #172 Google Chrome 11 posts incorrectly when action is empty.
        • +
        +
        +
        +
        +

        Version 2.0.1

        +

        Release Date: March 15, 2011 +Hg Tag: v2.0.1

        +
          +
        • General changes
            +
          • Added $config[‘cookie_secure’] to the config file to allow +requiring a secure (HTTPS) in order to set cookies.
          • +
          • Added the constant CI_CORE to help differentiate between Core: +TRUE and Reactor: FALSE.
          • +
          • Added an ENVIRONMENT constant in index.php, which affects PHP +error reporting settings, and optionally, which configuration +files are loaded (see below). Read more on the Handling +Environments page.
          • +
          • Added support for +environment-specific +configuration files.
          • +
          +
        • +
        • Libraries
            +
          • Added decimal, less_than and greater_than rules to the Form +validation Class.
          • +
          • Input Class methods post() and get() +will now return a full array if the first argument is not +provided.
          • +
          • Secure cookies can now be made with the set_cookie() helper and +Input Class method.
          • +
          • Added set_content_type() to Output +Class to set the output Content-Type +HTTP header based on a MIME Type or a config/mimes.php array key.
          • +
          • Output Class will now support method +chaining.
          • +
          +
        • +
        • Helpers
            +
          • Changed the logic for form_open() in Form +helper. If no value is passed it will +submit to the current URL.
          • +
          +
        • +
        +
        +

        Bug fixes for 2.0.1

        +
          +
        • CLI requests can now be run from any folder, not just when CD’ed next +to index.php.
        • +
        • Fixed issue #41: Added audio/mp3 mime type to mp3.
        • +
        • Fixed a bug (Core #329) where the file caching driver referenced the +incorrect cache directory.
        • +
        • Fixed a bug (Reactor #69) where the SHA1 library was named +incorrectly.
        • +
        +
        +
        +
        +

        Version 2.0.0

        +

        Release Date: January 28, 2011 +Hg Tag: v2.0.0

        +
          +
        • General changes
            +
          • PHP 4 support is removed. CodeIgniter now requires PHP 5.1.6.
          • +
          • Scaffolding, having been deprecated for a number of versions, has +been removed.
          • +
          • Plugins have been removed, in favor of Helpers. The CAPTCHA plugin +has been converted to a Helper and +documented. The JavaScript +calendar plugin was removed due to the ready availability of great +JavaScript calendars, particularly with jQuery.
          • +
          • Added new special Library type: +Drivers.
          • +
          • Added full query-string support. See the config file for details.
          • +
          • Moved the application folder outside of the system folder.
          • +
          • Moved system/cache and system/logs directories to the application +directory.
          • +
          • Added routing overrides to the main index.php file, enabling the +normal routing to be overridden on a per “index” file basis.
          • +
          • Added the ability to set config values (or override config values) +directly from data set in the main index.php file. This allows a +single application to be used with multiple front controllers, +each having its own config values.
          • +
          • Added $config[‘directory_trigger’] to the config file so that a +controller sub-directory can be specified when running _GET +strings instead of URI segments.
          • +
          • Added ability to set “Package” paths - specific paths where the +Loader and Config classes should try to look first for a requested +file. This allows distribution of sub-applications with their own +libraries, models, config files, etc. in a single “package” +directory. See the Loader class +documentation for more details.
          • +
          • In-development code is now hosted at BitBucket .
          • +
          • Removed the deprecated Validation Class.
          • +
          • Added CI_ Prefix to all core classes.
          • +
          • Package paths can now be set in application/config/autoload.php.
          • +
          • Upload library file_name can +now be set without an extension, the extension will be taken from +the uploaded file instead of the given name.
          • +
          • In Database Forge the name can be omitted +from $this->dbforge->modify_column()’s 2nd param if you aren’t +changing the name.
          • +
          • $config[‘base_url’] is now empty by default and will guess what +it should be.
          • +
          • Enabled full Command Line Interface compatibility with +config[‘uri_protocol’] = ‘CLI’;.
          • +
          +
        • +
        • Libraries
            +
          • Added a Cache driver with APC, +memcached, and file-based support.
          • +
          • Added $prefix, $suffix and $first_url properties to Pagination +library.
          • +
          • Added the ability to suppress first, previous, next, last, and +page links by setting their values to FALSE in the Pagination +library.
          • +
          • Added Security library, which now +contains the xss_clean function, filename_security function and +other security related functions.
          • +
          • Added CSRF (Cross-site Reference Forgery) protection to the +Security library.
          • +
          • Added $parse_exec_vars property to Output library.
          • +
          • Added ability to enable / disable individual sections of the +Profiler
          • +
          • Added a wildcard option $config[‘allowed_types’] = ‘*’ to the +File Uploading Class.
          • +
          • Added an ‘object’ config variable to the XML-RPC Server library so +that one can specify the object to look for requested methods, +instead of assuming it is in the $CI superobject.
          • +
          • Added “is_object” into the list of unit tests capable of being +run.
          • +
          • Table library will generate an empty cell with a blank string, or +NULL value.
          • +
          • Added ability to set tag attributes for individual cells in the +Table library
          • +
          • Added a parse_string() method to the Parser +Class.
          • +
          • Added HTTP headers and Config information to the +Profiler output.
          • +
          • Added Chrome and Flock to the list of detectable browsers by +browser() in the User Agent Class.
          • +
          • The Unit Test Class now has an +optional “notes” field available to it, and allows for discrete +display of test result items using +$this->unit->set_test_items().
          • +
          • Added a $xss_clean class variable to the XMLRPC library, enabling +control over the use of the Security library’s xss_clean() +method.
          • +
          • Added a download() method to the FTP +library
          • +
          • Changed do_xss_clean() to return FALSE if the uploaded file +fails XSS checks.
          • +
          • Added stripslashes() and trim()ing of double quotes from $_FILES +type value to standardize input in Upload library.
          • +
          • Added a second parameter (boolean) to +$this->zip->read_dir(‘/path/to/directory’, FALSE) to remove the +preceding trail of empty folders when creating a Zip archive. This +example would contain a zip with “directory” and all of its +contents.
          • +
          • Added ability in the Image Library to handle PNG transparency for +resize operations when using the GD lib.
          • +
          • Modified the Session class to prevent use if no encryption key is +set in the config file.
          • +
          • Added a new config item to the Session class +sess_expire_on_close to allow sessions to auto-expire when the +browser window is closed.
          • +
          • Improved performance of the Encryption library on servers where +Mcrypt is available.
          • +
          • Changed the default encryption mode in the Encryption library to +CBC.
          • +
          • Added an encode_from_legacy() method to provide a way to +transition encrypted data from CodeIgniter 1.x to CodeIgniter 2.x. +Please see the upgrade +instructions for details.
          • +
          • Altered Form_Validation library to allow for method chaining on +set_rules(), set_message() and set_error_delimiters() +functions.
          • +
          • Altered Email Library to allow for method chaining.
          • +
          • Added request_headers(), get_request_header() and +is_ajax_request() to the input class.
          • +
          • Altered User agent library so that +is_browser(), is_mobile() and is_robot() can optionally check +for a specific browser or mobile device.
          • +
          • Altered Input library so that post() and +get() will return all POST and GET items (respectively) if there +are no parameters passed in.
          • +
          +
        • +
        • Database
            +
          • database configuration.
          • +
          • Added autoinit value to database +configuration.
          • +
          • Added stricton value to database +configuration.
          • +
          • Added database_exists() to the Database Utilities +Class.
          • +
          • Semantic change to db->version() function to allow a list of +exceptions for databases with functions to return version string +instead of specially formed SQL queries. Currently this list only +includes Oracle and SQLite.
          • +
          • Fixed a bug where driver specific table identifier protection +could lead to malformed queries in the field_data() functions.
          • +
          • Fixed a bug where an undefined class variable was referenced in +database drivers.
          • +
          • Modified the database errors to show the filename and line number +of the problematic query.
          • +
          • Removed the following deprecated functions: orwhere, orlike, +groupby, orhaving, orderby, getwhere.
          • +
          • Removed deprecated _drop_database() and _create_database() +functions from the db utility drivers.
          • +
          • Improved dbforge create_table() function for the Postgres driver.
          • +
          +
        • +
        • Helpers
            +
          • Added convert_accented_characters() function to text +helper.
          • +
          • Added accept-charset to the list of inserted attributes of +form_open() in the Form Helper.
          • +
          • Deprecated the dohash() function in favour of do_hash() for +naming consistency.
          • +
          • Non-backwards compatible change made to get_dir_file_info() in +the File Helper. No longer recurses +by default so as to encourage responsible use (this function can +cause server performance issues when used without caution).
          • +
          • Modified the second parameter of directory_map() in the +Directory Helper to accept an +integer to specify recursion depth.
          • +
          • Modified delete_files() in the File +Helper to return FALSE on failure.
          • +
          • Added an optional second parameter to byte_format() in the +Number Helper to allow for decimal +precision.
          • +
          • Added alpha, and sha1 string types to random_string() in the +String Helper.
          • +
          • Modified prep_url() so as to not prepend http&#58;// if the supplied +string already has a scheme.
          • +
          • Modified get_file_info in the file helper, changing filectime() +to filemtime() for dates.
          • +
          • Modified smiley_js() to add optional third parameter to return +only the javascript with no script tags.
          • +
          • The img() function of the HTML +helper will now generate an empty +string as an alt attribute if one is not provided.
          • +
          • If CSRF is enabled in the application config file, form_open() +will automatically insert it as a hidden field.
          • +
          • Added sanitize_filename() into the Security +helper.
          • +
          • Added ellipsize() to the Text +Helper
          • +
          • Added elements() to the Array +Helper
          • +
          +
        • +
        • Other Changes
            +
          • Added an optional second parameter to show_404() to disable +logging.
          • +
          • Updated loader to automatically apply the sub-class prefix as an +option when loading classes. Class names can be prefixed with the +standard “CI_” or the same prefix as the subclass prefix, or no +prefix at all.
          • +
          • Increased randomness with is_really_writable() to avoid file +collisions when hundreds or thousands of requests occur at once.
          • +
          • Switched some DIR_WRITE_MODE constant uses to FILE_WRITE_MODE +where files and not directories are being operated on.
          • +
          • get_mime_by_extension() is now case insensitive.
          • +
          • Added “default” to the list Reserved +Names.
          • +
          • Added ‘application/x-msdownload’ for .exe files and +‘application/x-gzip-compressed’ for .tgz files to +config/mimes.php.
          • +
          • Updated the output library to no longer compress output or send +content-length headers if the server runs with +zlib.output_compression enabled.
          • +
          • Eliminated a call to is_really_writable() on each request unless +it is really needed (Output caching)
          • +
          • Documented append_output() in the Output +Class.
          • +
          • Documented a second argument in the decode() function for the +Encrypt Class.
          • +
          • Documented db->close().
          • +
          • Updated the router to support a default route with any number of +segments.
          • +
          • Moved _remove_invisible_characters() function from the +Security Library to common +functions.
          • +
          • Added audio/mpeg3 as a valid mime type for MP3.
          • +
          +
        • +
        +
        +

        Bug fixes for 2.0.0

        +
          +
        • Fixed a bug where you could not change the User-Agent when sending +email.
        • +
        • Fixed a bug where the Output class would send incorrect cached output +for controllers implementing their own _output() method.
        • +
        • Fixed a bug where a failed query would not have a saved query +execution time causing errors in the Profiler
        • +
        • Fixed a bug that was writing log entries when multiple identical +helpers and plugins were loaded.
        • +
        • Fixed assorted user guide typos or examples (#10693, #8951, #7825, +#8660, #7883, #6771, #10656).
        • +
        • Fixed a language key in the profiler: “profiler_no_memory_usage” +to “profiler_no_memory”.
        • +
        • Fixed an error in the Zip library that didn’t allow downloading on +PHP 4 servers.
        • +
        • Fixed a bug in the Form Validation library where fields passed as +rule parameters were not being translated (#9132)
        • +
        • Modified inflector helper to properly pluralize words that end in +‘ch’ or ‘sh’
        • +
        • Fixed a bug in xss_clean() that was not allowing hyphens in query +strings of submitted URLs.
        • +
        • Fixed bugs in get_dir_file_info() and get_file_info() in the +File Helper with recursion, and file paths on Windows.
        • +
        • Fixed a bug where Active Record override parameter would not let you +disable Active Record if it was enabled in your database config file.
        • +
        • Fixed a bug in reduce_double_slashes() in the String Helper to +properly remove duplicate leading slashes (#7585)
        • +
        • Fixed a bug in values_parsing() of the XML-RPC library which +prevented NULL variables typed as ‘string’ from being handled +properly.
        • +
        • Fixed a bug were form_open_multipart() didn’t accept string +attribute arguments (#10930).
        • +
        • Fixed a bug (#10470) where get_mime_by_extension() was case +sensitive.
        • +
        • Fixed a bug where some error messages for the SQLite and Oracle +drivers would not display.
        • +
        • Fixed a bug where files created with the Zip Library would result in +file creation dates of 1980.
        • +
        • Fixed a bug in the Session library that would result in PHP error +when attempting to store values with objects.
        • +
        • Fixed a bug where extending the Controller class would result in a +fatal PHP error.
        • +
        • Fixed a PHP Strict Standards Error in the index.php file.
        • +
        • Fixed a bug where getimagesize() was being needlessly checked on +non-image files in is_allowed_type().
        • +
        • Fixed a bug in the Encryption library where an empty key was not +triggering an error.
        • +
        • Fixed a bug in the Email library where CC and BCC recipients were not +reset when using the clear() method (#109).
        • +
        • Fixed a bug in the URL Helper where prep_url() could cause a PHP +error on PHP versions < 5.1.2.
        • +
        • Added a log message in core/output if the cache directory config +value was not found.
        • +
        • Fixed a bug where multiple libraries could not be loaded by passing +an array to load->library()
        • +
        • Fixed a bug in the html helper where too much white space was +rendered between the src and alt tags in the img() function.
        • +
        • Fixed a bug in the profilers _compile_queries() function.
        • +
        • Fixed a bug in the date helper where the DATE_ISO8601 variable was +returning an incorrectly formatted date string.
        • +
        +
        +
        +
        +

        Version 1.7.2

        +

        Release Date: September 11, 2009 +Hg Tag: v1.7.2

        +
          +
        • Libraries
            +
          • Added a new Cart Class.
          • +
          • Added the ability to pass $config[‘file_name’] for the File +Uploading Class and rename the +uploaded file.
          • +
          • Changed order of listed user-agents so Safari would more +accurately report itself. (#6844)
          • +
          +
        • +
        • Database
            +
          • Switched from using gettype() in escape() to is_* methods, since +future PHP versions might change its output.
          • +
          • Updated all database drivers to handle arrays in escape_str()
          • +
          • Added escape_like_str() method for escaping strings to be used +in LIKE conditions
          • +
          • Updated Active Record to utilize the new LIKE escaping mechanism.
          • +
          • Added reconnect() method to DB drivers to try to keep alive / +reestablish a connection after a long idle.
          • +
          • Modified MSSQL driver to use mssql_get_last_message() for error +messages.
          • +
          +
        • +
        • Helpers
            +
          • Added form_multiselect() to the Form +helper.
          • +
          • Modified form_hidden() in the Form +helper to accept multi-dimensional +arrays.
          • +
          • Modified form_prep() in the Form +helper to keep track of prepped +fields to avoid multiple prep/mutation from subsequent calls which +can occur when using Form Validation and form helper functions to +output form fields.
          • +
          • Modified directory_map() in the Directory +helper to allow the inclusion of +hidden files, and to return FALSE on failure to read directory.
          • +
          • Modified the Smiley helper to work +with multiple fields and insert the smiley at the last known +cursor position.
          • +
          +
        • +
        • General
            +
          • Compatible with PHP 5.3.0.
          • +
          • Modified show_error() to allow sending +of HTTP server response codes.
          • +
          • Modified show_404() to send 404 status +code, removing non-CGI compatible header() statement from +error_404.php template.
          • +
          • Added set_status_header() to the Common +functions to allow use when the +Output class is unavailable.
          • +
          • Added is_php() to Common +functions to facilitate PHP +version comparisons.
          • +
          • Added 2 CodeIgniter “cheatsheets” (thanks to DesignFellow.com for +this contribution).
          • +
          +
        • +
        +
        +

        Bug fixes for 1.7.2

        +
          +
        • Fixed assorted user guide typos or examples (#6743, #7214, #7516, +#7287, #7852, #8224, #8324, #8349).
        • +
        • Fixed a bug in the Form Validation library where multiple callbacks +weren’t working (#6110)
        • +
        • doctype helper default value was missing a “1”.
        • +
        • Fixed a bug in the language class when outputting an error for an +unfound file.
        • +
        • Fixed a bug in the Calendar library where the shortname was output +for “May”.
        • +
        • Fixed a bug with ORIG_PATH_INFO that was allowing URIs of just a +slash through.
        • +
        • Fixed a fatal error in the Oracle and ODBC drivers (#6752)
        • +
        • Fixed a bug where xml_from_result() was checking for a nonexistent +method.
        • +
        • Fixed a bug where Database Forge’s add_column and modify_column +were not looping through when sent multiple fields.
        • +
        • Fixed a bug where the File Helper was using ‘/’ instead of the +DIRECTORY_SEPARATOR constant.
        • +
        • Fixed a bug to prevent PHP errors when attempting to use sendmail on +servers that have manually disabled the PHP popen() function.
        • +
        • Fixed a bug that would cause PHP errors in XML-RPC data if the PHP +data type did not match the specified XML-RPC type.
        • +
        • Fixed a bug in the XML-RPC class with parsing dateTime.iso8601 data +types.
        • +
        • Fixed a case sensitive string replacement in xss_clean()
        • +
        • Fixed a bug in form_textarea() where form data was not prepped +correctly.
        • +
        • Fixed a bug in form_prep() causing it to not preserve entities in +the user’s original input when called back into a form element
        • +
        • Fixed a bug in _protect_identifiers() where the swap prefix +($swap_pre) was not being observed.
        • +
        • Fixed a bug where the 400 status header sent with the ‘disallowed URI +characters’ was not compatible with CGI environments.
        • +
        • Fixed a bug in the typography class where heading tags could have +paragraph tags inserted when using auto_typography().
        • +
        +
        +
        +
        +

        Version 1.7.1

        +

        Release Date: February 10, 2009 +Hg Tag: 1.7.1

        +
          +
        • Libraries
            +
          • Fixed an arbitrary script execution security flaw (#6068) in the +Form Validation library (thanks to hkk)
          • +
          • Changed default current page indicator in the Pagination library +to use <strong> instead of <b>
          • +
          • A “HTTP/1.1 400 Bad Request” header is now sent when disallowed +characters are encountered.
          • +
          • Added <big>, <small>, <q>, and <tt> to the Typography parser’s +inline elements.
          • +
          • Added more accurate error reporting for the Email library when +using sendmail.
          • +
          • Removed a strict type check from the rotate() function of the +Image Manipulation Class.
          • +
          • Added enhanced error checking in file saving in the Image library +when using the GD lib.
          • +
          • Added an additional newline between multipart email headers and +the MIME message text for better compatibility with a variety of +MUAs.
          • +
          • Made modest improvements to efficiency and accuracy of +explode_name() in the Image lib.
          • +
          +
        • +
        • Database
            +
          • Added where_in to the list of expected arguments received by +delete().
          • +
          +
        • +
        • Helpers
            +
          • Added the ability to have optgroups in form_dropdown() within the +form helper.
          • +
          • Added a doctype() function to the HTML +helper.
          • +
          • Added ability to force lowercase for url_title() in the URL +helper.
          • +
          • Changed the default “type” of form_button() to “button” from +“submit” in the form helper.
          • +
          • Changed redirect() in the URL helper to allow redirections to URLs +outside of the CI site.
          • +
          • Updated get_cookie() to try to fetch the cookie using the global +cookie prefix if the requested cookie name doesn’t exist.
          • +
          +
        • +
        • Other Changes
            +
          • Improved security in xss_clean() to help prevent attacks +targeting Internet Explorer.
          • +
          • Added ‘application/msexcel’ to config/mimes.php for .xls files.
          • +
          • Added ‘proxy_ips’ config item to whitelist reverse proxy servers +from which to trust the HTTP_X_FORWARDED_FOR header to to +determine the visitor’s IP address.
          • +
          • Improved accuracy of Upload::is_allowed_filetype() for images +(#6715)
          • +
          +
        • +
        +
        +

        Bug fixes for 1.7.1

        +
          +
        • Database
            +
          • Fixed a bug when doing ‘random’ on order_by() (#5706).
          • +
          • Fixed a bug where adding a primary key through Forge could fail +(#5731).
          • +
          • Fixed a bug when using DB cache on multiple databases (#5737).
          • +
          • Fixed a bug where TRUNCATE was not considered a “write” query +(#6619).
          • +
          • Fixed a bug where csv_from_result() was checking for a +nonexistent method.
          • +
          • Fixed a bug _protect_identifiers() where it was improperly +removing all pipe symbols from items
          • +
          +
        • +
        • Fixed assorted user guide typos or examples (#5998, #6093, #6259, +#6339, #6432, #6521).
        • +
        • Fixed a bug in the MySQLi driver when no port is specified
        • +
        • Fixed a bug (#5702), in which the field label was not being fetched +properly, when “matching” one field to another.
        • +
        • Fixed a bug in which identifers were not being escaped properly when +reserved characters were used.
        • +
        • Fixed a bug with the regular expression used to protect submitted +paragraph tags in auto typography.
        • +
        • Fixed a bug where double dashes within tag attributes were being +converted to em dash entities.
        • +
        • Fixed a bug where double spaces within tag attributes were being +converted to non-breaking space entities.
        • +
        • Fixed some accuracy issues with curly quotes in +Typography::format_characters()
        • +
        • Changed a few docblock comments to reflect actual return values.
        • +
        • Fixed a bug with high ascii characters in subject and from email +headers.
        • +
        • Fixed a bug in xss_clean() where whitespace following a validated +character entity would not be preserved.
        • +
        • Fixed a bug where HTML comments and <pre> tags were being parsed in +Typography::auto_typography().
        • +
        • Fixed a bug with non-breaking space cleanup in +Typography::auto_typography().
        • +
        • Fixed a bug in database escaping where a compound statement (ie: +SUM()) wasn’t handled correctly with database prefixes.
        • +
        • Fixed a bug when an opening quote is preceded by a paragraph tag and +immediately followed by another tag.
        • +
        • Fixed a bug in the Text Helper affecting some locales where +word_censor() would not work on words beginning or ending with an +accented character.
        • +
        • Fixed a bug in the Text Helper character limiter where the provided +limit intersects the last word of the string.
        • +
        • Fixed a bug (#6342) with plural() in the Inflection helper with words +ending in “y”.
        • +
        • Fixed bug (#6517) where Routed URI segments returned by +URI::rsegment() method were incorrect for the default controller.
        • +
        • Fixed a bug (#6706) in the Security Helper where xss_clean() was +using a deprecated second argument.
        • +
        • Fixed a bug in the URL helper url_title() function where trailing +periods were allowed at the end of a URL.
        • +
        • Fixed a bug (#6669) in the Email class when CRLF’s are used for the +newline character with headers when used with the “mail” protocol.
        • +
        • Fixed a bug (#6500) where URI::A_filter_uri() was exit()ing an +error instead of using show_error().
        • +
        • Fixed a bug (#6592) in the File Helper where get_dir_file_info() +where recursion was not occurring properly.
        • +
        • Tweaked Typography::auto_typography() for some edge-cases.
        • +
        +
        +
        +
        +

        Version 1.7

        +

        Release Date: October 23, 2008 +Hg Tag: 1.7.0

        +
          +
        • Libraries
            +
          • Added a new Form Validation +Class. It simplifies setting +rules and field names, supports arrays as field names, allows +groups of validation rules to be saved in a config file, and adds +some helper functions for use in view files. Please note that +the old Validation class is now deprecated. We will leave it in +the library folder for some time so that existing applications +that use it will not break, but you are encouraged to migrate to +the new version.
          • +
          • Updated the Sessions class so that +any custom data being saved gets stored to a database rather than +the session cookie (assuming you are using a database to store +session data), permitting much more data to be saved.
          • +
          • Added the ability to store libraries in subdirectories within +either the main “libraries” or the local application “libraries” +folder. Please see the Loader class for +more info.
          • +
          • Added the ability to assign library objects to your own variable +names when you use $this->load->library(). Please see the Loader +class for more info.
          • +
          • Added controller class/method info to Profiler +class and support for multiple database +connections.
          • +
          • Improved the “auto typography” feature and moved it out of the +helper into its own Typography +Class.
          • +
          • Improved performance and accuracy of xss_clean(), including +reduction of false positives on image/file tests.
          • +
          • Improved Parser class to allow +multiple calls to the parse() function. The output of each is +appended in the output.
          • +
          • Added max_filename option to set a file name length limit in the +File Upload Class.
          • +
          • Added set_status_header() function to Output +class.
          • +
          • Modified Pagination class to only +output the “First” link when the link for page one would not be +shown.
          • +
          • Added support for mb_strlen in the Form +Validation class so that +multi-byte languages will calculate string lengths properly.
          • +
          +
        • +
        • Database
            +
          • Improved Active Record class to allow full path column and table +names: hostname.database.table.column. Also improved the alias +handling.
          • +
          • Improved how table and column names are escaped and prefixed. It +now honors full path names when adding prefixes and escaping.
          • +
          • Added Active Record caching feature to “update” and “delete” +functions.
          • +
          • Added removal of non-printing control characters in escape_str() +of DB drivers that do not have native PHP escaping mechanisms +(mssql, oci8, odbc), to avoid potential SQL errors, and possible +sources of SQL injection.
          • +
          • Added port support to MySQL, MySQLi, and MS SQL database drivers.
          • +
          • Added driver name variable in each DB driver, based on bug report +#4436.
          • +
          +
        • +
        • Helpers
            +
          • Added several new “setting” functions to the Form +helper that allow POST data to be +retrieved and set into forms. These are intended to be used on +their own, or with the new Form Validation +Class.
          • +
          • Added current_url() and uri_segments() to URL +helper.
          • +
          • Altered auto_link() in the URL +helper so that email addresses with +“+” included will be linked.
          • +
          • Added meta() function to HTML +helper.
          • +
          • Improved accuracy of calculations in Number +helper.
          • +
          • Removed added newlines (“\n”) from most form and html helper +functions.
          • +
          • Tightened up validation in the Date +helper function human_to_unix(), +and eliminated the POSIX regex.
          • +
          • Updated Date helper to match the +world’s current time zones and offsets.
          • +
          • Modified url_title() in the URL +helper to remove characters and digits +that are part of character entities, to allow dashes, underscores, +and periods regardless of the $separator, and to allow uppercase +characters.
          • +
          • Added support for arbitrary attributes in anchor_popup() of the +URL helper.
          • +
          +
        • +
        • Other Changes
            +
          • Added PHP Style Guide to docs.
          • +
          • Added sanitization in xss_clean() for a deprecated HTML tag that +could be abused in user input in Internet Explorer.
          • +
          • Added a few openxml document mime types, and an additional mobile +agent to mimes.php and user_agents.php respectively.
          • +
          • Added a file lock check during caching, before trying to write to +the file.
          • +
          • Modified Cookie key cleaning to unset a few troublesome key names +that can be present in certain environments, preventing CI from +halting execution.
          • +
          • Changed the output of the profiler to use style attribute rather +than clear, and added the id “codeigniter_profiler” to the +container div.
          • +
          +
        • +
        +
        +

        Bug fixes for 1.7.0

        +
          +
        • Fixed bug in xss_clean() that could remove some desirable tag +attributes.
        • +
        • Fixed assorted user guide typos or examples (#4807, #4812, #4840, +#4862, #4864, #4899, #4930, #5006, #5071, #5158, #5229, #5254, +#5351).
        • +
        • Fixed an edit from 1.6.3 that made the $robots array in +user_agents.php go poof.
        • +
        • Fixed a bug in the Email library with +quoted-printable encoding improperly encoding space and tab +characters.
        • +
        • Modified XSS sanitization to no longer add semicolons after &[single +letter], such as in M&M’s, B&B, etc.
        • +
        • Modified XSS sanitization to no longer strip XHTML image tags of +closing slashes.
        • +
        • Fixed a bug in the Session class when database sessions are used +where upon session update all userdata would be errantly written to +the session cookie.
        • +
        • Fixed a bug (#4536) in backups with the MySQL driver where some +legacy code was causing certain characters to be double escaped.
        • +
        • Fixed a routing bug (#4661) that occurred when the default route +pointed to a subfolder.
        • +
        • Fixed the spelling of “Dhaka” in the timezone_menu() function of the +Date helper.
        • +
        • Fixed the spelling of “raspberry” in config/smileys.php.
        • +
        • Fixed incorrect parenthesis in form_open() function (#5135).
        • +
        • Fixed a bug that was ignoring case when comparing controller methods +(#4560).
        • +
        • Fixed a bug (#4615) that was not setting SMTP authorization settings +when using the initialize function.
        • +
        • Fixed a bug in highlight_code() in the Text +helper that would leave a stray </span> +in certain cases.
        • +
        • Fixed Oracle bug (#3306) that was preventing multiple queries in one +action.
        • +
        • Fixed ODBC bug that was ignoring connection params due to its use of +a constructor.
        • +
        • Fixed a DB driver bug with num_rows() that would cause an error with +the Oracle driver.
        • +
        • Fixed MS SQL bug (#4915). Added brackets around database name in MS +SQL driver when selecting the database, in the event that reserved +characters are used in the name.
        • +
        • Fixed a DB caching bug (4718) in which the path was incorrect when no +URI segments were present.
        • +
        • Fixed Image_lib class bug #4562. A path was not defined for NetPBM.
        • +
        • Fixed Image_lib class bug #4532. When cropping an image with +identical height/width settings on output, a copy is made.
        • +
        • Fixed DB_driver bug (4900), in which a database error was not being +logged correctly.
        • +
        • Fixed DB backup bug in which field names were not being escaped.
        • +
        • Fixed a DB Active Record caching bug in which multiple calls to +cached data were not being honored.
        • +
        • Fixed a bug in the Session class that was disallowing slashes in the +serialized array.
        • +
        • Fixed a Form Validation bug in which the “isset” error message was +being trigged by the “required” rule.
        • +
        • Fixed a spelling error in a Loader error message.
        • +
        • Fixed a bug (5050) with IP validation with empty segments.
        • +
        • Fixed a bug in which the parser was being greedy if multiple +identical sets of tags were encountered.
        • +
        +
        +
        +
        +

        Version 1.6.3

        +

        Release Date: June 26, 2008 +Hg Tag: v1.6.3

        +

        Version 1.6.3 is a security and maintenance release and is recommended +for all users.

        +
          +
        • Database
            +
          • Modified MySQL/MySQLi Forge class to give explicit names to keys
          • +
          • Added ability to set multiple column non-primary keys to the +Forge class
          • +
          • Added ability to set additional database config values in DSN +connections via the query string.
          • +
          +
        • +
        • Libraries
            +
          • Set the mime type check in the Upload +class to reference the global +mimes variable.
          • +
          • Added support for query strings to the Pagination +class, automatically detected or +explicitly declared.
          • +
          • Added get_post() to the Input class.
          • +
          • Documented get() in the Input class.
          • +
          • Added the ability to automatically output language items as form +labels in the Language class.
          • +
          +
        • +
        • Helpers +
        • +
        • Other changes
            +
          • Improved security in xss_clean().
          • +
          • Removed an unused Router reference in _display_cache().
          • +
          • Added ability to use xss_clean() to test +images for XSS, useful for upload +security.
          • +
          • Considerably expanded list of mobile user-agents in +config/user_agents.php.
          • +
          • Charset information in the userguide has been moved above title +for internationalization purposes (#4614).
          • +
          • Added “Using Associative Arrays In a Request Parameter” example to +the XMLRPC userguide page.
          • +
          • Removed maxlength and size as automatically added attributes of +form_input() in the form helper.
          • +
          • Documented the language file use of byte_format() in the number +helper.
          • +
          +
        • +
        +
        +

        Bug fixes for 1.6.3

        +
          +
        • Added a language key for valid_emails in validation_lang.php.
        • +
        • Amended fixes for bug (#3419) with parsing DSN database connections.
        • +
        • Moved the _has_operator() function (#4535) into DB_driver from +DB_active_rec.
        • +
        • Fixed a syntax error in upload_lang.php.
        • +
        • Fixed a bug (#4542) with a regular expression in the Image library.
        • +
        • Fixed a bug (#4561) where orhaving() wasn’t properly passing values.
        • +
        • Removed some unused variables from the code (#4563).
        • +
        • Fixed a bug where having() was not adding an = into the statement +(#4568).
        • +
        • Fixed assorted user guide typos or examples (#4574, #4706).
        • +
        • Added quoted-printable headers to Email class when the multi-part +override is used.
        • +
        • Fixed a double opening <p> tag in the index pages of each system +directory.
        • +
        +
        +
        +
        +

        Version 1.6.2

        +

        Release Date: May 13, 2008 +Hg Tag: 1.6.2

        +
          +
        • Active Record
            +
          • Added the ability to prevent escaping in having() clauses.
          • +
          • Added rename_table() into DBForge.
          • +
          • Fixed a bug that wasn’t allowing escaping to be turned off if the +value of a query was NULL.
          • +
          • DB Forge is now assigned to any models that exist after loading +(#3457).
          • +
          +
        • +
        • Database
            +
          • Added Strict Mode to database +transactions.
          • +
          • Escape behaviour in where() clauses has changed; values in those +with the “FALSE” argument are no longer escaped (ie: quoted).
          • +
          +
        • +
        • Config
            +
          • Added ‘application/vnd.ms-powerpoint’ to list of mime types.
          • +
          • Added ‘audio/mpg’ to list of mime types.
          • +
          • Added new user-modifiable file constants.php containing file mode +and fopen constants.
          • +
          • Added the ability to set CRLF settings via config in the +Email class.
          • +
          +
        • +
        • Libraries
            +
          • Added increased security for filename handling in the Upload +library.
          • +
          • Added increased security for sessions for client-side data +tampering.
          • +
          • The MySQLi forge class is now in sync with MySQL forge.
          • +
          • Added the ability to set CRLF settings via config in the +Email class.
          • +
          • Unit Testing results are now +colour coded, and a change was made to the default template of +results.
          • +
          • Added a valid_emails rule to the Validation class.
          • +
          • The Zip class now exits within download().
          • +
          • The Zip class has undergone a substantial +re-write for speed and clarity (thanks stanleyxu for the hard work +and code contribution in bug report #3425!)
          • +
          +
        • +
        • Helpers
            +
          • Added a Compatibility +Helper for using some common +PHP 5 functions safely in applications that might run on PHP 4 +servers (thanks Seppo for the hard work and code contribution!)
          • +
          • Added form_button() in the Form +helper.
          • +
          • Changed the radio() and checkbox() functions to default to not +checked by default.
          • +
          • Added the ability to include an optional HTTP Response Code in the +redirect() function of the URL +Helper.
          • +
          • Modified img() in the HTML Helper to +remove an unneeded space (#4208).
          • +
          • Modified anchor() in the URL helper +to no longer add a default title= attribute (#4209).
          • +
          • The Download helper now exits +within force_download().
          • +
          • Added get_dir_file_info(), get_file_info(), and +get_mime_by_extension() to the File +Helper.
          • +
          • Added symbolic_permissions() and octal_permissions() to the +File helper.
          • +
          +
        • +
        • Plugins
            +
          • Modified captcha generation to first look for the function +imagecreatetruecolor, and fallback to imagecreate if it isn’t +available (#4226).
          • +
          +
        • +
        • Other Changes
            +
          • Added ability for xss_clean() to accept +arrays.
          • +
          • Removed closing PHP tags from all PHP files to avoid accidental +output and potential ‘cannot modify headers’ errors.
          • +
          • Removed “scripts” from the auto-load search path. Scripts were +deprecated in Version 1.4.1 (September 21, 2006). If you still +need to use them for legacy reasons, they must now be manually +loaded in each Controller.
          • +
          • Added a Reserved Names page to +the userguide, and migrated reserved controller names into it.
          • +
          • Added a Common Functions page +to the userguide for globally available functions.
          • +
          • Improved security and performance of xss_clean().
          • +
          +
        • +
        +
        +

        Bugfixes for 1.6.2

        +
          +
        • Fixed a bug where SET queries were not being handled as “write” +queries.
        • +
        • Fixed a bug (#3191) with ORIG_PATH_INFO URI parsing.
        • +
        • Fixed a bug in DB Forge, when inserting an id field (#3456).
        • +
        • Fixed a bug in the table library that could cause identically +constructed rows to be dropped (#3459).
        • +
        • Fixed DB Driver and MySQLi result driver checking for resources +instead of objects (#3461).
        • +
        • Fixed an AR_caching error where it wasn’t tracking table aliases +(#3463).
        • +
        • Fixed a bug in AR compiling, where select statements with arguments +got incorrectly escaped (#3478).
        • +
        • Fixed an incorrect documentation of $this->load->language (#3520).
        • +
        • Fixed bugs (#3523, #4350) in get_filenames() with recursion and +problems with Windows when $include_path is used.
        • +
        • Fixed a bug (#4153) in the XML-RPC class preventing dateTime.iso8601 +from being used.
        • +
        • Fixed an AR bug with or_where_not_in() (#4171).
        • +
        • Fixed a bug with xss_clean() that would +add semicolons to GET URI variable strings.
        • +
        • Fixed a bug (#4206) in the Directory Helper where the directory +resource was not being closed, and minor improvements.
        • +
        • Fixed a bug in the FTP library where delete_dir() was not working +recursively (#4215).
        • +
        • Fixed a Validation bug when set_rules() is used with a non-array +field name and rule (#4220).
        • +
        • Fixed a bug (#4223) where DB caching would not work for returned DB +objects or multiple DB connections.
        • +
        • Fixed a bug in the Upload library that might output the same error +twice (#4390).
        • +
        • Fixed an AR bug when joining with a table alias and table prefix +(#4400).
        • +
        • Fixed a bug in the DB class testing the $params argument.
        • +
        • Fixed a bug in the Table library where the integer 0 in cell data +would be displayed as a blank cell.
        • +
        • Fixed a bug in link_tag() of the URL +helper where a key was passed instead of +a value.
        • +
        • Fixed a bug in DB_result::row() that prevented it from returning +individual fields with MySQL NULL values.
        • +
        • Fixed a bug where SMTP emails were not having dot transformation +performed on lines that begin with a dot.
        • +
        • Fixed a bug in display_error() in the DB driver that was +instantiating new Language and Exception objects, and not using the +error heading.
        • +
        • Fixed a bug (#4413) where a URI containing slashes only e.g. +‘http&#58;//example.com/index.php?//’ would result in PHP errors
        • +
        • Fixed an array to string conversion error in the Validation library +(#4425)
        • +
        • Fixed bug (#4451, #4299, #4339) where failed transactions will not +rollback when debug mode is enabled.
        • +
        • Fixed a bug (#4506) with overlay_watermark() in the Image library +preventing support for PNG-24s with alpha transparency
        • +
        • Fixed assorted user guide typos (#3453, #4364, #4379, #4399, #4408, +#4412, #4448, #4488).
        • +
        +
        +
        +
        +

        Version 1.6.1

        +

        Release Date: February 12, 2008 +Hg Tag: 1.6.1

        +
          +
        • Active Record +
        • +
        • Database drivers
            +
          • Added support for setting client character set and collation for +MySQLi.
          • +
          +
        • +
        • Core Changes
            +
          • Modified xss_clean() to be more intelligent with its handling of +URL encoded strings.
          • +
          • Added $_SERVER, $_FILES, $_ENV, and $_SESSION to sanitization +of globals.
          • +
          • Added a Path Helper.
          • +
          • Simplified _reindex_segments() in the URI class.
          • +
          • Escaped the ‘-‘ in the default ‘permitted_uri_chars’ config +item, to prevent errors if developers just try to add additional +characters to the end of the default expression.
          • +
          • Modified method calling to controllers to show a 404 when a +private or protected method is accessed via a URL.
          • +
          • Modified framework initiated 404s to log the controller and method +for invalid requests.
          • +
          +
        • +
        • Helpers
            +
          • Modified get_filenames() in the File Helper to return FALSE if +the $source_dir is not readable.
          • +
          +
        • +
        +
        +

        Bugfixes for 1.6.1

        +
          +
        • Deprecated is_numeric as a validation rule. Use of numeric and +integer are preferred.
        • +
        • Fixed bug (#3379) in DBForge with SQLite for table creation.
        • +
        • Made Active Record fully database prefix aware (#3384).
        • +
        • Fixed a bug where DBForge was outputting invalid SQL in Postgres by +adding brackets around the tables in FROM.
        • +
        • Changed the behaviour of Active Record’s update() to make the WHERE +clause optional (#3395).
        • +
        • Fixed a bug (#3396) where certain POST variables would cause a PHP +warning.
        • +
        • Fixed a bug in query binding (#3402).
        • +
        • Changed order of SQL keywords in the Profiler $highlight array so OR +would not be highlighted before ORDER BY.
        • +
        • Fixed a bug (#3404) where the MySQLi driver was testing if +$this->conn_id was a resource instead of an object.
        • +
        • Fixed a bug (#3419) connecting to a database via a DSN string.
        • +
        • Fixed a bug (#3445) where the routed segment array was not re-indexed +to begin with 1 when the default controller is used.
        • +
        • Fixed assorted user guide typos.
        • +
        +
        +
        +
        +

        Version 1.6.0

        +

        Release Date: January 30, 2008

        +
          +
        • DBForge
            +
          • Added DBForge to the database tools.
          • +
          • Moved create_database() and drop_database() into +DBForge.
          • +
          • Added add_field(), add_key(), create_table(), drop_table(), +add_column(), drop_column(), modify_column() into +DBForge.
          • +
          +
        • +
        • Active Record
            +
          • Added protect_identifiers() in Active +Record.
          • +
          • All AR queries are backticked if appropriate to the database.
          • +
          • Added where_in(), or_where_in(), where_not_in(), +or_where_not_in(), not_like() and or_not_like() to Active +Record.
          • +
          • Added support for limit() into update() and delete() statements in +Active Record.
          • +
          • Added empty_table() and truncate_table() to Active +Record.
          • +
          • Added the ability to pass an array of tables to the delete() +statement in Active Record.
          • +
          • Added count_all_results() function to Active +Record.
          • +
          • Added select_max(), select_min(), select_avg() and +select_sum() to Active Record.
          • +
          • Added the ability to use aliases with joins in Active +Record.
          • +
          • Added a third parameter to Active Record’s like() clause to +control where the wildcard goes.
          • +
          • Added a third parameter to set() in Active +Record that withholds escaping +data.
          • +
          • Changed the behaviour of variables submitted to the where() clause +with no values to auto set “IS NULL”
          • +
          +
        • +
        • Other Database Related
            +
          • MySQL driver now requires MySQL 4.1+
          • +
          • Added $this->DB->save_queries variable to DB driver, enabling +queries to get saved or not. Previously they were always saved.
          • +
          • Added $this->db->dbprefix() to manually add database prefixes.
          • +
          • Added ‘random’ as an order_by() option , and removed “rand()” as +a listed option as it was MySQL only.
          • +
          • Added a check for NULL fields in the MySQL database backup +utility.
          • +
          • Added “constrain_by_prefix” parameter to db->list_table() +function. If set to TRUE it will limit the result to only table +names with the current prefix.
          • +
          • Deprecated from Active Record; getwhere() for get_where(); +groupby() for group_by(); havingor() for having_or(); orderby() +for order_by; orwhere() for or_where(); and orlike() for +or_like().
          • +
          • Modified csv_from_result() to output CSV data more in the spirit +of basic rules of RFC 4180.
          • +
          • Added ‘char_set’ and ‘dbcollat’ database configuration settings, +to explicitly set the client communication properly.
          • +
          • Removed ‘active_r’ configuration setting and replaced with a +global $active_record setting, which is more in harmony with the +global nature of the behavior (#1834).
          • +
          +
        • +
        • Core changes
            +
          • Added ability to load multiple views, whose content will be +appended to the output in the order loaded.
          • +
          • Added the ability to auto-load +Models.
          • +
          • Reorganized the URI and Routes classes for better clarity.
          • +
          • Added Compat.php to allow function overrides for older versions of +PHP or PHP environments missing certain extensions / libraries
          • +
          • Added memory usage, GET, URI string data, and individual query +execution time to Profiler output.
          • +
          • Deprecated Scaffolding.
          • +
          • Added is_really_writable() to Common.php to provide a +cross-platform reliable method of testing file/folder writability.
          • +
          +
        • +
        • Libraries
            +
          • Changed the load protocol of Models to allow for extension.
          • +
          • Strengthened the Encryption library to help protect against man in +the middle attacks when MCRYPT_MODE_CBC mode is used.
          • +
          • Added Flashdata variables, session_id regeneration and +configurable session update times to the Session +class.
          • +
          • Removed ‘last_visit’ from the Session class.
          • +
          • Added a language entry for valid_ip validation error.
          • +
          • Modified prep_for_form() in the Validation class to accept +arrays, adding support for POST array validation (via callbacks +only)
          • +
          • Added an “integer” rule into the Validation library.
          • +
          • Added valid_base64() to the Validation library.
          • +
          • Documented clear() in the Image +Processing library.
          • +
          • Changed the behaviour of custom callbacks so that they no longer +trigger the “required” rule.
          • +
          • Modified Upload class $_FILES error messages to be more precise.
          • +
          • Moved the safe mode and auth checks for the Email library into the +constructor.
          • +
          • Modified variable names in _ci_load() method of Loader class to +avoid conflicts with view variables.
          • +
          • Added a few additional mime type variations for CSV.
          • +
          • Enabled the ‘system’ methods for the XML-RPC Server library, +except for ‘system.multicall’ which is still disabled.
          • +
          +
        • +
        • Helpers & Plugins
            +
          • Added link_tag() to the HTML +helper.
          • +
          • Added img() to the HTML helper.
          • +
          • Added ability to “extend” Helpers.
          • +
          • Added an email helper into core +helpers.
          • +
          • Added strip_quotes() function to string +helper.
          • +
          • Added reduce_multiples() function to string +helper.
          • +
          • Added quotes_to_entities() function to string +helper.
          • +
          • Added form_fieldset(), form_fieldset_close(), form_label(), +and form_reset() function to form +helper.
          • +
          • Added support for external urls in form_open().
          • +
          • Removed support for db_backup in MySQLi due to incompatible +functions.
          • +
          • Javascript Calendar plugin now uses the months and days from the +calendar language file, instead of hard-coded values, +internationalizing it.
          • +
          +
        • +
        • Documentation Changes
            +
          • Added Writing Documentation section +for the community to use in writing their own documentation.
          • +
          • Added titles to all user manual pages.
          • +
          • Added attributes into <html> of userguide for valid html.
          • +
          • Added Zip Encoding Class +to the table of contents of the userguide.
          • +
          • Moved part of the userguide menu javascript to an external file.
          • +
          • Documented distinct() in Active +Record.
          • +
          • Documented the timezones() function in the Date +Helper.
          • +
          • Documented unset_userdata in the Session +class.
          • +
          • Documented 2 config options to the Database +configuration page.
          • +
          +
        • +
        +
        +

        Bug fixes for Version 1.6.0

        +
          +
        • Fixed a bug (#1813) preventing using $CI->db in the same application +with returned database objects.
        • +
        • Fixed a bug (#1842) where the $this->uri->rsegments array would not +include the ‘index’ method if routed to the controller without an +implicit method.
        • +
        • Fixed a bug (#1872) where word_limiter() was not retaining +whitespace.
        • +
        • Fixed a bug (#1890) in csv_from_result() where content that +included the delimiter would break the file.
        • +
        • Fixed a bug (#2542)in the clean_email() method of the Email class to +allow for non-numeric / non-sequential array keys.
        • +
        • Fixed a bug (#2545) in _html_entity_decode_callback() when +‘global_xss_filtering’ is enabled.
        • +
        • Fixed a bug (#2668) in the parser class +where numeric data was ignored.
        • +
        • Fixed a bug (#2679) where the “previous” pagination link would get +drawn on the first page.
        • +
        • Fixed a bug (#2702) in _object_to_array that broke some types of +inserts and updates.
        • +
        • Fixed a bug (#2732) in the SQLite driver for PHP 4.
        • +
        • Fixed a bug (#2754) in Pagination to scan for non-positive +num_links.
        • +
        • Fixed a bug (#2762) in the Session +library where user agent matching would +fail on user agents ending with a space.
        • +
        • Fixed a bug (#2784) $field_names[] vs $Ffield_names[] in postgres +and sqlite drivers.
        • +
        • Fixed a bug (#2810) in the typography helper causing extraneous +paragraph tags when string contains tags.
        • +
        • Fixed a bug (#2849) where arguments passed to a subfolder controller +method would be incorrectly shifted, dropping the 3rd segment value.
        • +
        • Fixed a bug (#2858) which referenced a wrong variable in the Image +class.
        • +
        • Fixed a bug (#2875)when loading plugin files as _plugin. and not +_pi.
        • +
        • Fixed a bug (#2912) in get_filenames() in the File +Helper where the array wasn’t cleared +after each call.
        • +
        • Fixed a bug (#2974) in highlight_phrase() that caused an error with +slashes.
        • +
        • Fixed a bug (#3003) in the Encryption Library to support modes other +than MCRYPT_MODE_ECB
        • +
        • Fixed a bug (#3015) in the User Agent +library where more than 2 languages +where not reported with languages().
        • +
        • Fixed a bug (#3017) in the Email library +where some timezones were calculated incorrectly.
        • +
        • Fixed a bug (#3024) in which master_dim wasn’t getting reset by +clear() in the Image library.
        • +
        • Fixed a bug (#3156) in Text Helper highlight_code() causing PHP tags +to be handled incorrectly.
        • +
        • Fixed a bug (#3166) that prevented num_rows from working in Oracle.
        • +
        • Fixed a bug (#3175) preventing certain libraries from working +properly when autoloaded in PHP 4.
        • +
        • Fixed a bug (#3267) in the Typography Helper where unordered list was +listed “un.
        • +
        • Fixed a bug (#3268) where the Router could leave ‘/’ as the path.
        • +
        • Fixed a bug (#3279) where the Email class was sending the wrong +Content-Transfer-Encoding for some character sets.
        • +
        • Fixed a bug (#3284) where the rsegment array would not be set +properly if the requested URI contained more segments than the routed +URI.
        • +
        • Removed extraneous load of $CFG in _display_cache() of the Output +class (#3285).
        • +
        • Removed an extraneous call to loading models (#3286).
        • +
        • Fixed a bug (#3310) with sanitization of globals in the Input class +that could unset CI’s global variables.
        • +
        • Fixed a bug (#3314) which would cause the top level path to be +deleted in delete_files() of the File helper.
        • +
        • Fixed a bug (#3328) where the smiley helper might return an undefined +variable.
        • +
        • Fixed a bug (#3330) in the FTP class where a comparison wasn’t +getting made.
        • +
        • Removed an unused parameter from Profiler (#3332).
        • +
        • Fixed a bug in database driver where num_rows property wasn’t +getting updated.
        • +
        • Fixed a bug in the upload +library when allowed_files +wasn’t defined.
        • +
        • Fixed a bug in word_wrap() of the Text Helper that incorrectly +referenced an object.
        • +
        • Fixed a bug in Validation where valid_ip() wasn’t called properly.
        • +
        • Fixed a bug in Validation where individual error messages for +checkboxes wasn’t supported.
        • +
        • Fixed a bug in captcha calling an invalid PHP function.
        • +
        • Fixed a bug in the cookie helper “set_cookie” function. It was not +honoring the config settings.
        • +
        • Fixed a bug that was making validation callbacks required even when +not set as such.
        • +
        • Fixed a bug in the XML-RPC library so if a type is specified, a more +intelligent decision is made as to the default type.
        • +
        • Fixed an example of comma-separated emails in the email library +documentation.
        • +
        • Fixed an example in the Calendar library for Showing Next/Previous +Month Links.
        • +
        • Fixed a typo in the database language file.
        • +
        • Fixed a typo in the image language file “suppor” to “support”.
        • +
        • Fixed an example for XML RPC.
        • +
        • Fixed an example of accept_charset() in the User Agent +Library.
        • +
        • Fixed a typo in the docblock comments that had CodeIgniter spelled +CodeIgnitor.
        • +
        • Fixed a typo in the String Helper +(uniquid changed to uniqid).
        • +
        • Fixed typos in the email Language class +(email_attachment_unredable, email_filed_smtp_login), and FTP +Class (ftp_unable_to_remame).
        • +
        • Added a stripslashes() into the Upload Library.
        • +
        • Fixed a series of grammatical and spelling errors in the language +files.
        • +
        • Fixed assorted user guide typos.
        • +
        +
        +
        +
        +

        Version 1.5.4

        +

        Release Date: July 12, 2007

        +
          +
        • Added custom Language files to the +autoload options.
        • +
        • Added stripslashes() to the _clean_input_data() function in the +Input class when magic quotes is on so +that data will always be un-slashed within the framework.
        • +
        • Added array to string into the profiler.
        • +
        • Added some additional mime types in application/config/mimes.php.
        • +
        • Added filename_security() method to Input +library.
        • +
        • Added some additional arguments to the Inflection +helper singular() to compensate +for words ending in “s”. Also added a force parameter to pluralize().
        • +
        • Added $config[‘charset’] to the config file. Default value is +‘UTF-8’, used in some string handling functions.
        • +
        • Fixed MSSQL insert_id().
        • +
        • Fixed a logic error in the DB trans_status() function. It was +incorrectly returning TRUE on failure and FALSE on success.
        • +
        • Fixed a bug that was allowing multiple load attempts on extended +classes.
        • +
        • Fixed a bug in the bootstrap file that was incorrectly attempting to +discern the full server path even when it was explicity set by the +user.
        • +
        • Fixed a bug in the escape_str() function in the MySQL driver.
        • +
        • Fixed a typo in the Calendar library
        • +
        • Fixed a typo in rpcs.php library
        • +
        • Fixed a bug in the Zip library, providing +PC Zip file compatibility with Mac OS X
        • +
        • Fixed a bug in router that was ignoring the scaffolding route for +optimization
        • +
        • Fixed an IP validation bug.
        • +
        • Fixed a bug in display of POST keys in the +Profiler output
        • +
        • Fixed a bug in display of queries with characters that would be +interpreted as HTML in the Profiler +output
        • +
        • Fixed a bug in display of Email class print debugger with characters +that would be interpreted as HTML in the debugging output
        • +
        • Fixed a bug in the Content-Transfer-Encoding of HTML emails with the +quoted-printable MIME type
        • +
        • Fixed a bug where one could unset certain PHP superglobals by setting +them via GET or POST data
        • +
        • Fixed an undefined function error in the insert_id() function of the +PostgreSQL driver
        • +
        • Fixed various doc typos.
        • +
        • Documented two functions from the String +helper that were missing from the +user guide: trim_slashes() and reduce_double_slashes().
        • +
        • Docs now validate to XHTML 1 transitional
        • +
        • Updated the XSS Filtering to take into account the IE expression() +ability and improved certain deletions to prevent possible exploits
        • +
        • Modified the Router so that when Query Strings are Enabled, the +controller trigger and function trigger values are sanitized for +filename include security.
        • +
        • Modified the is_image() method in the Upload library to take into +account Windows IE 6/7 eccentricities when dealing with MIMEs
        • +
        • Modified XSS Cleaning routine to be more performance friendly and +compatible with PHP 5.2’s new PCRE backtrack and recursion limits.
        • +
        • Modified the URL Helper to type cast +the $title as a string in case a numeric value is supplied
        • +
        • Modified Form Helper form_dropdown() to type cast the keys and +values of the options array as strings, allowing numeric values to be +properly set as ‘selected’
        • +
        • Deprecated the use if is_numeric() in various places since it allows +periods. Due to compatibility problems with ctype_digit(), making it +unreliable in some installations, the following regular expression +was used instead: preg_match(“/[^0-9]/”, $n)
        • +
        • Deprecated: APPVER has been deprecated and replaced with CI_VERSION +for clarity.
        • +
        +
        +
        +

        Version 1.5.3

        +

        Release Date: April 15, 2007

        +
          +
        • Added array to string into the profiler
        • +
        • Code Igniter references updated to CodeIgniter
        • +
        • pMachine references updated to EllisLab
        • +
        • Fixed a bug in the repeater function of string +helper.
        • +
        • Fixed a bug in ODBC driver
        • +
        • Fixed a bug in result_array() that was returning an empty array when +no result is produced.
        • +
        • Fixed a bug in the redirect function of the url +helper.
        • +
        • Fixed an undefined variable in Loader
        • +
        • Fixed a version bug in the Postgres driver
        • +
        • Fixed a bug in the textarea function of the form helper for use with +strings
        • +
        • Fixed doc typos.
        • +
        +
        +
        +

        Version 1.5.2

        +

        Release Date: February 13, 2007

        +
          +
        • Added subversion information +to the downloads page.
        • +
        • Added support for captions in the Table +Library
        • +
        • Fixed a bug in the +download_helper that was causing +Internet Explorer to load rather than download
        • +
        • Fixed a bug in the Active Record Join function that was not taking +table prefixes into consideration.
        • +
        • Removed unescaped variables in error messages of Input and Router +classes
        • +
        • Fixed a bug in the Loader that was causing errors on Libraries loaded +twice. A debug message is now silently made in the log.
        • +
        • Fixed a bug in the form helper that +gave textarea a value attribute
        • +
        • Fixed a bug in the Image Library that +was ignoring resizing the same size image
        • +
        • Fixed some doc typos.
        • +
        +
        +
        +

        Version 1.5.1

        +

        Release Date: November 23, 2006

        +
          +
        • Added support for submitting arrays of libraries in the +$this->load->library function.
        • +
        • Added support for naming custom library files in lower or uppercase.
        • +
        • Fixed a bug related to output buffering.
        • +
        • Fixed a bug in the active record class that was not resetting query +data after a completed query.
        • +
        • Fixed a bug that was suppressing errors in controllers.
        • +
        • Fixed a problem that can cause a loop to occur when the config file +is missing.
        • +
        • Fixed a bug that occurred when multiple models were loaded with the +third parameter set to TRUE.
        • +
        • Fixed an oversight that was not unsetting globals properly in the +input sanitize function.
        • +
        • Fixed some bugs in the Oracle DB driver.
        • +
        • Fixed an incorrectly named variable in the MySQLi result driver.
        • +
        • Fixed some doc typos.
        • +
        +
        +
        +

        Version 1.5.0.1

        +

        Release Date: October 31, 2006

        +
          +
        • Fixed a problem in which duplicate attempts to load helpers and +classes were not being stopped.
        • +
        • Fixed a bug in the word_wrap() helper function.
        • +
        • Fixed an invalid color Hex number in the Profiler class.
        • +
        • Fixed a corrupted image in the user guide.
        • +
        +
        +
        +

        Version 1.5.0

        +

        Release Date: October 30, 2006

        +
          +
        • Added DB utility class, permitting DB +backups, CVS or XML files from DB results, and various other +functions.
        • +
        • Added Database Caching Class.
        • +
        • Added transaction support to the +database classes.
        • +
        • Added Profiler Class which generates a +report of Benchmark execution times, queries, and POST data at the +bottom of your pages.
        • +
        • Added User Agent Library which +allows browsers, robots, and mobile devises to be identified.
        • +
        • Added HTML Table Class , enabling tables +to be generated from arrays or database results.
        • +
        • Added Zip Encoding Library.
        • +
        • Added FTP Library.
        • +
        • Added the ability to extend +libraries and extend core +classes, in addition to being able to +replace them.
        • +
        • Added support for storing models within +sub-folders.
        • +
        • Added Download Helper.
        • +
        • Added simple_query() function to the +database classes
        • +
        • Added standard_date() function to +the Date Helper.
        • +
        • Added $query->free_result() to database +class.
        • +
        • Added $query->list_fields() function to +database class
        • +
        • Added $this->db->platform() function
        • +
        • Added new File Helper: +get_filenames()
        • +
        • Added new helper: Smiley Helper
        • +
        • Added support for <ul> and <ol> lists in the HTML +Helper
        • +
        • Added the ability to rewrite short +tags on-the-fly, converting them +to standard PHP statements, for those servers that do not support +short tags. This allows the cleaner syntax to be used regardless of +whether it’s supported by the server.
        • +
        • Added the ability to rename or relocate the “application” +folder.
        • +
        • Added more thorough initialization in the upload class so that all +class variables are reset.
        • +
        • Added “is_numeric” to validation, which uses the native PHP +is_numeric function.
        • +
        • Improved the URI handler to make it more reliable when the +$config[‘uri_protocol’] item is set to AUTO.
        • +
        • Moved most of the functions in the Controller class into the Loader +class, allowing fewer reserved function names for controllers when +running under PHP 5.
        • +
        • Updated the DB Result class to return an empty array when +$query->result() doesn’t produce a result.
        • +
        • Updated the input->cookie() and input->post() functions in Input +Class to permit arrays contained cookies +that are arrays to be run through the XSS filter.
        • +
        • Documented three functions from the Validation +class that were missing from the user +guide: set_select(), set_radio(), and set_checkbox().
        • +
        • Fixed a bug in the Email class related to SMTP Helo data.
        • +
        • Fixed a bug in the word wrapping helper and function in the email +class.
        • +
        • Fixed a bug in the validation class.
        • +
        • Fixed a bug in the typography helper that was incorrectly wrapping +block level elements in paragraph tags.
        • +
        • Fixed a problem in the form_prep() function that was double encoding +entities.
        • +
        • Fixed a bug that affects some versions of PHP when output buffering +is nested.
        • +
        • Fixed a bug that caused CI to stop working when the PHP magic +__get() or __set() functions were used within models or +controllers.
        • +
        • Fixed a pagination bug that was permitting negative values in the +URL.
        • +
        • Fixed an oversight in which the Loader class was not allowed to be +extended.
        • +
        • Changed _get_config() to get_config() since the function is not a +private one.
        • +
        • Deprecated “init” folder. Initialization happens automatically +now. Please see documentation.
        • +
        • Deprecated $this->db->field_names() USE +$this->db->list_fields()
        • +
        • Deprecated the $config[‘log_errors’] item from the config.php +file. Instead, $config[‘log_threshold’] can be set to “0” to turn it +off.
        • +
        +
        +
        +

        Version 1.4.1

        +

        Release Date: September 21, 2006

        +
          +
        • Added a new feature that passes URI segments directly to your +function calls as parameters. See the +Controllers page for more info.
        • +
        • Added support for a function named _output(), which when used in +your controllers will received the final rendered output from the +output class. More info in the Controllers +page.
        • +
        • Added several new functions in the URI +Class to let you retrieve and manipulate URI +segments that have been re-routed using the URI +Routing feature. Previously, the URI class did not +permit you to access any re-routed URI segments, but now it does.
        • +
        • Added $this->output->set_header() +function, which allows you to set server headers.
        • +
        • Updated plugins, helpers, and language classes to allow your +application folder to contain its own plugins, helpers, and language +folders. Previously they were always treated as global for your +entire installation. If your application folder contains any of these +resources they will be used instead the global ones.
        • +
        • Added Inflector helper.
        • +
        • Added element() function in the array +helper.
        • +
        • Added RAND() to active record orderby() function.
        • +
        • Added delete_cookie() and get_cookie() to Cookie +helper, even though the input class +has a cookie fetching function.
        • +
        • Added Oracle database driver (still undergoing testing so it might +have some bugs).
        • +
        • Added the ability to combine pseudo-variables and php variables in +the template parser class.
        • +
        • Added output compression option to the config file.
        • +
        • Removed the is_numeric test from the db->escape() function.
        • +
        • Fixed a MySQLi bug that was causing error messages not to contain +proper error data.
        • +
        • Fixed a bug in the email class which was causing it to ignore +explicitly set alternative headers.
        • +
        • Fixed a bug that was causing a PHP error when the Exceptions class +was called within the get_config() function since it was causing +problems.
        • +
        • Fixed an oversight in the cookie helper in which the config file +cookie settings were not being honored.
        • +
        • Fixed an oversight in the upload class. An item mentioned in the 1.4 +changelog was missing.
        • +
        • Added some code to allow email attachments to be reset when sending +batches of email.
        • +
        • Deprecated the application/scripts folder. It will continue to work +for legacy users, but it is recommended that you create your own +libraries or +models instead. It was originally added +before CI had user libraries or models, but it’s not needed anymore.
        • +
        • Deprecated the $autoload[‘core’] item from the autoload.php file. +Instead, please now use: $autoload[‘libraries’]
        • +
        • Deprecated the following database functions: +$this->db->smart_escape_str() and $this->db->fields().
        • +
        +
        +
        +

        Version 1.4.0

        +

        Release Date: September 17, 2006

        +
          +
        • Added Hooks feature, enabling you to tap +into and modify the inner workings of the framework without hacking +the core files.
        • +
        • Added the ability to organize controller files into +sub-folders. Kudos to Marco for +suggesting this (and the next two) feature.
        • +
        • Added regular expressions support for routing +rules.
        • +
        • Added the ability to remap function +calls within your controllers.
        • +
        • Added the ability to replace core system +classes with your own classes.
        • +
        • Added support for % character in URL.
        • +
        • Added the ability to supply full URLs using the +anchor() helper function.
        • +
        • Added mode parameter to file_write() +helper.
        • +
        • Added support for changing the port number in the Postgres +driver.
        • +
        • Moved the list of “allowed URI characters” out of the Router class +and into the config file.
        • +
        • Moved the MIME type array out of the Upload class and into its own +file in the application/config/ folder.
        • +
        • Updated the Upload class to allow the upload field name to be set +when calling do_upload().
        • +
        • Updated the Config Library to be able to +load config files silently, and to be able to assign config files to +their own index (to avoid collisions if you use multiple config +files).
        • +
        • Updated the URI Protocol code to allow more options so that URLs will +work more reliably in different environments.
        • +
        • Updated the form_open() helper to allow the GET method to be used.
        • +
        • Updated the MySQLi execute() function with some code to help prevent +lost connection errors.
        • +
        • Updated the SQLite Driver to check for object support before +attempting to return results as objects. If unsupported it returns an +array.
        • +
        • Updated the Models loader function to allow multiple loads of the +same model.
        • +
        • Updated the MS SQL driver so that single quotes are escaped.
        • +
        • Updated the Postgres and ODBC drivers for better compatibility.
        • +
        • Removed a strtolower() call that was changing URL segments to lower +case.
        • +
        • Removed some references that were interfering with PHP 4.4.1 +compatibility.
        • +
        • Removed backticks from Postgres class since these are not needed.
        • +
        • Renamed display() to _display() in the Output class to make it clear +that it’s a private function.
        • +
        • Deprecated the hash() function due to a naming conflict with a native +PHP function with the same name. Please use dohash() instead.
        • +
        • Fixed an bug that was preventing the input class from unsetting GET +variables.
        • +
        • Fixed a router bug that was making it too greedy when matching end +segments.
        • +
        • Fixed a bug that was preventing multiple discrete database calls.
        • +
        • Fixed a bug in which loading a language file was producing a “file +contains no data” message.
        • +
        • Fixed a session bug caused by the XSS Filtering feature inadvertently +changing the case of certain words.
        • +
        • Fixed some missing prefixes when using the database prefix feature.
        • +
        • Fixed a typo in the Calendar class (cal_november).
        • +
        • Fixed a bug in the form_checkbox() helper.
        • +
        • Fixed a bug that was allowing the second segment of the URI to be +identical to the class name.
        • +
        • Fixed an evaluation bug in the database initialization function.
        • +
        • Fixed a minor bug in one of the error messages in the language class.
        • +
        • Fixed a bug in the date helper timespan function.
        • +
        • Fixed an undefined variable in the DB Driver class.
        • +
        • Fixed a bug in which dollar signs used as binding replacement values +in the DB class would be treated as RegEx back-references.
        • +
        • Fixed a bug in the set_hash() function which was preventing MD5 from +being used.
        • +
        • Fixed a couple bugs in the Unit Testing class.
        • +
        • Fixed an incorrectly named variable in the Validation class.
        • +
        • Fixed an incorrectly named variable in the URI class.
        • +
        • Fixed a bug in the config class that was preventing the base URL from +being called properly.
        • +
        • Fixed a bug in the validation class that was not permitting callbacks +if the form field was empty.
        • +
        • Fixed a problem that was preventing scaffolding from working properly +with MySQLi.
        • +
        • Fixed some MS SQL bugs.
        • +
        • Fixed some doc typos.
        • +
        +
        +
        +

        Version 1.3.3

        +

        Release Date: June 1, 2006

        +
          +
        • Models do not connect automatically to the database as of this +version. More info here.
        • +
        • Updated the Sessions class to utilize the active record class when +running session related queries. Previously the queries assumed MySQL +syntax.
        • +
        • Updated alternator() function to re-initialize when called with no +arguments, allowing multiple calls.
        • +
        • Fixed a bug in the active record “having” function.
        • +
        • Fixed a problem in the validation class which was making checkboxes +be ignored when required.
        • +
        • Fixed a bug in the word_limiter() helper function. It was cutting +off the fist word.
        • +
        • Fixed a bug in the xss_clean function due to a PHP bug that affects +some versions of html_entity_decode.
        • +
        • Fixed a validation bug that was preventing rules from being set twice +in one controller.
        • +
        • Fixed a calendar bug that was not letting it use dynamically loaded +languages.
        • +
        • Fixed a bug in the active record class when using WHERE clauses with +LIKE
        • +
        • Fixed a bug in the hash() security helper.
        • +
        • Fixed some typos.
        • +
        +
        +
        +

        Version 1.3.2

        +

        Release Date: April 17, 2006

        +
          +
        • Changed the behavior of the validation class such that if a +“required” rule is NOT explicitly stated for a field then all other +tests get ignored.
        • +
        • Fixed a bug in the Controller class that was causing it to look in +the local “init” folder instead of the main system one.
        • +
        • Fixed a bug in the init_pagination file. The $config item was not +being set correctly.
        • +
        • Fixed a bug in the auto typography helper that was causing +inconsistent behavior.
        • +
        • Fixed a couple bugs in the Model class.
        • +
        • Fixed some documentation typos and errata.
        • +
        +
        +
        +

        Version 1.3.1

        +

        Release Date: April 11, 2006

        +
          +
        • Added a Unit Testing Library.
        • +
        • Added the ability to pass objects to the insert() and +update() database functions. This feature enables you to (among +other things) use your Model class +variables to run queries with. See the Models page for details.
        • +
        • Added the ability to pass objects to the view loading +function: $this->load->view(‘my_view’, +$object);
        • +
        • Added getwhere function to Active Record +class.
        • +
        • Added count_all function to Active Record +class.
        • +
        • Added language file for scaffolding and fixed a scaffolding bug that +occurs when there are no rows in the specified table.
        • +
        • Added $this->db->last_query(), which +allows you to view your last query that was run.
        • +
        • Added a new mime type to the upload class for better compatibility.
        • +
        • Changed how cache files are read to prevent PHP errors if the cache +file contains an XML tag, which PHP wants to interpret as a short +tag.
        • +
        • Fixed a bug in a couple of the active record functions (where and +orderby).
        • +
        • Fixed a bug in the image library when realpath() returns false.
        • +
        • Fixed a bug in the Models that was preventing libraries from being +used within them.
        • +
        • Fixed a bug in the “exact_length” function of the validation class.
        • +
        • Fixed some typos in the user guide
        • +
        +
        +
        +

        Version 1.3

        +

        Release Date: April 3, 2006

        +
          +
        • Added support for Models.
        • +
        • Redesigned the database libraries to support additional RDBMs +(Postgres, MySQLi, etc.).
        • +
        • Redesigned the Active Record class +to enable more varied types of queries with simpler syntax, and +advanced features like JOINs.
        • +
        • Added a feature to the database class that lets you run custom +function calls.
        • +
        • Added support for private functions in your +controllers. Any controller function name that starts with an +underscore will not be served by a URI request.
        • +
        • Added the ability to pass your own initialization parameters to your +custom core libraries when using +$this->load->library()
        • +
        • Added support for running standard query string URLs. +These can be optionally enabled in your config file.
        • +
        • Added the ability to specify a “suffix”, which will be +appended to your URLs. For example, you could add .html to your URLs, +making them appear static. This feature is enabled in your config +file.
        • +
        • Added a new error template for use with native PHP errors.
        • +
        • Added “alternator” function in the string +helpers.
        • +
        • Removed slashing from the input class. After much debate we decided +to kill this feature.
        • +
        • Change the commenting style in the scripts to the PEAR standard so +that IDEs and tools like phpDocumenter can harvest the comments.
        • +
        • Added better class and function name-spacing to avoid collisions with +user developed classes. All CodeIgniter classes are now prefixed with +CI_ and all controller methods are prefixed with _ci to avoid +controller collisions. A list of reserved function names can be +found here.
        • +
        • Redesigned how the “CI” super object is referenced, depending on +whether PHP 4 or 5 is being run, since PHP 5 allows a more graceful +way to manage objects that utilizes a bit less resources.
        • +
        • Deprecated: $this->db->use_table() has been deprecated. Please read +the Active Record page for +information.
        • +
        • Deprecated: $this->db->smart_escape_str() has been deprecated. +Please use this instead: $this->db->escape()
        • +
        • Fixed a bug in the exception handler which was preventing some PHP +errors from showing up.
        • +
        • Fixed a typo in the URI class. $this->total_segment() should be +plural: $this->total_segments()
        • +
        • Fixed some typos in the default calendar template
        • +
        • Fixed some typos in the user guide
        • +
        +
        +
        +

        Version 1.2

        +

        Release Date: March 21, 2006

        +
          +
        • Redesigned some internal aspects of the framework to resolve scoping +problems that surfaced during the beta tests. The problem was most +notable when instantiating classes in your constructors, particularly +if those classes in turn did work in their constructors.
        • +
        • Added a global function named +get_instance() allowing the main +CodeIgniter object to be accessible throughout your own classes.
        • +
        • Added new File Helper: +delete_files()
        • +
        • Added new URL Helpers: base_url(), +index_page()
        • +
        • Added the ability to create your own core +libraries and store them in your local +application directory.
        • +
        • Added an overwrite option to the Upload +class, enabling files to be +overwritten rather than having the file name appended.
        • +
        • Added Javascript Calendar plugin.
        • +
        • Added search feature to user guide. Note: This is done using Google, +which at the time of this writing has not crawled all the pages of +the docs.
        • +
        • Updated the parser class so that it allows tag pars within other tag +pairs.
        • +
        • Fixed a bug in the DB “where” function.
        • +
        • Fixed a bug that was preventing custom config files to be +auto-loaded.
        • +
        • Fixed a bug in the mysql class bind feature that prevented question +marks in the replacement data.
        • +
        • Fixed some bugs in the xss_clean function
        • +
        +
        +
        +

        Version Beta 1.1

        +

        Release Date: March 10, 2006

        +
          +
        • Added a Calendaring class.
        • +
        • Added support for running multiple +applications that share a common CodeIgniter +backend.
        • +
        • Moved the “uri protocol” variable from the index.php file into the +config.php file
        • +
        • Fixed a problem that was preventing certain function calls from +working within constructors.
        • +
        • Fixed a problem that was preventing the $this->load->library function +from working in constructors.
        • +
        • Fixed a bug that occurred when the session class was loaded using the +auto-load routine.
        • +
        • Fixed a bug that can happen with PHP versions that do not support the +E_STRICT constant
        • +
        • Fixed a data type error in the form_radio function (form helper)
        • +
        • Fixed a bug that was preventing the xss_clean function from being +called from the validation class.
        • +
        • Fixed the cookie related config names, which were incorrectly +specified as $conf rather than $config
        • +
        • Fixed a pagination problem in the scaffolding.
        • +
        • Fixed a bug in the mysql class “where” function.
        • +
        • Fixed a regex problem in some code that trimmed duplicate slashes.
        • +
        • Fixed a bug in the br() function in the HTML helper
        • +
        • Fixed a syntax mistake in the form_dropdown function in the Form +Helper.
        • +
        • Removed the “style” attributes form the form helpers.
        • +
        • Updated the documentation. Added “next/previous” links to each page +and fixed various typos.
        • +
        +
        +
        +

        Version Beta 1.0

        +

        Release Date: February 28, 2006

        +

        First publicly released version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/contributing/index.html b/sna/user_guide/contributing/index.html new file mode 100644 index 0000000..59f767c --- /dev/null +++ b/sna/user_guide/contributing/index.html @@ -0,0 +1,618 @@ + + + + + + + + + + Contributing to CodeIgniter — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Contributing to CodeIgniter
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Contributing to CodeIgniter

        + +

        CodeIgniter is a community driven project and accepts contributions of code +and documentation from the community. These contributions are made in the form +of Issues or Pull Requests +on the CodeIgniter repository on GitHub.

        +

        Issues are a quick way to point out a bug. If you find a bug or documentation +error in CodeIgniter then please check a few things first:

        +
          +
        • There is not already an open Issue
        • +
        • The issue has already been fixed (check the develop branch, or look for +closed Issues)
        • +
        • Is it something really obvious that you fix it yourself?
        • +
        +

        Reporting issues is helpful but an even better approach is to send a Pull +Request, which is done by “Forking” the main repository and committing to your +own copy. This will require you to use the version control system called Git.

        +
        +

        Support

        +

        Please note that GitHub is not for general support questions! If you are +having trouble using a feature of CodeIgniter, ask for help on our +forums instead.

        +

        If you are not sure whether you are using something correctly or if you +have found a bug, again - please ask on the forums first.

        +
        +
        +

        Security

        +

        Did you find a security issue in CodeIgniter?

        +

        Please don’t disclose it publicly, but e-mail us at security@codeigniter.com, +or report it via our page on HackerOne.

        +

        If you’ve found a critical vulnerability, we’d be happy to credit you in our +ChangeLog <../changelog>.

        +
        +
        +

        Tips for a Good Issue Report

        +

        Use a descriptive subject line (eg parser library chokes on commas) rather than a vague one (eg. your code broke).

        +

        Address a single issue in a report.

        +

        Identify the CodeIgniter version (eg 3.0-develop) and the component if you know it (eg. parser library)

        +

        Explain what you expected to happen, and what did happen. +Include error messages and stacktrace, if any.

        +

        Include short code segments if they help to explain. +Use a pastebin or dropbox facility to include longer segments of code or screenshots - do not include them in the issue report itself. +This means setting a reasonable expiry for those, until the issue is resolved or closed.

        +

        If you know how to fix the issue, you can do so in your own fork & branch, and submit a pull request. +The issue report information above should be part of that.

        +

        If your issue report can describe the steps to reproduce the problem, that is great. +If you can include a unit test that reproduces the problem, that is even better, as it gives whoever is fixing +it a clearer target!

        +
        +
        +

        Guidelines

        +

        Before we look into how, here are the guidelines. If your Pull Requests fail +to pass these guidelines it will be declined and you will need to re-submit +when you’ve made the changes. This might sound a bit tough, but it is required +for us to maintain quality of the code-base.

        +
        +

        PHP Style

        +

        All code must meet the Style Guide, which is +essentially the Allman indent style, underscores and +readable operators. This makes certain that all code is the same format as the +existing code and means it will be as readable as possible.

        +
        +
        +

        Documentation

        +

        If you change anything that requires a change to documentation then you will +need to add it. New classes, methods, parameters, changing default values, etc +are all things that will require a change to documentation. The change-log +must also be updated for every change. Also PHPDoc blocks must be maintained.

        +
        +
        +

        Compatibility

        +

        CodeIgniter recommends PHP 5.6 or newer to be used, but it should be +compatible with PHP 5.3.7 so all code supplied must stick to this +requirement. If PHP 5.4 (and above) functions or features are used then +there must be a fallback for PHP 5.3.7.

        +
        +
        +

        Branching

        +

        CodeIgniter uses the Git-Flow branching model +which requires all pull requests to be sent to the “develop” branch. This is +where the next planned version will be developed. The “master” branch will +always contain the latest stable version and is kept clean so a “hotfix” (e.g: +an emergency security patch) can be applied to master to create a new version, +without worrying about other features holding it up. For this reason all +commits need to be made to “develop” and any sent to “master” will be closed +automatically. If you have multiple changes to submit, please place all +changes into their own branch on your fork.

        +

        One thing at a time: A pull request should only contain one change. That does +not mean only one commit, but one change - however many commits it took. The +reason for this is that if you change X and Y but send a pull request for both +at the same time, we might really want X but disagree with Y, meaning we +cannot merge the request. Using the Git-Flow branching model you can create +new branches for both of these features and send two requests.

        +
        +
        +

        Signing

        +

        You must sign your work, certifying that you either wrote the work or +otherwise have the right to pass it on to an open source project. git makes +this trivial as you merely have to use –signoff on your commits to your +CodeIgniter fork.

        +
        git commit --signoff
        +
        +
        +

        or simply

        +
        git commit -s
        +
        +
        +

        This will sign your commits with the information setup in your git config, e.g.

        +
        +
        Signed-off-by: John Q Public <john.public@example.com>
        +

        If you are using Tower there is a “Sign-Off” checkbox in the commit window. You +could even alias git commit to use the -s flag so you don’t have to think about +it.

        +

        By signing your work in this manner, you certify to a “Developer’s Certificate +of Origin”. The current version of this certificate is in the Developer’s Certificate of Origin 1.1 file +in the root of this documentation.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/caching.html b/sna/user_guide/database/caching.html new file mode 100644 index 0000000..c81b09d --- /dev/null +++ b/sna/user_guide/database/caching.html @@ -0,0 +1,643 @@ + + + + + + + + + + Database Caching Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Database Caching Class

        +

        The Database Caching Class permits you to cache your queries as text +files for reduced database load.

        +
        +

        Important

        +

        This class is initialized automatically by the database +driver when caching is enabled. Do NOT load this class manually.

        +
        +
        +

        Important

        +

        Not all query result functions are available when you +use caching. Please read this page carefully.

        +
        +
        +

        Enabling Caching

        +

        Caching is enabled in three steps:

        +
          +
        • Create a writable directory on your server where the cache files can +be stored.
        • +
        • Set the path to your cache folder in your +application/config/database.php file.
        • +
        • Enable the caching feature, either globally by setting the preference +in your application/config/database.php file, or manually as +described below.
        • +
        +

        Once enabled, caching will happen automatically whenever a page is +loaded that contains database queries.

        +
        +
        +

        How Does Caching Work?

        +

        CodeIgniter’s query caching system happens dynamically when your pages +are viewed. When caching is enabled, the first time a web page is +loaded, the query result object will be serialized and stored in a text +file on your server. The next time the page is loaded the cache file +will be used instead of accessing your database. Your database usage can +effectively be reduced to zero for any pages that have been cached.

        +

        Only read-type (SELECT) queries can be cached, since these are the only +type of queries that produce a result. Write-type (INSERT, UPDATE, etc.) +queries, since they don’t generate a result, will not be cached by the +system.

        +

        Cache files DO NOT expire. Any queries that have been cached will remain +cached until you delete them. The caching system permits you clear +caches associated with individual pages, or you can delete the entire +collection of cache files. Typically you’ll want to use the housekeeping +functions described below to delete cache files after certain events +take place, like when you’ve added new information to your database.

        +
        +
        +

        Will Caching Improve Your Site’s Performance?

        +

        Getting a performance gain as a result of caching depends on many +factors. If you have a highly optimized database under very little load, +you probably won’t see a performance boost. If your database is under +heavy use you probably will see an improved response, assuming your +file-system is not overly taxed. Remember that caching simply changes +how your information is retrieved, shifting it from being a database +operation to a file-system one.

        +

        In some clustered server environments, for example, caching may be +detrimental since file-system operations are so intense. On single +servers in shared environments, caching will probably be beneficial. +Unfortunately there is no single answer to the question of whether you +should cache your database. It really depends on your situation.

        +
        +
        +

        How are Cache Files Stored?

        +

        CodeIgniter places the result of EACH query into its own cache file. +Sets of cache files are further organized into sub-folders corresponding +to your controller functions. To be precise, the sub-folders are named +identically to the first two segments of your URI (the controller class +name and function name).

        +

        For example, let’s say you have a controller called blog with a function +called comments that contains three queries. The caching system will +create a cache folder called blog+comments, into which it will write +three cache files.

        +

        If you use dynamic queries that change based on information in your URI +(when using pagination, for example), each instance of the query will +produce its own cache file. It’s possible, therefore, to end up with +many times more cache files than you have queries.

        +
        +
        +

        Managing your Cache Files

        +

        Since cache files do not expire, you’ll need to build deletion routines +into your application. For example, let’s say you have a blog that +allows user commenting. Whenever a new comment is submitted you’ll want +to delete the cache files associated with the controller function that +serves up your comments. You’ll find two delete functions described +below that help you clear data.

        +
        +
        +

        Not All Database Functions Work with Caching

        +

        Lastly, we need to point out that the result object that is cached is a +simplified version of the full result object. For that reason, some of +the query result functions are not available for use.

        +

        The following functions ARE NOT available when using a cached result +object:

        +
          +
        • num_fields()
        • +
        • field_names()
        • +
        • field_data()
        • +
        • free_result()
        • +
        +

        Also, the two database resources (result_id and conn_id) are not +available when caching, since result resources only pertain to run-time +operations.

        +
        +

        Function Reference

        +
        +
        +
        +

        $this->db->cache_on() / $this->db->cache_off()

        +

        Manually enables/disables caching. This can be useful if you want to +keep certain queries from being cached. Example:

        +
        // Turn caching on
        +$this->db->cache_on();
        +$query = $this->db->query("SELECT * FROM mytable");
        +
        +// Turn caching off for this one query
        +$this->db->cache_off();
        +$query = $this->db->query("SELECT * FROM members WHERE member_id = '$current_user'");
        +
        +// Turn caching back on
        +$this->db->cache_on();
        +$query = $this->db->query("SELECT * FROM another_table");
        +
        +
        +
        +
        +

        $this->db->cache_delete()

        +

        Deletes the cache files associated with a particular page. This is +useful if you need to clear caching after you update your database.

        +

        The caching system saves your cache files to folders that correspond to +the URI of the page you are viewing. For example, if you are viewing a +page at example.com/index.php/blog/comments, the caching system will put +all cache files associated with it in a folder called blog+comments. To +delete those particular cache files you will use:

        +
        $this->db->cache_delete('blog', 'comments');
        +
        +
        +

        If you do not use any parameters the current URI will be used when +determining what should be cleared.

        +
        +
        +

        $this->db->cache_delete_all()

        +

        Clears all existing cache files. Example:

        +
        $this->db->cache_delete_all();
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/call_function.html b/sna/user_guide/database/call_function.html new file mode 100644 index 0000000..711ce6f --- /dev/null +++ b/sna/user_guide/database/call_function.html @@ -0,0 +1,530 @@ + + + + + + + + + + Custom Function Calls — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Custom Function Calls

        +
        +

        $this->db->call_function();

        +

        This function enables you to call PHP database functions that are not +natively included in CodeIgniter, in a platform independent manner. For +example, let’s say you want to call the mysql_get_client_info() +function, which is not natively supported by CodeIgniter. You could +do so like this:

        +
        $this->db->call_function('get_client_info');
        +
        +
        +

        You must supply the name of the function, without the mysql_ +prefix, in the first parameter. The prefix is added automatically based +on which database driver is currently being used. This permits you to +run the same function on different database platforms. Obviously not all +function calls are identical between platforms, so there are limits to +how useful this function can be in terms of portability.

        +

        Any parameters needed by the function you are calling will be added to +the second parameter.

        +
        $this->db->call_function('some_function', $param1, $param2, etc..);
        +
        +
        +

        Often, you will either need to supply a database connection ID or a +database result ID. The connection ID can be accessed using:

        +
        $this->db->conn_id;
        +
        +
        +

        The result ID can be accessed from within your result object, like this:

        +
        $query = $this->db->query("SOME QUERY");
        +
        +$query->result_id;
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/configuration.html b/sna/user_guide/database/configuration.html new file mode 100644 index 0000000..ac8a3c7 --- /dev/null +++ b/sna/user_guide/database/configuration.html @@ -0,0 +1,759 @@ + + + + + + + + + + Database Configuration — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Database Configuration

        +

        CodeIgniter has a config file that lets you store your database +connection values (username, password, database name, etc.). The config +file is located at application/config/database.php. You can also set +database connection values for specific +environments by placing database.php +in the respective environment config folder.

        +

        The config settings are stored in a multi-dimensional array with this +prototype:

        +
        $db['default'] = array(
        +        'dsn'   => '',
        +        'hostname' => 'localhost',
        +        'username' => 'root',
        +        'password' => '',
        +        'database' => 'database_name',
        +        'dbdriver' => 'mysqli',
        +        'dbprefix' => '',
        +        'pconnect' => TRUE,
        +        'db_debug' => TRUE,
        +        'cache_on' => FALSE,
        +        'cachedir' => '',
        +        'char_set' => 'utf8',
        +        'dbcollat' => 'utf8_general_ci',
        +        'swap_pre' => '',
        +        'encrypt' => FALSE,
        +        'compress' => FALSE,
        +        'stricton' => FALSE,
        +        'failover' => array()
        +);
        +
        +
        +

        Some database drivers (such as PDO, PostgreSQL, Oracle, ODBC) might +require a full DSN string to be provided. If that is the case, you +should use the ‘dsn’ configuration setting, as if you’re using the +driver’s underlying native PHP extension, like this:

        +
        // PDO
        +$db['default']['dsn'] = 'pgsql:host=localhost;port=5432;dbname=database_name';
        +
        +// Oracle
        +$db['default']['dsn'] = '//localhost/XE';
        +
        +
        +
        +

        Note

        +

        If you do not specify a DSN string for a driver that requires it, CodeIgniter +will try to build it with the rest of the provided settings.

        +
        +
        +

        Note

        +

        If you provide a DSN string and it is missing some valid settings (e.g. the +database character set), which are present in the rest of the configuration +fields, CodeIgniter will append them.

        +
        +

        You can also specify failovers for the situation when the main connection cannot connect for some reason. +These failovers can be specified by setting the failover for a connection like this:

        +
        $db['default']['failover'] = array(
        +                array(
        +                        'hostname' => 'localhost1',
        +                        'username' => '',
        +                        'password' => '',
        +                        'database' => '',
        +                        'dbdriver' => 'mysqli',
        +                        'dbprefix' => '',
        +                        'pconnect' => TRUE,
        +                        'db_debug' => TRUE,
        +                        'cache_on' => FALSE,
        +                        'cachedir' => '',
        +                        'char_set' => 'utf8',
        +                        'dbcollat' => 'utf8_general_ci',
        +                        'swap_pre' => '',
        +                        'encrypt' => FALSE,
        +                        'compress' => FALSE,
        +                        'stricton' => FALSE
        +                ),
        +                array(
        +                        'hostname' => 'localhost2',
        +                        'username' => '',
        +                        'password' => '',
        +                        'database' => '',
        +                        'dbdriver' => 'mysqli',
        +                        'dbprefix' => '',
        +                        'pconnect' => TRUE,
        +                        'db_debug' => TRUE,
        +                        'cache_on' => FALSE,
        +                        'cachedir' => '',
        +                        'char_set' => 'utf8',
        +                        'dbcollat' => 'utf8_general_ci',
        +                        'swap_pre' => '',
        +                        'encrypt' => FALSE,
        +                        'compress' => FALSE,
        +                        'stricton' => FALSE
        +                )
        +        );
        +
        +
        +

        You can specify as many failovers as you like.

        +

        The reason we use a multi-dimensional array rather than a more simple +one is to permit you to optionally store multiple sets of connection +values. If, for example, you run multiple environments (development, +production, test, etc.) under a single installation, you can set up a +connection group for each, then switch between groups as needed. For +example, to set up a “test” environment you would do this:

        +
        $db['test'] = array(
        +        'dsn'   => '',
        +        'hostname' => 'localhost',
        +        'username' => 'root',
        +        'password' => '',
        +        'database' => 'database_name',
        +        'dbdriver' => 'mysqli',
        +        'dbprefix' => '',
        +        'pconnect' => TRUE,
        +        'db_debug' => TRUE,
        +        'cache_on' => FALSE,
        +        'cachedir' => '',
        +        'char_set' => 'utf8',
        +        'dbcollat' => 'utf8_general_ci',
        +        'swap_pre' => '',
        +        'compress' => FALSE,
        +        'encrypt' => FALSE,
        +        'stricton' => FALSE,
        +        'failover' => array()
        +);
        +
        +
        +

        Then, to globally tell the system to use that group you would set this +variable located in the config file:

        +
        $active_group = 'test';
        +
        +
        +
        +

        Note

        +

        The name ‘test’ is arbitrary. It can be anything you want. By +default we’ve used the word “default” for the primary connection, +but it too can be renamed to something more relevant to your project.

        +
        +
        +

        Query Builder

        +

        The Query Builder Class is globally enabled or +disabled by setting the $query_builder variable in the database +configuration file to TRUE/FALSE (boolean). The default setting is TRUE. +If you are not using the +query builder class, setting it to FALSE will utilize fewer resources +when the database classes are initialized.

        +
        $query_builder = TRUE;
        +
        +
        +
        +

        Note

        +

        that some CodeIgniter classes such as Sessions require Query +Builder to be enabled to access certain functionality.

        +
        +
        +
        +

        Explanation of Values:

        +
        ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Name ConfigDescription
        dsnThe DSN connect string (an all-in-one configuration sequence).
        hostnameThe hostname of your database server. Often this is ‘localhost’.
        usernameThe username used to connect to the database.
        passwordThe password used to connect to the database.
        databaseThe name of the database you want to connect to.
        dbdriverThe database type. ie: mysqli, postgre, odbc, etc. Must be specified in lower case.
        dbprefixAn optional table prefix which will added to the table name when running +Query Builder queries. This permits multiple CodeIgniter +installations to share one database.
        pconnectTRUE/FALSE (boolean) - Whether to use a persistent connection.
        db_debugTRUE/FALSE (boolean) - Whether database errors should be displayed.
        cache_onTRUE/FALSE (boolean) - Whether database query caching is enabled, +see also Database Caching Class.
        cachedirThe absolute server path to your database query cache directory.
        char_setThe character set used in communicating with the database.
        dbcollat

        The character collation used in communicating with the database

        +
        +

        Note

        +

        Only used in the ‘mysql’ and ‘mysqli’ drivers.

        +
        +
        swap_preA default table prefix that should be swapped with dbprefix. This is useful for distributed +applications where you might run manually written queries, and need the prefix to still be +customizable by the end user.
        schemaThe database schema, defaults to ‘public’. Used by PostgreSQL and ODBC drivers.
        encrypt

        Whether or not to use an encrypted connection.

        +
        +
          +
        • ‘mysql’ (deprecated), ‘sqlsrv’ and ‘pdo/sqlsrv’ drivers accept TRUE/FALSE
        • +
        • ‘mysqli’ and ‘pdo/mysql’ drivers accept an array with the following options:
            +
          • ‘ssl_key’ - Path to the private key file
          • +
          • ‘ssl_cert’ - Path to the public key certificate file
          • +
          • ‘ssl_ca’ - Path to the certificate authority file
          • +
          • ‘ssl_capath’ - Path to a directory containing trusted CA certificats in PEM format
          • +
          • ‘ssl_cipher’ - List of allowed ciphers to be used for the encryption, separated by colons (‘:’)
          • +
          • ‘ssl_verify’ - TRUE/FALSE; Whether to verify the server certificate or not (‘mysqli’ only)
          • +
          +
        • +
        +
        +
        compressWhether or not to use client compression (MySQL only).
        strictonTRUE/FALSE (boolean) - Whether to force “Strict Mode” connections, good for ensuring strict SQL +while developing an application.
        port

        The database port number. To use this value you have to add a line to the database config array.

        +
        $db['default']['port'] = 5432;
        +
        +
        +
        +
        +

        Note

        +

        Depending on what database platform you are using (MySQL, PostgreSQL, +etc.) not all values will be needed. For example, when using SQLite you +will not need to supply a username or password, and the database name +will be the path to your database file. The information above assumes +you are using MySQL.

        +
        + + + + + +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/connecting.html b/sna/user_guide/database/connecting.html new file mode 100644 index 0000000..6f71b24 --- /dev/null +++ b/sna/user_guide/database/connecting.html @@ -0,0 +1,642 @@ + + + + + + + + + + Connecting to your Database — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Connecting to your Database

        +

        There are two ways to connect to a database:

        +
        +

        Automatically Connecting

        +

        The “auto connect” feature will load and instantiate the database class +with every page load. To enable “auto connecting”, add the word database +to the library array, as indicated in the following file:

        +

        application/config/autoload.php

        +
        +
        +

        Manually Connecting

        +

        If only some of your pages require database connectivity you can +manually connect to your database by adding this line of code in any +function where it is needed, or in your class constructor to make the +database available globally in that class.

        +
        $this->load->database();
        +
        +
        +

        If the above function does not contain any information in the first +parameter it will connect to the group specified in your database config +file. For most people, this is the preferred method of use.

        +
        +

        Available Parameters

        +
          +
        1. The database connection values, passed either as an array or a DSN +string.
        2. +
        3. TRUE/FALSE (boolean). Whether to return the connection ID (see +Connecting to Multiple Databases below).
        4. +
        5. TRUE/FALSE (boolean). Whether to enable the Query Builder class. Set +to TRUE by default.
        6. +
        +
        +
        +

        Manually Connecting to a Database

        +

        The first parameter of this function can optionally be used to +specify a particular database group from your config file, or you can +even submit connection values for a database that is not specified in +your config file. Examples:

        +

        To choose a specific group from your config file you can do this:

        +
        $this->load->database('group_name');
        +
        +
        +

        Where group_name is the name of the connection group from your config +file.

        +

        To connect manually to a desired database you can pass an array of +values:

        +
        $config['hostname'] = 'localhost';
        +$config['username'] = 'myusername';
        +$config['password'] = 'mypassword';
        +$config['database'] = 'mydatabase';
        +$config['dbdriver'] = 'mysqli';
        +$config['dbprefix'] = '';
        +$config['pconnect'] = FALSE;
        +$config['db_debug'] = TRUE;
        +$config['cache_on'] = FALSE;
        +$config['cachedir'] = '';
        +$config['char_set'] = 'utf8';
        +$config['dbcollat'] = 'utf8_general_ci';
        +$this->load->database($config);
        +
        +
        +

        For information on each of these values please see the configuration +page.

        +
        +

        Note

        +

        For the PDO driver, you should use the $config[‘dsn’] setting +instead of ‘hostname’ and ‘database’:

        +
        +

        +
        $config[‘dsn’] = ‘mysql:host=localhost;dbname=mydatabase’;
        +
        +
        +

        Or you can submit your database values as a Data Source Name. DSNs must +have this prototype:

        +
        $dsn = 'dbdriver://username:password@hostname/database';
        +$this->load->database($dsn);
        +
        +
        +

        To override default config values when connecting with a DSN string, add +the config variables as a query string.

        +
        $dsn = 'dbdriver://username:password@hostname/database?char_set=utf8&dbcollat=utf8_general_ci&cache_on=true&cachedir=/path/to/cache';
        +$this->load->database($dsn);
        +
        +
        +
        +
        +
        +

        Connecting to Multiple Databases

        +

        If you need to connect to more than one database simultaneously you can +do so as follows:

        +
        $DB1 = $this->load->database('group_one', TRUE);
        +$DB2 = $this->load->database('group_two', TRUE);
        +
        +
        +

        Note: Change the words “group_one” and “group_two” to the specific +group names you are connecting to (or you can pass the connection values +as indicated above).

        +

        By setting the second parameter to TRUE (boolean) the function will +return the database object.

        +
        +

        Note

        +

        When you connect this way, you will use your object name to issue +commands rather than the syntax used throughout this guide. In other +words, rather than issuing commands with:

        +
        +

        +
        $this->db->query();
        +
        $this->db->result();
        +
        etc...
        +

        +
        You will instead use:
        +

        +
        $DB1->query();
        +
        $DB1->result();
        +
        etc...
        +
        +
        +
        +

        Note

        +

        You don’t need to create separate database configurations if you +only need to use a different database on the same connection. You +can switch to a different database when you need to, like this:

        +
        +
        $this->db->db_select($database2_name);
        +
        +
        +
        +
        +

        Reconnecting / Keeping the Connection Alive

        +

        If the database server’s idle timeout is exceeded while you’re doing +some heavy PHP lifting (processing an image, for instance), you should +consider pinging the server by using the reconnect() method before +sending further queries, which can gracefully keep the connection alive +or re-establish it.

        +
        $this->db->reconnect();
        +
        +
        +
        +
        +

        Manually closing the Connection

        +

        While CodeIgniter intelligently takes care of closing your database +connections, you can explicitly close the connection.

        +
        $this->db->close();
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/db_driver_reference.html b/sna/user_guide/database/db_driver_reference.html new file mode 100644 index 0000000..d432a21 --- /dev/null +++ b/sna/user_guide/database/db_driver_reference.html @@ -0,0 +1,1484 @@ + + + + + + + + + + DB Driver Reference — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        DB Driver Reference

        +

        This is the platform-independent base DB implementation class. +This class will not be called directly. Rather, the adapter +class for the specific database will extend and instantiate it.

        +

        The how-to material for this has been split over several articles. +This article is intended to be a reference for them.

        +
        +

        Important

        +

        Not all methods are supported by all database drivers, +some of them may fail (and return FALSE) if the underlying +driver does not support them.

        +
        +
        +
        +class CI_DB_driver
        +
        +
        +initialize()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        Initialize database settings, establish a connection to +the database.

        +
        + +
        +
        +db_connect($persistent = TRUE)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $persistent (bool) – Whether to establish a persistent connection or a regular one
        • +
        +
        Returns:

        Database connection resource/object or FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Establish a connection with the database.

        +
        +

        Note

        +

        The returned value depends on the underlying +driver in use. For example, a mysqli instance +will be returned with the ‘mysqli’ driver.

        +
        +
        + +
        +
        +db_pconnect()
        +
        +++ + + + + + +
        Returns:Database connection resource/object or FALSE on failure
        Return type:mixed
        +

        Establish a persistent connection with the database.

        +
        +

        Note

        +

        This method is just an alias for db_connect(TRUE).

        +
        +
        + +
        +
        +reconnect()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        Keep / reestablish the database connection if no queries +have been sent for a length of time exceeding the +server’s idle timeout.

        +
        + +
        +
        +db_select([$database = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $database (string) – Database name
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Select / switch the current database.

        +
        + +
        +
        +db_set_charset($charset)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $charset (string) – Character set name
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Set client character set.

        +
        + +
        +
        +platform()
        +
        +++ + + + + + +
        Returns:Platform name
        Return type:string
        +

        The name of the platform in use (mysql, mssql, etc...).

        +
        + +
        +
        +version()
        +
        +++ + + + + + +
        Returns:The version of the database being used
        Return type:string
        +

        Database version number.

        +
        + +
        +
        +query($sql[, $binds = FALSE[, $return_object = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $sql (string) – The SQL statement to execute
        • +
        • $binds (array) – An array of binding data
        • +
        • $return_object (bool) – Whether to return a result object or not
        • +
        +
        Returns:

        TRUE for successful “write-type” queries, CI_DB_result instance (method chaining) on “query” success, FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Execute an SQL query.

        +

        Accepts an SQL string as input and returns a result object +upon successful execution of a “read” type query.

        +

        Returns:

        +
        +
          +
        • Boolean TRUE upon successful execution of a “write type” queries
        • +
        • Boolean FALSE upon failure
        • +
        • CI_DB_result object for “read type” queries
        • +
        +
        +
        + +
        +
        +simple_query($sql)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $sql (string) – The SQL statement to execute
        • +
        +
        Returns:

        Whatever the underlying driver’s “query” function returns

        +
        Return type:

        mixed

        +
        +

        A simplified version of the query() method, appropriate +for use when you don’t need to get a result object or to +just send a query to the database and not care for the result.

        +
        + +
        +
        +affected_rows()
        +
        +++ + + + + + +
        Returns:Number of rows affected
        Return type:int
        +

        Returns the number of rows changed by the last executed query.

        +

        Useful for checking how much rows were created, updated or deleted +during the last executed query.

        +
        + +
        +
        +trans_strict([$mode = TRUE])
        +
        +++ + + + + + +
        Parameters:
          +
        • $mode (bool) – Strict mode flag
        • +
        +
        Return type:

        void

        +
        +

        Enable/disable transaction “strict” mode.

        +

        When strict mode is enabled, if you are running multiple +groups of transactions and one group fails, all subsequent +groups will be rolled back.

        +

        If strict mode is disabled, each group is treated +autonomously, meaning a failure of one group will not +affect any others.

        +
        + +
        +
        +trans_off()
        +
        +++ + + + +
        Return type:void
        +

        Disables transactions at run-time.

        +
        + +
        +
        +trans_start([$test_mode = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $test_mode (bool) – Test mode flag
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Start a transaction.

        +
        + +
        +
        +trans_complete()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        Complete Transaction.

        +
        + +
        +
        +trans_status()
        +
        +++ + + + + + +
        Returns:TRUE if the transaction succeeded, FALSE if it failed
        Return type:bool
        +

        Lets you retrieve the transaction status flag to +determine if it has failed.

        +
        + +
        +
        +compile_binds($sql, $binds)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $sql (string) – The SQL statement
        • +
        • $binds (array) – An array of binding data
        • +
        +
        Returns:

        The updated SQL statement

        +
        Return type:

        string

        +
        +

        Compiles an SQL query with the bind values passed for it.

        +
        + +
        +
        +is_write_type($sql)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $sql (string) – The SQL statement
        • +
        +
        Returns:

        TRUE if the SQL statement is of “write type”, FALSE if not

        +
        Return type:

        bool

        +
        +

        Determines if a query is of a “write” type (such as +INSERT, UPDATE, DELETE) or “read” type (i.e. SELECT).

        +
        + +
        +
        +elapsed_time([$decimals = 6])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $decimals (int) – The number of decimal places
        • +
        +
        Returns:

        The aggregate query elapsed time, in microseconds

        +
        Return type:

        string

        +
        +

        Calculate the aggregate query elapsed time.

        +
        + +
        +
        +total_queries()
        +
        +++ + + + + + +
        Returns:The total number of queries executed
        Return type:int
        +

        Returns the total number of queries that have been +executed so far.

        +
        + +
        +
        +last_query()
        +
        +++ + + + + + +
        Returns:The last query executed
        Return type:string
        +

        Returns the last query that was executed.

        +
        + +
        +
        +escape($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (mixed) – The value to escape, or an array of multiple ones
        • +
        +
        Returns:

        The escaped value(s)

        +
        Return type:

        mixed

        +
        +

        Escapes input data based on type, including boolean and +NULLs.

        +
        + +
        +
        +escape_str($str[, $like = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (mixed) – A string value or array of multiple ones
        • +
        • $like (bool) – Whether or not the string will be used in a LIKE condition
        • +
        +
        Returns:

        The escaped string(s)

        +
        Return type:

        mixed

        +
        +

        Escapes string values.

        +
        +

        Warning

        +

        The returned strings do NOT include quotes +around them.

        +
        +
        + +
        +
        +escape_like_str($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (mixed) – A string value or array of multiple ones
        • +
        +
        Returns:

        The escaped string(s)

        +
        Return type:

        mixed

        +
        +

        Escape LIKE strings.

        +

        Similar to escape_str(), but will also escape the % +and _ wildcard characters, so that they don’t cause +false-positives in LIKE conditions.

        +
        +

        Important

        +

        The escape_like_str() method uses ‘!’ (exclamation mark) +to escape special characters for LIKE conditions. Because this +method escapes partial strings that you would wrap in quotes +yourself, it cannot automatically add the ESCAPE '!' +condition for you, and so you’ll have to manually do that.

        +
        +
        + +
        +
        +primary($table)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        +
        Returns:

        The primary key name, FALSE if none

        +
        Return type:

        string

        +
        +

        Retrieves the primary key of a table.

        +
        +

        Note

        +

        If the database platform does not support primary +key detection, the first column name may be assumed +as the primary key.

        +
        +
        + +
        +
        +count_all([$table = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        +
        Returns:

        Row count for the specified table

        +
        Return type:

        int

        +
        +

        Returns the total number of rows in a table, or 0 if no +table was provided.

        +
        + +
        +
        +list_tables([$constrain_by_prefix = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $constrain_by_prefix (bool) – TRUE to match table names by the configured dbprefix
        • +
        +
        Returns:

        Array of table names or FALSE on failure

        +
        Return type:

        array

        +
        +

        Gets a list of the tables in the current database.

        +
        + +
        +
        +table_exists($table_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table_name (string) – The table name
        • +
        +
        Returns:

        TRUE if that table exists, FALSE if not

        +
        Return type:

        bool

        +
        +

        Determine if a particular table exists.

        +
        + +
        +
        +list_fields($table)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – The table name
        • +
        +
        Returns:

        Array of field names or FALSE on failure

        +
        Return type:

        array

        +
        +

        Gets a list of the field names in a table.

        +
        + +
        +
        +field_exists($field_name, $table_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table_name (string) – The table name
        • +
        • $field_name (string) – The field name
        • +
        +
        Returns:

        TRUE if that field exists in that table, FALSE if not

        +
        Return type:

        bool

        +
        +

        Determine if a particular field exists.

        +
        + +
        +
        +field_data($table)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – The table name
        • +
        +
        Returns:

        Array of field data items or FALSE on failure

        +
        Return type:

        array

        +
        +

        Gets a list containing field data about a table.

        +
        + +
        +
        +escape_identifiers($item)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $item (mixed) – The item or array of items to escape
        • +
        +
        Returns:

        The input item(s), escaped

        +
        Return type:

        mixed

        +
        +

        Escape SQL identifiers, such as column, table and names.

        +
        + +
        +
        +insert_string($table, $data)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – The target table
        • +
        • $data (array) – An associative array of key/value pairs
        • +
        +
        Returns:

        The SQL INSERT statement, as a string

        +
        Return type:

        string

        +
        +

        Generate an INSERT statement string.

        +
        + +
        +
        +update_string($table, $data, $where)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – The target table
        • +
        • $data (array) – An associative array of key/value pairs
        • +
        • $where (mixed) – The WHERE statement conditions
        • +
        +
        Returns:

        The SQL UPDATE statement, as a string

        +
        Return type:

        string

        +
        +

        Generate an UPDATE statement string.

        +
        + +
        +
        +call_function($function)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $function (string) – Function name
        • +
        +
        Returns:

        The function result

        +
        Return type:

        string

        +
        +

        Runs a native PHP function , using a platform agnostic +wrapper.

        +
        + +
        +
        +cache_set_path([$path = ''])
        +
        +++ + + + + + +
        Parameters:
          +
        • $path (string) – Path to the cache directory
        • +
        +
        Return type:

        void

        +
        +

        Sets the directory path to use for caching storage.

        +
        + +
        +
        +cache_on()
        +
        +++ + + + + + +
        Returns:TRUE if caching is on, FALSE if not
        Return type:bool
        +

        Enable database results caching.

        +
        + +
        +
        +cache_off()
        +
        +++ + + + + + +
        Returns:TRUE if caching is on, FALSE if not
        Return type:bool
        +

        Disable database results caching.

        +
        + +
        +
        +cache_delete([$segment_one = ''[, $segment_two = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $segment_one (string) – First URI segment
        • +
        • $segment_two (string) – Second URI segment
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Delete the cache files associated with a particular URI.

        +
        + +
        +
        +cache_delete_all()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        Delete all cache files.

        +
        + +
        +
        +close()
        +
        +++ + + + +
        Return type:void
        +

        Close the DB Connection.

        +
        + +
        +
        +display_error([$error = ''[, $swap = ''[, $native = FALSE]]])
        +
        +++ + + + + + + + + + +
        Parameters:
          +
        • $error (string) – The error message
        • +
        • $swap (string) – Any “swap” values
        • +
        • $native (bool) – Whether to localize the message
        • +
        +
        Return type:

        void

        +
        Returns:

        Displays the DB error screensends the application/views/errors/error_db.php template

        +
        Return type:

        string

        +
        +

        Display an error message and stop script execution.

        +

        The message is displayed using the +application/views/errors/error_db.php template.

        +
        + +
        +
        +protect_identifiers($item[, $prefix_single = FALSE[, $protect_identifiers = NULL[, $field_exists = TRUE]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $item (string) – The item to work with
        • +
        • $prefix_single (bool) – Whether to apply the dbprefix even if the input item is a single identifier
        • +
        • $protect_identifiers (bool) – Whether to quote identifiers
        • +
        • $field_exists (bool) – Whether the supplied item contains a field name or not
        • +
        +
        Returns:

        The modified item

        +
        Return type:

        string

        +
        +

        Takes a column or table name (optionally with an alias) +and applies the configured dbprefix to it.

        +

        Some logic is necessary in order to deal with +column names that include the path.

        +

        Consider a query like this:

        +
        SELECT * FROM hostname.database.table.column AS c FROM hostname.database.table
        +
        +
        +

        Or a query with aliasing:

        +
        SELECT m.member_id, m.member_name FROM members AS m
        +
        +
        +

        Since the column name can include up to four segments +(host, DB, table, column) or also have an alias prefix, +we need to do a bit of work to figure this out and +insert the table prefix (if it exists) in the proper +position, and escape only the correct identifiers.

        +

        This method is used extensively by the Query Builder class.

        +
        + +
        + +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/examples.html b/sna/user_guide/database/examples.html new file mode 100644 index 0000000..9f11e7a --- /dev/null +++ b/sna/user_guide/database/examples.html @@ -0,0 +1,598 @@ + + + + + + + + + + Database Quick Start: Example Code — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Database Quick Start: Example Code

        +

        The following page contains example code showing how the database class +is used. For complete details please read the individual pages +describing each function.

        +
        +

        Initializing the Database Class

        +

        The following code loads and initializes the database class based on +your configuration settings:

        +
        $this->load->database();
        +
        +
        +

        Once loaded the class is ready to be used as described below.

        +

        Note: If all your pages require database access you can connect +automatically. See the connecting page for details.

        +
        +
        +

        Standard Query With Multiple Results (Object Version)

        +
        $query = $this->db->query('SELECT name, title, email FROM my_table');
        +
        +foreach ($query->result() as $row)
        +{
        +        echo $row->title;
        +        echo $row->name;
        +        echo $row->email;
        +}
        +
        +echo 'Total Results: ' . $query->num_rows();
        +
        +
        +

        The above result() function returns an array of objects. Example: +$row->title

        +
        +
        +

        Standard Query With Multiple Results (Array Version)

        +
        $query = $this->db->query('SELECT name, title, email FROM my_table');
        +
        +foreach ($query->result_array() as $row)
        +{
        +        echo $row['title'];
        +        echo $row['name'];
        +        echo $row['email'];
        +}
        +
        +
        +

        The above result_array() function returns an array of standard array +indexes. Example: $row[‘title’]

        +
        +
        +

        Standard Query With Single Result

        +
        $query = $this->db->query('SELECT name FROM my_table LIMIT 1');
        +$row = $query->row();
        +echo $row->name;
        +
        +
        +

        The above row() function returns an object. Example: $row->name

        +
        +
        +

        Standard Query With Single Result (Array version)

        +
        $query = $this->db->query('SELECT name FROM my_table LIMIT 1');
        +$row = $query->row_array();
        +echo $row['name'];
        +
        +
        +

        The above row_array() function returns an array. Example: +$row[‘name’]

        +
        +
        +

        Standard Insert

        +
        $sql = "INSERT INTO mytable (title, name) VALUES (".$this->db->escape($title).", ".$this->db->escape($name).")";
        +$this->db->query($sql);
        +echo $this->db->affected_rows();
        +
        +
        +
        +
        +

        Query Builder Query

        +

        The Query Builder Pattern gives you a simplified +means of retrieving data:

        +
        $query = $this->db->get('table_name');
        +
        +foreach ($query->result() as $row)
        +{
        +        echo $row->title;
        +}
        +
        +
        +

        The above get() function retrieves all the results from the supplied +table. The Query Builder class contains a full +compliment of functions for working with data.

        +
        +
        +

        Query Builder Insert

        +
        $data = array(
        +        'title' => $title,
        +        'name' => $name,
        +        'date' => $date
        +);
        +
        +$this->db->insert('mytable', $data);  // Produces: INSERT INTO mytable (title, name, date) VALUES ('{$title}', '{$name}', '{$date}')
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/forge.html b/sna/user_guide/database/forge.html new file mode 100644 index 0000000..8c58799 --- /dev/null +++ b/sna/user_guide/database/forge.html @@ -0,0 +1,1035 @@ + + + + + + + + + + Database Forge Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Database Forge Class

        +

        The Database Forge Class contains methods that help you manage your +database.

        + +
        +

        Initializing the Forge Class

        +
        +

        Important

        +

        In order to initialize the Forge class, your database +driver must already be running, since the forge class relies on it.

        +
        +

        Load the Forge Class as follows:

        +
        $this->load->dbforge()
        +
        +
        +

        You can also pass another database object to the DB Forge loader, in case +the database you want to manage isn’t the default one:

        +
        $this->myforge = $this->load->dbforge($this->other_db, TRUE);
        +
        +
        +

        In the above example, we’re passing a custom database object as the first +parameter and then tell it to return the dbforge object, instead of +assigning it directly to $this->dbforge.

        +
        +

        Note

        +

        Both of the parameters can be used individually, just pass an empty +value as the first one if you wish to skip it.

        +
        +

        Once initialized you will access the methods using the $this->dbforge +object:

        +
        $this->dbforge->some_method();
        +
        +
        +
        +
        +

        Creating and Dropping Databases

        +

        $this->dbforge->create_database(‘db_name’)

        +

        Permits you to create the database specified in the first parameter. +Returns TRUE/FALSE based on success or failure:

        +
        if ($this->dbforge->create_database('my_db'))
        +{
        +        echo 'Database created!';
        +}
        +
        +
        +

        $this->dbforge->drop_database(‘db_name’)

        +

        Permits you to drop the database specified in the first parameter. +Returns TRUE/FALSE based on success or failure:

        +
        if ($this->dbforge->drop_database('my_db'))
        +{
        +        echo 'Database deleted!';
        +}
        +
        +
        +
        +
        +

        Creating and Dropping Tables

        +

        There are several things you may wish to do when creating tables. Add +fields, add keys to the table, alter columns. CodeIgniter provides a +mechanism for this.

        +
        +

        Adding fields

        +

        Fields are created via an associative array. Within the array you must +include a ‘type’ key that relates to the datatype of the field. For +example, INT, VARCHAR, TEXT, etc. Many datatypes (for example VARCHAR) +also require a ‘constraint’ key.

        +
        $fields = array(
        +        'users' => array(
        +                'type' => 'VARCHAR',
        +                'constraint' => '100',
        +        ),
        +);
        +// will translate to "users VARCHAR(100)" when the field is added.
        +
        +
        +

        Additionally, the following key/values can be used:

        +
          +
        • unsigned/true : to generate “UNSIGNED” in the field definition.
        • +
        • default/value : to generate a default value in the field definition.
        • +
        • null/true : to generate “NULL” in the field definition. Without this, +the field will default to “NOT NULL”.
        • +
        • auto_increment/true : generates an auto_increment flag on the +field. Note that the field type must be a type that supports this, +such as integer.
        • +
        • unique/true : to generate a unique key for the field definition.
        • +
        +
        $fields = array(
        +        'blog_id' => array(
        +                'type' => 'INT',
        +                'constraint' => 5,
        +                'unsigned' => TRUE,
        +                'auto_increment' => TRUE
        +        ),
        +        'blog_title' => array(
        +                'type' => 'VARCHAR',
        +                'constraint' => '100',
        +                'unique' => TRUE,
        +        ),
        +        'blog_author' => array(
        +                'type' =>'VARCHAR',
        +                'constraint' => '100',
        +                'default' => 'King of Town',
        +        ),
        +        'blog_description' => array(
        +                'type' => 'TEXT',
        +                'null' => TRUE,
        +        ),
        +);
        +
        +
        +

        After the fields have been defined, they can be added using +$this->dbforge->add_field($fields); followed by a call to the +create_table() method.

        +

        $this->dbforge->add_field()

        +

        The add fields method will accept the above array.

        +
        +

        Passing strings as fields

        +

        If you know exactly how you want a field to be created, you can pass the +string into the field definitions with add_field()

        +
        $this->dbforge->add_field("label varchar(100) NOT NULL DEFAULT 'default label'");
        +
        +
        +
        +

        Note

        +

        Passing raw strings as fields cannot be followed by add_key() calls on those fields.

        +
        +
        +

        Note

        +

        Multiple calls to add_field() are cumulative.

        +
        +
        +
        +

        Creating an id field

        +

        There is a special exception for creating id fields. A field with type +id will automatically be assigned as an INT(9) auto_incrementing +Primary Key.

        +
        $this->dbforge->add_field('id');
        +// gives id INT(9) NOT NULL AUTO_INCREMENT
        +
        +
        +
        +
        +
        +

        Adding Keys

        +

        Generally speaking, you’ll want your table to have Keys. This is +accomplished with $this->dbforge->add_key(‘field’). An optional second +parameter set to TRUE will make it a primary key. Note that add_key() +must be followed by a call to create_table().

        +

        Multiple column non-primary keys must be sent as an array. Sample output +below is for MySQL.

        +
        $this->dbforge->add_key('blog_id', TRUE);
        +// gives PRIMARY KEY `blog_id` (`blog_id`)
        +
        +$this->dbforge->add_key('blog_id', TRUE);
        +$this->dbforge->add_key('site_id', TRUE);
        +// gives PRIMARY KEY `blog_id_site_id` (`blog_id`, `site_id`)
        +
        +$this->dbforge->add_key('blog_name');
        +// gives KEY `blog_name` (`blog_name`)
        +
        +$this->dbforge->add_key(array('blog_name', 'blog_label'));
        +// gives KEY `blog_name_blog_label` (`blog_name`, `blog_label`)
        +
        +
        +
        +
        +

        Creating a table

        +

        After fields and keys have been declared, you can create a new table +with

        +
        $this->dbforge->create_table('table_name');
        +// gives CREATE TABLE table_name
        +
        +
        +

        An optional second parameter set to TRUE adds an “IF NOT EXISTS” clause +into the definition

        +
        $this->dbforge->create_table('table_name', TRUE);
        +// gives CREATE TABLE IF NOT EXISTS table_name
        +
        +
        +

        You could also pass optional table attributes, such as MySQL’s ENGINE:

        +
        $attributes = array('ENGINE' => 'InnoDB');
        +$this->dbforge->create_table('table_name', FALSE, $attributes);
        +// produces: CREATE TABLE `table_name` (...) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
        +
        +
        +
        +

        Note

        +

        Unless you specify the CHARACTER SET and/or COLLATE attributes, +create_table() will always add them with your configured char_set +and dbcollat values, as long as they are not empty (MySQL only).

        +
        +
        +
        +

        Dropping a table

        +

        Execute a DROP TABLE statement and optionally add an IF EXISTS clause.

        +
        // Produces: DROP TABLE table_name
        +$this->dbforge->drop_table('table_name');
        +
        +// Produces: DROP TABLE IF EXISTS table_name
        +$this->dbforge->drop_table('table_name',TRUE);
        +
        +
        +
        +
        +

        Renaming a table

        +

        Executes a TABLE rename

        +
        $this->dbforge->rename_table('old_table_name', 'new_table_name');
        +// gives ALTER TABLE old_table_name RENAME TO new_table_name
        +
        +
        +
        +
        +
        +

        Modifying Tables

        +
        +

        Adding a Column to a Table

        +

        $this->dbforge->add_column()

        +

        The add_column() method is used to modify an existing table. It +accepts the same field array as above, and can be used for an unlimited +number of additional fields.

        +
        $fields = array(
        +        'preferences' => array('type' => 'TEXT')
        +);
        +$this->dbforge->add_column('table_name', $fields);
        +// Executes: ALTER TABLE table_name ADD preferences TEXT
        +
        +
        +

        If you are using MySQL or CUBIRD, then you can take advantage of their +AFTER and FIRST clauses to position the new column.

        +

        Examples:

        +
        // Will place the new column after the `another_field` column:
        +$fields = array(
        +        'preferences' => array('type' => 'TEXT', 'after' => 'another_field')
        +);
        +
        +// Will place the new column at the start of the table definition:
        +$fields = array(
        +        'preferences' => array('type' => 'TEXT', 'first' => TRUE)
        +);
        +
        +
        +
        +
        +

        Dropping a Column From a Table

        +

        $this->dbforge->drop_column()

        +

        Used to remove a column from a table.

        +
        $this->dbforge->drop_column('table_name', 'column_to_drop');
        +
        +
        +
        +
        +

        Modifying a Column in a Table

        +

        $this->dbforge->modify_column()

        +

        The usage of this method is identical to add_column(), except it +alters an existing column rather than adding a new one. In order to +change the name you can add a “name” key into the field defining array.

        +
        $fields = array(
        +        'old_name' => array(
        +                'name' => 'new_name',
        +                'type' => 'TEXT',
        +        ),
        +);
        +$this->dbforge->modify_column('table_name', $fields);
        +// gives ALTER TABLE table_name CHANGE old_name new_name TEXT
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_DB_forge
        +
        +
        +add_column($table[, $field = array()[, $_after = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name to add the column to
        • +
        • $field (array) – Column definition(s)
        • +
        • $_after (string) – Column for AFTER clause (deprecated)
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Adds a column to a table. Usage: See Adding a Column to a Table.

        +
        + +
        +
        +add_field($field)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (array) – Field definition to add
        • +
        +
        Returns:

        CI_DB_forge instance (method chaining)

        +
        Return type:

        CI_DB_forge

        +
        +

        Adds a field to the set that will be used to create a table. Usage: See Adding fields.

        +
        + +
        +
        +add_key($key[, $primary = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (array) – Name of a key field
        • +
        • $primary (bool) – Set to TRUE if it should be a primary key or a regular one
        • +
        +
        Returns:

        CI_DB_forge instance (method chaining)

        +
        Return type:

        CI_DB_forge

        +
        +

        Adds a key to the set that will be used to create a table. Usage: See Adding Keys.

        +
        + +
        +
        +create_database($db_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $db_name (string) – Name of the database to create
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Creates a new database. Usage: See Creating and Dropping Databases.

        +
        + +
        +
        +create_table($table[, $if_not_exists = FALSE[, array $attributes = array()]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Name of the table to create
        • +
        • $if_not_exists (string) – Set to TRUE to add an ‘IF NOT EXISTS’ clause
        • +
        • $attributes (string) – An associative array of table attributes
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Creates a new table. Usage: See Creating a table.

        +
        + +
        +
        +drop_column($table, $column_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $column_name (array) – The column name to drop
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Drops a column from a table. Usage: See Dropping a Column From a Table.

        +
        + +
        +
        +drop_database($db_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $db_name (string) – Name of the database to drop
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Drops a database. Usage: See Creating and Dropping Databases.

        +
        + +
        +
        +drop_table($table_name[, $if_exists = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Name of the table to drop
        • +
        • $if_exists (string) – Set to TRUE to add an ‘IF EXISTS’ clause
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Drops a table. Usage: See Dropping a table.

        +
        + +
        +
        +modify_column($table, $field)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $field (array) – Column definition(s)
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Modifies a table column. Usage: See Modifying a Column in a Table.

        +
        + +
        +
        +rename_table($table_name, $new_table_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Current of the table
        • +
        • $new_table_name (string) – New name of the table
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Renames a table. Usage: See Renaming a table.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/helpers.html b/sna/user_guide/database/helpers.html new file mode 100644 index 0000000..bf44b13 --- /dev/null +++ b/sna/user_guide/database/helpers.html @@ -0,0 +1,593 @@ + + + + + + + + + + Query Helper Methods — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Query Helper Methods

        +
        +

        Information From Executing a Query

        +

        $this->db->insert_id()

        +

        The insert ID number when performing database inserts.

        +
        +

        Note

        +

        If using the PDO driver with PostgreSQL, or using the Interbase +driver, this function requires a $name parameter, which specifies the +appropriate sequence to check for the insert id.

        +
        +

        $this->db->affected_rows()

        +

        Displays the number of affected rows, when doing “write” type queries +(insert, update, etc.).

        +
        +

        Note

        +

        In MySQL “DELETE FROM TABLE” returns 0 affected rows. The database +class has a small hack that allows it to return the correct number of +affected rows. By default this hack is enabled but it can be turned off +in the database driver file.

        +
        +

        $this->db->last_query()

        +

        Returns the last query that was run (the query string, not the result). +Example:

        +
        $str = $this->db->last_query();
        +
        +// Produces:  SELECT * FROM sometable....
        +
        +
        +
        +

        Note

        +

        Disabling the save_queries setting in your database +configuration will render this function useless.

        +
        +
        +
        +

        Information About Your Database

        +

        $this->db->count_all()

        +

        Permits you to determine the number of rows in a particular table. +Submit the table name in the first parameter. Example:

        +
        echo $this->db->count_all('my_table');
        +
        +// Produces an integer, like 25
        +
        +
        +

        $this->db->platform()

        +

        Outputs the database platform you are running (MySQL, MS SQL, Postgres, +etc...):

        +
        echo $this->db->platform();
        +
        +
        +

        $this->db->version()

        +

        Outputs the database version you are running:

        +
        echo $this->db->version();
        +
        +
        +
        +
        +

        Making Your Queries Easier

        +

        $this->db->insert_string()

        +

        This function simplifies the process of writing database inserts. It +returns a correctly formatted SQL insert string. Example:

        +
        $data = array('name' => $name, 'email' => $email, 'url' => $url);
        +
        +$str = $this->db->insert_string('table_name', $data);
        +
        +
        +

        The first parameter is the table name, the second is an associative +array with the data to be inserted. The above example produces:

        +
        INSERT INTO table_name (name, email, url) VALUES ('Rick', 'rick@example.com', 'example.com')
        +
        +
        +
        +

        Note

        +

        Values are automatically escaped, producing safer queries.

        +
        +

        $this->db->update_string()

        +

        This function simplifies the process of writing database updates. It +returns a correctly formatted SQL update string. Example:

        +
        $data = array('name' => $name, 'email' => $email, 'url' => $url);
        +
        +$where = "author_id = 1 AND status = 'active'";
        +
        +$str = $this->db->update_string('table_name', $data, $where);
        +
        +
        +

        The first parameter is the table name, the second is an associative +array with the data to be updated, and the third parameter is the +“where” clause. The above example produces:

        +
        UPDATE table_name SET name = 'Rick', email = 'rick@example.com', url = 'example.com' WHERE author_id = 1 AND status = 'active'
        +
        +
        +
        +

        Note

        +

        Values are automatically escaped, producing safer queries.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/index.html b/sna/user_guide/database/index.html new file mode 100644 index 0000000..9ce8b6e --- /dev/null +++ b/sna/user_guide/database/index.html @@ -0,0 +1,541 @@ + + + + + + + + + + Database Reference — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Database Reference
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Database Reference

        +

        CodeIgniter comes with a full-featured and very fast abstracted database +class that supports both traditional structures and Query Builder +patterns. The database functions offer clear, simple syntax.

        + +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/metadata.html b/sna/user_guide/database/metadata.html new file mode 100644 index 0000000..fa88b7b --- /dev/null +++ b/sna/user_guide/database/metadata.html @@ -0,0 +1,615 @@ + + + + + + + + + + Database Metadata — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Database Metadata

        +
        +

        Table MetaData

        +

        These functions let you fetch table information.

        +
        +

        List the Tables in Your Database

        +

        $this->db->list_tables();

        +

        Returns an array containing the names of all the tables in the database +you are currently connected to. Example:

        +
        $tables = $this->db->list_tables();
        +
        +foreach ($tables as $table)
        +{
        +        echo $table;
        +}
        +
        +
        +
        +
        +

        Determine If a Table Exists

        +

        $this->db->table_exists();

        +

        Sometimes it’s helpful to know whether a particular table exists before +running an operation on it. Returns a boolean TRUE/FALSE. Usage example:

        +
        if ($this->db->table_exists('table_name'))
        +{
        +        // some code...
        +}
        +
        +
        +
        +

        Note

        +

        Replace table_name with the name of the table you are looking for.

        +
        +
        +
        +
        +

        Field MetaData

        +
        +

        List the Fields in a Table

        +

        $this->db->list_fields()

        +

        Returns an array containing the field names. This query can be called +two ways:

        +

        1. You can supply the table name and call it from the $this->db-> +object:

        +
        $fields = $this->db->list_fields('table_name');
        +
        +foreach ($fields as $field)
        +{
        +        echo $field;
        +}
        +
        +
        +

        2. You can gather the field names associated with any query you run by +calling the function from your query result object:

        +
        $query = $this->db->query('SELECT * FROM some_table');
        +
        +foreach ($query->list_fields() as $field)
        +{
        +        echo $field;
        +}
        +
        +
        +
        +
        +

        Determine If a Field is Present in a Table

        +

        $this->db->field_exists()

        +

        Sometimes it’s helpful to know whether a particular field exists before +performing an action. Returns a boolean TRUE/FALSE. Usage example:

        +
        if ($this->db->field_exists('field_name', 'table_name'))
        +{
        +        // some code...
        +}
        +
        +
        +
        +

        Note

        +

        Replace field_name with the name of the column you are looking +for, and replace table_name with the name of the table you are +looking for.

        +
        +
        +
        +

        Retrieve Field Metadata

        +

        $this->db->field_data()

        +

        Returns an array of objects containing field information.

        +

        Sometimes it’s helpful to gather the field names or other metadata, like +the column type, max length, etc.

        +
        +

        Note

        +

        Not all databases provide meta-data.

        +
        +

        Usage example:

        +
        $fields = $this->db->field_data('table_name');
        +
        +foreach ($fields as $field)
        +{
        +        echo $field->name;
        +        echo $field->type;
        +        echo $field->max_length;
        +        echo $field->primary_key;
        +}
        +
        +
        +

        If you have run a query already you can use the result object instead of +supplying the table name:

        +
        $query = $this->db->query("YOUR QUERY");
        +$fields = $query->field_data();
        +
        +
        +

        The following data is available from this function if supported by your +database:

        +
          +
        • name - column name
        • +
        • max_length - maximum length of the column
        • +
        • primary_key - 1 if the column is a primary key
        • +
        • type - the type of the column
        • +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/queries.html b/sna/user_guide/database/queries.html new file mode 100644 index 0000000..b59b731 --- /dev/null +++ b/sna/user_guide/database/queries.html @@ -0,0 +1,659 @@ + + + + + + + + + + Queries — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Queries

        +
        +

        Query Basics

        +
        +

        Regular Queries

        +

        To submit a query, use the query function:

        +
        $this->db->query('YOUR QUERY HERE');
        +
        +
        +

        The query() function returns a database result object when “read” +type queries are run, which you can use to show your +results. When “write” type queries are run it simply +returns TRUE or FALSE depending on success or failure. When retrieving +data you will typically assign the query to your own variable, like +this:

        +
        $query = $this->db->query('YOUR QUERY HERE');
        +
        +
        +
        +
        +

        Simplified Queries

        +

        The simple_query method is a simplified version of the +$this->db->query() method. It DOES +NOT return a database result set, nor does it set the query timer, or +compile bind data, or store your query for debugging. It simply lets you +submit a query. Most users will rarely use this function.

        +

        It returns whatever the database drivers’ “execute” function returns. +That typically is TRUE/FALSE on success or failure for write type queries +such as INSERT, DELETE or UPDATE statements (which is what it really +should be used for) and a resource/object on success for queries with +fetchable results.

        +
        if ($this->db->simple_query('YOUR QUERY'))
        +{
        +        echo "Success!";
        +}
        +else
        +{
        +        echo "Query failed!";
        +}
        +
        +
        +
        +

        Note

        +

        PostgreSQL’s pg_exec() function (for example) always +returns a resource on success, even for write type queries. +So take that in mind if you’re looking for a boolean value.

        +
        +
        +
        +
        +

        Working with Database prefixes manually

        +

        If you have configured a database prefix and would like to prepend it to +a table name for use in a native SQL query for example, then you can use +the following:

        +
        $this->db->dbprefix('tablename'); // outputs prefix_tablename
        +
        +
        +

        If for any reason you would like to change the prefix programatically +without needing to create a new connection, you can use this method:

        +
        $this->db->set_dbprefix('newprefix');
        +$this->db->dbprefix('tablename'); // outputs newprefix_tablename
        +
        +
        +
        +
        +

        Protecting identifiers

        +

        In many databases it is advisable to protect table and field names - for +example with backticks in MySQL. Query Builder queries are +automatically protected, however if you need to manually protect an +identifier you can use:

        +
        $this->db->protect_identifiers('table_name');
        +
        +
        +
        +

        Important

        +

        Although the Query Builder will try its best to properly +quote any field and table names that you feed it, note that it +is NOT designed to work with arbitrary user input. DO NOT feed it +with unsanitized user data.

        +
        +

        This function will also add a table prefix to your table, assuming you +have a prefix specified in your database config file. To enable the +prefixing set TRUE (boolean) via the second parameter:

        +
        $this->db->protect_identifiers('table_name', TRUE);
        +
        +
        +
        +
        +

        Escaping Queries

        +

        It’s a very good security practice to escape your data before submitting +it into your database. CodeIgniter has three methods that help you do +this:

        +
          +
        1. $this->db->escape() This function determines the data type so +that it can escape only string data. It also automatically adds +single quotes around the data so you don’t have to:

          +
          $sql = "INSERT INTO table (title) VALUES(".$this->db->escape($title).")";
          +
          +
          +
        2. +
        3. $this->db->escape_str() This function escapes the data passed to +it, regardless of type. Most of the time you’ll use the above +function rather than this one. Use the function like this:

          +
          $sql = "INSERT INTO table (title) VALUES('".$this->db->escape_str($title)."')";
          +
          +
          +
        4. +
        5. $this->db->escape_like_str() This method should be used when +strings are to be used in LIKE conditions so that LIKE wildcards +(‘%’, ‘_’) in the string are also properly escaped.

          +
        6. +
        +
        $search = '20% raise';
        +$sql = "SELECT id FROM table WHERE column LIKE '%" .
        +    $this->db->escape_like_str($search)."%' ESCAPE '!'";
        +
        +
        +
        +

        Important

        +

        The escape_like_str() method uses ‘!’ (exclamation mark) +to escape special characters for LIKE conditions. Because this +method escapes partial strings that you would wrap in quotes +yourself, it cannot automatically add the ESCAPE '!' +condition for you, and so you’ll have to manually do that.

        +
        +
        +
        +

        Query Bindings

        +

        Bindings enable you to simplify your query syntax by letting the system +put the queries together for you. Consider the following example:

        +
        $sql = "SELECT * FROM some_table WHERE id = ? AND status = ? AND author = ?";
        +$this->db->query($sql, array(3, 'live', 'Rick'));
        +
        +
        +

        The question marks in the query are automatically replaced with the +values in the array in the second parameter of the query function.

        +

        Binding also work with arrays, which will be transformed to IN sets:

        +
        $sql = "SELECT * FROM some_table WHERE id IN ? AND status = ? AND author = ?";
        +$this->db->query($sql, array(array(3, 6), 'live', 'Rick'));
        +
        +
        +

        The resulting query will be:

        +
        SELECT * FROM some_table WHERE id IN (3,6) AND status = 'live' AND author = 'Rick'
        +
        +
        +

        The secondary benefit of using binds is that the values are +automatically escaped, producing safer queries. You don’t have to +remember to manually escape data; the engine does it automatically for +you.

        +
        +
        +

        Handling Errors

        +

        $this->db->error();

        +

        If you need to get the last error that has occurred, the error() method +will return an array containing its code and message. Here’s a quick +example:

        +
        if ( ! $this->db->simple_query('SELECT `example_field` FROM `example_table`'))
        +{
        +        $error = $this->db->error(); // Has keys 'code' and 'message'
        +}
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/query_builder.html b/sna/user_guide/database/query_builder.html new file mode 100644 index 0000000..69d029c --- /dev/null +++ b/sna/user_guide/database/query_builder.html @@ -0,0 +1,2715 @@ + + + + + + + + + + Query Builder Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Query Builder Class

        +

        CodeIgniter gives you access to a Query Builder class. This pattern +allows information to be retrieved, inserted, and updated in your +database with minimal scripting. In some cases only one or two lines +of code are necessary to perform a database action. +CodeIgniter does not require that each database table be its own class +file. It instead provides a more simplified interface.

        +

        Beyond simplicity, a major benefit to using the Query Builder features +is that it allows you to create database independent applications, since +the query syntax is generated by each database adapter. It also allows +for safer queries, since the values are escaped automatically by the +system.

        +
        +

        Note

        +

        If you intend to write your own queries you can disable this +class in your database config file, allowing the core database library +and adapter to utilize fewer resources.

        +
        + +
        +

        Selecting Data

        +

        The following functions allow you to build SQL SELECT statements.

        +

        $this->db->get()

        +

        Runs the selection query and returns the result. Can be used by itself +to retrieve all records from a table:

        +
        $query = $this->db->get('mytable');  // Produces: SELECT * FROM mytable
        +
        +
        +

        The second and third parameters enable you to set a limit and offset +clause:

        +
        $query = $this->db->get('mytable', 10, 20);
        +
        +// Executes: SELECT * FROM mytable LIMIT 20, 10
        +// (in MySQL. Other databases have slightly different syntax)
        +
        +
        +

        You’ll notice that the above function is assigned to a variable named +$query, which can be used to show the results:

        +
        $query = $this->db->get('mytable');
        +
        +foreach ($query->result() as $row)
        +{
        +        echo $row->title;
        +}
        +
        +
        +

        Please visit the result functions page for a full +discussion regarding result generation.

        +

        $this->db->get_compiled_select()

        +

        Compiles the selection query just like $this->db->get() but does not run +the query. This method simply returns the SQL query as a string.

        +

        Example:

        +
        $sql = $this->db->get_compiled_select('mytable');
        +echo $sql;
        +
        +// Prints string: SELECT * FROM mytable
        +
        +
        +

        The second parameter enables you to set whether or not the query builder query +will be reset (by default it will be reset, just like when using $this->db->get()):

        +
        echo $this->db->limit(10,20)->get_compiled_select('mytable', FALSE);
        +
        +// Prints string: SELECT * FROM mytable LIMIT 20, 10
        +// (in MySQL. Other databases have slightly different syntax)
        +
        +echo $this->db->select('title, content, date')->get_compiled_select();
        +
        +// Prints string: SELECT title, content, date FROM mytable LIMIT 20, 10
        +
        +
        +

        The key thing to notice in the above example is that the second query did not +utilize $this->db->from() and did not pass a table name into the first +parameter. The reason for this outcome is because the query has not been +executed using $this->db->get() which resets values or reset directly +using $this->db->reset_query().

        +

        $this->db->get_where()

        +

        Identical to the above function except that it permits you to add a +“where” clause in the second parameter, instead of using the db->where() +function:

        +
        $query = $this->db->get_where('mytable', array('id' => $id), $limit, $offset);
        +
        +
        +

        Please read the about the where function below for more information.

        +
        +

        Note

        +

        get_where() was formerly known as getwhere(), which has been removed

        +
        +

        $this->db->select()

        +

        Permits you to write the SELECT portion of your query:

        +
        $this->db->select('title, content, date');
        +$query = $this->db->get('mytable');
        +
        +// Executes: SELECT title, content, date FROM mytable
        +
        +
        +
        +

        Note

        +

        If you are selecting all (*) from a table you do not need to +use this function. When omitted, CodeIgniter assumes that you wish +to select all fields and automatically adds ‘SELECT *’.

        +
        +

        $this->db->select() accepts an optional second parameter. If you set it +to FALSE, CodeIgniter will not try to protect your field or table names. +This is useful if you need a compound select statement where automatic +escaping of fields may break them.

        +
        $this->db->select('(SELECT SUM(payments.amount) FROM payments WHERE payments.invoice_id=4') AS amount_paid', FALSE);
        +$query = $this->db->get('mytable');
        +
        +
        +

        $this->db->select_max()

        +

        Writes a SELECT MAX(field) portion for your query. You can optionally +include a second parameter to rename the resulting field.

        +
        $this->db->select_max('age');
        +$query = $this->db->get('members');  // Produces: SELECT MAX(age) as age FROM members
        +
        +$this->db->select_max('age', 'member_age');
        +$query = $this->db->get('members'); // Produces: SELECT MAX(age) as member_age FROM members
        +
        +
        +

        $this->db->select_min()

        +

        Writes a “SELECT MIN(field)” portion for your query. As with +select_max(), You can optionally include a second parameter to rename +the resulting field.

        +
        $this->db->select_min('age');
        +$query = $this->db->get('members'); // Produces: SELECT MIN(age) as age FROM members
        +
        +
        +

        $this->db->select_avg()

        +

        Writes a “SELECT AVG(field)” portion for your query. As with +select_max(), You can optionally include a second parameter to rename +the resulting field.

        +
        $this->db->select_avg('age');
        +$query = $this->db->get('members'); // Produces: SELECT AVG(age) as age FROM members
        +
        +
        +

        $this->db->select_sum()

        +

        Writes a “SELECT SUM(field)” portion for your query. As with +select_max(), You can optionally include a second parameter to rename +the resulting field.

        +
        $this->db->select_sum('age');
        +$query = $this->db->get('members'); // Produces: SELECT SUM(age) as age FROM members
        +
        +
        +

        $this->db->from()

        +

        Permits you to write the FROM portion of your query:

        +
        $this->db->select('title, content, date');
        +$this->db->from('mytable');
        +$query = $this->db->get();  // Produces: SELECT title, content, date FROM mytable
        +
        +
        +
        +

        Note

        +

        As shown earlier, the FROM portion of your query can be specified +in the $this->db->get() function, so use whichever method you prefer.

        +
        +

        $this->db->join()

        +

        Permits you to write the JOIN portion of your query:

        +
        $this->db->select('*');
        +$this->db->from('blogs');
        +$this->db->join('comments', 'comments.id = blogs.id');
        +$query = $this->db->get();
        +
        +// Produces:
        +// SELECT * FROM blogs JOIN comments ON comments.id = blogs.id
        +
        +
        +

        Multiple function calls can be made if you need several joins in one +query.

        +

        If you need a specific type of JOIN you can specify it via the third +parameter of the function. Options are: left, right, outer, inner, left +outer, and right outer.

        +
        $this->db->join('comments', 'comments.id = blogs.id', 'left');
        +// Produces: LEFT JOIN comments ON comments.id = blogs.id
        +
        +
        +
        +
        +

        Looking for Specific Data

        +

        $this->db->where()

        +

        This function enables you to set WHERE clauses using one of four +methods:

        +
        +

        Note

        +

        All values passed to this function are escaped automatically, +producing safer queries.

        +
        +
          +
        1. Simple key/value method:

          +
          +
          $this->db->where('name', $name); // Produces: WHERE name = 'Joe'
          +
          +
          +

          Notice that the equal sign is added for you.

          +

          If you use multiple function calls they will be chained together with +AND between them:

          +
          $this->db->where('name', $name);
          +$this->db->where('title', $title);
          +$this->db->where('status', $status);
          +// WHERE name = 'Joe' AND title = 'boss' AND status = 'active'
          +
          +
          +
          +
        2. +
        3. Custom key/value method:

          +
          +

          You can include an operator in the first parameter in order to +control the comparison:

          +
          $this->db->where('name !=', $name);
          +$this->db->where('id <', $id); // Produces: WHERE name != 'Joe' AND id < 45
          +
          +
          +
          +
        4. +
        5. Associative array method:

          +
          +
          $array = array('name' => $name, 'title' => $title, 'status' => $status);
          +$this->db->where($array);
          +// Produces: WHERE name = 'Joe' AND title = 'boss' AND status = 'active'
          +
          +
          +

          You can include your own operators using this method as well:

          +
          $array = array('name !=' => $name, 'id <' => $id, 'date >' => $date);
          +$this->db->where($array);
          +
          +
          +
          +
        6. +
        7. +
          Custom string:
          +

          You can write your own clauses manually:

          +
          $where = "name='Joe' AND status='boss' OR status='active'";
          +$this->db->where($where);
          +
          +
          +
          +
          +
        8. +
        +

        $this->db->where() accepts an optional third parameter. If you set it to +FALSE, CodeIgniter will not try to protect your field or table names.

        +
        $this->db->where('MATCH (field) AGAINST ("value")', NULL, FALSE);
        +
        +
        +

        $this->db->or_where()

        +

        This function is identical to the one above, except that multiple +instances are joined by OR:

        +
        $this->db->where('name !=', $name);
        +$this->db->or_where('id >', $id);  // Produces: WHERE name != 'Joe' OR id > 50
        +
        +
        +
        +

        Note

        +

        or_where() was formerly known as orwhere(), which has been +removed.

        +
        +

        $this->db->where_in()

        +

        Generates a WHERE field IN (‘item’, ‘item’) SQL query joined with AND if +appropriate

        +
        $names = array('Frank', 'Todd', 'James');
        +$this->db->where_in('username', $names);
        +// Produces: WHERE username IN ('Frank', 'Todd', 'James')
        +
        +
        +

        $this->db->or_where_in()

        +

        Generates a WHERE field IN (‘item’, ‘item’) SQL query joined with OR if +appropriate

        +
        $names = array('Frank', 'Todd', 'James');
        +$this->db->or_where_in('username', $names);
        +// Produces: OR username IN ('Frank', 'Todd', 'James')
        +
        +
        +

        $this->db->where_not_in()

        +

        Generates a WHERE field NOT IN (‘item’, ‘item’) SQL query joined with +AND if appropriate

        +
        $names = array('Frank', 'Todd', 'James');
        +$this->db->where_not_in('username', $names);
        +// Produces: WHERE username NOT IN ('Frank', 'Todd', 'James')
        +
        +
        +

        $this->db->or_where_not_in()

        +

        Generates a WHERE field NOT IN (‘item’, ‘item’) SQL query joined with OR +if appropriate

        +
        $names = array('Frank', 'Todd', 'James');
        +$this->db->or_where_not_in('username', $names);
        +// Produces: OR username NOT IN ('Frank', 'Todd', 'James')
        +
        +
        +
        +
        +

        Looking for Similar Data

        +

        $this->db->like()

        +

        This method enables you to generate LIKE clauses, useful for doing +searches.

        +
        +

        Note

        +

        All values passed to this method are escaped automatically.

        +
        +
          +
        1. Simple key/value method:

          +
          +
          $this->db->like('title', 'match');
          +// Produces: WHERE `title` LIKE '%match%' ESCAPE '!'
          +
          +
          +

          If you use multiple method calls they will be chained together with +AND between them:

          +
          $this->db->like('title', 'match');
          +$this->db->like('body', 'match');
          +// WHERE `title` LIKE '%match%' ESCAPE '!' AND  `body` LIKE '%match% ESCAPE '!'
          +
          +
          +

          If you want to control where the wildcard (%) is placed, you can use +an optional third argument. Your options are ‘before’, ‘after’ and +‘both’ (which is the default).

          +
          $this->db->like('title', 'match', 'before');    // Produces: WHERE `title` LIKE '%match' ESCAPE '!'
          +$this->db->like('title', 'match', 'after');     // Produces: WHERE `title` LIKE 'match%' ESCAPE '!'
          +$this->db->like('title', 'match', 'both');      // Produces: WHERE `title` LIKE '%match%' ESCAPE '!'
          +
          +
          +
          +
        2. +
        3. Associative array method:

          +
          +
          $array = array('title' => $match, 'page1' => $match, 'page2' => $match);
          +$this->db->like($array);
          +// WHERE `title` LIKE '%match%' ESCAPE '!' AND  `page1` LIKE '%match%' ESCAPE '!' AND  `page2` LIKE '%match%' ESCAPE '!'
          +
          +
          +
          +
        4. +
        +

        $this->db->or_like()

        +

        This method is identical to the one above, except that multiple +instances are joined by OR:

        +
        $this->db->like('title', 'match'); $this->db->or_like('body', $match);
        +// WHERE `title` LIKE '%match%' ESCAPE '!' OR  `body` LIKE '%match%' ESCAPE '!'
        +
        +
        +
        +

        Note

        +

        or_like() was formerly known as orlike(), which has been removed.

        +
        +

        $this->db->not_like()

        +

        This method is identical to like(), except that it generates +NOT LIKE statements:

        +
        $this->db->not_like('title', 'match');  // WHERE `title` NOT LIKE '%match% ESCAPE '!'
        +
        +
        +

        $this->db->or_not_like()

        +

        This method is identical to not_like(), except that multiple +instances are joined by OR:

        +
        $this->db->like('title', 'match');
        +$this->db->or_not_like('body', 'match');
        +// WHERE `title` LIKE '%match% OR  `body` NOT LIKE '%match%' ESCAPE '!'
        +
        +
        +

        $this->db->group_by()

        +

        Permits you to write the GROUP BY portion of your query:

        +
        $this->db->group_by("title"); // Produces: GROUP BY title
        +
        +
        +

        You can also pass an array of multiple values as well:

        +
        $this->db->group_by(array("title", "date"));  // Produces: GROUP BY title, date
        +
        +
        +
        +

        Note

        +

        group_by() was formerly known as groupby(), which has been +removed.

        +
        +

        $this->db->distinct()

        +

        Adds the “DISTINCT” keyword to a query

        +
        $this->db->distinct();
        +$this->db->get('table'); // Produces: SELECT DISTINCT * FROM table
        +
        +
        +

        $this->db->having()

        +

        Permits you to write the HAVING portion of your query. There are 2 +possible syntaxes, 1 argument or 2:

        +
        $this->db->having('user_id = 45');  // Produces: HAVING user_id = 45
        +$this->db->having('user_id',  45);  // Produces: HAVING user_id = 45
        +
        +
        +

        You can also pass an array of multiple values as well:

        +
        $this->db->having(array('title =' => 'My Title', 'id <' => $id));
        +// Produces: HAVING title = 'My Title', id < 45
        +
        +
        +

        If you are using a database that CodeIgniter escapes queries for, you +can prevent escaping content by passing an optional third argument, and +setting it to FALSE.

        +
        $this->db->having('user_id',  45);  // Produces: HAVING `user_id` = 45 in some databases such as MySQL
        +$this->db->having('user_id',  45, FALSE);  // Produces: HAVING user_id = 45
        +
        +
        +

        $this->db->or_having()

        +

        Identical to having(), only separates multiple clauses with “OR”.

        +
        +
        +

        Ordering results

        +

        $this->db->order_by()

        +

        Lets you set an ORDER BY clause.

        +

        The first parameter contains the name of the column you would like to order by.

        +

        The second parameter lets you set the direction of the result. +Options are ASC, DESC AND RANDOM.

        +
        $this->db->order_by('title', 'DESC');
        +// Produces: ORDER BY `title` DESC
        +
        +
        +

        You can also pass your own string in the first parameter:

        +
        $this->db->order_by('title DESC, name ASC');
        +// Produces: ORDER BY `title` DESC, `name` ASC
        +
        +
        +

        Or multiple function calls can be made if you need multiple fields.

        +
        $this->db->order_by('title', 'DESC');
        +$this->db->order_by('name', 'ASC');
        +// Produces: ORDER BY `title` DESC, `name` ASC
        +
        +
        +

        If you choose the RANDOM direction option, then the first parameters will +be ignored, unless you specify a numeric seed value.

        +
        $this->db->order_by('title', 'RANDOM');
        +// Produces: ORDER BY RAND()
        +
        +$this->db->order_by(42, 'RANDOM');
        +// Produces: ORDER BY RAND(42)
        +
        +
        +
        +

        Note

        +

        order_by() was formerly known as orderby(), which has been +removed.

        +
        +
        +

        Note

        +

        Random ordering is not currently supported in Oracle and +will default to ASC instead.

        +
        +
        +
        +

        Limiting or Counting Results

        +

        $this->db->limit()

        +

        Lets you limit the number of rows you would like returned by the query:

        +
        $this->db->limit(10);  // Produces: LIMIT 10
        +
        +
        +

        The second parameter lets you set a result offset.

        +
        $this->db->limit(10, 20);  // Produces: LIMIT 20, 10 (in MySQL.  Other databases have slightly different syntax)
        +
        +
        +

        $this->db->count_all_results()

        +

        Permits you to determine the number of rows in a particular Active +Record query. Queries will accept Query Builder restrictors such as +where(), or_where(), like(), or_like(), etc. Example:

        +
        echo $this->db->count_all_results('my_table');  // Produces an integer, like 25
        +$this->db->like('title', 'match');
        +$this->db->from('my_table');
        +echo $this->db->count_all_results(); // Produces an integer, like 17
        +
        +
        +

        However, this method also resets any field values that you may have passed +to select(). If you need to keep them, you can pass FALSE as the +second parameter:

        +
        echo $this->db->count_all_results('my_table', FALSE);
        +
        +
        +

        $this->db->count_all()

        +

        Permits you to determine the number of rows in a particular table. +Submit the table name in the first parameter. Example:

        +
        echo $this->db->count_all('my_table');  // Produces an integer, like 25
        +
        +
        +
        +
        +

        Query grouping

        +

        Query grouping allows you to create groups of WHERE clauses by enclosing them in parentheses. This will allow +you to create queries with complex WHERE clauses. Nested groups are supported. Example:

        +
        $this->db->select('*')->from('my_table')
        +        ->group_start()
        +                ->where('a', 'a')
        +                ->or_group_start()
        +                        ->where('b', 'b')
        +                        ->where('c', 'c')
        +                ->group_end()
        +        ->group_end()
        +        ->where('d', 'd')
        +->get();
        +
        +// Generates:
        +// SELECT * FROM (`my_table`) WHERE ( `a` = 'a' OR ( `b` = 'b' AND `c` = 'c' ) ) AND `d` = 'd'
        +
        +
        +
        +

        Note

        +

        groups need to be balanced, make sure every group_start() is matched by a group_end().

        +
        +

        $this->db->group_start()

        +

        Starts a new group by adding an opening parenthesis to the WHERE clause of the query.

        +

        $this->db->or_group_start()

        +

        Starts a new group by adding an opening parenthesis to the WHERE clause of the query, prefixing it with ‘OR’.

        +

        $this->db->not_group_start()

        +

        Starts a new group by adding an opening parenthesis to the WHERE clause of the query, prefixing it with ‘NOT’.

        +

        $this->db->or_not_group_start()

        +

        Starts a new group by adding an opening parenthesis to the WHERE clause of the query, prefixing it with ‘OR NOT’.

        +

        $this->db->group_end()

        +

        Ends the current group by adding an closing parenthesis to the WHERE clause of the query.

        +
        +
        +

        Inserting Data

        +

        $this->db->insert()

        +

        Generates an insert string based on the data you supply, and runs the +query. You can either pass an array or an object to the +function. Here is an example using an array:

        +
        $data = array(
        +        'title' => 'My title',
        +        'name' => 'My Name',
        +        'date' => 'My date'
        +);
        +
        +$this->db->insert('mytable', $data);
        +// Produces: INSERT INTO mytable (title, name, date) VALUES ('My title', 'My name', 'My date')
        +
        +
        +

        The first parameter will contain the table name, the second is an +associative array of values.

        +

        Here is an example using an object:

        +
        /*
        +class Myclass {
        +        public $title = 'My Title';
        +        public $content = 'My Content';
        +        public $date = 'My Date';
        +}
        +*/
        +
        +$object = new Myclass;
        +$this->db->insert('mytable', $object);
        +// Produces: INSERT INTO mytable (title, content, date) VALUES ('My Title', 'My Content', 'My Date')
        +
        +
        +

        The first parameter will contain the table name, the second is an +object.

        +
        +

        Note

        +

        All values are escaped automatically producing safer queries.

        +
        +

        $this->db->get_compiled_insert()

        +

        Compiles the insertion query just like $this->db->insert() but does not +run the query. This method simply returns the SQL query as a string.

        +

        Example:

        +
        $data = array(
        +        'title' => 'My title',
        +        'name'  => 'My Name',
        +        'date'  => 'My date'
        +);
        +
        +$sql = $this->db->set($data)->get_compiled_insert('mytable');
        +echo $sql;
        +
        +// Produces string: INSERT INTO mytable (`title`, `name`, `date`) VALUES ('My title', 'My name', 'My date')
        +
        +
        +

        The second parameter enables you to set whether or not the query builder query +will be reset (by default it will be–just like $this->db->insert()):

        +
        echo $this->db->set('title', 'My Title')->get_compiled_insert('mytable', FALSE);
        +
        +// Produces string: INSERT INTO mytable (`title`) VALUES ('My Title')
        +
        +echo $this->db->set('content', 'My Content')->get_compiled_insert();
        +
        +// Produces string: INSERT INTO mytable (`title`, `content`) VALUES ('My Title', 'My Content')
        +
        +
        +

        The key thing to notice in the above example is that the second query did not +utlize $this->db->from() nor did it pass a table name into the first +parameter. The reason this worked is because the query has not been executed +using $this->db->insert() which resets values or reset directly using +$this->db->reset_query().

        +
        +

        Note

        +

        This method doesn’t work for batched inserts.

        +
        +

        $this->db->insert_batch()

        +

        Generates an insert string based on the data you supply, and runs the +query. You can either pass an array or an object to the +function. Here is an example using an array:

        +
        $data = array(
        +        array(
        +                'title' => 'My title',
        +                'name' => 'My Name',
        +                'date' => 'My date'
        +        ),
        +        array(
        +                'title' => 'Another title',
        +                'name' => 'Another Name',
        +                'date' => 'Another date'
        +        )
        +);
        +
        +$this->db->insert_batch('mytable', $data);
        +// Produces: INSERT INTO mytable (title, name, date) VALUES ('My title', 'My name', 'My date'),  ('Another title', 'Another name', 'Another date')
        +
        +
        +

        The first parameter will contain the table name, the second is an +associative array of values.

        +
        +

        Note

        +

        All values are escaped automatically producing safer queries.

        +
        +
        +
        +

        Updating Data

        +

        $this->db->replace()

        +

        This method executes a REPLACE statement, which is basically the SQL +standard for (optional) DELETE + INSERT, using PRIMARY and UNIQUE +keys as the determining factor. +In our case, it will save you from the need to implement complex +logics with different combinations of select(), update(), +delete() and insert() calls.

        +

        Example:

        +
        $data = array(
        +        'title' => 'My title',
        +        'name'  => 'My Name',
        +        'date'  => 'My date'
        +);
        +
        +$this->db->replace('table', $data);
        +
        +// Executes: REPLACE INTO mytable (title, name, date) VALUES ('My title', 'My name', 'My date')
        +
        +
        +

        In the above example, if we assume that the title field is our primary +key, then if a row containing ‘My title’ as the title value, that row +will be deleted with our new row data replacing it.

        +

        Usage of the set() method is also allowed and all fields are +automatically escaped, just like with insert().

        +

        $this->db->set()

        +

        This function enables you to set values for inserts or updates.

        +

        It can be used instead of passing a data array directly to the insert +or update functions:

        +
        $this->db->set('name', $name);
        +$this->db->insert('mytable');  // Produces: INSERT INTO mytable (`name`) VALUES ('{$name}')
        +
        +
        +

        If you use multiple function called they will be assembled properly +based on whether you are doing an insert or an update:

        +
        $this->db->set('name', $name);
        +$this->db->set('title', $title);
        +$this->db->set('status', $status);
        +$this->db->insert('mytable');
        +
        +
        +

        set() will also accept an optional third parameter ($escape), that +will prevent data from being escaped if set to FALSE. To illustrate the +difference, here is set() used both with and without the escape +parameter.

        +
        $this->db->set('field', 'field+1', FALSE);
        +$this->db->where('id', 2);
        +$this->db->update('mytable'); // gives UPDATE mytable SET field = field+1 WHERE id = 2
        +
        +$this->db->set('field', 'field+1');
        +$this->db->where('id', 2);
        +$this->db->update('mytable'); // gives UPDATE `mytable` SET `field` = 'field+1' WHERE `id` = 2
        +
        +
        +

        You can also pass an associative array to this function:

        +
        $array = array(
        +        'name' => $name,
        +        'title' => $title,
        +        'status' => $status
        +);
        +
        +$this->db->set($array);
        +$this->db->insert('mytable');
        +
        +
        +

        Or an object:

        +
        /*
        +class Myclass {
        +        public $title = 'My Title';
        +        public $content = 'My Content';
        +        public $date = 'My Date';
        +}
        +*/
        +
        +$object = new Myclass;
        +$this->db->set($object);
        +$this->db->insert('mytable');
        +
        +
        +

        $this->db->update()

        +

        Generates an update string and runs the query based on the data you +supply. You can pass an array or an object to the function. Here +is an example using an array:

        +
        $data = array(
        +        'title' => $title,
        +        'name' => $name,
        +        'date' => $date
        +);
        +
        +$this->db->where('id', $id);
        +$this->db->update('mytable', $data);
        +// Produces:
        +//
        +//      UPDATE mytable
        +//      SET title = '{$title}', name = '{$name}', date = '{$date}'
        +//      WHERE id = $id
        +
        +
        +

        Or you can supply an object:

        +
        /*
        +class Myclass {
        +        public $title = 'My Title';
        +        public $content = 'My Content';
        +        public $date = 'My Date';
        +}
        +*/
        +
        +$object = new Myclass;
        +$this->db->where('id', $id);
        +$this->db->update('mytable', $object);
        +// Produces:
        +//
        +// UPDATE `mytable`
        +// SET `title` = '{$title}', `name` = '{$name}', `date` = '{$date}'
        +// WHERE id = `$id`
        +
        +
        +
        +

        Note

        +

        All values are escaped automatically producing safer queries.

        +
        +

        You’ll notice the use of the $this->db->where() function, enabling you +to set the WHERE clause. You can optionally pass this information +directly into the update function as a string:

        +
        $this->db->update('mytable', $data, "id = 4");
        +
        +
        +

        Or as an array:

        +
        $this->db->update('mytable', $data, array('id' => $id));
        +
        +
        +

        You may also use the $this->db->set() function described above when +performing updates.

        +

        $this->db->update_batch()

        +

        Generates an update string based on the data you supply, and runs the query. +You can either pass an array or an object to the function. +Here is an example using an array:

        +
        $data = array(
        +   array(
        +      'title' => 'My title' ,
        +      'name' => 'My Name 2' ,
        +      'date' => 'My date 2'
        +   ),
        +   array(
        +      'title' => 'Another title' ,
        +      'name' => 'Another Name 2' ,
        +      'date' => 'Another date 2'
        +   )
        +);
        +
        +$this->db->update_batch('mytable', $data, 'title');
        +
        +// Produces:
        +// UPDATE `mytable` SET `name` = CASE
        +// WHEN `title` = 'My title' THEN 'My Name 2'
        +// WHEN `title` = 'Another title' THEN 'Another Name 2'
        +// ELSE `name` END,
        +// `date` = CASE
        +// WHEN `title` = 'My title' THEN 'My date 2'
        +// WHEN `title` = 'Another title' THEN 'Another date 2'
        +// ELSE `date` END
        +// WHERE `title` IN ('My title','Another title')
        +
        +
        +

        The first parameter will contain the table name, the second is an associative +array of values, the third parameter is the where key.

        +
        +

        Note

        +

        All values are escaped automatically producing safer queries.

        +
        +
        +

        Note

        +

        affected_rows() won’t give you proper results with this method, +due to the very nature of how it works. Instead, update_batch() +returns the number of rows affected.

        +
        +

        $this->db->get_compiled_update()

        +

        This works exactly the same way as $this->db->get_compiled_insert() except +that it produces an UPDATE SQL string instead of an INSERT SQL string.

        +

        For more information view documentation for $this->db->get_compiled_insert().

        +
        +

        Note

        +

        This method doesn’t work for batched updates.

        +
        +
        +
        +

        Deleting Data

        +

        $this->db->delete()

        +

        Generates a delete SQL string and runs the query.

        +
        $this->db->delete('mytable', array('id' => $id));  // Produces: // DELETE FROM mytable  // WHERE id = $id
        +
        +
        +

        The first parameter is the table name, the second is the where clause. +You can also use the where() or or_where() functions instead of passing +the data to the second parameter of the function:

        +
        $this->db->where('id', $id);
        +$this->db->delete('mytable');
        +
        +// Produces:
        +// DELETE FROM mytable
        +// WHERE id = $id
        +
        +
        +

        An array of table names can be passed into delete() if you would like to +delete data from more than 1 table.

        +
        $tables = array('table1', 'table2', 'table3');
        +$this->db->where('id', '5');
        +$this->db->delete($tables);
        +
        +
        +

        If you want to delete all data from a table, you can use the truncate() +function, or empty_table().

        +

        $this->db->empty_table()

        +

        Generates a delete SQL string and runs the +query.:

        +
        $this->db->empty_table('mytable'); // Produces: DELETE FROM mytable
        +
        +
        +

        $this->db->truncate()

        +

        Generates a truncate SQL string and runs the query.

        +
        $this->db->from('mytable');
        +$this->db->truncate();
        +
        +// or
        +
        +$this->db->truncate('mytable');
        +
        +// Produce:
        +// TRUNCATE mytable
        +
        +
        +
        +

        Note

        +

        If the TRUNCATE command isn’t available, truncate() will +execute as “DELETE FROM table”.

        +
        +

        $this->db->get_compiled_delete()

        +

        This works exactly the same way as $this->db->get_compiled_insert() except +that it produces a DELETE SQL string instead of an INSERT SQL string.

        +

        For more information view documentation for $this->db->get_compiled_insert().

        +
        +
        +

        Method Chaining

        +

        Method chaining allows you to simplify your syntax by connecting +multiple functions. Consider this example:

        +
        $query = $this->db->select('title')
        +                ->where('id', $id)
        +                ->limit(10, 20)
        +                ->get('mytable');
        +
        +
        +
        +
        +

        Query Builder Caching

        +

        While not “true” caching, Query Builder enables you to save (or “cache”) +certain parts of your queries for reuse at a later point in your +script’s execution. Normally, when an Query Builder call is completed, +all stored information is reset for the next call. With caching, you can +prevent this reset, and reuse information easily.

        +

        Cached calls are cumulative. If you make 2 cached select() calls, and +then 2 uncached select() calls, this will result in 4 select() calls. +There are three Caching functions available:

        +

        $this->db->start_cache()

        +

        This function must be called to begin caching. All Query Builder queries +of the correct type (see below for supported queries) are stored for +later use.

        +

        $this->db->stop_cache()

        +

        This function can be called to stop caching.

        +

        $this->db->flush_cache()

        +

        This function deletes all items from the Query Builder cache.

        +
        +

        An example of caching

        +

        Here’s a usage example:

        +
        $this->db->start_cache();
        +$this->db->select('field1');
        +$this->db->stop_cache();
        +$this->db->get('tablename');
        +//Generates: SELECT `field1` FROM (`tablename`)
        +
        +$this->db->select('field2');
        +$this->db->get('tablename');
        +//Generates:  SELECT `field1`, `field2` FROM (`tablename`)
        +
        +$this->db->flush_cache();
        +$this->db->select('field2');
        +$this->db->get('tablename');
        +//Generates:  SELECT `field2` FROM (`tablename`)
        +
        +
        +
        +

        Note

        +

        The following statements can be cached: select, from, join, +where, like, group_by, having, order_by

        +
        +
        +
        +
        +

        Resetting Query Builder

        +

        $this->db->reset_query()

        +

        Resetting Query Builder allows you to start fresh with your query without +executing it first using a method like $this->db->get() or $this->db->insert(). +Just like the methods that execute a query, this will not reset items you’ve +cached using Query Builder Caching.

        +

        This is useful in situations where you are using Query Builder to generate SQL +(ex. $this->db->get_compiled_select()) but then choose to, for instance, +run the query:

        +
        // Note that the second parameter of the get_compiled_select method is FALSE
        +$sql = $this->db->select(array('field1','field2'))
        +                                ->where('field3',5)
        +                                ->get_compiled_select('mytable', FALSE);
        +
        +// ...
        +// Do something crazy with the SQL code... like add it to a cron script for
        +// later execution or something...
        +// ...
        +
        +$data = $this->db->get()->result_array();
        +
        +// Would execute and return an array of results of the following query:
        +// SELECT field1, field1 from mytable where field3 = 5;
        +
        +
        +
        +

        Note

        +

        Double calls to get_compiled_select() while you’re using the +Query Builder Caching functionality and NOT resetting your queries +will results in the cache being merged twice. That in turn will +i.e. if you’re caching a select() - select the same field twice.

        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_DB_query_builder
        +
        +
        +reset_query()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Resets the current Query Builder state. Useful when you want +to build a query that can be cancelled under certain conditions.

        +
        + +
        +
        +start_cache()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Starts the Query Builder cache.

        +
        + +
        +
        +stop_cache()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Stops the Query Builder cache.

        +
        + +
        +
        +flush_cache()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Empties the Query Builder cache.

        +
        + +
        +
        +set_dbprefix([$prefix = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $prefix (string) – The new prefix to use
        • +
        +
        Returns:

        The DB prefix in use

        +
        Return type:

        string

        +
        +

        Sets the database prefix, without having to reconnect.

        +
        + +
        +
        +dbprefix([$table = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – The table name to prefix
        • +
        +
        Returns:

        The prefixed table name

        +
        Return type:

        string

        +
        +

        Prepends a database prefix, if one exists in configuration.

        +
        + +
        +
        +count_all_results([$table = ''[, $reset = TRUE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $reset (bool) – Whether to reset values for SELECTs
        • +
        +
        Returns:

        Number of rows in the query result

        +
        Return type:

        int

        +
        +

        Generates a platform-specific query string that counts +all records returned by an Query Builder query.

        +
        + +
        +
        +get([$table = ''[, $limit = NULL[, $offset = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – The table to query
        • +
        • $limit (int) – The LIMIT clause
        • +
        • $offset (int) – The OFFSET clause
        • +
        +
        Returns:

        CI_DB_result instance (method chaining)

        +
        Return type:

        CI_DB_result

        +
        +

        Compiles and runs SELECT statement based on the already +called Query Builder methods.

        +
        + +
        +
        +get_where([$table = ''[, $where = NULL[, $limit = NULL[, $offset = NULL]]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (mixed) – The table(s) to fetch data from; string or array
        • +
        • $where (string) – The WHERE clause
        • +
        • $limit (int) – The LIMIT clause
        • +
        • $offset (int) – The OFFSET clause
        • +
        +
        Returns:

        CI_DB_result instance (method chaining)

        +
        Return type:

        CI_DB_result

        +
        +

        Same as get(), but also allows the WHERE to be added directly.

        +
        + +
        +
        +select([$select = '*'[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $select (string) – The SELECT portion of a query
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a SELECT clause to a query.

        +
        + +
        +
        +select_avg([$select = ''[, $alias = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $select (string) – Field to compute the average of
        • +
        • $alias (string) – Alias for the resulting value name
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a SELECT AVG(field) clause to a query.

        +
        + +
        +
        +select_max([$select = ''[, $alias = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $select (string) – Field to compute the maximum of
        • +
        • $alias (string) – Alias for the resulting value name
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a SELECT MAX(field) clause to a query.

        +
        + +
        +
        +select_min([$select = ''[, $alias = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $select (string) – Field to compute the minimum of
        • +
        • $alias (string) – Alias for the resulting value name
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a SELECT MIN(field) clause to a query.

        +
        + +
        +
        +select_sum([$select = ''[, $alias = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $select (string) – Field to compute the sum of
        • +
        • $alias (string) – Alias for the resulting value name
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a SELECT SUM(field) clause to a query.

        +
        + +
        +
        +distinct([$val = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $val (bool) – Desired value of the “distinct” flag
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Sets a flag which tells the query builder to add +a DISTINCT clause to the SELECT portion of the query.

        +
        + +
        +
        +from($from)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $from (mixed) – Table name(s); string or array
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Specifies the FROM clause of a query.

        +
        + +
        +
        +join($table, $cond[, $type = ''[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name to join
        • +
        • $cond (string) – The JOIN ON condition
        • +
        • $type (string) – The JOIN type
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a JOIN clause to a query.

        +
        + +
        +
        +where($key[, $value = NULL[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Name of field to compare, or associative array
        • +
        • $value (mixed) – If a single key, compared to this value
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        DB_query_builder instance

        +
        Return type:

        object

        +
        +

        Generates the WHERE portion of the query. +Separates multiple calls with ‘AND’.

        +
        + +
        +
        +or_where($key[, $value = NULL[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Name of field to compare, or associative array
        • +
        • $value (mixed) – If a single key, compared to this value
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        DB_query_builder instance

        +
        Return type:

        object

        +
        +

        Generates the WHERE portion of the query. +Separates multiple calls with ‘OR’.

        +
        + +
        +
        +or_where_in([$key = NULL[, $values = NULL[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – The field to search
        • +
        • $values (array) – The values searched on
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        DB_query_builder instance

        +
        Return type:

        object

        +
        +

        Generates a WHERE field IN(‘item’, ‘item’) SQL query, +joined with ‘OR’ if appropriate.

        +
        + +
        +
        +or_where_not_in([$key = NULL[, $values = NULL[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – The field to search
        • +
        • $values (array) – The values searched on
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        DB_query_builder instance

        +
        Return type:

        object

        +
        +

        Generates a WHERE field NOT IN(‘item’, ‘item’) SQL query, +joined with ‘OR’ if appropriate.

        +
        + +
        +
        +where_in([$key = NULL[, $values = NULL[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Name of field to examine
        • +
        • $values (array) – Array of target values
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        DB_query_builder instance

        +
        Return type:

        object

        +
        +

        Generates a WHERE field IN(‘item’, ‘item’) SQL query, +joined with ‘AND’ if appropriate.

        +
        + +
        +
        +where_not_in([$key = NULL[, $values = NULL[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Name of field to examine
        • +
        • $values (array) – Array of target values
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        DB_query_builder instance

        +
        Return type:

        object

        +
        +

        Generates a WHERE field NOT IN(‘item’, ‘item’) SQL query, +joined with ‘AND’ if appropriate.

        +
        + +
        +
        +group_start()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Starts a group expression, using ANDs for the conditions inside it.

        +
        + +
        +
        +or_group_start()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Starts a group expression, using ORs for the conditions inside it.

        +
        + +
        +
        +not_group_start()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Starts a group expression, using AND NOTs for the conditions inside it.

        +
        + +
        +
        +or_not_group_start()
        +
        +++ + + + + + +
        Returns:CI_DB_query_builder instance (method chaining)
        Return type:CI_DB_query_builder
        +

        Starts a group expression, using OR NOTs for the conditions inside it.

        +
        + +
        +
        +group_end()
        +
        +++ + + + + + +
        Returns:DB_query_builder instance
        Return type:object
        +

        Ends a group expression.

        +
        + +
        +
        +like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $match (string) – Text portion to match
        • +
        • $side (string) – Which side of the expression to put the ‘%’ wildcard on
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a LIKE clause to a query, separating multiple calls with AND.

        +
        + +
        +
        +or_like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $match (string) – Text portion to match
        • +
        • $side (string) – Which side of the expression to put the ‘%’ wildcard on
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a LIKE clause to a query, separating multiple class with OR.

        +
        + +
        +
        +not_like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $match (string) – Text portion to match
        • +
        • $side (string) – Which side of the expression to put the ‘%’ wildcard on
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a NOT LIKE clause to a query, separating multiple calls with AND.

        +
        + +
        +
        +or_not_like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $match (string) – Text portion to match
        • +
        • $side (string) – Which side of the expression to put the ‘%’ wildcard on
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a NOT LIKE clause to a query, separating multiple calls with OR.

        +
        + +
        +
        +having($key[, $value = NULL[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Identifier (string) or associative array of field/value pairs
        • +
        • $value (string) – Value sought if $key is an identifier
        • +
        • $escape (string) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a HAVING clause to a query, separating multiple calls with AND.

        +
        + +
        +
        +or_having($key[, $value = NULL[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Identifier (string) or associative array of field/value pairs
        • +
        • $value (string) – Value sought if $key is an identifier
        • +
        • $escape (string) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a HAVING clause to a query, separating multiple calls with OR.

        +
        + +
        +
        +group_by($by[, $escape = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $by (mixed) – Field(s) to group by; string or array
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds a GROUP BY clause to a query.

        +
        + +
        +
        +order_by($orderby[, $direction = ''[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $orderby (string) – Field to order by
        • +
        • $direction (string) – The order requested - ASC, DESC or random
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds an ORDER BY clause to a query.

        +
        + +
        +
        +limit($value[, $offset = 0])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $value (int) – Number of rows to limit the results to
        • +
        • $offset (int) – Number of rows to skip
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds LIMIT and OFFSET clauses to a query.

        +
        + +
        +
        +offset($offset)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $offset (int) – Number of rows to skip
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds an OFFSET clause to a query.

        +
        + +
        +
        +set($key[, $value = ''[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Field name, or an array of field/value pairs
        • +
        • $value (string) – Field value, if $key is a single field
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds field/value pairs to be passed later to insert(), +update() or replace().

        +
        + +
        +
        +insert([$table = ''[, $set = NULL[, $escape = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $set (array) – An associative array of field/value pairs
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Compiles and executes an INSERT statement.

        +
        + +
        +
        +insert_batch($table[, $set = NULL[, $escape = NULL[, $batch_size = 100]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $set (array) – Data to insert
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        • $batch_size (int) – Count of rows to insert at once
        • +
        +
        Returns:

        Number of rows inserted or FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Compiles and executes batch INSERT statements.

        +
        +

        Note

        +

        When more than $batch_size rows are provided, multiple +INSERT queries will be executed, each trying to insert +up to $batch_size rows.

        +
        +
        + +
        +
        +set_insert_batch($key[, $value = ''[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Field name or an array of field/value pairs
        • +
        • $value (string) – Field value, if $key is a single field
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds field/value pairs to be inserted in a table later via insert_batch().

        +
        + +
        +
        +update([$table = ''[, $set = NULL[, $where = NULL[, $limit = NULL]]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $set (array) – An associative array of field/value pairs
        • +
        • $where (string) – The WHERE clause
        • +
        • $limit (int) – The LIMIT clause
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Compiles and executes an UPDATE statement.

        +
        + +
        +
        +update_batch($table[, $set = NULL[, $value = NULL[, $batch_size = 100]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $set (array) – Field name, or an associative array of field/value pairs
        • +
        • $value (string) – Field value, if $set is a single field
        • +
        • $batch_size (int) – Count of conditions to group in a single query
        • +
        +
        Returns:

        Number of rows updated or FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Compiles and executes batch UPDATE statements.

        +
        +

        Note

        +

        When more than $batch_size field/value pairs are provided, +multiple queries will be executed, each handling up to +$batch_size field/value pairs.

        +
        +
        + +
        +
        +set_update_batch($key[, $value = ''[, $escape = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Field name or an array of field/value pairs
        • +
        • $value (string) – Field value, if $key is a single field
        • +
        • $escape (bool) – Whether to escape values and identifiers
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining)

        +
        Return type:

        CI_DB_query_builder

        +
        +

        Adds field/value pairs to be updated in a table later via update_batch().

        +
        + +
        +
        +replace([$table = ''[, $set = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $set (array) – An associative array of field/value pairs
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Compiles and executes a REPLACE statement.

        +
        + +
        +
        +delete([$table = ''[, $where = ''[, $limit = NULL[, $reset_data = TRUE]]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (mixed) – The table(s) to delete from; string or array
        • +
        • $where (string) – The WHERE clause
        • +
        • $limit (int) – The LIMIT clause
        • +
        • $reset_data (bool) – TRUE to reset the query “write” clause
        • +
        +
        Returns:

        CI_DB_query_builder instance (method chaining) or FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Compiles and executes a DELETE query.

        +
        + +
        +
        +truncate([$table = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Executes a TRUNCATE statement on a table.

        +
        +

        Note

        +

        If the database platform in use doesn’t support TRUNCATE, +a DELETE statement will be used instead.

        +
        +
        + +
        +
        +empty_table([$table = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Deletes all records from a table via a DELETE statement.

        +
        + +
        +
        +get_compiled_select([$table = ''[, $reset = TRUE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $reset (bool) – Whether to reset the current QB values or not
        • +
        +
        Returns:

        The compiled SQL statement as a string

        +
        Return type:

        string

        +
        +

        Compiles a SELECT statement and returns it as a string.

        +
        + +
        +
        +get_compiled_insert([$table = ''[, $reset = TRUE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $reset (bool) – Whether to reset the current QB values or not
        • +
        +
        Returns:

        The compiled SQL statement as a string

        +
        Return type:

        string

        +
        +

        Compiles an INSERT statement and returns it as a string.

        +
        + +
        +
        +get_compiled_update([$table = ''[, $reset = TRUE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $reset (bool) – Whether to reset the current QB values or not
        • +
        +
        Returns:

        The compiled SQL statement as a string

        +
        Return type:

        string

        +
        +

        Compiles an UPDATE statement and returns it as a string.

        +
        + +
        +
        +get_compiled_delete([$table = ''[, $reset = TRUE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table (string) – Table name
        • +
        • $reset (bool) – Whether to reset the current QB values or not
        • +
        +
        Returns:

        The compiled SQL statement as a string

        +
        Return type:

        string

        +
        +

        Compiles a DELETE statement and returns it as a string.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/results.html b/sna/user_guide/database/results.html new file mode 100644 index 0000000..7c6bec6 --- /dev/null +++ b/sna/user_guide/database/results.html @@ -0,0 +1,1232 @@ + + + + + + + + + + Generating Query Results — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Generating Query Results

        +

        There are several ways to generate query results:

        + +
        +

        Result Arrays

        +

        result()

        +

        This method returns the query result as an array of objects, or +an empty array on failure. Typically you’ll use this in a foreach +loop, like this:

        +
        $query = $this->db->query("YOUR QUERY");
        +
        +foreach ($query->result() as $row)
        +{
        +        echo $row->title;
        +        echo $row->name;
        +        echo $row->body;
        +}
        +
        +
        +

        The above method is an alias of result_object().

        +

        You can also pass a string to result() which represents a class to +instantiate for each result object (note: this class must be loaded)

        +
        $query = $this->db->query("SELECT * FROM users;");
        +
        +foreach ($query->result('User') as $user)
        +{
        +        echo $user->name; // access attributes
        +        echo $user->reverse_name(); // or methods defined on the 'User' class
        +}
        +
        +
        +

        result_array()

        +

        This method returns the query result as a pure array, or an empty +array when no result is produced. Typically you’ll use this in a foreach +loop, like this:

        +
        $query = $this->db->query("YOUR QUERY");
        +
        +foreach ($query->result_array() as $row)
        +{
        +        echo $row['title'];
        +        echo $row['name'];
        +        echo $row['body'];
        +}
        +
        +
        +
        +
        +

        Result Rows

        +

        row()

        +

        This method returns a single result row. If your query has more than +one row, it returns only the first row. The result is returned as an +object. Here’s a usage example:

        +
        $query = $this->db->query("YOUR QUERY");
        +
        +$row = $query->row();
        +
        +if (isset($row))
        +{
        +        echo $row->title;
        +        echo $row->name;
        +        echo $row->body;
        +}
        +
        +
        +

        If you want a specific row returned you can submit the row number as a +digit in the first parameter:

        +
        $row = $query->row(5);
        +
        +
        +

        You can also add a second String parameter, which is the name of a class +to instantiate the row with:

        +
        $query = $this->db->query("SELECT * FROM users LIMIT 1;");
        +$row = $query->row(0, 'User');
        +
        +echo $row->name; // access attributes
        +echo $row->reverse_name(); // or methods defined on the 'User' class
        +
        +
        +

        row_array()

        +

        Identical to the above row() method, except it returns an array. +Example:

        +
        $query = $this->db->query("YOUR QUERY");
        +
        +$row = $query->row_array();
        +
        +if (isset($row))
        +{
        +        echo $row['title'];
        +        echo $row['name'];
        +        echo $row['body'];
        +}
        +
        +
        +

        If you want a specific row returned you can submit the row number as a +digit in the first parameter:

        +
        $row = $query->row_array(5);
        +
        +
        +

        In addition, you can walk forward/backwards/first/last through your +results using these variations:

        +
        +
        +
        $row = $query->first_row()
        +
        $row = $query->last_row()
        +
        $row = $query->next_row()
        +
        $row = $query->previous_row()
        +
        +
        +

        By default they return an object unless you put the word “array” in the +parameter:

        +
        +
        +
        $row = $query->first_row(‘array’)
        +
        $row = $query->last_row(‘array’)
        +
        $row = $query->next_row(‘array’)
        +
        $row = $query->previous_row(‘array’)
        +
        +
        +
        +

        Note

        +

        All the methods above will load the whole result into memory +(prefetching). Use unbuffered_row() for processing large +result sets.

        +
        +

        unbuffered_row()

        +

        This method returns a single result row without prefetching the whole +result in memory as row() does. If your query has more than one row, +it returns the current row and moves the internal data pointer ahead.

        +
        $query = $this->db->query("YOUR QUERY");
        +
        +while ($row = $query->unbuffered_row())
        +{
        +        echo $row->title;
        +        echo $row->name;
        +        echo $row->body;
        +}
        +
        +
        +

        You can optionally pass ‘object’ (default) or ‘array’ in order to specify +the returned value’s type:

        +
        $query->unbuffered_row();               // object
        +$query->unbuffered_row('object');       // object
        +$query->unbuffered_row('array');        // associative array
        +
        +
        +
        +
        +

        Custom Result Objects

        +

        You can have the results returned as an instance of a custom class instead +of a stdClass or array, as the result() and result_array() +methods allow. This requires that the class is already loaded into memory. +The object will have all values returned from the database set as properties. +If these have been declared and are non-public then you should provide a +__set() method to allow them to be set.

        +

        Example:

        +
        class User {
        +
        +        public $id;
        +        public $email;
        +        public $username;
        +
        +        protected $last_login;
        +
        +        public function last_login($format)
        +        {
        +                return $this->last_login->format($format);
        +        }
        +
        +        public function __set($name, $value)
        +        {
        +                if ($name === 'last_login')
        +                {
        +                        $this->last_login = DateTime::createFromFormat('U', $value);
        +                }
        +        }
        +
        +        public function __get($name)
        +        {
        +                if (isset($this->$name))
        +                {
        +                        return $this->$name;
        +                }
        +        }
        +}
        +
        +
        +

        In addition to the two methods listed below, the following methods also can +take a class name to return the results as: first_row(), last_row(), +next_row(), and previous_row().

        +

        custom_result_object()

        +

        Returns the entire result set as an array of instances of the class requested. +The only parameter is the name of the class to instantiate.

        +

        Example:

        +
        $query = $this->db->query("YOUR QUERY");
        +
        +$rows = $query->custom_result_object('User');
        +
        +foreach ($rows as $row)
        +{
        +        echo $row->id;
        +        echo $row->email;
        +        echo $row->last_login('Y-m-d');
        +}
        +
        +
        +

        custom_row_object()

        +

        Returns a single row from your query results. The first parameter is the row +number of the results. The second parameter is the class name to instantiate.

        +

        Example:

        +
        $query = $this->db->query("YOUR QUERY");
        +
        +$row = $query->custom_row_object(0, 'User');
        +
        +if (isset($row))
        +{
        +        echo $row->email;   // access attributes
        +        echo $row->last_login('Y-m-d');   // access class methods
        +}
        +
        +
        +

        You can also use the row() method in exactly the same way.

        +

        Example:

        +
        $row = $query->custom_row_object(0, 'User');
        +
        +
        +
        +
        +

        Result Helper Methods

        +

        num_rows()

        +

        The number of rows returned by the query. Note: In this example, $query +is the variable that the query result object is assigned to:

        +
        $query = $this->db->query('SELECT * FROM my_table');
        +
        +echo $query->num_rows();
        +
        +
        +
        +

        Note

        +

        Not all database drivers have a native way of getting the total +number of rows for a result set. When this is the case, all of +the data is prefetched and count() is manually called on the +resulting array in order to achieve the same result.

        +
        +

        num_fields()

        +

        The number of FIELDS (columns) returned by the query. Make sure to call +the method using your query result object:

        +
        $query = $this->db->query('SELECT * FROM my_table');
        +
        +echo $query->num_fields();
        +
        +
        +

        free_result()

        +

        It frees the memory associated with the result and deletes the result +resource ID. Normally PHP frees its memory automatically at the end of +script execution. However, if you are running a lot of queries in a +particular script you might want to free the result after each query +result has been generated in order to cut down on memory consumption.

        +

        Example:

        +
        $query = $this->db->query('SELECT title FROM my_table');
        +
        +foreach ($query->result() as $row)
        +{
        +        echo $row->title;
        +}
        +
        +$query->free_result();  // The $query result object will no longer be available
        +
        +$query2 = $this->db->query('SELECT name FROM some_table');
        +
        +$row = $query2->row();
        +echo $row->name;
        +$query2->free_result(); // The $query2 result object will no longer be available
        +
        +
        +

        data_seek()

        +

        This method sets the internal pointer for the next result row to be +fetched. It is only useful in combination with unbuffered_row().

        +

        It accepts a positive integer value, which defaults to 0 and returns +TRUE on success or FALSE on failure.

        +
        $query = $this->db->query('SELECT `field_name` FROM `table_name`');
        +$query->data_seek(5); // Skip the first 5 rows
        +$row = $query->unbuffered_row();
        +
        +
        +
        +

        Note

        +

        Not all database drivers support this feature and will return FALSE. +Most notably - you won’t be able to use it with PDO.

        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_DB_result
        +
        +
        +result([$type = 'object'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Type of requested results - array, object, or class name
        • +
        +
        Returns:

        Array containing the fetched rows

        +
        Return type:

        array

        +
        +

        A wrapper for the result_array(), result_object() +and custom_result_object() methods.

        +

        Usage: see Result Arrays.

        +
        + +
        +
        +result_array()
        +
        +++ + + + + + +
        Returns:Array containing the fetched rows
        Return type:array
        +

        Returns the query results as an array of rows, where each +row is itself an associative array.

        +

        Usage: see Result Arrays.

        +
        + +
        +
        +result_object()
        +
        +++ + + + + + +
        Returns:Array containing the fetched rows
        Return type:array
        +

        Returns the query results as an array of rows, where each +row is an object of type stdClass.

        +

        Usage: see Result Arrays.

        +
        + +
        +
        +custom_result_object($class_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $class_name (string) – Class name for the resulting rows
        • +
        +
        Returns:

        Array containing the fetched rows

        +
        Return type:

        array

        +
        +

        Returns the query results as an array of rows, where each +row is an instance of the specified class.

        +
        + +
        +
        +row([$n = 0[, $type = 'object']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Index of the query results row to be returned
        • +
        • $type (string) – Type of the requested result - array, object, or class name
        • +
        +
        Returns:

        The requested row or NULL if it doesn’t exist

        +
        Return type:

        mixed

        +
        +

        A wrapper for the row_array(), row_object() and +``custom_row_object() methods.

        +

        Usage: see Result Rows.

        +
        + +
        +
        +unbuffered_row([$type = 'object'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Type of the requested result - array, object, or class name
        • +
        +
        Returns:

        Next row from the result set or NULL if it doesn’t exist

        +
        Return type:

        mixed

        +
        +

        Fetches the next result row and returns it in the +requested form.

        +

        Usage: see Result Rows.

        +
        + +
        +
        +row_array([$n = 0])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Index of the query results row to be returned
        • +
        +
        Returns:

        The requested row or NULL if it doesn’t exist

        +
        Return type:

        array

        +
        +

        Returns the requested result row as an associative array.

        +

        Usage: see Result Rows.

        +
        + +
        +
        +row_object([$n = 0])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Index of the query results row to be returned
        • +
        +
        Returns:

        The requested row or NULL if it doesn’t exist

        +
        Return type:

        stdClass

        +
        +

        Returns the requested result row as an object of type +stdClass.

        +

        Usage: see Result Rows.

        +
        + +
        +
        +custom_row_object($n, $type)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Index of the results row to return
        • +
        • $class_name (string) – Class name for the resulting row
        • +
        +
        Returns:

        The requested row or NULL if it doesn’t exist

        +
        Return type:

        $type

        +
        +

        Returns the requested result row as an instance of the +requested class.

        +
        + +
        +
        +data_seek([$n = 0])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Index of the results row to be returned next
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Moves the internal results row pointer to the desired offset.

        +

        Usage: see Result Helper Methods.

        +
        + +
        +
        +set_row($key[, $value = NULL])
        +
        +++ + + + + + +
        Parameters:
          +
        • $key (mixed) – Column name or array of key/value pairs
        • +
        • $value (mixed) – Value to assign to the column, $key is a single field name
        • +
        +
        Return type:

        void

        +
        +

        Assigns a value to a particular column.

        +
        + +
        +
        +next_row([$type = 'object'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Type of the requested result - array, object, or class name
        • +
        +
        Returns:

        Next row of result set, or NULL if it doesn’t exist

        +
        Return type:

        mixed

        +
        +

        Returns the next row from the result set.

        +
        + +
        +
        +previous_row([$type = 'object'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Type of the requested result - array, object, or class name
        • +
        +
        Returns:

        Previous row of result set, or NULL if it doesn’t exist

        +
        Return type:

        mixed

        +
        +

        Returns the previous row from the result set.

        +
        + +
        +
        +first_row([$type = 'object'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Type of the requested result - array, object, or class name
        • +
        +
        Returns:

        First row of result set, or NULL if it doesn’t exist

        +
        Return type:

        mixed

        +
        +

        Returns the first row from the result set.

        +
        + +
        +
        +last_row([$type = 'object'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Type of the requested result - array, object, or class name
        • +
        +
        Returns:

        Last row of result set, or NULL if it doesn’t exist

        +
        Return type:

        mixed

        +
        +

        Returns the last row from the result set.

        +
        + +
        +
        +num_rows()
        +
        +++ + + + + + +
        Returns:Number of rows in the result set
        Return type:int
        +

        Returns the number of rows in the result set.

        +

        Usage: see Result Helper Methods.

        +
        + +
        +
        +num_fields()
        +
        +++ + + + + + +
        Returns:Number of fields in the result set
        Return type:int
        +

        Returns the number of fields in the result set.

        +

        Usage: see Result Helper Methods.

        +
        + +
        +
        +field_data()
        +
        +++ + + + + + +
        Returns:Array containing field meta-data
        Return type:array
        +

        Generates an array of stdClass objects containing +field meta-data.

        +
        + +
        +
        +free_result()
        +
        +++ + + + +
        Return type:void
        +

        Frees a result set.

        +

        Usage: see Result Helper Methods.

        +
        + +
        +
        +list_fields()
        +
        +++ + + + + + +
        Returns:Array of column names
        Return type:array
        +

        Returns an array containing the field names in the +result set.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/transactions.html b/sna/user_guide/database/transactions.html new file mode 100644 index 0000000..87e2258 --- /dev/null +++ b/sna/user_guide/database/transactions.html @@ -0,0 +1,616 @@ + + + + + + + + + + Transactions — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Transactions

        +

        CodeIgniter’s database abstraction allows you to use transactions with +databases that support transaction-safe table types. In MySQL, you’ll +need to be running InnoDB or BDB table types rather than the more common +MyISAM. Most other database platforms support transactions natively.

        +

        If you are not familiar with transactions we recommend you find a good +online resource to learn about them for your particular database. The +information below assumes you have a basic understanding of +transactions.

        +
        +

        CodeIgniter’s Approach to Transactions

        +

        CodeIgniter utilizes an approach to transactions that is very similar to +the process used by the popular database class ADODB. We’ve chosen that +approach because it greatly simplifies the process of running +transactions. In most cases all that is required are two lines of code.

        +

        Traditionally, transactions have required a fair amount of work to +implement since they demand that you keep track of your queries and +determine whether to commit or rollback based on the success or failure +of your queries. This is particularly cumbersome with nested queries. In +contrast, we’ve implemented a smart transaction system that does all +this for you automatically (you can also manage your transactions +manually if you choose to, but there’s really no benefit).

        +
        +
        +

        Running Transactions

        +

        To run your queries using transactions you will use the +$this->db->trans_start() and $this->db->trans_complete() functions as +follows:

        +
        $this->db->trans_start();
        +$this->db->query('AN SQL QUERY...');
        +$this->db->query('ANOTHER QUERY...');
        +$this->db->query('AND YET ANOTHER QUERY...');
        +$this->db->trans_complete();
        +
        +
        +

        You can run as many queries as you want between the start/complete +functions and they will all be committed or rolled back based on success +or failure of any given query.

        +
        +
        +

        Strict Mode

        +

        By default CodeIgniter runs all transactions in Strict Mode. When strict +mode is enabled, if you are running multiple groups of transactions, if +one group fails all groups will be rolled back. If strict mode is +disabled, each group is treated independently, meaning a failure of one +group will not affect any others.

        +

        Strict Mode can be disabled as follows:

        +
        $this->db->trans_strict(FALSE);
        +
        +
        +
        +
        +

        Managing Errors

        +

        If you have error reporting enabled in your config/database.php file +you’ll see a standard error message if the commit was unsuccessful. If +debugging is turned off, you can manage your own errors like this:

        +
        $this->db->trans_start();
        +$this->db->query('AN SQL QUERY...');
        +$this->db->query('ANOTHER QUERY...');
        +$this->db->trans_complete();
        +
        +if ($this->db->trans_status() === FALSE)
        +{
        +        // generate an error... or use the log_message() function to log your error
        +}
        +
        +
        +
        +
        +

        Disabling Transactions

        +

        If you would like to disable transactions you can do so using +$this->db->trans_off():

        +
        $this->db->trans_off();
        +
        +$this->db->trans_start();
        +$this->db->query('AN SQL QUERY...');
        +$this->db->trans_complete();
        +
        +
        +

        When transactions are disabled, your queries will be auto-committed, just as +they are when running queries without transactions, practically ignoring +any calls to trans_start(), trans_complete(), etc.

        +
        +
        +

        Test Mode

        +

        You can optionally put the transaction system into “test mode”, which +will cause your queries to be rolled back – even if the queries produce +a valid result. To use test mode simply set the first parameter in the +$this->db->trans_start() function to TRUE:

        +
        $this->db->trans_start(TRUE); // Query will be rolled back
        +$this->db->query('AN SQL QUERY...');
        +$this->db->trans_complete();
        +
        +
        +
        +
        +

        Running Transactions Manually

        +

        If you would like to run transactions manually you can do so as follows:

        +
        $this->db->trans_begin();
        +
        +$this->db->query('AN SQL QUERY...');
        +$this->db->query('ANOTHER QUERY...');
        +$this->db->query('AND YET ANOTHER QUERY...');
        +
        +if ($this->db->trans_status() === FALSE)
        +{
        +        $this->db->trans_rollback();
        +}
        +else
        +{
        +        $this->db->trans_commit();
        +}
        +
        +
        +
        +

        Note

        +

        Make sure to use $this->db->trans_begin() when running manual +transactions, NOT $this->db->trans_start().

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/database/utilities.html b/sna/user_guide/database/utilities.html new file mode 100644 index 0000000..46f3508 --- /dev/null +++ b/sna/user_guide/database/utilities.html @@ -0,0 +1,994 @@ + + + + + + + + + + Database Utility Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Database Utility Class

        +

        The Database Utility Class contains methods that help you manage your +database.

        + +
        +

        Initializing the Utility Class

        +
        +

        Important

        +

        In order to initialize the Utility class, your database +driver must already be running, since the utilities class relies on it.

        +
        +

        Load the Utility Class as follows:

        +
        $this->load->dbutil();
        +
        +
        +

        You can also pass another database object to the DB Utility loader, in case +the database you want to manage isn’t the default one:

        +
        $this->myutil = $this->load->dbutil($this->other_db, TRUE);
        +
        +
        +

        In the above example, we’re passing a custom database object as the first +parameter and then tell it to return the dbutil object, instead of +assigning it directly to $this->dbutil.

        +
        +

        Note

        +

        Both of the parameters can be used individually, just pass an empty +value as the first one if you wish to skip it.

        +
        +

        Once initialized you will access the methods using the $this->dbutil +object:

        +
        $this->dbutil->some_method();
        +
        +
        +
        +
        +

        Using the Database Utilities

        +
        +

        Retrieve list of database names

        +

        Returns an array of database names:

        +
        $dbs = $this->dbutil->list_databases();
        +
        +foreach ($dbs as $db)
        +{
        +        echo $db;
        +}
        +
        +
        +
        +
        +

        Determine If a Database Exists

        +

        Sometimes it’s helpful to know whether a particular database exists. +Returns a boolean TRUE/FALSE. Usage example:

        +
        if ($this->dbutil->database_exists('database_name'))
        +{
        +        // some code...
        +}
        +
        +
        +
        +

        Note

        +

        Replace database_name with the name of the database you are +looking for. This method is case sensitive.

        +
        +
        +
        +

        Optimize a Table

        +

        Permits you to optimize a table using the table name specified in the +first parameter. Returns TRUE/FALSE based on success or failure:

        +
        if ($this->dbutil->optimize_table('table_name'))
        +{
        +        echo 'Success!';
        +}
        +
        +
        +
        +

        Note

        +

        Not all database platforms support table optimization. It is +mostly for use with MySQL.

        +
        +
        +
        +

        Repair a Table

        +

        Permits you to repair a table using the table name specified in the +first parameter. Returns TRUE/FALSE based on success or failure:

        +
        if ($this->dbutil->repair_table('table_name'))
        +{
        +        echo 'Success!';
        +}
        +
        +
        +
        +

        Note

        +

        Not all database platforms support table repairs.

        +
        +
        +
        +

        Optimize a Database

        +

        Permits you to optimize the database your DB class is currently +connected to. Returns an array containing the DB status messages or +FALSE on failure.

        +
        $result = $this->dbutil->optimize_database();
        +
        +if ($result !== FALSE)
        +{
        +        print_r($result);
        +}
        +
        +
        +
        +

        Note

        +

        Not all database platforms support database optimization. It +it is mostly for use with MySQL.

        +
        +
        +
        +

        Export a Query Result as a CSV File

        +

        Permits you to generate a CSV file from a query result. The first +parameter of the method must contain the result object from your +query. Example:

        +
        $this->load->dbutil();
        +
        +$query = $this->db->query("SELECT * FROM mytable");
        +
        +echo $this->dbutil->csv_from_result($query);
        +
        +
        +

        The second, third, and fourth parameters allow you to set the delimiter +newline, and enclosure characters respectively. By default commas are +used as the delimiter, “n” is used as a new line, and a double-quote +is used as the enclosure. Example:

        +
        $delimiter = ",";
        +$newline = "\r\n";
        +$enclosure = '"';
        +
        +echo $this->dbutil->csv_from_result($query, $delimiter, $newline, $enclosure);
        +
        +
        +
        +

        Important

        +

        This method will NOT write the CSV file for you. It +simply creates the CSV layout. If you need to write the file +use the File Helper.

        +
        +
        +
        +

        Export a Query Result as an XML Document

        +

        Permits you to generate an XML file from a query result. The first +parameter expects a query result object, the second may contain an +optional array of config parameters. Example:

        +
        $this->load->dbutil();
        +
        +$query = $this->db->query("SELECT * FROM mytable");
        +
        +$config = array (
        +        'root'          => 'root',
        +        'element'       => 'element',
        +        'newline'       => "\n",
        +        'tab'           => "\t"
        +);
        +
        +echo $this->dbutil->xml_from_result($query, $config);
        +
        +
        +
        +

        Important

        +

        This method will NOT write the XML file for you. It +simply creates the XML layout. If you need to write the file +use the File Helper.

        +
        +
        +
        +
        +

        Backup Your Database

        +
        +

        Database Backup Notes

        +

        Permits you to backup your full database or individual tables. The +backup data can be compressed in either Zip or Gzip format.

        +
        +

        Note

        +

        This feature is only available for MySQL and Interbase/Firebird databases.

        +
        +
        +

        Note

        +

        For Interbase/Firebird databases, the backup file name is the only parameter.

        +

        $this->dbutil->backup(‘db_backup_filename’);

        +
        +
        +

        Note

        +

        Due to the limited execution time and memory available to PHP, +backing up very large databases may not be possible. If your database is +very large you might need to backup directly from your SQL server via +the command line, or have your server admin do it for you if you do not +have root privileges.

        +
        +
        +
        +

        Usage Example

        +
        // Load the DB utility class
        +$this->load->dbutil();
        +
        +// Backup your entire database and assign it to a variable
        +$backup = $this->dbutil->backup();
        +
        +// Load the file helper and write the file to your server
        +$this->load->helper('file');
        +write_file('/path/to/mybackup.gz', $backup);
        +
        +// Load the download helper and send the file to your desktop
        +$this->load->helper('download');
        +force_download('mybackup.gz', $backup);
        +
        +
        +
        +
        +

        Setting Backup Preferences

        +

        Backup preferences are set by submitting an array of values to the first +parameter of the backup() method. Example:

        +
        $prefs = array(
        +        'tables'        => array('table1', 'table2'),   // Array of tables to backup.
        +        'ignore'        => array(),                     // List of tables to omit from the backup
        +        'format'        => 'txt',                       // gzip, zip, txt
        +        'filename'      => 'mybackup.sql',              // File name - NEEDED ONLY WITH ZIP FILES
        +        'add_drop'      => TRUE,                        // Whether to add DROP TABLE statements to backup file
        +        'add_insert'    => TRUE,                        // Whether to add INSERT data to backup file
        +        'newline'       => "\n"                         // Newline character used in backup file
        +);
        +
        +$this->dbutil->backup($prefs);
        +
        +
        +
        +
        +

        Description of Backup Preferences

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefault ValueOptionsDescription
        tablesempty arrayNoneAn array of tables you want backed up. If left blank all tables will be +exported.
        ignoreempty arrayNoneAn array of tables you want the backup routine to ignore.
        formatgzipgzip, zip, txtThe file format of the export file.
        filenamethe current date/timeNoneThe name of the backed-up file. The name is needed only if you are using +zip compression.
        add_dropTRUETRUE/FALSEWhether to include DROP TABLE statements in your SQL export file.
        add_insertTRUETRUE/FALSEWhether to include INSERT statements in your SQL export file.
        newline“\n”“\n”, “\r”, “\r\n”Type of newline to use in your SQL export file.
        foreign_key_checksTRUETRUE/FALSEWhether output should keep foreign key checks enabled.
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_DB_utility
        +
        +
        +backup([$params = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $params (array) – An associative array of options
        • +
        +
        Returns:

        raw/(g)zipped SQL query string

        +
        Return type:

        string

        +
        +

        Perform a database backup, per user preferences.

        +
        + +
        +
        +database_exists($database_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $database_name (string) – Database name
        • +
        +
        Returns:

        TRUE if the database exists, FALSE otherwise

        +
        Return type:

        bool

        +
        +

        Check for the existence of a database.

        +
        + +
        +
        +list_databases()
        +
        +++ + + + + + +
        Returns:Array of database names found
        Return type:array
        +

        Retrieve a list of all the database names.

        +
        + +
        +
        +optimize_database()
        +
        +++ + + + + + +
        Returns:Array of optimization messages or FALSE on failure
        Return type:array
        +

        Optimizes the database.

        +
        + +
        +
        +optimize_table($table_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table_name (string) – Name of the table to optimize
        • +
        +
        Returns:

        Array of optimization messages or FALSE on failure

        +
        Return type:

        array

        +
        +

        Optimizes a database table.

        +
        + +
        +
        +repair_table($table_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table_name (string) – Name of the table to repair
        • +
        +
        Returns:

        Array of repair messages or FALSE on failure

        +
        Return type:

        array

        +
        +

        Repairs a database table.

        +
        + +
        +
        +csv_from_result($query[, $delim = ', '[, $newline = "n"[, $enclosure = '"']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $query (object) – A database result object
        • +
        • $delim (string) – The CSV field delimiter to use
        • +
        • $newline (string) – The newline character to use
        • +
        • $enclosure (string) – The enclosure delimiter to use
        • +
        +
        Returns:

        The generated CSV file as a string

        +
        Return type:

        string

        +
        +

        Translates a database result object into a CSV document.

        +
        + +
        +
        +xml_from_result($query[, $params = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $query (object) – A database result object
        • +
        • $params (array) – An associative array of preferences
        • +
        +
        Returns:

        The generated XML document as a string

        +
        Return type:

        string

        +
        +

        Translates a database result object into an XML document.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/documentation/index.html b/sna/user_guide/documentation/index.html new file mode 100644 index 0000000..456f6ac --- /dev/null +++ b/sna/user_guide/documentation/index.html @@ -0,0 +1,703 @@ + + + + + + + + + + Writing CodeIgniter Documentation — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Writing CodeIgniter Documentation

        +

        CodeIgniter uses Sphinx to generate its documentation in a variety of formats, +using reStructuredText to handle the formatting. If you are familiar with +Markdown or Textile, you will quickly grasp reStructuredText. The focus is +on readability and user friendliness. +While they can be quite technical, we always write for humans!

        +

        A local table of contents should always be included, like the one below. +It is created automatically by inserting the following:

        +
        .. contents::
        +        :local:
        +
        +.. raw:: html
        +
        +<div class="custom-index container"></div>
        +
        +
        + +

        The <div> that is inserted as raw HTML is a hook for the documentation’s +JavaScript to dynamically add links to any function and method definitions +contained in the current page.

        +
        +

        Tools Required

        +

        To see the rendered HTML, ePub, PDF, etc., you will need to install Sphinx +along with the PHP domain extension for Sphinx. The underlying requirement +is to have Python installed. Lastly, you will install the CI Lexer for +Pygments, so that code blocks can be properly highlighted.

        +
        easy_install "sphinx==1.2.3"
        +easy_install "sphinxcontrib-phpdomain==0.1.3.post1"
        +
        +
        +

        Then follow the directions in the README file in the cilexer folder +inside the documentation repository to install the CI Lexer.

        +
        +
        +

        Page and Section Headings and Subheadings

        +

        Headings not only provide order and sections within a page, but they also +are used to automatically build both the page and document table of contents. +Headings are formed by using certain characters as underlines for a bit of +text. Major headings, like page titles and section headings also use +overlines. Other headings just use underlines, with the following hierarchy:

        +
        # with overline for page titles
        +* with overline for major sections
        += for subsections
        +- for subsubsections
        +^ for subsubsubsections
        +" for subsubsubsubsections (!)
        +
        +
        +

        The TextMate ELDocs Bundle can help you +create these with the following tab triggers:

        +
        title->
        +
        +        ##########
        +        Page Title
        +        ##########
        +
        +sec->
        +
        +        *************
        +        Major Section
        +        *************
        +
        +sub->
        +
        +        Subsection
        +        ==========
        +
        +sss->
        +
        +        SubSubSection
        +        -------------
        +
        +ssss->
        +
        +        SubSubSubSection
        +        ^^^^^^^^^^^^^^^^
        +
        +sssss->
        +
        +        SubSubSubSubSection (!)
        +        """""""""""""""""""""""
        +
        +
        +
        +
        +

        Method Documentation

        +

        When documenting class methods for third party developers, Sphinx provides +directives to assist and keep things simple. +For example, consider the following ReST:

        +
        .. php:class:: Some_class
        +
        +        .. php:method:: some_method ( $foo [, $bar [, $bat]])
        +
        +                This function will perform some action. The ``$bar`` array must contain
        +                a something and something else, and along with ``$bat`` is an optional
        +                parameter.
        +
        +                :param int $foo: the foo id to do something in
        +                :param mixed $bar: A data array that must contain a something and something else
        +                :param bool $bat: whether or not to do something
        +                :returns: FALSE on failure, TRUE if successful
        +                :rtype: bool
        +
        +                ::
        +
        +                        $this->load->library('some_class');
        +
        +                        $bar = array(
        +                                'something'             => 'Here is this parameter!',
        +                                'something_else'        => 42
        +                        );
        +
        +                        $bat = $this->some_class->should_do_something();
        +
        +                        if ($this->some_class->some_method(4, $bar, $bat) === FALSE)
        +                        {
        +                                show_error('An Error Occurred Doing Some Method');
        +                        }
        +
        +                .. note:: Here is something that you should be aware of when using some_method().
        +                                For real.
        +
        +                See also :meth:`Some_class::should_do_something`
        +
        +
        +        .. php:method:: should_do_something()
        +
        +                :returns: Whether or not something should be done
        +                :rtype: bool
        +
        +
        +

        It creates the following display:

        +
        +
        +class Some_class
        +
        +
        +some_method($foo[, $bar[, $bat]])
        +

        This function will perform some action. The $bar array must contain +a something and something else, and along with $bat is an optional +parameter.

        + +++ + + + + + + + +
        Parameters:
          +
        • $foo (int) – the foo id to do something in
        • +
        • $bar (mixed) – A data array that must contain a something and something else
        • +
        • $bat (bool) – whether or not to do something
        • +
        +
        Returns:

        FALSE on failure, TRUE if successful

        +
        Return type:

        bool

        +
        +
        $this->load->library('some_class');
        +
        +$bar = array(
        +        'something'             => 'Here is this parameter!',
        +        'something_else'        => 42
        +);
        +
        +$bat = $this->some_class->should_do_something();
        +
        +if ($this->some_class->some_method(4, $bar, $bat) === FALSE)
        +{
        +        show_error('An Error Occurred Doing Some Method');
        +}
        +
        +
        +
        +

        Note

        +

        Here is something that you should be aware of when using some_method(). +For real.

        +
        +

        See also Some_class::should_do_something()

        +
        + +
        +
        +should_do_something()
        +
        +++ + + + + + +
        Returns:Whether or not something should be done
        Return type:bool
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/alternative_php.html b/sna/user_guide/general/alternative_php.html new file mode 100644 index 0000000..0b162cc --- /dev/null +++ b/sna/user_guide/general/alternative_php.html @@ -0,0 +1,567 @@ + + + + + + + + + + Alternate PHP Syntax for View Files — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Alternate PHP Syntax for View Files

        +

        If you do not utilize CodeIgniter’s template +engine, you’ll be using pure PHP in your +View files. To minimize the PHP code in these files, and to make it +easier to identify the code blocks it is recommended that you use PHPs +alternative syntax for control structures and short tag echo statements. +If you are not familiar with this syntax, it allows you to eliminate the +braces from your code, and eliminate “echo” statements.

        +
        +

        Automatic Short Tag Support

        +
        +

        Note

        +

        If you find that the syntax described in this page does not +work on your server it might be that “short tags” are disabled in your +PHP ini file. CodeIgniter will optionally rewrite short tags on-the-fly, +allowing you to use that syntax even if your server doesn’t support it. +This feature can be enabled in your config/config.php file.

        +
        +

        Please note that if you do use this feature, if PHP errors are +encountered in your view files, the error message and line number +will not be accurately shown. Instead, all errors will be shown as +eval() errors.

        +
        +
        +

        Alternative Echos

        +

        Normally to echo, or print out a variable you would do this:

        +
        <?php echo $variable; ?>
        +
        +
        +

        With the alternative syntax you can instead do it this way:

        +
        <?=$variable?>
        +
        +
        +
        +
        +

        Alternative Control Structures

        +

        Controls structures, like if, for, foreach, and while can be written in +a simplified format as well. Here is an example using foreach:

        +
        <ul>
        +
        +<?php foreach ($todo as $item): ?>
        +
        +        <li><?=$item?></li>
        +
        +<?php endforeach; ?>
        +
        +</ul>
        +
        +
        +

        Notice that there are no braces. Instead, the end brace is replaced with +endforeach. Each of the control structures listed above has a similar +closing syntax: endif, endfor, endforeach, and endwhile

        +

        Also notice that instead of using a semicolon after each structure +(except the last one), there is a colon. This is important!

        +

        Here is another example, using if/elseif/else. Notice the colons:

        +
        <?php if ($username === 'sally'): ?>
        +
        +        <h3>Hi Sally</h3>
        +
        +<?php elseif ($username === 'joe'): ?>
        +
        +        <h3>Hi Joe</h3>
        +
        +<?php else: ?>
        +
        +        <h3>Hi unknown user</h3>
        +
        +<?php endif; ?>
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/ancillary_classes.html b/sna/user_guide/general/ancillary_classes.html new file mode 100644 index 0000000..48f5dc8 --- /dev/null +++ b/sna/user_guide/general/ancillary_classes.html @@ -0,0 +1,579 @@ + + + + + + + + + + Creating Ancillary Classes — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Creating Ancillary Classes

        +

        In some cases you may want to develop classes that exist apart from your +controllers but have the ability to utilize all of CodeIgniter’s +resources. This is easily possible as you’ll see.

        +
        +

        get_instance()

        +
        +
        +get_instance()
        +
        +++ + + + + + +
        Returns:Reference to your controller’s instance
        Return type:CI_Controller
        +
        + +

        Any class that you instantiate within your controller methods can +access CodeIgniter’s native resources simply by using the +get_instance() function. This function returns the main +CodeIgniter object.

        +

        Normally, to call any of the available CodeIgniter methods requires +you to use the $this construct:

        +
        $this->load->helper('url');
        +$this->load->library('session');
        +$this->config->item('base_url');
        +// etc.
        +
        +
        +

        $this, however, only works within your controllers, your models, +or your views. If you would like to use CodeIgniter’s classes from +within your own custom classes you can do so as follows:

        +

        First, assign the CodeIgniter object to a variable:

        +
        $CI =& get_instance();
        +
        +
        +

        Once you’ve assigned the object to a variable, you’ll use that variable +instead of $this:

        +
        $CI =& get_instance();
        +
        +$CI->load->helper('url');
        +$CI->load->library('session');
        +$CI->config->item('base_url');
        +// etc.
        +
        +
        +

        If you’ll be using get_instance() inside another class, then it would +be better if you assign it to a property. This way, you won’t need to call +get_instance() in every single method.

        +

        Example:

        +
        class Example {
        +
        +        protected $CI;
        +
        +        // We'll use a constructor, as you can't directly call a function
        +        // from a property definition.
        +        public function __construct()
        +        {
        +                // Assign the CodeIgniter super-object
        +                $this->CI =& get_instance();
        +        }
        +
        +        public function foo()
        +        {
        +                $this->CI->load->helper('url');
        +                redirect();
        +        }
        +
        +        public function bar()
        +        {
        +                $this->CI->config->item('base_url');
        +        }
        +}
        +
        +
        +

        In the above example, both methods foo() and bar() will work +after you instantiate the Example class, without the need to call +get_instance() in each of them.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/autoloader.html b/sna/user_guide/general/autoloader.html new file mode 100644 index 0000000..3b64b3e --- /dev/null +++ b/sna/user_guide/general/autoloader.html @@ -0,0 +1,520 @@ + + + + + + + + + + Auto-loading Resources — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Auto-loading Resources

        +

        CodeIgniter comes with an “Auto-load” feature that permits libraries, +helpers, and models to be initialized automatically every time the +system runs. If you need certain resources globally throughout your +application you should consider auto-loading them for convenience.

        +

        The following items can be loaded automatically:

        +
          +
        • Classes found in the libraries/ directory
        • +
        • Helper files found in the helpers/ directory
        • +
        • Custom config files found in the config/ directory
        • +
        • Language files found in the system/language/ directory
        • +
        • Models found in the models/ folder
        • +
        +

        To autoload resources, open the application/config/autoload.php +file and add the item you want loaded to the autoload array. You’ll +find instructions in that file corresponding to each type of item.

        +
        +

        Note

        +

        Do not include the file extension (.php) when adding items to +the autoload array.

        +
        +

        Additionally, if you want CodeIgniter to use a Composer +auto-loader, just set $config['composer_autoload'] to TRUE or +a custom path in application/config/config.php.

        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/caching.html b/sna/user_guide/general/caching.html new file mode 100644 index 0000000..7c7f90f --- /dev/null +++ b/sna/user_guide/general/caching.html @@ -0,0 +1,564 @@ + + + + + + + + + + Web Page Caching — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Web Page Caching

        +

        CodeIgniter lets you cache your pages in order to achieve maximum +performance.

        +

        Although CodeIgniter is quite fast, the amount of dynamic information +you display in your pages will correlate directly to the server +resources, memory, and processing cycles utilized, which affect your +page load speeds. By caching your pages, since they are saved in their +fully rendered state, you can achieve performance that nears that of +static web pages.

        +
        +

        How Does Caching Work?

        +

        Caching can be enabled on a per-page basis, and you can set the length +of time that a page should remain cached before being refreshed. When a +page is loaded for the first time, the cache file will be written to +your application/cache folder. On subsequent page loads the cache file +will be retrieved and sent to the requesting user’s browser. If it has +expired, it will be deleted and refreshed before being sent to the +browser.

        +
        +
        +

        Enabling Caching

        +

        To enable caching, put the following tag in any of your controller +methods:

        +
        $this->output->cache($n);
        +
        +
        +

        Where $n is the number of minutes you wish the page to remain +cached between refreshes.

        +

        The above tag can go anywhere within a method. It is not affected by +the order that it appears, so place it wherever it seems most logical to +you. Once the tag is in place, your pages will begin being cached.

        +
        +

        Important

        +

        Because of the way CodeIgniter stores content for output, +caching will only work if you are generating display for your +controller with a view.

        +
        +
        +

        Important

        +

        If you change configuration options that might affect +your output, you have to manually delete your cache files.

        +
        +
        +

        Note

        +

        Before the cache files can be written you must set the file +permissions on your application/cache/ directory such that +it is writable.

        +
        +
        +
        +

        Deleting Caches

        +

        If you no longer wish to cache a file you can remove the caching tag and +it will no longer be refreshed when it expires.

        +
        +

        Note

        +

        Removing the tag will not delete the cache immediately. It will +have to expire normally.

        +
        +

        If you need to manually delete the cache, you can use the delete_cache() +method:

        +
        // Deletes cache for the currently requested URI
        +$this->output->delete_cache();
        +
        +// Deletes cache for /foo/bar
        +$this->output->delete_cache('/foo/bar');
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/cli.html b/sna/user_guide/general/cli.html new file mode 100644 index 0000000..540e3b0 --- /dev/null +++ b/sna/user_guide/general/cli.html @@ -0,0 +1,574 @@ + + + + + + + + + + Running via the CLI — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Running via the CLI

        +

        As well as calling an applications Controllers +via the URL in a browser they can also be loaded via the command-line +interface (CLI).

        + +
        +

        What is the CLI?

        +

        The command-line interface is a text-based method of interacting with +computers. For more information, check the Wikipedia +article.

        +
        +
        +

        Why run via the command-line?

        +

        There are many reasons for running CodeIgniter from the command-line, +but they are not always obvious.

        +
          +
        • Run your cron-jobs without needing to use wget or curl
        • +
        • Make your cron-jobs inaccessible from being loaded in the URL by +checking the return value of is_cli().
        • +
        • Make interactive “tasks” that can do things like set permissions, +prune cache folders, run backups, etc.
        • +
        • Integrate with other applications in other languages. For example, a +random C++ script could call one command and run code in your models!
        • +
        +
        +
        +

        Let’s try it: Hello World!

        +

        Let’s create a simple controller so you can see it in action. Using your +text editor, create a file called Tools.php, and put the following code +in it:

        +
        <?php
        +class Tools extends CI_Controller {
        +
        +        public function message($to = 'World')
        +        {
        +                echo "Hello {$to}!".PHP_EOL;
        +        }
        +}
        +
        +
        +

        Then save the file to your application/controllers/ folder.

        +

        Now normally you would visit the site using a URL similar to this:

        +
        example.com/index.php/tools/message/to
        +
        +
        +

        Instead, we are going to open the terminal in Mac/Linux or go to Run > “cmd” +in Windows and navigate to our CodeIgniter project.

        +
        $ cd /path/to/project;
        +$ php index.php tools message
        +
        +
        +

        If you did it right, you should see Hello World! printed.

        +
        $ php index.php tools message "John Smith"
        +
        +
        +

        Here we are passing it a argument in the same way that URL parameters +work. “John Smith” is passed as a argument and output is:

        +
        Hello John Smith!
        +
        +
        +
        +
        +

        That’s it!

        +

        That, in a nutshell, is all there is to know about controllers on the +command line. Remember that this is just a normal controller, so routing +and _remap() works fine.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/common_functions.html b/sna/user_guide/general/common_functions.html new file mode 100644 index 0000000..c6553c3 --- /dev/null +++ b/sna/user_guide/general/common_functions.html @@ -0,0 +1,777 @@ + + + + + + + + + + Common Functions — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Common Functions

        +

        CodeIgniter uses a few functions for its operation that are globally +defined, and are available to you at any point. These do not require +loading any libraries or helpers.

        +
        +
        +is_php($version)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $version (string) – Version number
        • +
        +
        Returns:

        TRUE if the running PHP version is at least the one specified or FALSE if not

        +
        Return type:

        bool

        +
        +

        Determines if the PHP version being used is greater than the +supplied version number.

        +

        Example:

        +
        if (is_php('5.3'))
        +{
        +        $str = quoted_printable_encode($str);
        +}
        +
        +
        +

        Returns boolean TRUE if the installed version of PHP is equal to or +greater than the supplied version number. Returns FALSE if the installed +version of PHP is lower than the supplied version number.

        +
        + +
        +
        +is_really_writable($file)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $file (string) – File path
        • +
        +
        Returns:

        TRUE if the path is writable, FALSE if not

        +
        Return type:

        bool

        +
        +

        is_writable() returns TRUE on Windows servers when you really can’t +write to the file as the OS reports to PHP as FALSE only if the +read-only attribute is marked.

        +

        This function determines if a file is actually writable by attempting +to write to it first. Generally only recommended on platforms where +this information may be unreliable.

        +

        Example:

        +
        if (is_really_writable('file.txt'))
        +{
        +        echo "I could write to this if I wanted to";
        +}
        +else
        +{
        +        echo "File is not writable";
        +}
        +
        +
        +
        +

        Note

        +

        See also PHP bug #54709 for more info.

        +
        +
        + +
        +
        +config_item($key)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Config item key
        • +
        +
        Returns:

        Configuration key value or NULL if not found

        +
        Return type:

        mixed

        +
        +

        The Config Library is the preferred way of +accessing configuration information, however config_item() can be used +to retrieve single keys. See Config Library +documentation for more information.

        +
        + +
        +
        +set_status_header($code[, $text = ''])
        +
        +++ + + + + + +
        Parameters:
          +
        • $code (int) – HTTP Response status code
        • +
        • $text (string) – A custom message to set with the status code
        • +
        +
        Return type:

        void

        +
        +

        Permits you to manually set a server status header. Example:

        +
        set_status_header(401);
        +// Sets the header as:  Unauthorized
        +
        +
        +

        See here for +a full list of headers.

        +
        + +
        +
        +remove_invisible_characters($str[, $url_encoded = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $url_encoded (bool) – Whether to remove URL-encoded characters as well
        • +
        +
        Returns:

        Sanitized string

        +
        Return type:

        string

        +
        +

        This function prevents inserting NULL characters between ASCII +characters, like Java\0script.

        +

        Example:

        +
        remove_invisible_characters('Java\\0script');
        +// Returns: 'Javascript'
        +
        +
        +
        + +
        +
        +html_escape($var)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $var (mixed) – Variable to escape (string or array)
        • +
        +
        Returns:

        HTML escaped string(s)

        +
        Return type:

        mixed

        +
        +

        This function acts as an alias for PHP’s native htmlspecialchars() +function, with the advantage of being able to accept an array of strings.

        +

        It is useful in preventing Cross Site Scripting (XSS).

        +
        + +
        +
        +get_mimes()
        +
        +++ + + + + + +
        Returns:An associative array of file types
        Return type:array
        +

        This function returns a reference to the MIMEs array from +application/config/mimes.php.

        +
        + +
        +
        +is_https()
        +
        +++ + + + + + +
        Returns:TRUE if currently using HTTP-over-SSL, FALSE if not
        Return type:bool
        +

        Returns TRUE if a secure (HTTPS) connection is used and FALSE +in any other case (including non-HTTP requests).

        +
        + +
        +
        +is_cli()
        +
        +++ + + + + + +
        Returns:TRUE if currently running under CLI, FALSE otherwise
        Return type:bool
        +

        Returns TRUE if the application is run through the command line +and FALSE if not.

        +
        +

        Note

        +

        This function checks both if the PHP_SAPI value is ‘cli’ +or if the STDIN constant is defined.

        +
        +
        + +
        +
        +function_usable($function_name)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $function_name (string) – Function name
        • +
        +
        Returns:

        TRUE if the function can be used, FALSE if not

        +
        Return type:

        bool

        +
        +

        Returns TRUE if a function exists and is usable, FALSE otherwise.

        +

        This function runs a function_exists() check and if the +Suhosin extension <http://www.hardened-php.net/suhosin/> is loaded, +checks if it doesn’t disable the function being checked.

        +

        It is useful if you want to check for the availability of functions +such as eval() and exec(), which are dangerous and might be +disabled on servers with highly restrictive security policies.

        +
        +

        Note

        +

        This function was introduced because Suhosin terminated +script execution, but this turned out to be a bug. A fix +has been available for some time (version 0.9.34), but is +unfortunately not released yet.

        +
        +
        + +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/compatibility_functions.html b/sna/user_guide/general/compatibility_functions.html new file mode 100644 index 0000000..e175aaf --- /dev/null +++ b/sna/user_guide/general/compatibility_functions.html @@ -0,0 +1,915 @@ + + + + + + + + + + Compatibility Functions — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Compatibility Functions

        +

        CodeIgniter provides a set of compatibility functions that enable +you to use functions what are otherwise natively available in PHP, +but only in higher versions or depending on a certain extension.

        +

        Being custom implementations, these functions will also have some +set of dependencies on their own, but are still useful if your +PHP setup doesn’t offer them natively.

        +
        +

        Note

        +

        Much like the common functions, the +compatibility functions are always available, as long as +their dependencies are met.

        +
        + +
        +

        Password Hashing

        +

        This set of compatibility functions offers a “backport” of PHP’s +standard Password Hashing extension +that is otherwise available only since PHP 5.5.

        +
        +

        Dependencies

        +
          +
        • PHP 5.3.7
        • +
        • CRYPT_BLOWFISH support for crypt()
        • +
        +
        +
        +

        Constants

        +
          +
        • PASSWORD_BCRYPT
        • +
        • PASSWORD_DEFAULT
        • +
        +
        +
        +

        Function reference

        +
        +
        +password_get_info($hash)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $hash (string) – Password hash
        • +
        +
        Returns:

        Information about the hashed password

        +
        Return type:

        array

        +
        +

        For more information, please refer to the PHP manual for +password_get_info().

        +
        + +
        +
        +password_hash($password, $algo[, $options = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $password (string) – Plain-text password
        • +
        • $algo (int) – Hashing algorithm
        • +
        • $options (array) – Hashing options
        • +
        +
        Returns:

        Hashed password or FALSE on failure

        +
        Return type:

        string

        +
        +

        For more information, please refer to the PHP manual for +password_hash().

        +
        +

        Note

        +

        Unless you provide your own (and valid) salt, this function +has a further dependency on an available CSPRNG source. Each +of the following would satisfy that: +- mcrypt_create_iv() with MCRYPT_DEV_URANDOM +- openssl_random_pseudo_bytes() +- /dev/arandom +- /dev/urandom

        +
        +
        + +
        +
        +password_needs_rehash()
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $hash (string) – Password hash
        • +
        • $algo (int) – Hashing algorithm
        • +
        • $options (array) – Hashing options
        • +
        +
        Returns:

        TRUE if the hash should be rehashed to match the given algorithm and options, FALSE otherwise

        +
        Return type:

        bool

        +
        +

        For more information, please refer to the PHP manual for +password_needs_rehash().

        +
        + +
        +
        +password_verify($password, $hash)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $password (string) – Plain-text password
        • +
        • $hash (string) – Password hash
        • +
        +
        Returns:

        TRUE if the password matches the hash, FALSE if not

        +
        Return type:

        bool

        +
        +

        For more information, please refer to the PHP manual for +password_verify().

        +
        + +
        +
        +
        +

        Hash (Message Digest)

        +

        This compatibility layer contains backports for the hash_equals() +and hash_pbkdf2() functions, which otherwise require PHP 5.6 and/or +PHP 5.5 respectively.

        +
        +

        Dependencies

        +
          +
        • None
        • +
        +
        +
        +

        Function reference

        +
        +
        +hash_equals($known_string, $user_string)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $known_string (string) – Known string
        • +
        • $user_string (string) – User-supplied string
        • +
        +
        Returns:

        TRUE if the strings match, FALSE otherwise

        +
        Return type:

        string

        +
        +

        For more information, please refer to the PHP manual for +hash_equals().

        +
        + +
        +
        +hash_pbkdf2($algo, $password, $salt, $iterations[, $length = 0[, $raw_output = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $algo (string) – Hashing algorithm
        • +
        • $password (string) – Password
        • +
        • $salt (string) – Hash salt
        • +
        • $iterations (int) – Number of iterations to perform during derivation
        • +
        • $length (int) – Output string length
        • +
        • $raw_output (bool) – Whether to return raw binary data
        • +
        +
        Returns:

        Password-derived key or FALSE on failure

        +
        Return type:

        string

        +
        +

        For more information, please refer to the PHP manual for +hash_pbkdf2().

        +
        + +
        +
        +
        +

        Multibyte String

        +

        This set of compatibility functions offers limited support for PHP’s +Multibyte String extension. Because of +the limited alternative solutions, only a few functions are available.

        +
        +

        Note

        +

        When a character set parameter is ommited, +$config['charset'] will be used.

        +
        +
        +

        Dependencies

        + +
        +

        Important

        +

        This dependency is optional and these functions will +always be declared. If iconv is not available, they WILL +fall-back to their non-mbstring versions.

        +
        +
        +

        Important

        +

        Where a character set is supplied, it must be +supported by iconv and in a format that it recognizes.

        +
        +
        +

        Note

        +

        For you own dependency check on the actual mbstring +extension, use the MB_ENABLED constant.

        +
        +
        +
        +

        Function reference

        +
        +
        +mb_strlen($str[, $encoding = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $encoding (string) – Character set
        • +
        +
        Returns:

        Number of characters in the input string or FALSE on failure

        +
        Return type:

        string

        +
        +

        For more information, please refer to the PHP manual for +mb_strlen().

        +
        + +
        +
        +mb_strpos($haystack, $needle[, $offset = 0[, $encoding = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $haystack (string) – String to search in
        • +
        • $needle (string) – Part of string to search for
        • +
        • $offset (int) – Search offset
        • +
        • $encoding (string) – Character set
        • +
        +
        Returns:

        Numeric character position of where $needle was found or FALSE if not found

        +
        Return type:

        mixed

        +
        +

        For more information, please refer to the PHP manual for +mb_strpos().

        +
        + +
        +
        +mb_substr($str, $start[, $length = NULL[, $encoding = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $start (int) – Position of first character
        • +
        • $length (int) – Maximum number of characters
        • +
        • $encoding (string) – Character set
        • +
        +
        Returns:

        Portion of $str specified by $start and $length or FALSE on failure

        +
        Return type:

        string

        +
        +

        For more information, please refer to the PHP manual for +mb_substr().

        +
        + +
        +
        +
        +

        Standard Functions

        +

        This set of compatibility functions offers support for a few +standard functions in PHP that otherwise require a newer PHP version.

        +
        +

        Dependencies

        +
          +
        • None
        • +
        +
        +
        +

        Function reference

        +
        +
        +array_column(array $array, $column_key[, $index_key = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $array (array) – Array to fetch results from
        • +
        • $column_key (mixed) – Key of the column to return values from
        • +
        • $index_key (mixed) – Key to use for the returned values
        • +
        +
        Returns:

        An array of values representing a single column from the input array

        +
        Return type:

        array

        +
        +

        For more information, please refer to the PHP manual for +array_column().

        +
        + +
        +
        +hex2bin($data)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Hexadecimal representation of data
        • +
        +
        Returns:

        Binary representation of the given data

        +
        Return type:

        string

        +
        +

        For more information, please refer to the PHP manual for hex2bin().

        +
        + +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/controllers.html b/sna/user_guide/general/controllers.html new file mode 100644 index 0000000..2cd23ba --- /dev/null +++ b/sna/user_guide/general/controllers.html @@ -0,0 +1,846 @@ + + + + + + + + + + Controllers — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Controllers

        +

        Controllers are the heart of your application, as they determine how +HTTP requests should be handled.

        + +
        +

        What is a Controller?

        +

        A Controller is simply a class file that is named in a way that can be +associated with a URI.

        +

        Consider this URI:

        +
        example.com/index.php/blog/
        +
        +
        +

        In the above example, CodeIgniter would attempt to find a controller +named Blog.php and load it.

        +

        When a controller’s name matches the first segment of a URI, it will +be loaded.

        +
        +
        +

        Let’s try it: Hello World!

        +

        Let’s create a simple controller so you can see it in action. Using your +text editor, create a file called Blog.php, and put the following code +in it:

        +
        <?php
        +class Blog extends CI_Controller {
        +
        +        public function index()
        +        {
        +                echo 'Hello World!';
        +        }
        +}
        +
        +
        +

        Then save the file to your application/controllers/ directory.

        +
        +

        Important

        +

        The file must be called ‘Blog.php’, with a capital ‘B’.

        +
        +

        Now visit the your site using a URL similar to this:

        +
        example.com/index.php/blog/
        +
        +
        +

        If you did it right, you should see:

        +
        +
        Hello World!
        +
        +

        Important

        +

        Class names must start with an uppercase letter.

        +
        +

        This is valid:

        +
        <?php
        +class Blog extends CI_Controller {
        +
        +}
        +
        +
        +

        This is not valid:

        +
        <?php
        +class blog extends CI_Controller {
        +
        +}
        +
        +
        +

        Also, always make sure your controller extends the parent controller +class so that it can inherit all its methods.

        +
        +
        +

        Methods

        +

        In the above example the method name is index(). The “index” method +is always loaded by default if the second segment of the URI is +empty. Another way to show your “Hello World” message would be this:

        +
        example.com/index.php/blog/index/
        +
        +
        +

        The second segment of the URI determines which method in the +controller gets called.

        +

        Let’s try it. Add a new method to your controller:

        +
        <?php
        +class Blog extends CI_Controller {
        +
        +        public function index()
        +        {
        +                echo 'Hello World!';
        +        }
        +
        +        public function comments()
        +        {
        +                echo 'Look at this!';
        +        }
        +}
        +
        +
        +

        Now load the following URL to see the comment method:

        +
        example.com/index.php/blog/comments/
        +
        +
        +

        You should see your new message.

        +
        +
        +

        Passing URI Segments to your methods

        +

        If your URI contains more than two segments they will be passed to your +method as parameters.

        +

        For example, let’s say you have a URI like this:

        +
        example.com/index.php/products/shoes/sandals/123
        +
        +
        +

        Your method will be passed URI segments 3 and 4 (“sandals” and “123”):

        +
        <?php
        +class Products extends CI_Controller {
        +
        +        public function shoes($sandals, $id)
        +        {
        +                echo $sandals;
        +                echo $id;
        +        }
        +}
        +
        +
        +
        +

        Important

        +

        If you are using the URI Routing +feature, the segments passed to your method will be the re-routed +ones.

        +
        +
        +
        +

        Defining a Default Controller

        +

        CodeIgniter can be told to load a default controller when a URI is not +present, as will be the case when only your site root URL is requested. +To specify a default controller, open your application/config/routes.php +file and set this variable:

        +
        $route['default_controller'] = 'blog';
        +
        +
        +

        Where ‘blog’ is the name of the controller class you want used. If you now +load your main index.php file without specifying any URI segments you’ll +see your “Hello World” message by default.

        +

        For more information, please refer to the “Reserved Routes” section of the +URI Routing documentation.

        +
        +
        +

        Remapping Method Calls

        +

        As noted above, the second segment of the URI typically determines which +method in the controller gets called. CodeIgniter permits you to override +this behavior through the use of the _remap() method:

        +
        public function _remap()
        +{
        +        // Some code here...
        +}
        +
        +
        +
        +

        Important

        +

        If your controller contains a method named _remap(), +it will always get called regardless of what your URI contains. It +overrides the normal behavior in which the URI determines which method +is called, allowing you to define your own method routing rules.

        +
        +

        The overridden method call (typically the second segment of the URI) will +be passed as a parameter to the _remap() method:

        +
        public function _remap($method)
        +{
        +        if ($method === 'some_method')
        +        {
        +                $this->$method();
        +        }
        +        else
        +        {
        +                $this->default_method();
        +        }
        +}
        +
        +
        +

        Any extra segments after the method name are passed into _remap() as an +optional second parameter. This array can be used in combination with +PHP’s call_user_func_array() +to emulate CodeIgniter’s default behavior.

        +

        Example:

        +
        public function _remap($method, $params = array())
        +{
        +        $method = 'process_'.$method;
        +        if (method_exists($this, $method))
        +        {
        +                return call_user_func_array(array($this, $method), $params);
        +        }
        +        show_404();
        +}
        +
        +
        +
        +
        +

        Processing Output

        +

        CodeIgniter has an output class that takes care of sending your final +rendered data to the web browser automatically. More information on this +can be found in the Views and Output Class pages. In some cases, however, you might want to +post-process the finalized data in some way and send it to the browser +yourself. CodeIgniter permits you to add a method named _output() +to your controller that will receive the finalized output data.

        +
        +

        Important

        +

        If your controller contains a method named _output(), +it will always be called by the output class instead of +echoing the finalized data directly. The first parameter of the +method will contain the finalized output.

        +
        +

        Here is an example:

        +
        public function _output($output)
        +{
        +        echo $output;
        +}
        +
        +
        +
        +

        Note

        +

        Please note that your _output() method will receive the +data in its finalized state. Benchmark and memory usage data +will be rendered, cache files written (if you have caching +enabled), and headers will be sent (if you use that +feature) before it is handed off +to the _output() method. +To have your controller’s output cached properly, its +_output() method can use:

        +
        if ($this->output->cache_expiration > 0)
        +{
        +        $this->output->_write_cache($output);
        +}
        +
        +
        +

        If you are using this feature the page execution timer and +memory usage stats might not be perfectly accurate since they +will not take into account any further processing you do. +For an alternate way to control output before any of the +final processing is done, please see the available methods +in the Output Library.

        +
        +
        +
        +

        Private methods

        +

        In some cases you may want certain methods hidden from public access. +In order to achieve this, simply declare the method as being private +or protected and it will not be served via a URL request. For example, +if you were to have a method like this:

        +
        private function _utility()
        +{
        +        // some code
        +}
        +
        +
        +

        Trying to access it via the URL, like this, will not work:

        +
        example.com/index.php/blog/_utility/
        +
        +
        +
        +

        Note

        +

        Prefixing method names with an underscore will also prevent +them from being called. This is a legacy feature that is left +for backwards-compatibility.

        +
        +
        +
        +

        Organizing Your Controllers into Sub-directories

        +

        If you are building a large application you might want to hierarchically +organize or structure your controllers into sub-directories. CodeIgniter +permits you to do this.

        +

        Simply create sub-directories under the main application/controllers/ +one and place your controller classes within them.

        +
        +

        Note

        +

        When using this feature the first segment of your URI must +specify the folder. For example, let’s say you have a controller located +here:

        +
        application/controllers/products/Shoes.php
        +
        +
        +

        To call the above controller your URI will look something like this:

        +
        example.com/index.php/products/shoes/show/123
        +
        +
        +
        +

        Each of your sub-directories may contain a default controller which will be +called if the URL contains only the sub-directory. Simply put a controller +in there that matches the name of your ‘default_controller’ as specified in +your application/config/routes.php file.

        +

        CodeIgniter also permits you to remap your URIs using its URI +Routing feature.

        +
        +
        +

        Class Constructors

        +

        If you intend to use a constructor in any of your Controllers, you +MUST place the following line of code in it:

        +
        parent::__construct();
        +
        +
        +

        The reason this line is necessary is because your local constructor will +be overriding the one in the parent controller class so we need to +manually call it.

        +

        Example:

        +
        <?php
        +class Blog extends CI_Controller {
        +
        +        public function __construct()
        +        {
        +                parent::__construct();
        +                // Your own constructor code
        +        }
        +}
        +
        +
        +

        Constructors are useful if you need to set some default values, or run a +default process when your class is instantiated. Constructors can’t +return a value, but they can do some default work.

        +
        +
        +

        Reserved method names

        +

        Since your controller classes will extend the main application +controller you must be careful not to name your methods identically to +the ones used by that class, otherwise your local functions will +override them. See Reserved Names for a full +list.

        +
        +

        Important

        +

        You should also never have a method named identically +to its class name. If you do, and there is no __construct() +method in the same class, then your e.g. Index::index() +method will be executed as a class constructor! This is a PHP4 +backwards-compatibility feature.

        +
        +
        +
        +

        That’s it!

        +

        That, in a nutshell, is all there is to know about controllers.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/core_classes.html b/sna/user_guide/general/core_classes.html new file mode 100644 index 0000000..29f9f6f --- /dev/null +++ b/sna/user_guide/general/core_classes.html @@ -0,0 +1,613 @@ + + + + + + + + + + Creating Core System Classes — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Creating Core System Classes

        +

        Every time CodeIgniter runs there are several base classes that are +initialized automatically as part of the core framework. It is possible, +however, to swap any of the core system classes with your own versions +or even extend the core versions.

        +

        Most users will never have any need to do this, but the option to +replace or extend them does exist for those who would like to +significantly alter the CodeIgniter core.

        +
        +

        Note

        +

        Messing with a core system class has a lot of implications, so +make sure you know what you are doing before attempting it.

        +
        +
        +

        System Class List

        +

        The following is a list of the core system files that are invoked every +time CodeIgniter runs:

        +
          +
        • Benchmark
        • +
        • Config
        • +
        • Controller
        • +
        • Exceptions
        • +
        • Hooks
        • +
        • Input
        • +
        • Language
        • +
        • Loader
        • +
        • Log
        • +
        • Output
        • +
        • Router
        • +
        • Security
        • +
        • URI
        • +
        • Utf8
        • +
        +
        +
        +

        Replacing Core Classes

        +

        To use one of your own system classes instead of a default one simply +place your version inside your local application/core/ directory:

        +
        application/core/some_class.php
        +
        +
        +

        If this directory does not exist you can create it.

        +

        Any file named identically to one from the list above will be used +instead of the one normally used.

        +

        Please note that your class must use CI as a prefix. For example, if +your file is named Input.php the class will be named:

        +
        class CI_Input {
        +
        +}
        +
        +
        +
        +
        +

        Extending Core Class

        +

        If all you need to do is add some functionality to an existing library - +perhaps add a method or two - then it’s overkill to replace the entire +library with your version. In this case it’s better to simply extend the +class. Extending a class is nearly identical to replacing a class with a +couple exceptions:

        +
          +
        • The class declaration must extend the parent class.
        • +
        • Your new class name and filename must be prefixed with MY_ (this +item is configurable. See below.).
        • +
        +

        For example, to extend the native Input class you’ll create a file named +application/core/MY_Input.php, and declare your class with:

        +
        class MY_Input extends CI_Input {
        +
        +}
        +
        +
        +
        +

        Note

        +

        If you need to use a constructor in your class make sure you +extend the parent constructor:

        +
        class MY_Input extends CI_Input {
        +
        +        public function __construct()
        +        {
        +                parent::__construct();
        +        }
        +}
        +
        +
        +
        +

        Tip: Any functions in your class that are named identically to the +methods in the parent class will be used instead of the native ones +(this is known as “method overriding”). This allows you to substantially +alter the CodeIgniter core.

        +

        If you are extending the Controller core class, then be sure to extend +your new class in your application controller’s constructors.

        +
        class Welcome extends MY_Controller {
        +
        +        public function __construct()
        +        {
        +                parent::__construct();
        +                // Your own constructor code
        +        }
        +
        +        public function index()
        +        {
        +                $this->load->view('welcome_message');
        +        }
        +}
        +
        +
        +
        +

        Setting Your Own Prefix

        +

        To set your own sub-class prefix, open your +application/config/config.php file and look for this item:

        +
        $config['subclass_prefix'] = 'MY_';
        +
        +
        +

        Please note that all native CodeIgniter libraries are prefixed +with CI_ so DO NOT use that as your prefix.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/creating_drivers.html b/sna/user_guide/general/creating_drivers.html new file mode 100644 index 0000000..48a6a7e --- /dev/null +++ b/sna/user_guide/general/creating_drivers.html @@ -0,0 +1,525 @@ + + + + + + + + + + Creating Drivers — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Creating Drivers

        +
        +

        Driver Directory and File Structure

        +

        Sample driver directory and file structure layout:

        +
          +
        • /application/libraries/Driver_name
            +
          • Driver_name.php
          • +
          • drivers
              +
            • Driver_name_subclass_1.php
            • +
            • Driver_name_subclass_2.php
            • +
            • Driver_name_subclass_3.php
            • +
            +
          • +
          +
        • +
        +
        +

        Note

        +

        In order to maintain compatibility on case-sensitive +file systems, the Driver_name directory must be +named in the format returned by ucfirst().

        +
        +
        +

        Note

        +

        The Driver library’s architecture is such that +the subclasses don’t extend and therefore don’t inherit +properties or methods of the main driver.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/creating_libraries.html b/sna/user_guide/general/creating_libraries.html new file mode 100644 index 0000000..3c71c8a --- /dev/null +++ b/sna/user_guide/general/creating_libraries.html @@ -0,0 +1,754 @@ + + + + + + + + + + Creating Libraries — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Creating Libraries

        +

        When we use the term “Libraries” we are normally referring to the +classes that are located in the libraries directory and described in the +Class Reference of this user guide. In this case, however, we will +instead describe how you can create your own libraries within your +application/libraries directory in order to maintain separation between +your local resources and the global framework resources.

        +

        As an added bonus, CodeIgniter permits your libraries to extend native +classes if you simply need to add some functionality to an existing +library. Or you can even replace native libraries just by placing +identically named versions in your application/libraries directory.

        +

        In summary:

        +
          +
        • You can create entirely new libraries.
        • +
        • You can extend native libraries.
        • +
        • You can replace native libraries.
        • +
        +

        The page below explains these three concepts in detail.

        +
        +

        Note

        +

        The Database classes can not be extended or replaced with your +own classes. All other classes are able to be replaced/extended.

        +
        +
        +

        Storage

        +

        Your library classes should be placed within your application/libraries +directory, as this is where CodeIgniter will look for them when they are +initialized.

        +
        +
        +

        Naming Conventions

        +
          +
        • File names must be capitalized. For example: Myclass.php
        • +
        • Class declarations must be capitalized. For example: class Myclass
        • +
        • Class names and file names must match.
        • +
        +
        +
        +

        The Class File

        +

        Classes should have this basic prototype:

        +
        <?php
        +defined('BASEPATH') OR exit('No direct script access allowed');
        +
        +class Someclass {
        +
        +        public function some_method()
        +        {
        +        }
        +}
        +
        +
        +
        +

        Note

        +

        We are using the name Someclass purely as an example.

        +
        +
        +
        +

        Using Your Class

        +

        From within any of your Controller methods you +can initialize your class using the standard:

        +
        $this->load->library('someclass');
        +
        +
        +

        Where someclass is the file name, without the ”.php” file extension. +You can submit the file name capitalized or lower case. CodeIgniter +doesn’t care.

        +

        Once loaded you can access your class using the lower case version:

        +
        $this->someclass->some_method();  // Object instances will always be lower case
        +
        +
        +
        +
        +

        Passing Parameters When Initializing Your Class

        +

        In the library loading method you can dynamically pass data as an +array via the second parameter and it will be passed to your class +constructor:

        +
        $params = array('type' => 'large', 'color' => 'red');
        +
        +$this->load->library('someclass', $params);
        +
        +
        +

        If you use this feature you must set up your class constructor to expect +data:

        +
        <?php defined('BASEPATH') OR exit('No direct script access allowed');
        +
        +class Someclass {
        +
        +        public function __construct($params)
        +        {
        +                // Do something with $params
        +        }
        +}
        +
        +
        +

        You can also pass parameters stored in a config file. Simply create a +config file named identically to the class file name and store it in +your application/config/ directory. Note that if you dynamically pass +parameters as described above, the config file option will not be +available.

        +
        +
        +

        Utilizing CodeIgniter Resources within Your Library

        +

        To access CodeIgniter’s native resources within your library use the +get_instance() method. This method returns the CodeIgniter super +object.

        +

        Normally from within your controller methods you will call any of the +available CodeIgniter methods using the $this construct:

        +
        $this->load->helper('url');
        +$this->load->library('session');
        +$this->config->item('base_url');
        +// etc.
        +
        +
        +

        $this, however, only works directly within your controllers, your +models, or your views. If you would like to use CodeIgniter’s classes +from within your own custom classes you can do so as follows:

        +

        First, assign the CodeIgniter object to a variable:

        +
        $CI =& get_instance();
        +
        +
        +

        Once you’ve assigned the object to a variable, you’ll use that variable +instead of $this:

        +
        $CI =& get_instance();
        +
        +$CI->load->helper('url');
        +$CI->load->library('session');
        +$CI->config->item('base_url');
        +// etc.
        +
        +
        +
        +

        Note

        +

        You’ll notice that the above get_instance() function is being +passed by reference:

        +
        $CI =& get_instance();
        +
        +
        +

        This is very important. Assigning by reference allows you to use the +original CodeIgniter object rather than creating a copy of it.

        +
        +

        However, since a library is a class, it would be better if you +take full advantage of the OOP principles. So, in order to +be able to use the CodeIgniter super-object in all of the class +methods, you’re encouraged to assign it to a property instead:

        +
        class Example_library {
        +
        +        protected $CI;
        +
        +        // We'll use a constructor, as you can't directly call a function
        +        // from a property definition.
        +        public function __construct()
        +        {
        +                // Assign the CodeIgniter super-object
        +                $this->CI =& get_instance();
        +        }
        +
        +        public function foo()
        +        {
        +                $this->CI->load->helper('url');
        +                redirect();
        +        }
        +
        +        public function bar()
        +        {
        +                echo $this->CI->config->item('base_url');
        +        }
        +
        +}
        +
        +
        +
        +
        +

        Replacing Native Libraries with Your Versions

        +

        Simply by naming your class files identically to a native library will +cause CodeIgniter to use it instead of the native one. To use this +feature you must name the file and the class declaration exactly the +same as the native library. For example, to replace the native Email +library you’ll create a file named application/libraries/Email.php, +and declare your class with:

        +
        class CI_Email {
        +
        +}
        +
        +
        +

        Note that most native classes are prefixed with CI_.

        +

        To load your library you’ll see the standard loading method:

        +
        $this->load->library('email');
        +
        +
        +
        +

        Note

        +

        At this time the Database classes can not be replaced with +your own versions.

        +
        +
        +
        +

        Extending Native Libraries

        +

        If all you need to do is add some functionality to an existing library - +perhaps add a method or two - then it’s overkill to replace the entire +library with your version. In this case it’s better to simply extend the +class. Extending a class is nearly identical to replacing a class with a +couple exceptions:

        +
          +
        • The class declaration must extend the parent class.
        • +
        • Your new class name and filename must be prefixed with MY_ (this +item is configurable. See below.).
        • +
        +

        For example, to extend the native Email class you’ll create a file named +application/libraries/MY_Email.php, and declare your class with:

        +
        class MY_Email extends CI_Email {
        +
        +}
        +
        +
        +

        If you need to use a constructor in your class make sure you +extend the parent constructor:

        +
        class MY_Email extends CI_Email {
        +
        +        public function __construct($config = array())
        +        {
        +                parent::__construct($config);
        +        }
        +
        +}
        +
        +
        +
        +

        Note

        +

        Not all of the libraries have the same (or any) parameters +in their constructor. Take a look at the library that you’re +extending first to see how it should be implemented.

        +
        +
        +

        Loading Your Sub-class

        +

        To load your sub-class you’ll use the standard syntax normally used. DO +NOT include your prefix. For example, to load the example above, which +extends the Email class, you will use:

        +
        $this->load->library('email');
        +
        +
        +

        Once loaded you will use the class variable as you normally would for +the class you are extending. In the case of the email class all calls +will use:

        +
        $this->email->some_method();
        +
        +
        +
        +
        +

        Setting Your Own Prefix

        +

        To set your own sub-class prefix, open your +application/config/config.php file and look for this item:

        +
        $config['subclass_prefix'] = 'MY_';
        +
        +
        +

        Please note that all native CodeIgniter libraries are prefixed with CI_ +so DO NOT use that as your prefix.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/credits.html b/sna/user_guide/general/credits.html new file mode 100644 index 0000000..f9083e8 --- /dev/null +++ b/sna/user_guide/general/credits.html @@ -0,0 +1,503 @@ + + + + + + + + + + Credits — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Credits
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Credits

        +

        CodeIgniter was originally developed by Rick Ellis +(CEO of EllisLab, Inc.). The framework was written for +performance in the real world, with many of the class libraries, helpers, and +sub-systems borrowed from the code-base of ExpressionEngine.

        +

        It was, for years, developed and maintained by EllisLab, the ExpressionEngine +Development Team and a group of community members called the Reactor Team.

        +

        In 2014, CodeIgniter was acquired by the British Columbia Institute of Technology and was then officially announced as a community-maintained +project.

        +

        Bleeding edge development is spearheaded by the handpicked contributors +of the Reactor Team.

        +

        A hat tip goes to Ruby on Rails for inspiring us to create a PHP framework, and +for bringing frameworks into the general consciousness of the web community.

        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/drivers.html b/sna/user_guide/general/drivers.html new file mode 100644 index 0000000..b47eff7 --- /dev/null +++ b/sna/user_guide/general/drivers.html @@ -0,0 +1,531 @@ + + + + + + + + + + Using CodeIgniter Drivers — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Using CodeIgniter Drivers

        +

        Drivers are a special type of Library that has a parent class and any +number of potential child classes. Child classes have access to the +parent class, but not their siblings. Drivers provide an elegant syntax +in your controllers for libraries that benefit +from or require being broken down into discrete classes.

        +

        Drivers are found in the system/libraries/ directory, in their own +sub-directory which is identically named to the parent library class. +Also inside that directory is a subdirectory named drivers, which +contains all of the possible child class files.

        +

        To use a driver you will initialize it within a controller using the +following initialization method:

        +
        $this->load->driver('class_name');
        +
        +
        +

        Where class name is the name of the driver class you want to invoke. For +example, to load a driver named “Some_parent” you would do this:

        +
        $this->load->driver('some_parent');
        +
        +
        +

        Methods of that class can then be invoked with:

        +
        $this->some_parent->some_method();
        +
        +
        +

        The child classes, the drivers themselves, can then be called directly +through the parent class, without initializing them:

        +
        $this->some_parent->child_one->some_method();
        +$this->some_parent->child_two->another_method();
        +
        +
        +
        +

        Creating Your Own Drivers

        +

        Please read the section of the user guide that discusses how to create +your own drivers.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/environments.html b/sna/user_guide/general/environments.html new file mode 100644 index 0000000..b297291 --- /dev/null +++ b/sna/user_guide/general/environments.html @@ -0,0 +1,539 @@ + + + + + + + + + + Handling Multiple Environments — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Handling Multiple Environments

        +

        Developers often desire different system behavior depending on whether +an application is running in a development or production environment. +For example, verbose error output is something that would be useful +while developing an application, but it may also pose a security issue +when “live”.

        +
        +

        The ENVIRONMENT Constant

        +

        By default, CodeIgniter comes with the environment constant set to use +the value provided in $_SERVER['CI_ENV'], otherwise defaults to +‘development’. At the top of index.php, you will see:

        +
        define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
        +
        +
        +

        This server variable can be set in your .htaccess file, or Apache +config using SetEnv. +Alternative methods are available for nginx and other servers, or you can +remove this logic entirely and set the constant based on the server’s IP address.

        +

        In addition to affecting some basic framework behavior (see the next +section), you may use this constant in your own development to +differentiate between which environment you are running in.

        +
        +
        +

        Effects On Default Framework Behavior

        +

        There are some places in the CodeIgniter system where the ENVIRONMENT +constant is used. This section describes how default framework behavior +is affected.

        +
        +

        Error Reporting

        +

        Setting the ENVIRONMENT constant to a value of ‘development’ will cause +all PHP errors to be rendered to the browser when they occur. +Conversely, setting the constant to ‘production’ will disable all error +output. Disabling error reporting in production is a good security +practice.

        +
        +
        +

        Configuration Files

        +

        Optionally, you can have CodeIgniter load environment-specific +configuration files. This may be useful for managing things like +differing API keys across multiple environments. This is described in +more detail in the environment section of the Config Class documentation.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/errors.html b/sna/user_guide/general/errors.html new file mode 100644 index 0000000..7155c4f --- /dev/null +++ b/sna/user_guide/general/errors.html @@ -0,0 +1,650 @@ + + + + + + + + + + Error Handling — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Error Handling

        +

        CodeIgniter lets you build error reporting into your applications using +the functions described below. In addition, it has an error logging +class that permits error and debugging messages to be saved as text +files.

        +
        +

        Note

        +

        By default, CodeIgniter displays all PHP errors. You might +wish to change this behavior once your development is complete. You’ll +find the error_reporting() function located at the top of your main +index.php file. Disabling error reporting will NOT prevent log files +from being written if there are errors.

        +
        +

        Unlike most systems in CodeIgniter, the error functions are simple +procedural interfaces that are available globally throughout the +application. This approach permits error messages to get triggered +without having to worry about class/function scoping.

        +

        CodeIgniter also returns a status code whenever a portion of the core +calls exit(). This exit status code is separate from the HTTP status +code, and serves as a notice to other processes that may be watching of +whether the script completed successfully, or if not, what kind of +problem it encountered that caused it to abort. These values are +defined in application/config/constants.php. While exit status codes +are most useful in CLI settings, returning the proper code helps server +software keep track of your scripts and the health of your application.

        +

        The following functions let you generate errors:

        +
        +
        +show_error($message, $status_code, $heading = 'An Error Was Encountered')
        +
        +++ + + + + + +
        Parameters:
          +
        • $message (mixed) – Error message
        • +
        • $status_code (int) – HTTP Response status code
        • +
        • $heading (string) – Error page heading
        • +
        +
        Return type:

        void

        +
        +

        This function will display the error message supplied to it using +the error template appropriate to your execution:

        +
        application/views/errors/html/error_general.php
        +
        +
        +

        or:

        +
        +
        application/views/errors/cli/error_general.php
        +

        The optional parameter $status_code determines what HTTP status +code should be sent with the error. If $status_code is less +than 100, the HTTP status code will be set to 500, and the exit +status code will be set to $status_code + EXIT__AUTO_MIN. +If that value is larger than EXIT__AUTO_MAX, or if +$status_code is 100 or higher, the exit status code will be set +to EXIT_ERROR. +You can check in application/config/constants.php for more detail.

        +
        + +
        +
        +show_404($page = '', $log_error = TRUE)
        +
        +++ + + + + + +
        Parameters:
          +
        • $page (string) – URI string
        • +
        • $log_error (bool) – Whether to log the error
        • +
        +
        Return type:

        void

        +
        +

        This function will display the 404 error message supplied to it +using the error template appropriate to your execution:

        +
        application/views/errors/html/error_404.php
        +
        +
        +

        or:

        +
        +
        application/views/errors/cli/error_404.php
        +

        The function expects the string passed to it to be the file path to +the page that isn’t found. The exit status code will be set to +EXIT_UNKNOWN_FILE. +Note that CodeIgniter automatically shows 404 messages if +controllers are not found.

        +

        CodeIgniter automatically logs any show_404() calls. Setting the +optional second parameter to FALSE will skip logging.

        +
        + +
        +
        +log_message($level, $message)
        +
        +++ + + + + + +
        Parameters:
          +
        • $level (string) – Log level: ‘error’, ‘debug’ or ‘info’
        • +
        • $message (string) – Message to log
        • +
        +
        Return type:

        void

        +
        +

        This function lets you write messages to your log files. You must +supply one of three “levels” in the first parameter, indicating what +type of message it is (debug, error, info), with the message itself +in the second parameter.

        +

        Example:

        +
        if ($some_var == '')
        +{
        +        log_message('error', 'Some variable did not contain a value.');
        +}
        +else
        +{
        +        log_message('debug', 'Some variable was correctly set');
        +}
        +
        +log_message('info', 'The purpose of some variable is to provide some value.');
        +
        +
        +

        There are three message types:

        +
          +
        1. Error Messages. These are actual errors, such as PHP errors or +user errors.
        2. +
        3. Debug Messages. These are messages that assist in debugging. For +example, if a class has been initialized, you could log this as +debugging info.
        4. +
        5. Informational Messages. These are the lowest priority messages, +simply giving information regarding some process.
        6. +
        +
        +

        Note

        +

        In order for the log file to actually be written, the +logs/ directory must be writable. In addition, you must +set the “threshold” for logging in +application/config/config.php. You might, for example, +only want error messages to be logged, and not the other +two types. If you set it to zero logging will be disabled.

        +
        +
        + +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/helpers.html b/sna/user_guide/general/helpers.html new file mode 100644 index 0000000..914afcc --- /dev/null +++ b/sna/user_guide/general/helpers.html @@ -0,0 +1,630 @@ + + + + + + + + + + Helper Functions — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Helper Functions

        +

        Helpers, as the name suggests, help you with tasks. Each helper file is +simply a collection of functions in a particular category. There are URL +Helpers, that assist in creating links, there are Form Helpers that help +you create form elements, Text Helpers perform various text formatting +routines, Cookie Helpers set and read cookies, File Helpers help you +deal with files, etc.

        +

        Unlike most other systems in CodeIgniter, Helpers are not written in an +Object Oriented format. They are simple, procedural functions. Each +helper function performs one specific task, with no dependence on other +functions.

        +

        CodeIgniter does not load Helper Files by default, so the first step in +using a Helper is to load it. Once loaded, it becomes globally available +in your controller and +views.

        +

        Helpers are typically stored in your system/helpers, or +application/helpers directory. CodeIgniter will look first in your +application/helpers directory. If the directory does not exist or the +specified helper is not located there CI will instead look in your +global system/helpers/ directory.

        +
        +

        Loading a Helper

        +

        Loading a helper file is quite simple using the following method:

        +
        $this->load->helper('name');
        +
        +
        +

        Where name is the file name of the helper, without the .php file +extension or the “helper” part.

        +

        For example, to load the URL Helper file, which is named +url_helper.php, you would do this:

        +
        $this->load->helper('url');
        +
        +
        +

        A helper can be loaded anywhere within your controller methods (or +even within your View files, although that’s not a good practice), as +long as you load it before you use it. You can load your helpers in your +controller constructor so that they become available automatically in +any function, or you can load a helper in a specific function that needs +it.

        +
        +

        Note

        +

        The Helper loading method above does not return a value, so +don’t try to assign it to a variable. Just use it as shown.

        +
        +
        +
        +

        Loading Multiple Helpers

        +

        If you need to load more than one helper you can specify them in an +array, like this:

        +
        $this->load->helper(
        +        array('helper1', 'helper2', 'helper3')
        +);
        +
        +
        +
        +
        +

        Auto-loading Helpers

        +

        If you find that you need a particular helper globally throughout your +application, you can tell CodeIgniter to auto-load it during system +initialization. This is done by opening the application/config/autoload.php +file and adding the helper to the autoload array.

        +
        +
        +

        Using a Helper

        +

        Once you’ve loaded the Helper File containing the function you intend to +use, you’ll call it the way you would a standard PHP function.

        +

        For example, to create a link using the anchor() function in one of +your view files you would do this:

        +
        <?php echo anchor('blog/comments', 'Click Here');?>
        +
        +
        +

        Where “Click Here” is the name of the link, and “blog/comments” is the +URI to the controller/method you wish to link to.

        +
        +
        +

        “Extending” Helpers

        +

        To “extend” Helpers, create a file in your application/helpers/ folder +with an identical name to the existing Helper, but prefixed with MY_ +(this item is configurable. See below.).

        +

        If all you need to do is add some functionality to an existing helper - +perhaps add a function or two, or change how a particular helper +function operates - then it’s overkill to replace the entire helper with +your version. In this case it’s better to simply “extend” the Helper.

        +
        +

        Note

        +

        The term “extend” is used loosely since Helper functions are +procedural and discrete and cannot be extended in the traditional +programmatic sense. Under the hood, this gives you the ability to +add to or or to replace the functions a Helper provides.

        +
        +

        For example, to extend the native Array Helper you’ll create a file +named application/helpers/MY_array_helper.php, and add or override +functions:

        +
        // any_in_array() is not in the Array Helper, so it defines a new function
        +function any_in_array($needle, $haystack)
        +{
        +        $needle = is_array($needle) ? $needle : array($needle);
        +
        +        foreach ($needle as $item)
        +        {
        +                if (in_array($item, $haystack))
        +                {
        +                        return TRUE;
        +                }
        +        }
        +
        +        return FALSE;
        +}
        +
        +// random_element() is included in Array Helper, so it overrides the native function
        +function random_element($array)
        +{
        +        shuffle($array);
        +        return array_pop($array);
        +}
        +
        +
        +
        +

        Setting Your Own Prefix

        +

        The filename prefix for “extending” Helpers is the same used to extend +libraries and core classes. To set your own prefix, open your +application/config/config.php file and look for this item:

        +
        $config['subclass_prefix'] = 'MY_';
        +
        +
        +

        Please note that all native CodeIgniter libraries are prefixed with CI_ +so DO NOT use that as your prefix.

        +
        +
        +
        +

        Now What?

        +

        In the Table of Contents you’ll find a list of all the available Helper +Files. Browse each one to see what they do.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/hooks.html b/sna/user_guide/general/hooks.html new file mode 100644 index 0000000..c6a8de3 --- /dev/null +++ b/sna/user_guide/general/hooks.html @@ -0,0 +1,618 @@ + + + + + + + + + + Hooks - Extending the Framework Core — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Hooks - Extending the Framework Core

        +

        CodeIgniter’s Hooks feature provides a means to tap into and modify the +inner workings of the framework without hacking the core files. When +CodeIgniter runs it follows a specific execution process, diagramed in +the Application Flow page. There may be +instances, however, where you’d like to cause some action to take place +at a particular stage in the execution process. For example, you might +want to run a script right before your controllers get loaded, or right +after, or you might want to trigger one of your own scripts in some +other location.

        +
        +

        Enabling Hooks

        +

        The hooks feature can be globally enabled/disabled by setting the +following item in the application/config/config.php file:

        +
        $config['enable_hooks'] = TRUE;
        +
        +
        +
        +
        +

        Defining a Hook

        +

        Hooks are defined in the application/config/hooks.php file. +Each hook is specified as an array with this prototype:

        +
        $hook['pre_controller'] = array(
        +        'class'    => 'MyClass',
        +        'function' => 'Myfunction',
        +        'filename' => 'Myclass.php',
        +        'filepath' => 'hooks',
        +        'params'   => array('beer', 'wine', 'snacks')
        +);
        +
        +
        +

        Notes:

        +

        The array index correlates to the name of the particular hook point you +want to use. In the above example the hook point is pre_controller. A +list of hook points is found below. The following items should be +defined in your associative hook array:

        +
          +
        • class The name of the class you wish to invoke. If you prefer to +use a procedural function instead of a class, leave this item blank.
        • +
        • function The function (or method) name you wish to call.
        • +
        • filename The file name containing your class/function.
        • +
        • filepath The name of the directory containing your script. +Note: +Your script must be located in a directory INSIDE your application/ +directory, so the file path is relative to that directory. For example, +if your script is located in application/hooks/, you will simply use +‘hooks’ as your filepath. If your script is located in +application/hooks/utilities/ you will use ‘hooks/utilities’ as your +filepath. No trailing slash.
        • +
        • params Any parameters you wish to pass to your script. This item +is optional.
        • +
        +

        You can also use lambda/anoymous functions (or closures) as hooks, with +a simpler syntax:

        +
        $hook['post_controller'] = function()
        +{
        +        /* do something here */
        +};
        +
        +
        +
        +
        +

        Multiple Calls to the Same Hook

        +

        If want to use the same hook point with more than one script, simply +make your array declaration multi-dimensional, like this:

        +
        $hook['pre_controller'][] = array(
        +        'class'    => 'MyClass',
        +        'function' => 'MyMethod',
        +        'filename' => 'Myclass.php',
        +        'filepath' => 'hooks',
        +        'params'   => array('beer', 'wine', 'snacks')
        +);
        +
        +$hook['pre_controller'][] = array(
        +        'class'    => 'MyOtherClass',
        +        'function' => 'MyOtherMethod',
        +        'filename' => 'Myotherclass.php',
        +        'filepath' => 'hooks',
        +        'params'   => array('red', 'yellow', 'blue')
        +);
        +
        +
        +

        Notice the brackets after each array index:

        +
        $hook['pre_controller'][]
        +
        +
        +

        This permits you to have the same hook point with multiple scripts. The +order you define your array will be the execution order.

        +
        +
        +

        Hook Points

        +

        The following is a list of available hook points.

        +
          +
        • pre_system +Called very early during system execution. Only the benchmark and +hooks class have been loaded at this point. No routing or other +processes have happened.
        • +
        • pre_controller +Called immediately prior to any of your controllers being called. +All base classes, routing, and security checks have been done.
        • +
        • post_controller_constructor +Called immediately after your controller is instantiated, but prior +to any method calls happening.
        • +
        • post_controller +Called immediately after your controller is fully executed.
        • +
        • display_override +Overrides the _display() method, used to send the finalized page +to the web browser at the end of system execution. This permits you +to use your own display methodology. Note that you will need to +reference the CI superobject with $this->CI =& get_instance() and +then the finalized data will be available by calling +$this->CI->output->get_output().
        • +
        • cache_override +Enables you to call your own method instead of the _display_cache() +method in the Output Library. This permits +you to use your own cache display mechanism.
        • +
        • post_system +Called after the final rendered page is sent to the browser, at the +end of system execution after the finalized data is sent to the +browser.
        • +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/index.html b/sna/user_guide/general/index.html new file mode 100644 index 0000000..9d566fd --- /dev/null +++ b/sna/user_guide/general/index.html @@ -0,0 +1,570 @@ + + + + + + + + + + General Topics — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • General Topics
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        + +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/libraries.html b/sna/user_guide/general/libraries.html new file mode 100644 index 0000000..3ad5b54 --- /dev/null +++ b/sna/user_guide/general/libraries.html @@ -0,0 +1,522 @@ + + + + + + + + + + Using CodeIgniter Libraries — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Using CodeIgniter Libraries

        +

        All of the available libraries are located in your system/libraries/ +directory. In most cases, to use one of these classes involves initializing +it within a controller using the following +initialization method:

        +
        $this->load->library('class_name');
        +
        +
        +

        Where ‘class_name’ is the name of the class you want to invoke. For +example, to load the Form Validation Library you would do this:

        +
        $this->load->library('form_validation');
        +
        +
        +

        Once initialized you can use it as indicated in the user guide page +corresponding to that class.

        +

        Additionally, multiple libraries can be loaded at the same time by +passing an array of libraries to the load method.

        +

        Example:

        +
        $this->load->library(array('email', 'table'));
        +
        +
        +
        +

        Creating Your Own Libraries

        +

        Please read the section of the user guide that discusses how to +create your own libraries.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/managing_apps.html b/sna/user_guide/general/managing_apps.html new file mode 100644 index 0000000..3e8a304 --- /dev/null +++ b/sna/user_guide/general/managing_apps.html @@ -0,0 +1,555 @@ + + + + + + + + + + Managing your Applications — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Managing your Applications

        +

        By default it is assumed that you only intend to use CodeIgniter to +manage one application, which you will build in your application/ +directory. It is possible, however, to have multiple sets of +applications that share a single CodeIgniter installation, or even to +rename or relocate your application directory.

        +
        +

        Renaming the Application Directory

        +

        If you would like to rename your application directory you may do so +as long as you open your main index.php file and set its name using +the $application_folder variable:

        +
        $application_folder = 'application';
        +
        +
        +
        +
        +

        Relocating your Application Directory

        +

        It is possible to move your application directory to a different +location on your server than your web root. To do so open +your main index.php and set a full server path in the +$application_folder variable:

        +
        $application_folder = '/path/to/your/application';
        +
        +
        +
        +
        +

        Running Multiple Applications with one CodeIgniter Installation

        +

        If you would like to share a common CodeIgniter installation to manage +several different applications simply put all of the directories located +inside your application directory into their own sub-directory.

        +

        For example, let’s say you want to create two applications, named “foo” +and “bar”. You could structure your application directories like this:

        +
        applications/foo/
        +applications/foo/config/
        +applications/foo/controllers/
        +applications/foo/libraries/
        +applications/foo/models/
        +applications/foo/views/
        +applications/bar/
        +applications/bar/config/
        +applications/bar/controllers/
        +applications/bar/libraries/
        +applications/bar/models/
        +applications/bar/views/
        +
        +
        +

        To select a particular application for use requires that you open your +main index.php file and set the $application_folder variable. For +example, to select the “foo” application for use you would do this:

        +
        $application_folder = 'applications/foo';
        +
        +
        +
        +

        Note

        +

        Each of your applications will need its own index.php file +which calls the desired application. The index.php file can be named +anything you want.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/models.html b/sna/user_guide/general/models.html new file mode 100644 index 0000000..96d8a2a --- /dev/null +++ b/sna/user_guide/general/models.html @@ -0,0 +1,686 @@ + + + + + + + + + + Models — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Models

        +

        Models are optionally available for those who want to use a more +traditional MVC approach.

        + +
        +

        What is a Model?

        +

        Models are PHP classes that are designed to work with information in +your database. For example, let’s say you use CodeIgniter to manage a +blog. You might have a model class that contains functions to insert, +update, and retrieve your blog data. Here is an example of what such a +model class might look like:

        +
        class Blog_model extends CI_Model {
        +
        +        public $title;
        +        public $content;
        +        public $date;
        +
        +        public function get_last_ten_entries()
        +        {
        +                $query = $this->db->get('entries', 10);
        +                return $query->result();
        +        }
        +
        +        public function insert_entry()
        +        {
        +                $this->title    = $_POST['title']; // please read the below note
        +                $this->content  = $_POST['content'];
        +                $this->date     = time();
        +
        +                $this->db->insert('entries', $this);
        +        }
        +
        +        public function update_entry()
        +        {
        +                $this->title    = $_POST['title'];
        +                $this->content  = $_POST['content'];
        +                $this->date     = time();
        +
        +                $this->db->update('entries', $this, array('id' => $_POST['id']));
        +        }
        +
        +}
        +
        +
        +
        +

        Note

        +

        The methods in the above example use the Query Builder database methods.

        +
        +
        +

        Note

        +

        For the sake of simplicity in this example we’re using $_POST +directly. This is generally bad practice, and a more common approach +would be to use the Input Library +$this->input->post('title').

        +
        +
        +
        +

        Anatomy of a Model

        +

        Model classes are stored in your application/models/ directory. +They can be nested within sub-directories if you want this type of +organization.

        +

        The basic prototype for a model class is this:

        +
        class Model_name extends CI_Model {
        +
        +        public function __construct()
        +        {
        +                parent::__construct();
        +                // Your own constructor code
        +        }
        +
        +}
        +
        +
        +

        Where Model_name is the name of your class. Class names must have +the first letter capitalized with the rest of the name lowercase. Make +sure your class extends the base Model class.

        +

        The file name must match the class name. For example, if this is your class:

        +
        class User_model extends CI_Model {
        +
        +        public function __construct()
        +        {
        +                parent::__construct();
        +                // Your own constructor code
        +        }
        +
        +}
        +
        +
        +

        Your file will be this:

        +
        application/models/User_model.php
        +
        +
        +
        +
        +

        Loading a Model

        +

        Your models will typically be loaded and called from within your +controller methods. To load a model you will use +the following method:

        +
        $this->load->model('model_name');
        +
        +
        +

        If your model is located in a sub-directory, include the relative path +from your models directory. For example, if you have a model located at +application/models/blog/Queries.php you’ll load it using:

        +
        $this->load->model('blog/queries');
        +
        +
        +

        Once loaded, you will access your model methods using an object with the +same name as your class:

        +
        $this->load->model('model_name');
        +
        +$this->model_name->method();
        +
        +
        +

        If you would like your model assigned to a different object name you can +specify it via the second parameter of the loading method:

        +
        $this->load->model('model_name', 'foobar');
        +
        +$this->foobar->method();
        +
        +
        +

        Here is an example of a controller, that loads a model, then serves a +view:

        +
        class Blog_controller extends CI_Controller {
        +
        +        public function blog()
        +        {
        +                $this->load->model('blog');
        +
        +                $data['query'] = $this->blog->get_last_ten_entries();
        +
        +                $this->load->view('blog', $data);
        +        }
        +}
        +
        +
        +
        +
        +

        Auto-loading Models

        +

        If you find that you need a particular model globally throughout your +application, you can tell CodeIgniter to auto-load it during system +initialization. This is done by opening the +application/config/autoload.php file and adding the model to the +autoload array.

        +
        +
        +

        Connecting to your Database

        +

        When a model is loaded it does NOT connect automatically to your +database. The following options for connecting are available to you:

        +
          +
        • You can connect using the standard database methods described +here, either from within your +Controller class or your Model class.

          +
        • +
        • You can tell the model loading method to auto-connect by passing +TRUE (boolean) via the third parameter, and connectivity settings, +as defined in your database config file will be used:

          +
          $this->load->model('model_name', '', TRUE);
          +
          +
          +
        • +
        • You can manually pass database connectivity settings via the third +parameter:

          +
          $config['hostname'] = 'localhost';
          +$config['username'] = 'myusername';
          +$config['password'] = 'mypassword';
          +$config['database'] = 'mydatabase';
          +$config['dbdriver'] = 'mysqli';
          +$config['dbprefix'] = '';
          +$config['pconnect'] = FALSE;
          +$config['db_debug'] = TRUE;
          +
          +$this->load->model('model_name', '', $config);
          +
          +
          +
        • +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/profiling.html b/sna/user_guide/general/profiling.html new file mode 100644 index 0000000..0ca8a7c --- /dev/null +++ b/sna/user_guide/general/profiling.html @@ -0,0 +1,625 @@ + + + + + + + + + + Profiling Your Application — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Profiling Your Application

        +

        The Profiler Class will display benchmark results, queries you have run, +and $_POST data at the bottom of your pages. This information can be +useful during development in order to help with debugging and +optimization.

        +
        +

        Initializing the Class

        +
        +

        Important

        +

        This class does NOT need to be initialized. It is loaded +automatically by the Output Library +if profiling is enabled as shown below.

        +
        +
        +
        +

        Enabling the Profiler

        +

        To enable the profiler place the following line anywhere within your +Controller methods:

        +
        $this->output->enable_profiler(TRUE);
        +
        +
        +

        When enabled a report will be generated and inserted at the bottom of +your pages.

        +

        To disable the profiler you will use:

        +
        $this->output->enable_profiler(FALSE);
        +
        +
        +
        +
        +

        Setting Benchmark Points

        +

        In order for the Profiler to compile and display your benchmark data you +must name your mark points using specific syntax.

        +

        Please read the information on setting Benchmark points in the +Benchmark Library page.

        +
        +
        +

        Enabling and Disabling Profiler Sections

        +

        Each section of Profiler data can be enabled or disabled by setting a +corresponding config variable to TRUE or FALSE. This can be done one of +two ways. First, you can set application wide defaults with the +application/config/profiler.php config file.

        +

        Example:

        +
        $config['config']          = FALSE;
        +$config['queries']         = FALSE;
        +
        +
        +

        In your controllers, you can override the defaults and config file +values by calling the set_profiler_sections() method of the +Output Library:

        +
        $sections = array(
        +        'config'  => TRUE,
        +        'queries' => TRUE
        +);
        +
        +$this->output->set_profiler_sections($sections);
        +
        +
        +

        Available sections and the array key used to access them are described +in the table below.

        + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        KeyDescriptionDefault
        benchmarksElapsed time of Benchmark points and total execution timeTRUE
        configCodeIgniter Config variablesTRUE
        controller_infoThe Controller class and method requestedTRUE
        getAny GET data passed in the requestTRUE
        http_headersThe HTTP headers for the current requestTRUE
        memory_usageAmount of memory consumed by the current request, in bytesTRUE
        postAny POST data passed in the requestTRUE
        queriesListing of all database queries executed, including execution timeTRUE
        uri_stringThe URI of the current requestTRUE
        session_dataData stored in the current sessionTRUE
        query_toggle_countThe number of queries after which the query block will default to +hidden.25
        +
        +

        Note

        +

        Disabling the save_queries setting in +your database configuration will also effectively disable profiling for +database queries and render the ‘queries’ setting above useless. You can +optionally override this setting with $this->db->save_queries = TRUE;. +Without this setting you won’t be able to view the queries or the +last_query <database/helpers>.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/requirements.html b/sna/user_guide/general/requirements.html new file mode 100644 index 0000000..94970fa --- /dev/null +++ b/sna/user_guide/general/requirements.html @@ -0,0 +1,512 @@ + + + + + + + + + + Server Requirements — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Server Requirements
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Server Requirements

        +

        PHP version 5.6 or newer is recommended.

        +

        It should work on 5.3.7 as well, but we strongly advise you NOT to run +such old versions of PHP, because of potential security and performance +issues, as well as missing features.

        +

        A database is required for most web application programming. +Currently supported databases are:

        +
        +
          +
        • MySQL (5.1+) via the mysql (deprecated), mysqli and pdo drivers
        • +
        • Oracle via the oci8 and pdo drivers
        • +
        • PostgreSQL via the postgre and pdo drivers
        • +
        • MS SQL via the mssql, sqlsrv (version 2005 and above only) and pdo drivers
        • +
        • SQLite via the sqlite (version 2), sqlite3 (version 3) and pdo drivers
        • +
        • CUBRID via the cubrid and pdo drivers
        • +
        • Interbase/Firebird via the ibase and pdo drivers
        • +
        • ODBC via the odbc and pdo drivers (you should know that ODBC is actually an abstraction layer)
        • +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/reserved_names.html b/sna/user_guide/general/reserved_names.html new file mode 100644 index 0000000..8953340 --- /dev/null +++ b/sna/user_guide/general/reserved_names.html @@ -0,0 +1,584 @@ + + + + + + + + + + Reserved Names — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Reserved Names

        +

        In order to help out, CodeIgniter uses a series of function, method, +class and variable names in its operation. Because of this, some names +cannot be used by a developer. Following is a list of reserved names +that cannot be used.

        +
        +

        Controller names

        +

        Since your controller classes will extend the main application +controller you must be careful not to name your methods identically to +the ones used by that class, otherwise your local methods will +override them. The following is a list of reserved names. Do not name +your controller any of these:

        +
          +
        • CI_Controller
        • +
        • Default
        • +
        • index
        • +
        +
        +
        +

        Functions

        + +
        +
        +

        Variables

        +
          +
        • $config
        • +
        • $db
        • +
        • $lang
        • +
        +
        +
        +

        Constants

        +
          +
        • ENVIRONMENT
        • +
        • FCPATH
        • +
        • SELF
        • +
        • BASEPATH
        • +
        • APPPATH
        • +
        • VIEWPATH
        • +
        • CI_VERSION
        • +
        • MB_ENABLED
        • +
        • ICONV_ENABLED
        • +
        • UTF8_ENABLED
        • +
        • FILE_READ_MODE
        • +
        • FILE_WRITE_MODE
        • +
        • DIR_READ_MODE
        • +
        • DIR_WRITE_MODE
        • +
        • FOPEN_READ
        • +
        • FOPEN_READ_WRITE
        • +
        • FOPEN_WRITE_CREATE_DESTRUCTIVE
        • +
        • FOPEN_READ_WRITE_CREATE_DESTRUCTIVE
        • +
        • FOPEN_WRITE_CREATE
        • +
        • FOPEN_READ_WRITE_CREATE
        • +
        • FOPEN_WRITE_CREATE_STRICT
        • +
        • FOPEN_READ_WRITE_CREATE_STRICT
        • +
        • SHOW_DEBUG_BACKTRACE
        • +
        • EXIT_SUCCESS
        • +
        • EXIT_ERROR
        • +
        • EXIT_CONFIG
        • +
        • EXIT_UNKNOWN_FILE
        • +
        • EXIT_UNKNOWN_CLASS
        • +
        • EXIT_UNKNOWN_METHOD
        • +
        • EXIT_USER_INPUT
        • +
        • EXIT_DATABASE
        • +
        • EXIT__AUTO_MIN
        • +
        • EXIT__AUTO_MAX
        • +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/routing.html b/sna/user_guide/general/routing.html new file mode 100644 index 0000000..27e87d4 --- /dev/null +++ b/sna/user_guide/general/routing.html @@ -0,0 +1,690 @@ + + + + + + + + + + URI Routing — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        URI Routing

        +

        Typically there is a one-to-one relationship between a URL string and +its corresponding controller class/method. The segments in a URI +normally follow this pattern:

        +
        example.com/class/function/id/
        +
        +
        +

        In some instances, however, you may want to remap this relationship so +that a different class/method can be called instead of the one +corresponding to the URL.

        +

        For example, let’s say you want your URLs to have this prototype:

        +
        example.com/product/1/
        +example.com/product/2/
        +example.com/product/3/
        +example.com/product/4/
        +
        +
        +

        Normally the second segment of the URL is reserved for the method +name, but in the example above it instead has a product ID. To +overcome this, CodeIgniter allows you to remap the URI handler.

        +
        +

        Setting your own routing rules

        +

        Routing rules are defined in your application/config/routes.php file. +In it you’ll see an array called $route that permits you to specify +your own routing criteria. Routes can either be specified using wildcards +or Regular Expressions.

        +
        +
        +

        Wildcards

        +

        A typical wildcard route might look something like this:

        +
        $route['product/:num'] = 'catalog/product_lookup';
        +
        +
        +

        In a route, the array key contains the URI to be matched, while the +array value contains the destination it should be re-routed to. In the +above example, if the literal word “product” is found in the first +segment of the URL, and a number is found in the second segment, the +“catalog” class and the “product_lookup” method are instead used.

        +

        You can match literal values or you can use two wildcard types:

        +

        (:num) will match a segment containing only numbers. +(:any) will match a segment containing any character (except for ‘/’, which is the segment delimiter).

        +
        +

        Note

        +

        Wildcards are actually aliases for regular expressions, with +:any being translated to [^/]+ and :num to [0-9]+, +respectively.

        +
        +
        +

        Note

        +

        Routes will run in the order they are defined. Higher routes +will always take precedence over lower ones.

        +
        +
        +

        Note

        +

        Route rules are not filters! Setting a rule of e.g. +‘foo/bar/(:num)’ will not prevent controller Foo and method +bar to be called with a non-numeric value if that is a valid +route.

        +
        +
        +
        +

        Examples

        +

        Here are a few routing examples:

        +
        $route['journals'] = 'blogs';
        +
        +
        +

        A URL containing the word “journals” in the first segment will be +remapped to the “blogs” class.

        +
        $route['blog/joe'] = 'blogs/users/34';
        +
        +
        +

        A URL containing the segments blog/joe will be remapped to the “blogs” +class and the “users” method. The ID will be set to “34”.

        +
        $route['product/(:any)'] = 'catalog/product_lookup';
        +
        +
        +

        A URL with “product” as the first segment, and anything in the second +will be remapped to the “catalog” class and the “product_lookup” +method.

        +
        $route['product/(:num)'] = 'catalog/product_lookup_by_id/$1';
        +
        +
        +

        A URL with “product” as the first segment, and a number in the second +will be remapped to the “catalog” class and the +“product_lookup_by_id” method passing in the match as a variable to +the method.

        +
        +

        Important

        +

        Do not use leading/trailing slashes.

        +
        +
        +
        +

        Regular Expressions

        +

        If you prefer you can use regular expressions to define your routing +rules. Any valid regular expression is allowed, as are back-references.

        +
        +

        Note

        +

        If you use back-references you must use the dollar syntax +rather than the double backslash syntax.

        +
        +

        A typical RegEx route might look something like this:

        +
        $route['products/([a-z]+)/(\d+)'] = '$1/id_$2';
        +
        +
        +

        In the above example, a URI similar to products/shirts/123 would instead +call the “shirts” controller class and the “id_123” method.

        +

        With regular expressions, you can also catch multiple segments at once. +For example, if a user accesses a password protected area of your web +application and you wish to be able to redirect them back to the same +page after they log in, you may find this example useful:

        +
        $route['login/(.+)'] = 'auth/login/$1';
        +
        +
        +
        +

        Note

        +

        In the above example, if the $1 placeholder contains a +slash, it will still be split into multiple parameters when +passed to Auth::login().

        +
        +

        For those of you who don’t know regular expressions and want to learn +more about them, regular-expressions.info +might be a good starting point.

        +
        +

        Note

        +

        You can also mix and match wildcards with regular expressions.

        +
        +
        +
        +

        Callbacks

        +

        You can also use callbacks in place of the normal routing rules to process +the back-references. Example:

        +
        $route['products/([a-zA-Z]+)/edit/(\d+)'] = function ($product_type, $id)
        +{
        +        return 'catalog/product_edit/' . strtolower($product_type) . '/' . $id;
        +};
        +
        +
        +
        +
        +

        Using HTTP verbs in routes

        +

        It is possible to use HTTP verbs (request method) to define your routing rules. +This is particularly useful when building RESTful applications. You can use standard HTTP +verbs (GET, PUT, POST, DELETE, PATCH) or a custom one such (e.g. PURGE). HTTP verb rules +are case-insensitive. All you need to do is to add the verb as an array key to your route. +Example:

        +
        $route['products']['put'] = 'product/insert';
        +
        +
        +

        In the above example, a PUT request to URI “products” would call the Product::insert() +controller method.

        +
        $route['products/(:num)']['DELETE'] = 'product/delete/$1';
        +
        +
        +

        A DELETE request to URL with “products” as first the segment and a number in the second will be +mapped to the Product::delete() method, passing the numeric value as the first parameter.

        +

        Using HTTP verbs is of course, optional.

        +
        +
        +

        Reserved Routes

        +

        There are three reserved routes:

        +
        $route['default_controller'] = 'welcome';
        +
        +
        +

        This route points to the action that should be executed if the URI contains +no data, which will be the case when people load your root URL. +The setting accepts a controller/method value and index() would be +the default method if you don’t specify one. In the above example, it is +Welcome::index() that would be called.

        +
        +

        Note

        +

        You can NOT use a directory as a part of this setting!

        +
        +

        You are encouraged to always have a default route as otherwise a 404 page +will appear by default.

        +
        $route['404_override'] = '';
        +
        +
        +

        This route indicates which controller class should be loaded if the +requested controller is not found. It will override the default 404 +error page. Same per-directory rules as with ‘default_controller’ +apply here as well.

        +

        It won’t affect to the show_404() function, which will +continue loading the default error_404.php file at +application/views/errors/error_404.php.

        +
        $route['translate_uri_dashes'] = FALSE;
        +
        +
        +

        As evident by the boolean value, this is not exactly a route. This +option enables you to automatically replace dashes (‘-‘) with +underscores in the controller and method URI segments, thus saving you +additional route entries if you need to do that. +This is required, because the dash isn’t a valid class or method name +character and would cause a fatal error if you try to use it.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/security.html b/sna/user_guide/general/security.html new file mode 100644 index 0000000..b36ce2c --- /dev/null +++ b/sna/user_guide/general/security.html @@ -0,0 +1,664 @@ + + + + + + + + + + Security — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Security

        +

        This page describes some “best practices” regarding web security, and +details CodeIgniter’s internal security features.

        +
        +

        Note

        +

        If you came here looking for a security contact, please refer to +our Contribution Guide <../contributing/index>.

        +
        +
        +

        URI Security

        +

        CodeIgniter is fairly restrictive regarding which characters it allows +in your URI strings in order to help minimize the possibility that +malicious data can be passed to your application. URIs may only contain +the following:

        +
          +
        • Alpha-numeric text (latin characters only)
        • +
        • Tilde: ~
        • +
        • Percent sign: %
        • +
        • Period: .
        • +
        • Colon: :
        • +
        • Underscore: _
        • +
        • Dash: -
        • +
        • Space
        • +
        +
        +
        +

        Register_globals

        +

        During system initialization all global variables that are found to exist +in the $_GET, $_POST, $_REQUEST and $_COOKIE are unset.

        +

        The unsetting routine is effectively the same as register_globals = off.

        +
        +
        +

        display_errors

        +

        In production environments, it is typically desirable to “disable” PHP’s +error reporting by setting the internal display_errors flag to a value +of 0. This disables native PHP errors from being rendered as output, +which may potentially contain sensitive information.

        +

        Setting CodeIgniter’s ENVIRONMENT constant in index.php to a value of +‘production’ will turn off these errors. In development mode, it is +recommended that a value of ‘development’ is used. More information +about differentiating between environments can be found on the +Handling Environments page.

        +
        +
        +

        magic_quotes_runtime

        +

        The magic_quotes_runtime directive is turned off during system +initialization so that you don’t have to remove slashes when retrieving +data from your database.

        +
        +

        Best Practices

        +

        Before accepting any data into your application, whether it be POST data +from a form submission, COOKIE data, URI data, XML-RPC data, or even +data from the SERVER array, you are encouraged to practice this three +step approach:

        +
          +
        1. Validate the data to ensure it conforms to the correct type, length, +size, etc.
        2. +
        3. Filter the data as if it were tainted.
        4. +
        5. Escape the data before submitting it into your database or outputting +it to a browser.
        6. +
        +

        CodeIgniter provides the following functions and tips to assist you +in this process:

        +
        +
        +
        +

        XSS Filtering

        +

        CodeIgniter comes with a Cross Site Scripting filter. This filter +looks for commonly used techniques to embed malicious JavaScript into +your data, or other types of code that attempt to hijack cookies or +do other malicious things. The XSS Filter is described +here.

        +
        +

        Note

        +

        XSS filtering should only be performed on output. Filtering +input data may modify the data in undesirable ways, including +stripping special characters from passwords, which reduces +security instead of improving it.

        +
        +
        +
        +

        CSRF protection

        +

        CSRF stands for Cross-Site Request Forgery, which is the process of an +attacker tricking their victim into unknowingly submitting a request.

        +

        CodeIgniter provides CSRF protection out of the box, which will get +automatically triggered for every non-GET HTTP request, but also needs +you to create your submit forms in a certain way. This is explained in +the Security Library documentation.

        +
        +
        +

        Password handling

        +

        It is critical that you handle passwords in your application properly.

        +

        Unfortunately, many developers don’t know how to do that, and the web is +full of outdated or otherwise wrongful advices, which doesn’t help.

        +

        We would like to give you a list of combined do’s and don’ts to help you +with that. Please read below.

        +
          +
        • DO NOT store passwords in plain-text format.

          +

          Always hash your passwords.

          +
        • +
        • DO NOT use Base64 or similar encoding for storing passwords.

          +

          This is as good as storing them in plain-text. Really. Do hashing, +not encoding.

          +

          Encoding, and encryption too, are two-way processes. Passwords are +secrets that must only be known to their owner, and thus must work +only in one direction. Hashing does that - there’s no un-hashing or +de-hashing, but there is decoding and decryption.

          +
        • +
        • DO NOT use weak or broken hashing algorithms like MD5 or SHA1.

          +

          These algorithms are old, proven to be flawed, and not designed for +password hashing in the first place.

          +

          Also, DON’T invent your own algorithms.

          +

          Only use strong password hashing algorithms like BCrypt, which is used +in PHP’s own Password Hashing functions.

          +

          Please use them, even if you’re not running PHP 5.5+, CodeIgniter +provides them for you.

          +
        • +
        • DO NOT ever display or send a password in plain-text format!

          +

          Even to the password’s owner, if you need a “Forgotten password” +feature, just randomly generate a new, one-time (this is also important) +password and send that instead.

          +
        • +
        • DO NOT put unnecessary limits on your users’ passwords.

          +

          If you’re using a hashing algorithm other than BCrypt (which has a limit +of 72 characters), you should set a relatively high limit on password +lengths in order to mitigate DoS attacks - say, 1024 characters.

          +

          Other than that however, there’s no point in forcing a rule that a +password can only be up to a number of characters, or that it can’t +contain a certain set of special characters.

          +

          Not only does this reduce security instead of improving it, but +there’s literally no reason to do it. No technical limitations and +no (practical) storage constraints apply once you’ve hashed them, none!

          +
        • +
        +
        +
        +

        Validate input data

        +

        CodeIgniter has a Form Validation Library that assists you in +validating, filtering, and prepping your data.

        +

        Even if that doesn’t work for your use case however, be sure to always +validate and sanitize all input data. For example, if you expect a numeric +string for an input variable, you can check for that with is_numeric() +or ctype_digit(). Always try to narrow down your checks to a certain +pattern.

        +

        Have it in mind that this includes not only $_POST and $_GET +variables, but also cookies, the user-agent string and basically +all data that is not created directly by your own code.

        +
        +
        +

        Escape all data before database insertion

        +

        Never insert information into your database without escaping it. +Please see the section that discusses database queries for more information.

        +
        +
        +

        Hide your files

        +

        Another good security practice is to only leave your index.php +and “assets” (e.g. .js, css and image files) under your server’s +webroot directory (most commonly named “htdocs/”). These are +the only files that you would need to be accessible from the web.

        +

        Allowing your visitors to see anything else would potentially +allow them to access sensitive data, execute scripts, etc.

        +

        If you’re not allowed to do that, you can try using a .htaccess +file to restrict access to those resources.

        +

        CodeIgniter will have an index.html file in all of its +directories in an attempt to hide some of this data, but have +it in mind that this is not enough to prevent a serious +attacker.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/styleguide.html b/sna/user_guide/general/styleguide.html new file mode 100644 index 0000000..9ec4e2e --- /dev/null +++ b/sna/user_guide/general/styleguide.html @@ -0,0 +1,1129 @@ + + + + + + + + + + PHP Style Guide — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        PHP Style Guide

        +

        The following page describes the coding styles adhered to when +contributing to the development of CodeIgniter. There is no requirement +to use these styles in your own CodeIgniter application, though they +are recommended.

        + +
        +

        File Format

        +

        Files should be saved with Unicode (UTF-8) encoding. The BOM should +not be used. Unlike UTF-16 and UTF-32, there’s no byte order to +indicate in a UTF-8 encoded file, and the BOM can have a negative side +effect in PHP of sending output, preventing the application from being +able to set its own headers. Unix line endings should be used (LF).

        +

        Here is how to apply these settings in some of the more common text +editors. Instructions for your text editor may vary; check your text +editor’s documentation.

        +
        +

        TextMate

        +
          +
        1. Open the Application Preferences
        2. +
        3. Click Advanced, and then the “Saving” tab
        4. +
        5. In “File Encoding”, select “UTF-8 (recommended)”
        6. +
        7. In “Line Endings”, select “LF (recommended)”
        8. +
        9. Optional: Check “Use for existing files as well” if you wish to +modify the line endings of files you open to your new preference.
        10. +
        +
        +
        +

        BBEdit

        +
          +
        1. Open the Application Preferences
        2. +
        3. Select “Text Encodings” on the left.
        4. +
        5. In “Default text encoding for new documents”, select “Unicode (UTF-8, +no BOM)”
        6. +
        7. Optional: In “If file’s encoding can’t be guessed, use”, select +“Unicode (UTF-8, no BOM)”
        8. +
        9. Select “Text Files” on the left.
        10. +
        11. In “Default line breaks”, select “Mac OS X and Unix (LF)”
        12. +
        +
        +
        +
        +

        PHP Closing Tag

        +

        The PHP closing tag on a PHP document ?> is optional to the PHP +parser. However, if used, any whitespace following the closing tag, +whether introduced by the developer, user, or an FTP application, can +cause unwanted output, PHP errors, or if the latter are suppressed, +blank pages. For this reason, all PHP files MUST OMIT the PHP closing +tag and end with a single empty line instead.

        +
        +
        +

        File Naming

        +

        Class files must be named in a Ucfirst-like manner, while any other file name +(configurations, views, generic scripts, etc.) should be in all lowercase.

        +

        INCORRECT:

        +
        somelibrary.php
        +someLibrary.php
        +SOMELIBRARY.php
        +Some_Library.php
        +
        +Application_config.php
        +Application_Config.php
        +applicationConfig.php
        +
        +
        +

        CORRECT:

        +
        Somelibrary.php
        +Some_library.php
        +
        +applicationconfig.php
        +application_config.php
        +
        +
        +

        Furthermore, class file names should match the name of the class itself. +For example, if you have a class named Myclass, then its filename must +be Myclass.php.

        +
        +
        +

        Class and Method Naming

        +

        Class names should always start with an uppercase letter. Multiple words +should be separated with an underscore, and not CamelCased.

        +

        INCORRECT:

        +
        class superclass
        +class SuperClass
        +
        +
        +

        CORRECT:

        +
        class Super_class
        +
        +
        +
        class Super_class {
        +
        +        public function __construct()
        +        {
        +
        +        }
        +}
        +
        +
        +

        Class methods should be entirely lowercased and named to clearly +indicate their function, preferably including a verb. Try to avoid +overly long and verbose names. Multiple words should be separated +with an underscore.

        +

        INCORRECT:

        +
        function fileproperties()               // not descriptive and needs underscore separator
        +function fileProperties()               // not descriptive and uses CamelCase
        +function getfileproperties()            // Better!  But still missing underscore separator
        +function getFileProperties()            // uses CamelCase
        +function get_the_file_properties_from_the_file()        // wordy
        +
        +
        +

        CORRECT:

        +
        function get_file_properties()  // descriptive, underscore separator, and all lowercase letters
        +
        +
        +
        +
        +

        Variable Names

        +

        The guidelines for variable naming are very similar to those used for +class methods. Variables should contain only lowercase letters, +use underscore separators, and be reasonably named to indicate their +purpose and contents. Very short, non-word variables should only be used +as iterators in for() loops.

        +

        INCORRECT:

        +
        $j = 'foo';             // single letter variables should only be used in for() loops
        +$Str                    // contains uppercase letters
        +$bufferedText           // uses CamelCasing, and could be shortened without losing semantic meaning
        +$groupid                // multiple words, needs underscore separator
        +$name_of_last_city_used // too long
        +
        +
        +

        CORRECT:

        +
        for ($j = 0; $j < 10; $j++)
        +$str
        +$buffer
        +$group_id
        +$last_city
        +
        +
        +
        +
        +

        Commenting

        +

        In general, code should be commented prolifically. It not only helps +describe the flow and intent of the code for less experienced +programmers, but can prove invaluable when returning to your own code +months down the line. There is not a required format for comments, but +the following are recommended.

        +

        DocBlock +style comments preceding class, method, and property declarations so they can be +picked up by IDEs:

        +
        /**
        + * Super Class
        + *
        + * @package     Package Name
        + * @subpackage  Subpackage
        + * @category    Category
        + * @author      Author Name
        + * @link        http://example.com
        + */
        +class Super_class {
        +
        +
        +
        /**
        + * Encodes string for use in XML
        + *
        + * @param       string  $str    Input string
        + * @return      string
        + */
        +function xml_encode($str)
        +
        +
        +
        /**
        + * Data for class manipulation
        + *
        + * @var array
        + */
        +public $data = array();
        +
        +
        +

        Use single line comments within code, leaving a blank line between large +comment blocks and code.

        +
        // break up the string by newlines
        +$parts = explode("\n", $str);
        +
        +// A longer comment that needs to give greater detail on what is
        +// occurring and why can use multiple single-line comments.  Try to
        +// keep the width reasonable, around 70 characters is the easiest to
        +// read.  Don't hesitate to link to permanent external resources
        +// that may provide greater detail:
        +//
        +// http://example.com/information_about_something/in_particular/
        +
        +$parts = $this->foo($parts);
        +
        +
        +
        +
        +

        Constants

        +

        Constants follow the same guidelines as do variables, except constants +should always be fully uppercase. Always use CodeIgniter constants when +appropriate, i.e. SLASH, LD, RD, PATH_CACHE, etc.

        +

        INCORRECT:

        +
        myConstant      // missing underscore separator and not fully uppercase
        +N               // no single-letter constants
        +S_C_VER         // not descriptive
        +$str = str_replace('{foo}', 'bar', $str);       // should use LD and RD constants
        +
        +
        +

        CORRECT:

        +
        MY_CONSTANT
        +NEWLINE
        +SUPER_CLASS_VERSION
        +$str = str_replace(LD.'foo'.RD, 'bar', $str);
        +
        +
        +
        +
        +

        TRUE, FALSE, and NULL

        +

        TRUE, FALSE, and NULL keywords should always be fully +uppercase.

        +

        INCORRECT:

        +
        if ($foo == true)
        +$bar = false;
        +function foo($bar = null)
        +
        +
        +

        CORRECT:

        +
        if ($foo == TRUE)
        +$bar = FALSE;
        +function foo($bar = NULL)
        +
        +
        +
        +
        +

        Logical Operators

        +

        Use of the || “or” comparison operator is discouraged, as its clarity +on some output devices is low (looking like the number 11, for instance). +&& is preferred over AND but either are acceptable, and a space should +always precede and follow !.

        +

        INCORRECT:

        +
        if ($foo || $bar)
        +if ($foo AND $bar)  // okay but not recommended for common syntax highlighting applications
        +if (!$foo)
        +if (! is_array($foo))
        +
        +
        +

        CORRECT:

        +
        if ($foo OR $bar)
        +if ($foo && $bar) // recommended
        +if ( ! $foo)
        +if ( ! is_array($foo))
        +
        +
        +
        +
        +

        Comparing Return Values and Typecasting

        +

        Some PHP functions return FALSE on failure, but may also have a valid +return value of “” or 0, which would evaluate to FALSE in loose +comparisons. Be explicit by comparing the variable type when using these +return values in conditionals to ensure the return value is indeed what +you expect, and not a value that has an equivalent loose-type +evaluation.

        +

        Use the same stringency in returning and checking your own variables. +Use === and !== as necessary.

        +

        INCORRECT:

        +
        // If 'foo' is at the beginning of the string, strpos will return a 0,
        +// resulting in this conditional evaluating as TRUE
        +if (strpos($str, 'foo') == FALSE)
        +
        +
        +

        CORRECT:

        +
        if (strpos($str, 'foo') === FALSE)
        +
        +
        +

        INCORRECT:

        +
        function build_string($str = "")
        +{
        +        if ($str == "") // uh-oh!  What if FALSE or the integer 0 is passed as an argument?
        +        {
        +
        +        }
        +}
        +
        +
        +

        CORRECT:

        +
        function build_string($str = "")
        +{
        +        if ($str === "")
        +        {
        +
        +        }
        +}
        +
        +
        +

        See also information regarding typecasting, +which can be quite useful. Typecasting has a slightly different effect +which may be desirable. When casting a variable as a string, for +instance, NULL and boolean FALSE variables become empty strings, 0 (and +other numbers) become strings of digits, and boolean TRUE becomes “1”:

        +
        $str = (string) $str; // cast $str as a string
        +
        +
        +
        +
        +

        Debugging Code

        +

        Do not leave debugging code in your submissions, even when commented out. +Things such as var_dump(), print_r(), die()/exit() should not be included +in your code unless it serves a specific purpose other than debugging.

        +
        +
        +

        Whitespace in Files

        +

        No whitespace can precede the opening PHP tag or follow the closing PHP +tag. Output is buffered, so whitespace in your files can cause output to +begin before CodeIgniter outputs its content, leading to errors and an +inability for CodeIgniter to send proper headers.

        +
        +
        +

        Compatibility

        +

        CodeIgniter recommends PHP 5.6 or newer to be used, but it should be +compatible with PHP 5.3.7. Your code must either be compatible with this +requirement, provide a suitable fallback, or be an optional feature that +dies quietly without affecting a user’s application.

        +

        Additionally, do not use PHP functions that require non-default libraries +to be installed unless your code contains an alternative method when the +function is not available.

        +
        +
        +

        One File per Class

        +

        Use separate files for each class, unless the classes are closely related. +An example of a CodeIgniter file that contains multiple classes is the +Xmlrpc library file.

        +
        +
        +

        Whitespace

        +

        Use tabs for whitespace in your code, not spaces. This may seem like a +small thing, but using tabs instead of whitespace allows the developer +looking at your code to have indentation at levels that they prefer and +customize in whatever application they use. And as a side benefit, it +results in (slightly) more compact files, storing one tab character +versus, say, four space characters.

        +
        +
        +

        Line Breaks

        +

        Files must be saved with Unix line breaks. This is more of an issue for +developers who work in Windows, but in any case ensure that your text +editor is setup to save files with Unix line breaks.

        +
        +
        +

        Code Indenting

        +

        Use Allman style indenting. With the exception of Class declarations, +braces are always placed on a line by themselves, and indented at the +same level as the control statement that “owns” them.

        +

        INCORRECT:

        +
        function foo($bar) {
        +        // ...
        +}
        +
        +foreach ($arr as $key => $val) {
        +        // ...
        +}
        +
        +if ($foo == $bar) {
        +        // ...
        +} else {
        +        // ...
        +}
        +
        +for ($i = 0; $i < 10; $i++)
        +        {
        +        for ($j = 0; $j < 10; $j++)
        +                {
        +                // ...
        +                }
        +        }
        +
        +try {
        +        // ...
        +}
        +catch() {
        +        // ...
        +}
        +
        +
        +

        CORRECT:

        +
        function foo($bar)
        +{
        +        // ...
        +}
        +
        +foreach ($arr as $key => $val)
        +{
        +        // ...
        +}
        +
        +if ($foo == $bar)
        +{
        +        // ...
        +}
        +else
        +{
        +        // ...
        +}
        +
        +for ($i = 0; $i < 10; $i++)
        +{
        +        for ($j = 0; $j < 10; $j++)
        +        {
        +                // ...
        +        }
        +}
        +
        +try
        +{
        +        // ...
        +}
        +catch()
        +{
        +        // ...
        +}
        +
        +
        +
        +
        +

        Bracket and Parenthetic Spacing

        +

        In general, parenthesis and brackets should not use any additional +spaces. The exception is that a space should always follow PHP control +structures that accept arguments with parenthesis (declare, do-while, +elseif, for, foreach, if, switch, while), to help distinguish them from +functions and increase readability.

        +

        INCORRECT:

        +
        $arr[ $foo ] = 'foo';
        +
        +
        +

        CORRECT:

        +
        $arr[$foo] = 'foo'; // no spaces around array keys
        +
        +
        +

        INCORRECT:

        +
        function foo ( $bar )
        +{
        +
        +}
        +
        +
        +

        CORRECT:

        +
        function foo($bar) // no spaces around parenthesis in function declarations
        +{
        +
        +}
        +
        +
        +

        INCORRECT:

        +
        foreach( $query->result() as $row )
        +
        +
        +

        CORRECT:

        +
        foreach ($query->result() as $row) // single space following PHP control structures, but not in interior parenthesis
        +
        +
        +
        +
        +

        Localized Text

        +

        CodeIgniter libraries should take advantage of corresponding language files +whenever possible.

        +

        INCORRECT:

        +
        return "Invalid Selection";
        +
        +
        +

        CORRECT:

        +
        return $this->lang->line('invalid_selection');
        +
        +
        +
        +
        +

        Private Methods and Variables

        +

        Methods and variables that are only accessed internally, +such as utility and helper functions that your public methods use for +code abstraction, should be prefixed with an underscore.

        +
        public function convert_text()
        +private function _convert_text()
        +
        +
        +
        +
        +

        PHP Errors

        +

        Code must run error free and not rely on warnings and notices to be +hidden to meet this requirement. For instance, never access a variable +that you did not set yourself (such as $_POST array keys) without first +checking to see that it isset().

        +

        Make sure that your dev environment has error reporting enabled +for ALL users, and that display_errors is enabled in the PHP +environment. You can check this setting with:

        +
        if (ini_get('display_errors') == 1)
        +{
        +        exit "Enabled";
        +}
        +
        +
        +

        On some servers where display_errors is disabled, and you do not have +the ability to change this in the php.ini, you can often enable it with:

        +
        ini_set('display_errors', 1);
        +
        +
        +
        +

        Note

        +

        Setting the display_errors +setting with ini_set() at runtime is not identical to having +it enabled in the PHP environment. Namely, it will not have any +effect if the script has fatal errors.

        +
        +
        +
        +

        Short Open Tags

        +

        Always use full PHP opening tags, in case a server does not have +short_open_tag enabled.

        +

        INCORRECT:

        +
        <? echo $foo; ?>
        +
        +<?=$foo?>
        +
        +
        +

        CORRECT:

        +
        <?php echo $foo; ?>
        +
        +
        +
        +

        Note

        +

        PHP 5.4 will always have the <?= tag available.

        +
        +
        +
        +

        One Statement Per Line

        +

        Never combine statements on one line.

        +

        INCORRECT:

        +
        $foo = 'this'; $bar = 'that'; $bat = str_replace($foo, $bar, $bag);
        +
        +
        +

        CORRECT:

        +
        $foo = 'this';
        +$bar = 'that';
        +$bat = str_replace($foo, $bar, $bag);
        +
        +
        +
        +
        +

        Strings

        +

        Always use single quoted strings unless you need variables parsed, and +in cases where you do need variables parsed, use braces to prevent +greedy token parsing. You may also use double-quoted strings if the +string contains single quotes, so you do not have to use escape +characters.

        +

        INCORRECT:

        +
        "My String"                                     // no variable parsing, so no use for double quotes
        +"My string $foo"                                // needs braces
        +'SELECT foo FROM bar WHERE baz = \'bag\''       // ugly
        +
        +
        +

        CORRECT:

        +
        'My String'
        +"My string {$foo}"
        +"SELECT foo FROM bar WHERE baz = 'bag'"
        +
        +
        +
        +
        +

        SQL Queries

        +

        SQL keywords are always capitalized: SELECT, INSERT, UPDATE, WHERE, +AS, JOIN, ON, IN, etc.

        +

        Break up long queries into multiple lines for legibility, preferably +breaking for each clause.

        +

        INCORRECT:

        +
        // keywords are lowercase and query is too long for
        +// a single line (... indicates continuation of line)
        +$query = $this->db->query("select foo, bar, baz, foofoo, foobar as raboof, foobaz from exp_pre_email_addresses
        +...where foo != 'oof' and baz != 'zab' order by foobaz limit 5, 100");
        +
        +
        +

        CORRECT:

        +
        $query = $this->db->query("SELECT foo, bar, baz, foofoo, foobar AS raboof, foobaz
        +                                FROM exp_pre_email_addresses
        +                                WHERE foo != 'oof'
        +                                AND baz != 'zab'
        +                                ORDER BY foobaz
        +                                LIMIT 5, 100");
        +
        +
        +
        +
        +

        Default Function Arguments

        +

        Whenever appropriate, provide function argument defaults, which helps +prevent PHP errors with mistaken calls and provides common fallback +values which can save a few lines of code. Example:

        +
        function foo($bar = '', $baz = FALSE)
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/urls.html b/sna/user_guide/general/urls.html new file mode 100644 index 0000000..1af4cb3 --- /dev/null +++ b/sna/user_guide/general/urls.html @@ -0,0 +1,598 @@ + + + + + + + + + + CodeIgniter URLs — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        CodeIgniter URLs

        +

        By default, URLs in CodeIgniter are designed to be search-engine and +human friendly. Rather than using the standard “query string” approach +to URLs that is synonymous with dynamic systems, CodeIgniter uses a +segment-based approach:

        +
        example.com/news/article/my_article
        +
        +
        +
        +

        Note

        +

        Query string URLs can be optionally enabled, as described +below.

        +
        +
        +

        URI Segments

        +

        The segments in the URL, in following with the Model-View-Controller +approach, usually represent:

        +
        example.com/class/function/ID
        +
        +
        +
          +
        1. The first segment represents the controller class that should be +invoked.
        2. +
        3. The second segment represents the class function, or method, that +should be called.
        4. +
        5. The third, and any additional segments, represent the ID and any +variables that will be passed to the controller.
        6. +
        +

        The URI Library and the URL Helper contain functions that make it easy to work +with your URI data. In addition, your URLs can be remapped using the +URI Routing feature for more flexibility.

        +
        +
        +

        Removing the index.php file

        +

        By default, the index.php file will be included in your URLs:

        +
        example.com/index.php/news/article/my_article
        +
        +
        +

        If your Apache server has mod_rewrite enabled, you can easily remove this +file by using a .htaccess file with some simple rules. Here is an example +of such a file, using the “negative” method in which everything is redirected +except the specified items:

        +
        RewriteEngine On
        +RewriteCond %{REQUEST_FILENAME} !-f
        +RewriteCond %{REQUEST_FILENAME} !-d
        +RewriteRule ^(.*)$ index.php/$1 [L]
        +
        +
        +

        In the above example, any HTTP request other than those for existing +directories and existing files is treated as a request for your index.php file.

        +
        +

        Note

        +

        These specific rules might not work for all server configurations.

        +
        +
        +

        Note

        +

        Make sure to also exclude from the above rule any assets that you +might need to be accessible from the outside world.

        +
        +
        +
        +

        Adding a URL Suffix

        +

        In your config/config.php file you can specify a suffix that will be +added to all URLs generated by CodeIgniter. For example, if a URL is +this:

        +
        example.com/index.php/products/view/shoes
        +
        +
        +

        You can optionally add a suffix, like .html, making the page appear to +be of a certain type:

        +
        example.com/index.php/products/view/shoes.html
        +
        +
        +
        +
        +

        Enabling Query Strings

        +

        In some cases you might prefer to use query strings URLs:

        +
        index.php?c=products&m=view&id=345
        +
        +
        +

        CodeIgniter optionally supports this capability, which can be enabled in +your application/config.php file. If you open your config file you’ll +see these items:

        +
        $config['enable_query_strings'] = FALSE;
        +$config['controller_trigger'] = 'c';
        +$config['function_trigger'] = 'm';
        +
        +
        +

        If you change “enable_query_strings” to TRUE this feature will become +active. Your controllers and functions will then be accessible using the +“trigger” words you’ve set to invoke your controllers and methods:

        +
        index.php?c=controller&m=method
        +
        +
        +
        +

        Note

        +

        If you are using query strings you will have to build your own +URLs, rather than utilizing the URL helpers (and other helpers +that generate URLs, like some of the form helpers) as these are +designed to work with segment based URLs.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/views.html b/sna/user_guide/general/views.html new file mode 100644 index 0000000..d47ca1b --- /dev/null +++ b/sna/user_guide/general/views.html @@ -0,0 +1,705 @@ + + + + + + + + + + Views — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Views

        +

        A view is simply a web page, or a page fragment, like a header, footer, +sidebar, etc. In fact, views can flexibly be embedded within other views +(within other views, etc., etc.) if you need this type of hierarchy.

        +

        Views are never called directly, they must be loaded by a +controller. Remember that in an MVC framework, the +Controller acts as the traffic cop, so it is responsible for fetching a +particular view. If you have not read the +Controllers page you should do so before +continuing.

        +

        Using the example controller you created in the +controller page, let’s add a view to it.

        +
        +

        Creating a View

        +

        Using your text editor, create a file called blogview.php, and put this +in it:

        +
        <html>
        +<head>
        +        <title>My Blog</title>
        +</head>
        +<body>
        +        <h1>Welcome to my Blog!</h1>
        +</body>
        +</html>
        +
        +
        +

        Then save the file in your application/views/ directory.

        +
        +
        +

        Loading a View

        +

        To load a particular view file you will use the following method:

        +
        $this->load->view('name');
        +
        +
        +

        Where name is the name of your view file.

        +
        +

        Note

        +

        The .php file extension does not need to be specified +unless you use something other than .php.

        +
        +

        Now, open the controller file you made earlier called Blog.php, and +replace the echo statement with the view loading method:

        +
        <?php
        +class Blog extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $this->load->view('blogview');
        +        }
        +}
        +
        +
        +

        If you visit your site using the URL you did earlier you should see your +new view. The URL was similar to this:

        +
        example.com/index.php/blog/
        +
        +
        +
        +
        +

        Loading multiple views

        +

        CodeIgniter will intelligently handle multiple calls to +$this->load->view() from within a controller. If more than one call +happens they will be appended together. For example, you may wish to +have a header view, a menu view, a content view, and a footer view. That +might look something like this:

        +
        <?php
        +
        +class Page extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $data['page_title'] = 'Your title';
        +                $this->load->view('header');
        +                $this->load->view('menu');
        +                $this->load->view('content', $data);
        +                $this->load->view('footer');
        +        }
        +
        +}
        +
        +
        +

        In the example above, we are using “dynamically added data”, which you +will see below.

        +
        +
        +

        Storing Views within Sub-directories

        +

        Your view files can also be stored within sub-directories if you prefer +that type of organization. When doing so you will need to include the +directory name loading the view. Example:

        +
        $this->load->view('directory_name/file_name');
        +
        +
        +
        +
        +

        Adding Dynamic Data to the View

        +

        Data is passed from the controller to the view by way of an array or +an object in the second parameter of the view loading method. Here +is an example using an array:

        +
        $data = array(
        +        'title' => 'My Title',
        +        'heading' => 'My Heading',
        +        'message' => 'My Message'
        +);
        +
        +$this->load->view('blogview', $data);
        +
        +
        +

        And here’s an example using an object:

        +
        $data = new Someclass();
        +$this->load->view('blogview', $data);
        +
        +
        +
        +

        Note

        +

        If you use an object, the class variables will be turned +into array elements.

        +
        +

        Let’s try it with your controller file. Open it add this code:

        +
        <?php
        +class Blog extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $data['title'] = "My Real Title";
        +                $data['heading'] = "My Real Heading";
        +
        +                $this->load->view('blogview', $data);
        +        }
        +}
        +
        +
        +

        Now open your view file and change the text to variables that correspond +to the array keys in your data:

        +
        <html>
        +<head>
        +        <title><?php echo $title;?></title>
        +</head>
        +<body>
        +        <h1><?php echo $heading;?></h1>
        +</body>
        +</html>
        +
        +
        +

        Then load the page at the URL you’ve been using and you should see the +variables replaced.

        +
        +
        +

        Creating Loops

        +

        The data array you pass to your view files is not limited to simple +variables. You can pass multi dimensional arrays, which can be looped to +generate multiple rows. For example, if you pull data from your database +it will typically be in the form of a multi-dimensional array.

        +

        Here’s a simple example. Add this to your controller:

        +
        <?php
        +class Blog extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $data['todo_list'] = array('Clean House', 'Call Mom', 'Run Errands');
        +
        +                $data['title'] = "My Real Title";
        +                $data['heading'] = "My Real Heading";
        +
        +                $this->load->view('blogview', $data);
        +        }
        +}
        +
        +
        +

        Now open your view file and create a loop:

        +
        <html>
        +<head>
        +        <title><?php echo $title;?></title>
        +</head>
        +<body>
        +        <h1><?php echo $heading;?></h1>
        +
        +        <h3>My Todo List</h3>
        +
        +        <ul>
        +        <?php foreach ($todo_list as $item):?>
        +
        +                <li><?php echo $item;?></li>
        +
        +        <?php endforeach;?>
        +        </ul>
        +
        +</body>
        +</html>
        +
        +
        +
        +

        Note

        +

        You’ll notice that in the example above we are using PHP’s +alternative syntax. If you are not familiar with it you can read about +it here.

        +
        +
        +
        +

        Returning views as data

        +

        There is a third optional parameter lets you change the behavior of +the method so that it returns data as a string rather than sending it +to your browser. This can be useful if you want to process the data in +some way. If you set the parameter to TRUE (boolean) it will return +data. The default behavior is false, which sends it to your browser. +Remember to assign it to a variable if you want the data returned:

        +
        $string = $this->load->view('myfile', '', TRUE);
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/general/welcome.html b/sna/user_guide/general/welcome.html new file mode 100644 index 0000000..124fcb1 --- /dev/null +++ b/sna/user_guide/general/welcome.html @@ -0,0 +1,521 @@ + + + + + + + + + + Welcome to CodeIgniter — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Welcome to CodeIgniter
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Welcome to CodeIgniter

        +

        CodeIgniter is an Application Development Framework - a toolkit - for +people who build web sites using PHP. Its goal is to enable you to +develop projects much faster than you could if you were writing code +from scratch, by providing a rich set of libraries for commonly needed +tasks, as well as a simple interface and logical structure to access +these libraries. CodeIgniter lets you creatively focus on your project +by minimizing the amount of code needed for a given task.

        +
        +

        Who is CodeIgniter For?

        +

        CodeIgniter is right for you if:

        +
          +
        • You want a framework with a small footprint.
        • +
        • You need exceptional performance.
        • +
        • You need broad compatibility with standard hosting accounts that run +a variety of PHP versions and configurations.
        • +
        • You want a framework that requires nearly zero configuration.
        • +
        • You want a framework that does not require you to use the command +line.
        • +
        • You want a framework that does not require you to adhere to +restrictive coding rules.
        • +
        • You are not interested in large-scale monolithic libraries like PEAR.
        • +
        • You do not want to be forced to learn a templating language (although +a template parser is optionally available if you desire one).
        • +
        • You eschew complexity, favoring simple solutions.
        • +
        • You need clear, thorough documentation.
        • +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/genindex.html b/sna/user_guide/genindex.html new file mode 100644 index 0000000..c5db13b --- /dev/null +++ b/sna/user_guide/genindex.html @@ -0,0 +1,3086 @@ + + + + + + + + + + + Index — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + + +

        Index

        + +
        + _ + | A + | B + | C + | D + | E + | F + | G + | H + | I + | J + | K + | L + | M + | N + | O + | P + | Q + | R + | S + | T + | U + | V + | W + | X + +
        +

        _

        + + + +
        + +
        __get() (CI_Session method) +
        + + +
        __set() (CI_Session method) +
        + +
        + +
        _display() (CI_Output method) +
        + +
        + +

        A

        + + + +
        + +
        accept_charset() (CI_User_agent method) +
        + + +
        accept_lang() (CI_User_agent method) +
        + + +
        active() (CI_Unit_test method) +
        + + +
        add_column() (CI_DB_forge method) +
        + + +
        add_data() (CI_Zip method) +
        + + +
        add_dir() (CI_Zip method) +
        + + +
        add_field() (CI_DB_forge method) +
        + + +
        add_key() (CI_DB_forge method) +
        + + +
        add_package_path() (CI_Loader method) +
        + + +
        add_row() (CI_Table method) +
        + + +
        adjust_date() (CI_Calendar method) +
        + + +
        affected_rows() (CI_DB_driver method) +
        + + +
        agent_string() (CI_User_agent method) +
        + +
        + +
        all_userdata() (CI_Session method) +
        + + +
        alternator() (global function) +
        + + +
        anchor() (global function) +
        + + +
        anchor_popup() (global function) +
        + + +
        append_output() (CI_Output method) +
        + + +
        archive() (CI_Zip method) +
        + + +
        array_column() (global function) +
        + + +
        ascii_to_entities() (global function) +
        + + +
        assoc_to_uri() (CI_URI method) +
        + + +
        attach() (CI_Email method) +
        + + +
        attachment_cid() (CI_Email method) +
        + + +
        auto_link() (global function) +
        + + +
        auto_typography() (CI_Typography method) +
        + +
        + +
        (global function) +
        + +
        +
        + +

        B

        + + + +
        + +
        backup() (CI_DB_utility method) +
        + + +
        base_url() (CI_Config method) +
        + +
        + +
        (global function) +
        + +
        + +
        bcc() (CI_Email method) +
        + +
        + +
        br() (global function) +
        + + +
        browser() (CI_User_agent method) +
        + + +
        byte_format() (global function) +
        + +
        + +

        C

        + + + +
        + +
        cache() (CI_Output method) +
        + + +
        cache_delete() (CI_DB_driver method) +
        + + +
        cache_delete_all() (CI_DB_driver method) +
        + + +
        cache_info() (CI_Cache method) +
        + + +
        cache_off() (CI_DB_driver method) +
        + + +
        cache_on() (CI_DB_driver method) +
        + + +
        cache_set_path() (CI_DB_driver method) +
        + + +
        call_function() (CI_DB_driver method) +
        + + +
        camelize() (global function) +
        + + +
        cc() (CI_Email method) +
        + + +
        changedir() (CI_FTP method) +
        + + +
        character_limiter() (global function) +
        + + +
        charsets() (CI_User_agent method) +
        + + +
        chmod() (CI_FTP method) +
        + + +
        CI_Benchmark (class) +
        + + +
        CI_Cache (class) +
        + + +
        CI_Calendar (class) +
        + + +
        CI_Cart (class) +
        + + +
        CI_Config (class) +
        + + +
        CI_DB_driver (class) +
        + + +
        CI_DB_forge (class) +
        + + +
        CI_DB_query_builder (class) +
        + + +
        CI_DB_result (class) +
        + + +
        CI_DB_utility (class) +
        + + +
        CI_Email (class) +
        + + +
        CI_Encrypt (class) +
        + + +
        CI_Encryption (class) +
        + + +
        CI_Form_validation (class) +
        + + +
        CI_FTP (class) +
        + + +
        CI_Image_lib (class) +
        + + +
        CI_Input (class) +
        + + +
        CI_Lang (class) +
        + + +
        CI_Loader (class) +
        + + +
        CI_Migration (class) +
        + + +
        CI_Output (class) +
        + + +
        CI_Pagination (class) +
        + + +
        CI_Parser (class) +
        + + +
        CI_Security (class) +
        + +
        + +
        CI_Session (class) +
        + + +
        CI_Table (class) +
        + + +
        CI_Trackback (class) +
        + + +
        CI_Typography (class) +
        + + +
        CI_Unit_test (class) +
        + + +
        CI_Upload (class) +
        + + +
        CI_URI (class) +
        + + +
        CI_User_agent (class) +
        + + +
        CI_Xmlrpc (class) +
        + + +
        CI_Zip (class) +
        + + +
        clean() (CI_Cache method) +
        + + +
        clear() (CI_Email method) +
        + +
        + +
        (CI_Image_lib method) +
        + + +
        (CI_Table method) +
        + +
        + +
        clear_data() (CI_Zip method) +
        + + +
        clear_vars() (CI_Loader method) +
        + + +
        close() (CI_DB_driver method) +
        + +
        + +
        (CI_FTP method) +
        + +
        + +
        compile_binds() (CI_DB_driver method) +
        + + +
        config() (CI_Loader method) +
        + + +
        config_item() (global function) +
        + + +
        connect() (CI_FTP method) +
        + + +
        contents() (CI_Cart method) +
        + + +
        convert_accented_characters() (global function) +
        + + +
        convert_ascii() (CI_Trackback method) +
        + + +
        convert_xml() (CI_Trackback method) +
        + + +
        cookie() (CI_Input method) +
        + + +
        count_all() (CI_DB_driver method) +
        + + +
        count_all_results() (CI_DB_query_builder method) +
        + + +
        create_captcha() (global function) +
        + + +
        create_database() (CI_DB_forge method) +
        + + +
        create_key() (CI_Encryption method) +
        + + +
        create_links() (CI_Pagination method) +
        + + +
        create_table() (CI_DB_forge method) +
        + + +
        crop() (CI_Image_lib method) +
        + + +
        csv_from_result() (CI_DB_utility method) +
        + + +
        current() (CI_Migration method) +
        + + +
        current_url() (global function) +
        + + +
        custom_result_object() (CI_DB_result method) +
        + + +
        custom_row_object() (CI_DB_result method) +
        + +
        + +

        D

        + + + +
        + +
        data() (CI_Trackback method) +
        + +
        + +
        (CI_Upload method) +
        + +
        + +
        data_seek() (CI_DB_result method) +
        + + +
        database() (CI_Loader method) +
        + + +
        database_exists() (CI_DB_utility method) +
        + + +
        date_range() (global function) +
        + + +
        days_in_month() (global function) +
        + + +
        db_connect() (CI_DB_driver method) +
        + + +
        db_pconnect() (CI_DB_driver method) +
        + + +
        db_select() (CI_DB_driver method) +
        + + +
        db_set_charset() (CI_DB_driver method) +
        + + +
        dbforge() (CI_Loader method) +
        + + +
        dbprefix() (CI_DB_query_builder method) +
        + + +
        dbutil() (CI_Loader method) +
        + + +
        decode() (CI_Encrypt method) +
        + + +
        decrement() (CI_Cache method) +
        + + +
        decrypt() (CI_Encryption method) +
        + + +
        default_template() (CI_Calendar method) +
        + + +
        delete() (CI_Cache method) +
        + +
        + +
        (CI_DB_query_builder method) +
        + +
        +
        + +
        delete_cookie() (global function) +
        + + +
        delete_dir() (CI_FTP method) +
        + + +
        delete_file() (CI_FTP method) +
        + + +
        delete_files() (global function) +
        + + +
        destroy() (CI_Cart method) +
        + + +
        directory_map() (global function) +
        + + +
        display_error() (CI_DB_driver method) +
        + +
        + +
        (CI_Xmlrpc method) +
        + +
        + +
        display_errors() (CI_Image_lib method) +
        + +
        + +
        (CI_Trackback method) +
        + + +
        (CI_Upload method) +
        + +
        + +
        display_response() (CI_Xmlrpc method) +
        + + +
        distinct() (CI_DB_query_builder method) +
        + + +
        do_hash() (global function) +
        + + +
        do_upload() (CI_Upload method) +
        + + +
        doctype() (global function) +
        + + +
        download() (CI_FTP method) +
        + +
        + +
        (CI_Zip method) +
        + +
        + +
        driver() (CI_Loader method) +
        + + +
        drop_column() (CI_DB_forge method) +
        + + +
        drop_database() (CI_DB_forge method) +
        + + +
        drop_table() (CI_DB_forge method) +
        + +
        + +

        E

        + + + +
        + +
        elapsed_time() (CI_Benchmark method) +
        + +
        + +
        (CI_DB_driver method) +
        + +
        + +
        element() (global function) +
        + + +
        elements() (global function) +
        + + +
        ellipsize() (global function) +
        + + +
        empty_table() (CI_DB_query_builder method) +
        + + +
        enable_profiler() (CI_Output method) +
        + + +
        encode() (CI_Encrypt method) +
        + + +
        encode_from_legacy() (CI_Encrypt method) +
        + + +
        encode_php_tags() (global function) +
        + + +
        encrypt() (CI_Encryption method) +
        + +
        + +
        entity_decode() (CI_Security method) +
        + +
        + +
        (global function) +
        + +
        + +
        error() (CI_Form_validation method) +
        + + +
        error_array() (CI_Form_validation method) +
        + + +
        error_string() (CI_Form_validation method) +
        + +
        + +
        (CI_Migration method) +
        + +
        + +
        escape() (CI_DB_driver method) +
        + + +
        escape_identifiers() (CI_DB_driver method) +
        + + +
        escape_like_str() (CI_DB_driver method) +
        + + +
        escape_str() (CI_DB_driver method) +
        + + +
        extract_urls() (CI_Trackback method) +
        + +
        + +

        F

        + + + +
        + +
        field_data() (CI_DB_driver method) +
        + +
        + +
        (CI_DB_result method) +
        + +
        + +
        field_exists() (CI_DB_driver method) +
        + + +
        file() (CI_Loader method) +
        + + +
        find_migrations() (CI_Migration method) +
        + + +
        first_row() (CI_DB_result method) +
        + + +
        flashdata() (CI_Session method) +
        + + +
        flush_cache() (CI_DB_query_builder method) +
        + + +
        force_download() (global function) +
        + + +
        form_button() (global function) +
        + + +
        form_checkbox() (global function) +
        + + +
        form_close() (global function) +
        + + +
        form_dropdown() (global function) +
        + + +
        form_error() (global function) +
        + + +
        form_fieldset() (global function) +
        + + +
        form_fieldset_close() (global function) +
        + + +
        form_hidden() (global function) +
        + +
        + +
        form_input() (global function) +
        + + +
        form_label() (global function) +
        + + +
        form_multiselect() (global function) +
        + + +
        form_open() (global function) +
        + + +
        form_open_multipart() (global function) +
        + + +
        form_password() (global function) +
        + + +
        form_prep() (global function) +
        + + +
        form_radio() (global function) +
        + + +
        form_reset() (global function) +
        + + +
        form_submit() (global function) +
        + + +
        form_textarea() (global function) +
        + + +
        form_upload() (global function) +
        + + +
        format_characters() (CI_Typography method) +
        + + +
        free_result() (CI_DB_result method) +
        + + +
        from() (CI_DB_query_builder method) +
        + +
        + +
        (CI_Email method) +
        + +
        + +
        function_usable() (global function) +
        + +
        + +

        G

        + + + +
        + +
        generate() (CI_Calendar method) +
        + +
        + +
        (CI_Table method) +
        + +
        + +
        get() (CI_Cache method) +
        + +
        + +
        (CI_DB_query_builder method) +
        + + +
        (CI_Input method) +
        + +
        + +
        get_clickable_smileys() (global function) +
        + + +
        get_compiled_delete() (CI_DB_query_builder method) +
        + + +
        get_compiled_insert() (CI_DB_query_builder method) +
        + + +
        get_compiled_select() (CI_DB_query_builder method) +
        + + +
        get_compiled_update() (CI_DB_query_builder method) +
        + + +
        get_content_type() (CI_Output method) +
        + + +
        get_cookie() (global function) +
        + + +
        get_csrf_hash() (CI_Security method) +
        + + +
        get_csrf_token_name() (CI_Security method) +
        + + +
        get_day_names() (CI_Calendar method) +
        + + +
        get_dir_file_info() (global function) +
        + + +
        get_file_info() (global function) +
        + + +
        get_filenames() (global function) +
        + + +
        get_flash_keys() (CI_Session method) +
        + + +
        get_header() (CI_Output method) +
        + + +
        get_id() (CI_Trackback method) +
        + + +
        get_instance() (global function) +
        + + +
        get_item() (CI_Cart method) +
        + +
        + +
        get_metadata() (CI_Cache method) +
        + + +
        get_mime_by_extension() (global function) +
        + + +
        get_mimes() (global function) +
        + + +
        get_month_name() (CI_Calendar method) +
        + + +
        get_output() (CI_Output method) +
        + + +
        get_package_paths() (CI_Loader method) +
        + + +
        get_post() (CI_Input method) +
        + + +
        get_random_bytes() (CI_Security method) +
        + + +
        get_request_header() (CI_Input method) +
        + + +
        get_temp_keys() (CI_Session method) +
        + + +
        get_total_days() (CI_Calendar method) +
        + + +
        get_var() (CI_Loader method) +
        + + +
        get_vars() (CI_Loader method) +
        + + +
        get_where() (CI_DB_query_builder method) +
        + + +
        get_zip() (CI_Zip method) +
        + + +
        gmt_to_local() (global function) +
        + + +
        group_by() (CI_DB_query_builder method) +
        + + +
        group_end() (CI_DB_query_builder method) +
        + + +
        group_start() (CI_DB_query_builder method) +
        + +
        + +

        H

        + + + +
        + +
        has_options() (CI_Cart method) +
        + + +
        has_rule() (CI_Form_validation method) +
        + + +
        has_userdata() (CI_Session method) +
        + + +
        hash_equals() (global function) +
        + + +
        hash_pbkdf2() (global function) +
        + + +
        having() (CI_DB_query_builder method) +
        + + +
        heading() (global function) +
        + + +
        helper() (CI_Loader method) +
        + +
        + +
        hex2bin() (global function) +
        + + +
        highlight_code() (global function) +
        + + +
        highlight_phrase() (global function) +
        + + +
        hkdf() (CI_Encryption method) +
        + + +
        html_escape() (global function) +
        + + +
        human_to_unix() (global function) +
        + + +
        humanize() (global function) +
        + +
        + +

        I

        + + + +
        + +
        img() (global function) +
        + + +
        increment() (CI_Cache method) +
        + + +
        increment_string() (global function) +
        + + +
        index_page() (global function) +
        + + +
        initialize() (CI_Calendar method) +
        + +
        + +
        (CI_DB_driver method) +
        + + +
        (CI_Encryption method) +
        + + +
        (CI_Image_lib method) +
        + + +
        (CI_Pagination method) +
        + + +
        (CI_Upload method) +
        + + +
        (CI_Xmlrpc method) +
        + +
        + +
        input_stream() (CI_Input method) +
        + + +
        insert() (CI_Cart method) +
        + +
        + +
        (CI_DB_query_builder method) +
        + +
        + +
        insert_batch() (CI_DB_query_builder method) +
        + + +
        insert_string() (CI_DB_driver method) +
        + + +
        ip_address() (CI_Input method) +
        + + +
        is_ajax_request() (CI_Input method) +
        + + +
        is_browser() (CI_User_agent method) +
        + + +
        is_cli() (global function) +
        + +
        + +
        is_cli_request() (CI_Input method) +
        + + +
        is_countable() (global function) +
        + + +
        is_https() (global function) +
        + + +
        is_loaded() (CI_Loader method) +
        + + +
        is_mobile() (CI_User_agent method) +
        + + +
        is_php() (global function) +
        + + +
        is_really_writable() (global function) +
        + + +
        is_referral() (CI_User_agent method) +
        + + +
        is_robot() (CI_User_agent method) +
        + + +
        is_supported() (CI_Cache method) +
        + + +
        is_write_type() (CI_DB_driver method) +
        + + +
        item() (CI_Config method) +
        + +
        + +

        J

        + + +
        + +
        join() (CI_DB_query_builder method) +
        + +
        + +

        K

        + + +
        + +
        keep_flashdata() (CI_Session method) +
        + +
        + +

        L

        + + + +
        + +
        lang() (global function) +
        + + +
        language() (CI_Loader method) +
        + + +
        languages() (CI_User_agent method) +
        + + +
        last_query() (CI_DB_driver method) +
        + + +
        last_row() (CI_DB_result method) +
        + + +
        latest() (CI_Migration method) +
        + + +
        library() (CI_Loader method) +
        + + +
        like() (CI_DB_query_builder method) +
        + + +
        limit() (CI_DB_query_builder method) +
        + + +
        limit_characters() (CI_Trackback method) +
        + +
        + +
        line() (CI_Lang method) +
        + + +
        link_tag() (global function) +
        + + +
        list_databases() (CI_DB_utility method) +
        + + +
        list_fields() (CI_DB_driver method) +
        + +
        + +
        (CI_DB_result method) +
        + +
        + +
        list_files() (CI_FTP method) +
        + + +
        list_tables() (CI_DB_driver method) +
        + + +
        load() (CI_Config method) +
        + +
        + +
        (CI_Lang method) +
        + +
        + +
        local_to_gmt() (global function) +
        + + +
        log_message() (global function) +
        + +
        + +

        M

        + + + +
        + +
        mailto() (global function) +
        + + +
        make_columns() (CI_Table method) +
        + + +
        mark() (CI_Benchmark method) +
        + + +
        mark_as_flash() (CI_Session method) +
        + + +
        mark_as_temp() (CI_Session method) +
        + + +
        mb_strlen() (global function) +
        + + +
        mb_strpos() (global function) +
        + + +
        mb_substr() (global function) +
        + + +
        mdate() (global function) +
        + + +
        memory_usage() (CI_Benchmark method) +
        + +
        + +
        message() (CI_Email method) +
        + + +
        meta() (global function) +
        + + +
        method() (CI_Input method) +
        + +
        + +
        (CI_Xmlrpc method) +
        + +
        + +
        mirror() (CI_FTP method) +
        + + +
        mkdir() (CI_FTP method) +
        + + +
        mobile() (CI_User_agent method) +
        + + +
        model() (CI_Loader method) +
        + + +
        modify_column() (CI_DB_forge method) +
        + + +
        move() (CI_FTP method) +
        + + +
        mysql_to_unix() (global function) +
        + +
        + +

        N

        + + + +
        + +
        nbs() (global function) +
        + + +
        next_row() (CI_DB_result method) +
        + + +
        nice_date() (global function) +
        + + +
        nl2br_except_pre() (CI_Typography method) +
        + +
        + +
        (global function) +
        + +
        + +
        not_group_start() (CI_DB_query_builder method) +
        + +
        + +
        not_like() (CI_DB_query_builder method) +
        + + +
        now() (global function) +
        + + +
        num_fields() (CI_DB_result method) +
        + + +
        num_rows() (CI_DB_result method) +
        + +
        + +

        O

        + + + +
        + +
        octal_permissions() (global function) +
        + + +
        offset() (CI_DB_query_builder method) +
        + + +
        ol() (global function) +
        + + +
        optimize_database() (CI_DB_utility method) +
        + + +
        optimize_table() (CI_DB_utility method) +
        + + +
        or_group_start() (CI_DB_query_builder method) +
        + + +
        or_having() (CI_DB_query_builder method) +
        + +
        + +
        or_like() (CI_DB_query_builder method) +
        + + +
        or_not_group_start() (CI_DB_query_builder method) +
        + + +
        or_not_like() (CI_DB_query_builder method) +
        + + +
        or_where() (CI_DB_query_builder method) +
        + + +
        or_where_in() (CI_DB_query_builder method) +
        + + +
        or_where_not_in() (CI_DB_query_builder method) +
        + + +
        order_by() (CI_DB_query_builder method) +
        + +
        + +

        P

        + + + +
        + +
        parse() (CI_Parser method) +
        + +
        + +
        (CI_User_agent method) +
        + +
        + +
        parse_smileys() (global function) +
        + + +
        parse_string() (CI_Parser method) +
        + + +
        parse_template() (CI_Calendar method) +
        + + +
        password_get_info() (global function) +
        + + +
        password_hash() (global function) +
        + + +
        password_needs_rehash() (global function) +
        + + +
        password_verify() (global function) +
        + + +
        platform() (CI_DB_driver method) +
        + +
        + +
        (CI_User_agent method) +
        + +
        + +
        plural() (global function) +
        + +
        + +
        post() (CI_Input method) +
        + + +
        post_get() (CI_Input method) +
        + + +
        prep_url() (global function) +
        + + +
        previous_row() (CI_DB_result method) +
        + + +
        primary() (CI_DB_driver method) +
        + + +
        print_debugger() (CI_Email method) +
        + + +
        process() (CI_Trackback method) +
        + + +
        product_options() (CI_Cart method) +
        + + +
        protect_identifiers() (CI_DB_driver method) +
        + +
        + +

        Q

        + + + +
        + +
        query() (CI_DB_driver method) +
        + +
        + +
        quotes_to_entities() (global function) +
        + +
        + +

        R

        + + + +
        + +
        random_element() (global function) +
        + + +
        random_string() (global function) +
        + + +
        read_dir() (CI_Zip method) +
        + + +
        read_file() (CI_Zip method) +
        + +
        + +
        (global function) +
        + +
        + +
        receive() (CI_Trackback method) +
        + + +
        reconnect() (CI_DB_driver method) +
        + + +
        redirect() (global function) +
        + + +
        reduce_double_slashes() (global function) +
        + + +
        reduce_multiples() (global function) +
        + + +
        referrer() (CI_User_agent method) +
        + + +
        remove() (CI_Cart method) +
        + + +
        remove_invisible_characters() (global function) +
        + + +
        remove_package_path() (CI_Loader method) +
        + + +
        rename() (CI_FTP method) +
        + + +
        rename_table() (CI_DB_forge method) +
        + + +
        repair_table() (CI_DB_utility method) +
        + + +
        repeater() (global function) +
        + + +
        replace() (CI_DB_query_builder method) +
        + + +
        reply_to() (CI_Email method) +
        + +
        + +
        report() (CI_Unit_test method) +
        + + +
        request() (CI_Xmlrpc method) +
        + + +
        request_headers() (CI_Input method) +
        + + +
        reset_query() (CI_DB_query_builder method) +
        + + +
        reset_validation() (CI_Form_validation method) +
        + + +
        resize() (CI_Image_lib method) +
        + + +
        result() (CI_DB_result method) +
        + +
        + +
        (CI_Unit_test method) +
        + +
        + +
        result_array() (CI_DB_result method) +
        + + +
        result_object() (CI_DB_result method) +
        + + +
        robot() (CI_User_agent method) +
        + + +
        rotate() (CI_Image_lib method) +
        + + +
        row() (CI_DB_result method) +
        + + +
        row_array() (CI_DB_result method) +
        + + +
        row_object() (CI_DB_result method) +
        + + +
        rsegment() (CI_URI method) +
        + + +
        rsegment_array() (CI_URI method) +
        + + +
        run() (CI_Form_validation method) +
        + +
        + +
        (CI_Unit_test method) +
        + +
        + +
        ruri_string() (CI_URI method) +
        + + +
        ruri_to_assoc() (CI_URI method) +
        + +
        + +

        S

        + + + +
        + +
        safe_mailto() (global function) +
        + + +
        sanitize_filename() (CI_Security method) +
        + +
        + +
        (global function) +
        + +
        + +
        save() (CI_Cache method) +
        + + +
        segment() (CI_URI method) +
        + + +
        segment_array() (CI_URI method) +
        + + +
        select() (CI_DB_query_builder method) +
        + + +
        select_avg() (CI_DB_query_builder method) +
        + + +
        select_max() (CI_DB_query_builder method) +
        + + +
        select_min() (CI_DB_query_builder method) +
        + + +
        select_sum() (CI_DB_query_builder method) +
        + + +
        send() (CI_Email method) +
        + +
        + +
        (CI_Trackback method) +
        + +
        + +
        send_email() (global function) +
        + + +
        send_error() (CI_Trackback method) +
        + + +
        send_error_message() (CI_Xmlrpc method) +
        + + +
        send_request() (CI_Xmlrpc method) +
        + + +
        send_success() (CI_Trackback method) +
        + + +
        server() (CI_Input method) +
        + +
        + +
        (CI_Xmlrpc method) +
        + +
        + +
        sess_destroy() (CI_Session method) +
        + + +
        sess_regenerate() (CI_Session method) +
        + + +
        set() (CI_DB_query_builder method) +
        + + +
        set_alt_message() (CI_Email method) +
        + + +
        set_caption() (CI_Table method) +
        + + +
        set_checkbox() (global function) +
        + + +
        set_cipher() (CI_Encrypt method) +
        + + +
        set_content_type() (CI_Output method) +
        + + +
        set_cookie() (CI_Input method) +
        + +
        + +
        (global function) +
        + +
        + +
        set_data() (CI_Form_validation method) +
        + + +
        set_dbprefix() (CI_DB_query_builder method) +
        + + +
        set_delimiters() (CI_Parser method) +
        + + +
        set_empty() (CI_Table method) +
        + + +
        set_error() (CI_Trackback method) +
        + + +
        set_error_delimiters() (CI_Form_validation method) +
        + + +
        set_flashdata() (CI_Session method) +
        + + +
        set_header() (CI_Email method) +
        + +
        + +
        (CI_Output method) +
        + +
        + +
        set_heading() (CI_Table method) +
        + + +
        set_insert_batch() (CI_DB_query_builder method) +
        + + +
        set_item() (CI_Config method) +
        + +
        + +
        set_message() (CI_Form_validation method) +
        + + +
        set_mode() (CI_Encrypt method) +
        + + +
        set_output() (CI_Output method) +
        + + +
        set_profiler_sections() (CI_Output method) +
        + + +
        set_radio() (global function) +
        + + +
        set_realpath() (global function) +
        + + +
        set_row() (CI_DB_result method) +
        + + +
        set_rules() (CI_Form_validation method) +
        + + +
        set_select() (global function) +
        + + +
        set_status_header() (CI_Output method) +
        + +
        + +
        (global function) +
        + +
        + +
        set_tempdata() (CI_Session method) +
        + + +
        set_template() (CI_Table method) +
        + +
        + +
        (CI_Unit_test method) +
        + +
        + +
        set_test_items() (CI_Unit_test method) +
        + + +
        set_update_batch() (CI_DB_query_builder method) +
        + + +
        set_userdata() (CI_Session method) +
        + + +
        set_value() (global function) +
        + + +
        should_do_something() (Some_class method) +
        + + +
        show_404() (global function) +
        + + +
        show_error() (global function) +
        + + +
        simple_query() (CI_DB_driver method) +
        + + +
        singular() (global function) +
        + + +
        site_url() (CI_Config method) +
        + +
        + +
        (global function) +
        + +
        + +
        slash_item() (CI_Config method) +
        + + +
        slash_rsegment() (CI_URI method) +
        + + +
        slash_segment() (CI_URI method) +
        + + +
        smiley_js() (global function) +
        + + +
        Some_class (class) +
        + + +
        some_method() (Some_class method) +
        + + +
        standard_date() (global function) +
        + + +
        start_cache() (CI_DB_query_builder method) +
        + + +
        stop_cache() (CI_DB_query_builder method) +
        + + +
        strip_image_tags() (global function) +
        + + +
        strip_quotes() (global function) +
        + + +
        strip_slashes() (global function) +
        + + +
        subject() (CI_Email method) +
        + + +
        symbolic_permissions() (global function) +
        + + +
        system_url() (CI_Config method) +
        + +
        + +

        T

        + + + +
        + +
        table_exists() (CI_DB_driver method) +
        + + +
        tempdata() (CI_Session method) +
        + + +
        timeout() (CI_Xmlrpc method) +
        + + +
        timespan() (global function) +
        + + +
        timezone_menu() (global function) +
        + + +
        timezones() (global function) +
        + + +
        to() (CI_Email method) +
        + + +
        total() (CI_Cart method) +
        + + +
        total_items() (CI_Cart method) +
        + + +
        total_queries() (CI_DB_driver method) +
        + +
        + +
        total_rsegments() (CI_URI method) +
        + + +
        total_segments() (CI_URI method) +
        + + +
        trans_complete() (CI_DB_driver method) +
        + + +
        trans_off() (CI_DB_driver method) +
        + + +
        trans_start() (CI_DB_driver method) +
        + + +
        trans_status() (CI_DB_driver method) +
        + + +
        trans_strict() (CI_DB_driver method) +
        + + +
        trim_slashes() (global function) +
        + + +
        truncate() (CI_DB_query_builder method) +
        + +
        + +

        U

        + + + +
        + +
        ul() (global function) +
        + + +
        unbuffered_row() (CI_DB_result method) +
        + + +
        underscore() (global function) +
        + + +
        unix_to_human() (global function) +
        + + +
        unmark_flash() (CI_Session method) +
        + + +
        unmark_temp() (CI_Session method) +
        + + +
        unset_userdata() (CI_Session method) +
        + + +
        update() (CI_Cart method) +
        + +
        + +
        (CI_DB_query_builder method) +
        + +
        + +
        update_batch() (CI_DB_query_builder method) +
        + +
        + +
        update_string() (CI_DB_driver method) +
        + + +
        upload() (CI_FTP method) +
        + + +
        uri_string() (CI_URI method) +
        + +
        + +
        (global function) +
        + +
        + +
        uri_to_assoc() (CI_URI method) +
        + + +
        url_title() (global function) +
        + + +
        use_strict() (CI_Unit_test method) +
        + + +
        user_agent() (CI_Input method) +
        + + +
        userdata() (CI_Session method) +
        + +
        + +

        V

        + + + +
        + +
        valid_email() (global function) +
        + + +
        valid_ip() (CI_Input method) +
        + + +
        validate_url() (CI_Trackback method) +
        + + +
        validation_errors() (global function) +
        + +
        + +
        vars() (CI_Loader method) +
        + + +
        version() (CI_DB_driver method) +
        + +
        + +
        (CI_Migration method) +
        + + +
        (CI_User_agent method) +
        + +
        + +
        view() (CI_Loader method) +
        + +
        + +

        W

        + + + +
        + +
        watermark() (CI_Image_lib method) +
        + + +
        where() (CI_DB_query_builder method) +
        + + +
        where_in() (CI_DB_query_builder method) +
        + + +
        where_not_in() (CI_DB_query_builder method) +
        + +
        + +
        word_censor() (global function) +
        + + +
        word_limiter() (global function) +
        + + +
        word_wrap() (global function) +
        + + +
        write_file() (global function) +
        + +
        + +

        X

        + + + +
        + +
        xml_convert() (global function) +
        + + +
        xml_from_result() (CI_DB_utility method) +
        + +
        + +
        xss_clean() (CI_Security method) +
        + +
        + +
        (global function) +
        + +
        +
        + + + +
        +
        + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/array_helper.html b/sna/user_guide/helpers/array_helper.html new file mode 100644 index 0000000..dc8832a --- /dev/null +++ b/sna/user_guide/helpers/array_helper.html @@ -0,0 +1,661 @@ + + + + + + + + + + Array Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Array Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Array Helper

        +

        The Array Helper file contains functions that assist in working with +arrays.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('array');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +element($item, $array[, $default = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $item (string) – Item to fetch from the array
        • +
        • $array (array) – Input array
        • +
        • $default (bool) – What to return if the array isn’t valid
        • +
        +
        Returns:

        NULL on failure or the array item.

        +
        Return type:

        mixed

        +
        +

        Lets you fetch an item from an array. The function tests whether the +array index is set and whether it has a value. If a value exists it is +returned. If a value does not exist it returns NULL, or whatever you’ve +specified as the default value via the third parameter.

        +

        Example:

        +
        $array = array(
        +        'color' => 'red',
        +        'shape' => 'round',
        +        'size'  => ''
        +);
        +
        +echo element('color', $array); // returns "red"
        +echo element('size', $array, 'foobar'); // returns "foobar"
        +
        +
        +
        + +
        +
        +elements($items, $array[, $default = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $item (string) – Item to fetch from the array
        • +
        • $array (array) – Input array
        • +
        • $default (bool) – What to return if the array isn’t valid
        • +
        +
        Returns:

        NULL on failure or the array item.

        +
        Return type:

        mixed

        +
        +

        Lets you fetch a number of items from an array. The function tests +whether each of the array indices is set. If an index does not exist it +is set to NULL, or whatever you’ve specified as the default value via +the third parameter.

        +

        Example:

        +
        $array = array(
        +        'color' => 'red',
        +        'shape' => 'round',
        +        'radius' => '10',
        +        'diameter' => '20'
        +);
        +
        +$my_shape = elements(array('color', 'shape', 'height'), $array);
        +
        +
        +

        The above will return the following array:

        +
        array(
        +        'color' => 'red',
        +        'shape' => 'round',
        +        'height' => NULL
        +);
        +
        +
        +

        You can set the third parameter to any default value you like.

        +
        $my_shape = elements(array('color', 'shape', 'height'), $array, 'foobar');
        +
        +
        +

        The above will return the following array:

        +
        array(
        +        'color'         => 'red',
        +        'shape'         => 'round',
        +        'height'        => 'foobar'
        +);
        +
        +
        +

        This is useful when sending the $_POST array to one of your Models. +This prevents users from sending additional POST data to be entered into +your tables.

        +
        $this->load->model('post_model');
        +$this->post_model->update(
        +        elements(array('id', 'title', 'content'), $_POST)
        +);
        +
        +
        +

        This ensures that only the id, title and content fields are sent to be +updated.

        +
        + +
        +
        +random_element($array)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $array (array) – Input array
        • +
        +
        Returns:

        A random element from the array

        +
        Return type:

        mixed

        +
        +

        Takes an array as input and returns a random element from it.

        +

        Usage example:

        +
        $quotes = array(
        +        "I find that the harder I work, the more luck I seem to have. - Thomas Jefferson",
        +        "Don't stay in bed, unless you can make money in bed. - George Burns",
        +        "We didn't lose the game; we just ran out of time. - Vince Lombardi",
        +        "If everything seems under control, you're not going fast enough. - Mario Andretti",
        +        "Reality is merely an illusion, albeit a very persistent one. - Albert Einstein",
        +        "Chance favors the prepared mind - Louis Pasteur"
        +);
        +
        +echo random_element($quotes);
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/captcha_helper.html b/sna/user_guide/helpers/captcha_helper.html new file mode 100644 index 0000000..3e0e730 --- /dev/null +++ b/sna/user_guide/helpers/captcha_helper.html @@ -0,0 +1,671 @@ + + + + + + + + + + CAPTCHA Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • CAPTCHA Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        CAPTCHA Helper

        +

        The CAPTCHA Helper file contains functions that assist in creating +CAPTCHA images.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('captcha');
        +
        +
        +
        +
        +

        Using the CAPTCHA helper

        +

        Once loaded you can generate a CAPTCHA like this:

        +
        $vals = array(
        +        'word'          => 'Random word',
        +        'img_path'      => './captcha/',
        +        'img_url'       => 'http://example.com/captcha/',
        +        'font_path'     => './path/to/fonts/texb.ttf',
        +        'img_width'     => '150',
        +        'img_height'    => 30,
        +        'expiration'    => 7200,
        +        'word_length'   => 8,
        +        'font_size'     => 16,
        +        'img_id'        => 'Imageid',
        +        'pool'          => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
        +
        +        // White background and border, black text and red grid
        +        'colors'        => array(
        +                'background' => array(255, 255, 255),
        +                'border' => array(255, 255, 255),
        +                'text' => array(0, 0, 0),
        +                'grid' => array(255, 40, 40)
        +        )
        +);
        +
        +$cap = create_captcha($vals);
        +echo $cap['image'];
        +
        +
        +
          +
        • The captcha function requires the GD image library.
        • +
        • Only the img_path and img_url are required.
        • +
        • If a word is not supplied, the function will generate a random +ASCII string. You might put together your own word library that you +can draw randomly from.
        • +
        • If you do not specify a path to a TRUE TYPE font, the native ugly GD +font will be used.
        • +
        • The “captcha” directory must be writable
        • +
        • The expiration (in seconds) signifies how long an image will remain +in the captcha folder before it will be deleted. The default is two +hours.
        • +
        • word_length defaults to 8, pool defaults to ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’
        • +
        • font_size defaults to 16, the native GD font has a size limit. Specify a “true type” font for bigger sizes.
        • +
        • The img_id will be set as the “id” of the captcha image.
        • +
        • If any of the colors values is missing, it will be replaced by the default.
        • +
        +
        +

        Adding a Database

        +

        In order for the captcha function to prevent someone from submitting, +you will need to add the information returned from create_captcha() +to your database. Then, when the data from the form is submitted by +the user you will need to verify that the data exists in the database +and has not expired.

        +

        Here is a table prototype:

        +
        CREATE TABLE captcha (
        +        captcha_id bigint(13) unsigned NOT NULL auto_increment,
        +        captcha_time int(10) unsigned NOT NULL,
        +        ip_address varchar(45) NOT NULL,
        +        word varchar(20) NOT NULL,
        +        PRIMARY KEY `captcha_id` (`captcha_id`),
        +        KEY `word` (`word`)
        +);
        +
        +
        +

        Here is an example of usage with a database. On the page where the +CAPTCHA will be shown you’ll have something like this:

        +
        $this->load->helper('captcha');
        +$vals = array(
        +        'img_path'      => './captcha/',
        +        'img_url'       => 'http://example.com/captcha/'
        +);
        +
        +$cap = create_captcha($vals);
        +$data = array(
        +        'captcha_time'  => $cap['time'],
        +        'ip_address'    => $this->input->ip_address(),
        +        'word'          => $cap['word']
        +);
        +
        +$query = $this->db->insert_string('captcha', $data);
        +$this->db->query($query);
        +
        +echo 'Submit the word you see below:';
        +echo $cap['image'];
        +echo '<input type="text" name="captcha" value="" />';
        +
        +
        +

        Then, on the page that accepts the submission you’ll have something like +this:

        +
        // First, delete old captchas
        +$expiration = time() - 7200; // Two hour limit
        +$this->db->where('captcha_time < ', $expiration)
        +        ->delete('captcha');
        +
        +// Then see if a captcha exists:
        +$sql = 'SELECT COUNT(*) AS count FROM captcha WHERE word = ? AND ip_address = ? AND captcha_time > ?';
        +$binds = array($_POST['captcha'], $this->input->ip_address(), $expiration);
        +$query = $this->db->query($sql, $binds);
        +$row = $query->row();
        +
        +if ($row->count == 0)
        +{
        +        echo 'You must submit the word that appears in the image.';
        +}
        +
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +create_captcha([$data = ''[, $img_path = ''[, $img_url = ''[, $font_path = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Array of data for the CAPTCHA
        • +
        • $img_path (string) – Path to create the image in
        • +
        • $img_url (string) – URL to the CAPTCHA image folder
        • +
        • $font_path (string) – Server path to font
        • +
        +
        Returns:

        array(‘word’ => $word, ‘time’ => $now, ‘image’ => $img)

        +
        Return type:

        array

        +
        +

        Takes an array of information to generate the CAPTCHA as input and +creates the image to your specifications, returning an array of +associative data about the image.

        +
        array(
        +        'image' => IMAGE TAG
        +        'time'  => TIMESTAMP (in microtime)
        +        'word'  => CAPTCHA WORD
        +)
        +
        +
        +

        The image is the actual image tag:

        +
        <img src="http://example.com/captcha/12345.jpg" width="140" height="50" />
        +
        +
        +

        The time is the micro timestamp used as the image name without the +file extension. It will be a number like this: 1139612155.3422

        +

        The word is the word that appears in the captcha image, which if not +supplied to the function, will be a random string.

        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/cookie_helper.html b/sna/user_guide/helpers/cookie_helper.html new file mode 100644 index 0000000..6594f88 --- /dev/null +++ b/sna/user_guide/helpers/cookie_helper.html @@ -0,0 +1,609 @@ + + + + + + + + + + Cookie Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Cookie Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + + + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/date_helper.html b/sna/user_guide/helpers/date_helper.html new file mode 100644 index 0000000..610d549 --- /dev/null +++ b/sna/user_guide/helpers/date_helper.html @@ -0,0 +1,1257 @@ + + + + + + + + + + Date Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Date Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Date Helper

        +

        The Date Helper file contains functions that help you work with dates.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('date');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +now([$timezone = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $timezone (string) – Timezone
        • +
        +
        Returns:

        UNIX timestamp

        +
        Return type:

        int

        +
        +

        Returns the current time as a UNIX timestamp, referenced either to your server’s +local time or any PHP supported timezone, based on the “time reference” setting +in your config file. If you do not intend to set your master time reference to +any other PHP supported timezone (which you’ll typically do if you run a site +that lets each user set their own timezone settings) there is no benefit to using +this function over PHP’s time() function.

        +
        echo now('Australia/Victoria');
        +
        +
        +

        If a timezone is not provided, it will return time() based on the +time_reference setting.

        +
        + +
        +
        +mdate([$datestr = ''[, $time = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $datestr (string) – Date string
        • +
        • $time (int) – UNIX timestamp
        • +
        +
        Returns:

        MySQL-formatted date

        +
        Return type:

        string

        +
        +

        This function is identical to PHP’s date() +function, except that it lets you use MySQL style date codes, where each +code letter is preceded with a percent sign, e.g. %Y %m %d

        +

        The benefit of doing dates this way is that you don’t have to worry +about escaping any characters that are not date codes, as you would +normally have to do with the date() function.

        +

        Example:

        +
        $datestring = 'Year: %Y Month: %m Day: %d - %h:%i %a';
        +$time = time();
        +echo mdate($datestring, $time);
        +
        +
        +

        If a timestamp is not included in the second parameter the current time +will be used.

        +
        + +
        +
        +standard_date([$fmt = 'DATE_RFC822'[, $time = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $fmt (string) – Date format
        • +
        • $time (int) – UNIX timestamp
        • +
        +
        Returns:

        Formatted date or FALSE on invalid format

        +
        Return type:

        string

        +
        +

        Lets you generate a date string in one of several standardized formats.

        +

        Example:

        +
        $format = 'DATE_RFC822';
        +$time = time();
        +echo standard_date($format, $time);
        +
        +
        +
        +

        Note

        +

        This function is DEPRECATED. Use the native date() combined with +DateTime’s format constants +instead:

        +
        echo date(DATE_RFC822, time());
        +
        +
        +
        +

        Supported formats:

        + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        ConstantDescriptionExample
        DATE_ATOMAtom2005-08-15T16:13:03+0000
        DATE_COOKIEHTTP CookiesSun, 14 Aug 2005 16:13:03 UTC
        DATE_ISO8601ISO-86012005-08-14T16:13:03+00:00
        DATE_RFC822RFC 822Sun, 14 Aug 05 16:13:03 UTC
        DATE_RFC850RFC 850Sunday, 14-Aug-05 16:13:03 UTC
        DATE_RFC1036RFC 1036Sunday, 14-Aug-05 16:13:03 UTC
        DATE_RFC1123RFC 1123Sun, 14 Aug 2005 16:13:03 UTC
        DATE_RFC2822RFC 2822Sun, 14 Aug 2005 16:13:03 +0000
        DATE_RSSRSSSun, 14 Aug 2005 16:13:03 UTC
        DATE_W3CW3C2005-08-14T16:13:03+0000
        +
        + +
        +
        +local_to_gmt([$time = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $time (int) – UNIX timestamp
        • +
        +
        Returns:

        UNIX timestamp

        +
        Return type:

        int

        +
        +

        Takes a UNIX timestamp as input and returns it as GMT.

        +

        Example:

        +
        $gmt = local_to_gmt(time());
        +
        +
        +
        + +
        +
        +gmt_to_local([$time = ''[, $timezone = 'UTC'[, $dst = FALSE]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $time (int) – UNIX timestamp
        • +
        • $timezone (string) – Timezone
        • +
        • $dst (bool) – Whether DST is active
        • +
        +
        Returns:

        UNIX timestamp

        +
        Return type:

        int

        +
        +

        Takes a UNIX timestamp (referenced to GMT) as input, and converts it to +a localized timestamp based on the timezone and Daylight Saving Time +submitted.

        +

        Example:

        +
        $timestamp = 1140153693;
        +$timezone  = 'UM8';
        +$daylight_saving = TRUE;
        +echo gmt_to_local($timestamp, $timezone, $daylight_saving);
        +
        +
        +
        +

        Note

        +

        For a list of timezones see the reference at the bottom of this page.

        +
        +
        + +
        +
        +mysql_to_unix([$time = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $time (string) – MySQL timestamp
        • +
        +
        Returns:

        UNIX timestamp

        +
        Return type:

        int

        +
        +

        Takes a MySQL Timestamp as input and returns it as a UNIX timestamp.

        +

        Example:

        +
        $unix = mysql_to_unix('20061124092345');
        +
        +
        +
        + +
        +
        +unix_to_human([$time = ''[, $seconds = FALSE[, $fmt = 'us']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $time (int) – UNIX timestamp
        • +
        • $seconds (bool) – Whether to show seconds
        • +
        • $fmt (string) – format (us or euro)
        • +
        +
        Returns:

        Formatted date

        +
        Return type:

        string

        +
        +

        Takes a UNIX timestamp as input and returns it in a human readable +format with this prototype:

        +
        YYYY-MM-DD HH:MM:SS AM/PM
        +
        +
        +

        This can be useful if you need to display a date in a form field for +submission.

        +

        The time can be formatted with or without seconds, and it can be set to +European or US format. If only the timestamp is submitted it will return +the time without seconds formatted for the U.S.

        +

        Examples:

        +
        $now = time();
        +echo unix_to_human($now); // U.S. time, no seconds
        +echo unix_to_human($now, TRUE, 'us'); // U.S. time with seconds
        +echo unix_to_human($now, TRUE, 'eu'); // Euro time with seconds
        +
        +
        +
        + +
        +
        +human_to_unix([$datestr = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $datestr (int) – Date string
        • +
        +
        Returns:

        UNIX timestamp or FALSE on failure

        +
        Return type:

        int

        +
        +

        The opposite of the unix_to_time() function. Takes a “human” +time as input and returns it as a UNIX timestamp. This is useful if you +accept “human” formatted dates submitted via a form. Returns boolean FALSE +date string passed to it is not formatted as indicated above.

        +

        Example:

        +
        $now = time();
        +$human = unix_to_human($now);
        +$unix = human_to_unix($human);
        +
        +
        +
        + +
        +
        +nice_date([$bad_date = ''[, $format = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $bad_date (int) – The terribly formatted date-like string
        • +
        • $format (string) – Date format to return (same as PHP’s date() function)
        • +
        +
        Returns:

        Formatted date

        +
        Return type:

        string

        +
        +

        This function can take a number poorly-formed date formats and convert +them into something useful. It also accepts well-formed dates.

        +

        The function will return a UNIX timestamp by default. You can, optionally, +pass a format string (the same type as the PHP date() function accepts) +as the second parameter.

        +

        Example:

        +
        $bad_date = '199605';
        +// Should Produce: 1996-05-01
        +$better_date = nice_date($bad_date, 'Y-m-d');
        +
        +$bad_date = '9-11-2001';
        +// Should Produce: 2001-09-11
        +$better_date = nice_date($bad_date, 'Y-m-d');
        +
        +
        +
        +

        Note

        +

        This function is DEPRECATED. Use PHP’s native DateTime class instead.

        +
        +
        + +
        +
        +timespan([$seconds = 1[, $time = ''[, $units = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $seconds (int) – Number of seconds
        • +
        • $time (string) – UNIX timestamp
        • +
        • $units (int) – Number of time units to display
        • +
        +
        Returns:

        Formatted time difference

        +
        Return type:

        string

        +
        +

        Formats a UNIX timestamp so that is appears similar to this:

        +
        1 Year, 10 Months, 2 Weeks, 5 Days, 10 Hours, 16 Minutes
        +
        +
        +

        The first parameter must contain a UNIX timestamp. +The second parameter must contain a timestamp that is greater that the +first timestamp. +The thirdparameter is optional and limits the number of time units to display.

        +

        If the second parameter empty, the current time will be used.

        +

        The most common purpose for this function is to show how much time has +elapsed from some point in time in the past to now.

        +

        Example:

        +
        $post_date = '1079621429';
        +$now = time();
        +$units = 2;
        +echo timespan($post_date, $now, $units);
        +
        +
        +
        +

        Note

        +

        The text generated by this function is found in the following language +file: language/<your_lang>/date_lang.php

        +
        +
        + +
        +
        +days_in_month([$month = 0[, $year = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $month (int) – a numeric month
        • +
        • $year (int) – a numeric year
        • +
        +
        Returns:

        Count of days in the specified month

        +
        Return type:

        int

        +
        +

        Returns the number of days in a given month/year. Takes leap years into +account.

        +

        Example:

        +
        echo days_in_month(06, 2005);
        +
        +
        +

        If the second parameter is empty, the current year will be used.

        +
        +

        Note

        +

        This function will alias the native cal_days_in_month(), if +it is available.

        +
        +
        + +
        +
        +date_range([$unix_start = ''[, $mixed = ''[, $is_unix = TRUE[, $format = 'Y-m-d']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $unix_start (int) – UNIX timestamp of the range start date
        • +
        • $mixed (int) – UNIX timestamp of the range end date or interval in days
        • +
        • $is_unix (bool) – set to FALSE if $mixed is not a timestamp
        • +
        • $format (string) – Output date format, same as in date()
        • +
        +
        Returns:

        An array of dates

        +
        Return type:

        array

        +
        +

        Returns a list of dates within a specified period.

        +

        Example:

        +
        $range = date_range('2012-01-01', '2012-01-15');
        +echo "First 15 days of 2012:";
        +foreach ($range as $date)
        +{
        +        echo $date."\n";
        +}
        +
        +
        +
        + +
        +
        +timezones([$tz = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $tz (string) – A numeric timezone
        • +
        +
        Returns:

        Hour difference from UTC

        +
        Return type:

        int

        +
        +

        Takes a timezone reference (for a list of valid timezones, see the +“Timezone Reference” below) and returns the number of hours offset from +UTC.

        +

        Example:

        +
        echo timezones('UM5');
        +
        +
        +

        This function is useful when used with timezone_menu().

        +
        + +
        +
        +timezone_menu([$default = 'UTC'[, $class = ''[, $name = 'timezones'[, $attributes = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $default (string) – Timezone
        • +
        • $class (string) – Class name
        • +
        • $name (string) – Menu name
        • +
        • $attributes (mixed) – HTML attributes
        • +
        +
        Returns:

        HTML drop down menu with time zones

        +
        Return type:

        string

        +
        +

        Generates a pull-down menu of timezones, like this one:

        +
        + +

        This menu is useful if you run a membership site in which your users are +allowed to set their local timezone value.

        +

        The first parameter lets you set the “selected” state of the menu. For +example, to set Pacific time as the default you will do this:

        +
        echo timezone_menu('UM8');
        +
        +
        +

        Please see the timezone reference below to see the values of this menu.

        +

        The second parameter lets you set a CSS class name for the menu.

        +

        The fourth parameter lets you set one or more attributes on the generated select tag.

        +
        +

        Note

        +

        The text contained in the menu is found in the following +language file: language/<your_lang>/date_lang.php

        +
        +
        + +
        +
        +

        Timezone Reference

        +

        The following table indicates each timezone and its location.

        +

        Note some of the location lists have been abridged for clarity and formatting.

        + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Time ZoneLocation
        UM12(UTC - 12:00) Baker/Howland Island
        UM11(UTC - 11:00) Samoa Time Zone, Niue
        UM10(UTC - 10:00) Hawaii-Aleutian Standard Time, Cook Islands
        UM95(UTC - 09:30) Marquesas Islands
        UM9(UTC - 09:00) Alaska Standard Time, Gambier Islands
        UM8(UTC - 08:00) Pacific Standard Time, Clipperton Island
        UM7(UTC - 07:00) Mountain Standard Time
        UM6(UTC - 06:00) Central Standard Time
        UM5(UTC - 05:00) Eastern Standard Time, Western Caribbean
        UM45(UTC - 04:30) Venezuelan Standard Time
        UM4(UTC - 04:00) Atlantic Standard Time, Eastern Caribbean
        UM35(UTC - 03:30) Newfoundland Standard Time
        UM3(UTC - 03:00) Argentina, Brazil, French Guiana, Uruguay
        UM2(UTC - 02:00) South Georgia/South Sandwich Islands
        UM1(UTC -1:00) Azores, Cape Verde Islands
        UTC(UTC) Greenwich Mean Time, Western European Time
        UP1(UTC +1:00) Central European Time, West Africa Time
        UP2(UTC +2:00) Central Africa Time, Eastern European Time
        UP3(UTC +3:00) Moscow Time, East Africa Time
        UP35(UTC +3:30) Iran Standard Time
        UP4(UTC +4:00) Azerbaijan Standard Time, Samara Time
        UP45(UTC +4:30) Afghanistan
        UP5(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time
        UP55(UTC +5:30) Indian Standard Time, Sri Lanka Time
        UP575(UTC +5:45) Nepal Time
        UP6(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time
        UP65(UTC +6:30) Cocos Islands, Myanmar
        UP7(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam
        UP8(UTC +8:00) Australian Western Standard Time, Beijing Time
        UP875(UTC +8:45) Australian Central Western Standard Time
        UP9(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk
        UP95(UTC +9:30) Australian Central Standard Time
        UP10(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time
        UP105(UTC +10:30) Lord Howe Island
        UP11(UTC +11:00) Srednekolymsk Time, Solomon Islands, Vanuatu
        UP115(UTC +11:30) Norfolk Island
        UP12(UTC +12:00) Fiji, Gilbert Islands, Kamchatka, New Zealand
        UP1275(UTC +12:45) Chatham Islands Standard Time
        UP13(UTC +13:00) Phoenix Islands Time, Tonga
        UP14(UTC +14:00) Line Islands
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/directory_helper.html b/sna/user_guide/helpers/directory_helper.html new file mode 100644 index 0000000..c29efd1 --- /dev/null +++ b/sna/user_guide/helpers/directory_helper.html @@ -0,0 +1,588 @@ + + + + + + + + + + Directory Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Directory Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Directory Helper

        +

        The Directory Helper file contains functions that assist in working with +directories.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('directory');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +directory_map($source_dir[, $directory_depth = 0[, $hidden = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $source_dir (string) – Path to the source directory
        • +
        • $directory_depth (int) – Depth of directories to traverse (0 = fully recursive, 1 = current dir, etc)
        • +
        • $hidden (bool) – Whether to include hidden directories
        • +
        +
        Returns:

        An array of files

        +
        Return type:

        array

        +
        +

        Examples:

        +
        $map = directory_map('./mydirectory/');
        +
        +
        +
        +

        Note

        +

        Paths are almost always relative to your main index.php file.

        +
        +

        Sub-folders contained within the directory will be mapped as well. If +you wish to control the recursion depth, you can do so using the second +parameter (integer). A depth of 1 will only map the top level directory:

        +
        $map = directory_map('./mydirectory/', 1);
        +
        +
        +

        By default, hidden files will not be included in the returned array. To +override this behavior, you may set a third parameter to true (boolean):

        +
        $map = directory_map('./mydirectory/', FALSE, TRUE);
        +
        +
        +

        Each folder name will be an array index, while its contained files will +be numerically indexed. Here is an example of a typical array:

        +
        Array (
        +        [libraries] => Array
        +                (
        +                        [0] => benchmark.html
        +                        [1] => config.html
        +                        ["database/"] => Array
        +                                (
        +                                        [0] => query_builder.html
        +                                        [1] => binds.html
        +                                        [2] => configuration.html
        +                                        [3] => connecting.html
        +                                        [4] => examples.html
        +                                        [5] => fields.html
        +                                        [6] => index.html
        +                                        [7] => queries.html
        +                                )
        +                        [2] => email.html
        +                        [3] => file_uploading.html
        +                        [4] => image_lib.html
        +                        [5] => input.html
        +                        [6] => language.html
        +                        [7] => loader.html
        +                        [8] => pagination.html
        +                        [9] => uri.html
        +                )
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/download_helper.html b/sna/user_guide/helpers/download_helper.html new file mode 100644 index 0000000..6161cde --- /dev/null +++ b/sna/user_guide/helpers/download_helper.html @@ -0,0 +1,557 @@ + + + + + + + + + + Download Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Download Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Download Helper

        +

        The Download Helper lets you download data to your desktop.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('download');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +force_download([$filename = ''[, $data = ''[, $set_mime = FALSE]]])
        +
        +++ + + + + + +
        Parameters:
          +
        • $filename (string) – Filename
        • +
        • $data (mixed) – File contents
        • +
        • $set_mime (bool) – Whether to try to send the actual MIME type
        • +
        +
        Return type:

        void

        +
        +

        Generates server headers which force data to be downloaded to your +desktop. Useful with file downloads. The first parameter is the name +you want the downloaded file to be named, the second parameter is the +file data.

        +

        If you set the second parameter to NULL and $filename is an existing, readable +file path, then its content will be read instead.

        +

        If you set the third parameter to boolean TRUE, then the actual file MIME type +(based on the filename extension) will be sent, so that if your browser has a +handler for that type - it can use it.

        +

        Example:

        +
        $data = 'Here is some text!';
        +$name = 'mytext.txt';
        +force_download($name, $data);
        +
        +
        +

        If you want to download an existing file from your server you’ll need to +do the following:

        +
        // Contents of photo.jpg will be automatically read
        +force_download('/path/to/photo.jpg', NULL);
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/email_helper.html b/sna/user_guide/helpers/email_helper.html new file mode 100644 index 0000000..e3b01f1 --- /dev/null +++ b/sna/user_guide/helpers/email_helper.html @@ -0,0 +1,599 @@ + + + + + + + + + + Email Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Email Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Email Helper

        +

        The Email Helper provides some assistive functions for working with +Email. For a more robust email solution, see CodeIgniter’s Email +Class.

        +
        +

        Important

        +

        The Email helper is DEPRECATED and is currently +only kept for backwards compatibility.

        +
        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('email');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +valid_email($email)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $email (string) – E-mail address
        • +
        +
        Returns:

        TRUE if a valid email is supplied, FALSE otherwise

        +
        Return type:

        bool

        +
        +

        Checks if the input is a correctly formatted e-mail address. Note that is +doesn’t actually prove that the address will be able recieve mail, but +simply that it is a validly formed address.

        +

        Example:

        +
        if (valid_email('email@somesite.com'))
        +{
        +        echo 'email is valid';
        +}
        +else
        +{
        +        echo 'email is not valid';
        +}
        +
        +
        +
        +

        Note

        +

        All that this function does is to use PHP’s native filter_var():

        +
        (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
        +
        +
        +
        +
        + +
        +
        +send_email($recipient, $subject, $message)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $recipient (string) – E-mail address
        • +
        • $subject (string) – Mail subject
        • +
        • $message (string) – Message body
        • +
        +
        Returns:

        TRUE if the mail was successfully sent, FALSE in case of an error

        +
        Return type:

        bool

        +
        +

        Sends an email using PHP’s native mail() +function.

        +
        +

        Note

        +

        All that this function does is to use PHP’s native mail

        +
        mail($recipient, $subject, $message);
        +
        +
        +
        +

        For a more robust email solution, see CodeIgniter’s Email Library.

        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/file_helper.html b/sna/user_guide/helpers/file_helper.html new file mode 100644 index 0000000..8684d78 --- /dev/null +++ b/sna/user_guide/helpers/file_helper.html @@ -0,0 +1,830 @@ + + + + + + + + + + File Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • File Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        File Helper

        +

        The File Helper file contains functions that assist in working with files.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('file');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +read_file($file)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $file (string) – File path
        • +
        +
        Returns:

        File contents or FALSE on failure

        +
        Return type:

        string

        +
        +

        Returns the data contained in the file specified in the path.

        +

        Example:

        +
        $string = read_file('./path/to/file.php');
        +
        +
        +

        The path can be a relative or full server path. Returns FALSE (boolean) on failure.

        +
        +

        Note

        +

        The path is relative to your main site index.php file, NOT your +controller or view files. CodeIgniter uses a front controller so paths +are always relative to the main site index.

        +
        +
        +

        Note

        +

        This function is DEPRECATED. Use the native file_get_contents() +instead.

        +
        +
        +

        Important

        +

        If your server is running an open_basedir restriction this +function might not work if you are trying to access a file above the +calling script.

        +
        +
        + +
        +
        +write_file($path, $data[, $mode = 'wb'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – File path
        • +
        • $data (string) – Data to write to file
        • +
        • $mode (string) – fopen() mode
        • +
        +
        Returns:

        TRUE if the write was successful, FALSE in case of an error

        +
        Return type:

        bool

        +
        +

        Writes data to the file specified in the path. If the file does not exist then the +function will create it.

        +

        Example:

        +
        $data = 'Some file data';
        +if ( ! write_file('./path/to/file.php', $data))
        +{
        +        echo 'Unable to write the file';
        +}
        +else
        +{
        +        echo 'File written!';
        +}
        +
        +
        +

        You can optionally set the write mode via the third parameter:

        +
        write_file('./path/to/file.php', $data, 'r+');
        +
        +
        +

        The default mode is ‘wb’. Please see the PHP user guide +for mode options.

        +
        +

        Note

        +

        The path is relative to your main site index.php file, NOT your +controller or view files. CodeIgniter uses a front controller so paths +are always relative to the main site index.

        +
        +
        +

        Note

        +

        This function acquires an exclusive lock on the file while writing to it.

        +
        +
        + +
        +
        +delete_files($path[, $del_dir = FALSE[, $htdocs = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Directory path
        • +
        • $del_dir (bool) – Whether to also delete directories
        • +
        • $htdocs (bool) – Whether to skip deleting .htaccess and index page files
        • +
        +
        Returns:

        TRUE on success, FALSE in case of an error

        +
        Return type:

        bool

        +
        +

        Deletes ALL files contained in the supplied path.

        +

        Example:

        +
        delete_files('./path/to/directory/');
        +
        +
        +

        If the second parameter is set to TRUE, any directories contained within the supplied +root path will be deleted as well.

        +

        Example:

        +
        delete_files('./path/to/directory/', TRUE);
        +
        +
        +
        +

        Note

        +

        The files must be writable or owned by the system in order to be deleted.

        +
        +
        + +
        +
        +get_filenames($source_dir[, $include_path = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $source_dir (string) – Directory path
        • +
        • $include_path (bool) – Whether to include the path as part of the filenames
        • +
        +
        Returns:

        An array of file names

        +
        Return type:

        array

        +
        +

        Takes a server path as input and returns an array containing the names of all files +contained within it. The file path can optionally be added to the file names by setting +the second parameter to TRUE.

        +

        Example:

        +
        $controllers = get_filenames(APPPATH.'controllers/');
        +
        +
        +
        + +
        +
        +get_dir_file_info($source_dir, $top_level_only)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $source_dir (string) – Directory path
        • +
        • $top_level_only (bool) – Whether to look only at the specified directory (excluding sub-directories)
        • +
        +
        Returns:

        An array containing info on the supplied directory’s contents

        +
        Return type:

        array

        +
        +

        Reads the specified directory and builds an array containing the filenames, filesize, +dates, and permissions. Sub-folders contained within the specified path are only read +if forced by sending the second parameter to FALSE, as this can be an intensive +operation.

        +

        Example:

        +
        $models_info = get_dir_file_info(APPPATH.'models/');
        +
        +
        +
        + +
        +
        +get_file_info($file[, $returned_values = array('name', 'server_path', 'size', 'date')])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $file (string) – File path
        • +
        • $returned_values (array) – What type of info to return
        • +
        +
        Returns:

        An array containing info on the specified file or FALSE on failure

        +
        Return type:

        array

        +
        +

        Given a file and path, returns (optionally) the name, path, size and date modified +information attributes for a file. Second parameter allows you to explicitly declare what +information you want returned.

        +

        Valid $returned_values options are: name, size, date, readable, writeable, +executable and fileperms.

        +
        + +
        +
        +get_mime_by_extension($filename)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $filename (string) – File name
        • +
        +
        Returns:

        MIME type string or FALSE on failure

        +
        Return type:

        string

        +
        +

        Translates a filename extension into a MIME type based on config/mimes.php. +Returns FALSE if it can’t determine the type, or read the MIME config file.

        +
        $file = 'somefile.png';
        +echo $file.' is has a mime type of '.get_mime_by_extension($file);
        +
        +
        +
        +

        Note

        +

        This is not an accurate way of determining file MIME types, and +is here strictly for convenience. It should not be used for security +purposes.

        +
        +
        + +
        +
        +symbolic_permissions($perms)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $perms (int) – Permissions
        • +
        +
        Returns:

        Symbolic permissions string

        +
        Return type:

        string

        +
        +

        Takes numeric permissions (such as is returned by fileperms()) and returns +standard symbolic notation of file permissions.

        +
        echo symbolic_permissions(fileperms('./index.php'));  // -rw-r--r--
        +
        +
        +
        + +
        +
        +octal_permissions($perms)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $perms (int) – Permissions
        • +
        +
        Returns:

        Octal permissions string

        +
        Return type:

        string

        +
        +

        Takes numeric permissions (such as is returned by fileperms()) and returns +a three character octal notation of file permissions.

        +
        echo octal_permissions(fileperms('./index.php')); // 644
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/form_helper.html b/sna/user_guide/helpers/form_helper.html new file mode 100644 index 0000000..7222c86 --- /dev/null +++ b/sna/user_guide/helpers/form_helper.html @@ -0,0 +1,1599 @@ + + + + + + + + + + Form Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Form Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Form Helper

        +

        The Form Helper file contains functions that assist in working with +forms.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('form');
        +
        +
        +
        +
        +

        Escaping field values

        +

        You may need to use HTML and characters such as quotes within your form +elements. In order to do that safely, you’ll need to use +common function +html_escape().

        +

        Consider the following example:

        +
        $string = 'Here is a string containing "quoted" text.';
        +
        +<input type="text" name="myfield" value="<?php echo $string; ?>" />
        +
        +
        +

        Since the above string contains a set of quotes, it will cause the form +to break. The html_escape() function converts HTML special +characters so that it can be used safely:

        +
        <input type="text" name="myfield" value="<?php echo html_escape($string); ?>" />
        +
        +
        +
        +

        Note

        +

        If you use any of the form helper functions listed on this page, +the form values will be automatically escaped, so there is no need +to call this function. Use it only if you are creating your own +form elements.

        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +form_open([$action = ''[, $attributes = ''[, $hidden = array()]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $action (string) – Form action/target URI string
        • +
        • $attributes (array) – HTML attributes
        • +
        • $hidden (array) – An array of hidden fields’ definitions
        • +
        +
        Returns:

        An HTML form opening tag

        +
        Return type:

        string

        +
        +

        Creates an opening form tag with a base URL built from your config preferences. +It will optionally let you add form attributes and hidden input fields, and +will always add the accept-charset attribute based on the charset value in your +config file.

        +

        The main benefit of using this tag rather than hard coding your own HTML is that +it permits your site to be more portable in the event your URLs ever change.

        +

        Here’s a simple example:

        +
        echo form_open('email/send');
        +
        +
        +

        The above example would create a form that points to your base URL plus the +“email/send” URI segments, like this:

        +
        <form method="post" accept-charset="utf-8" action="http://example.com/index.php/email/send">
        +
        +
        +

        Adding Attributes

        +
        +

        Attributes can be added by passing an associative array to the second +parameter, like this:

        +
        $attributes = array('class' => 'email', 'id' => 'myform');
        +echo form_open('email/send', $attributes);
        +
        +
        +

        Alternatively, you can specify the second parameter as a string:

        +
        echo form_open('email/send', 'class="email" id="myform"');
        +
        +
        +

        The above examples would create a form similar to this:

        +
        <form method="post" accept-charset="utf-8" action="http://example.com/index.php/email/send" class="email" id="myform">
        +
        +
        +
        +

        Adding Hidden Input Fields

        +
        +

        Hidden fields can be added by passing an associative array to the +third parameter, like this:

        +
        $hidden = array('username' => 'Joe', 'member_id' => '234');
        +echo form_open('email/send', '', $hidden);
        +
        +
        +

        You can skip the second parameter by passing any falsy value to it.

        +

        The above example would create a form similar to this:

        +
        <form method="post" accept-charset="utf-8" action="http://example.com/index.php/email/send">
        +        <input type="hidden" name="username" value="Joe" />
        +        <input type="hidden" name="member_id" value="234" />
        +
        +
        +
        +
        + +
        +
        +form_open_multipart([$action = ''[, $attributes = array()[, $hidden = array()]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $action (string) – Form action/target URI string
        • +
        • $attributes (array) – HTML attributes
        • +
        • $hidden (array) – An array of hidden fields’ definitions
        • +
        +
        Returns:

        An HTML multipart form opening tag

        +
        Return type:

        string

        +
        +

        This function is absolutely identical to form_open() above, +except that it adds a multipart attribute, which is necessary if you +would like to use the form to upload files with.

        +
        + +
        +
        +form_hidden($name[, $value = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $name (string) – Field name
        • +
        • $value (string) – Field value
        • +
        +
        Returns:

        An HTML hidden input field tag

        +
        Return type:

        string

        +
        +

        Lets you generate hidden input fields. You can either submit a +name/value string to create one field:

        +
        form_hidden('username', 'johndoe');
        +// Would produce: <input type="hidden" name="username" value="johndoe" />
        +
        +
        +

        ... or you can submit an associative array to create multiple fields:

        +
        $data = array(
        +        'name'  => 'John Doe',
        +        'email' => 'john@example.com',
        +        'url'   => 'http://example.com'
        +);
        +
        +echo form_hidden($data);
        +
        +/*
        +        Would produce:
        +        <input type="hidden" name="name" value="John Doe" />
        +        <input type="hidden" name="email" value="john@example.com" />
        +        <input type="hidden" name="url" value="http://example.com" />
        +*/
        +
        +
        +

        You can also pass an associative array to the value field:

        +
        $data = array(
        +        'name'  => 'John Doe',
        +        'email' => 'john@example.com',
        +        'url'   => 'http://example.com'
        +);
        +
        +echo form_hidden('my_array', $data);
        +
        +/*
        +        Would produce:
        +
        +        <input type="hidden" name="my_array[name]" value="John Doe" />
        +        <input type="hidden" name="my_array[email]" value="john@example.com" />
        +        <input type="hidden" name="my_array[url]" value="http://example.com" />
        +*/
        +
        +
        +

        If you want to create hidden input fields with extra attributes:

        +
        $data = array(
        +        'type'  => 'hidden',
        +        'name'  => 'email',
        +        'id'    => 'hiddenemail',
        +        'value' => 'john@example.com',
        +        'class' => 'hiddenemail'
        +);
        +
        +echo form_input($data);
        +
        +/*
        +        Would produce:
        +
        +        <input type="hidden" name="email" value="john@example.com" id="hiddenemail" class="hiddenemail" />
        +*/
        +
        +
        +
        + +
        +
        +form_input([$data = ''[, $value = ''[, $extra = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Field attributes data
        • +
        • $value (string) – Field value
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML text input field tag

        +
        Return type:

        string

        +
        +

        Lets you generate a standard text input field. You can minimally pass +the field name and value in the first and second parameter:

        +
        echo form_input('username', 'johndoe');
        +
        +
        +

        Or you can pass an associative array containing any data you wish your +form to contain:

        +
        $data = array(
        +        'name'          => 'username',
        +        'id'            => 'username',
        +        'value'         => 'johndoe',
        +        'maxlength'     => '100',
        +        'size'          => '50',
        +        'style'         => 'width:50%'
        +);
        +
        +echo form_input($data);
        +
        +/*
        +        Would produce:
        +
        +        <input type="text" name="username" value="johndoe" id="username" maxlength="100" size="50" style="width:50%"  />
        +*/
        +
        +
        +

        If you would like your form to contain some additional data, like +JavaScript, you can pass it as a string in the third parameter:

        +
        $js = 'onClick="some_function()"';
        +echo form_input('username', 'johndoe', $js);
        +
        +
        +

        Or you can pass it as an array:

        +
        $js = array('onClick' => 'some_function();');
        +echo form_input('username', 'johndoe', $js);
        +
        +
        +
        + +
        +
        +form_password([$data = ''[, $value = ''[, $extra = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Field attributes data
        • +
        • $value (string) – Field value
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML password input field tag

        +
        Return type:

        string

        +
        +

        This function is identical in all respects to the form_input() +function above except that it uses the “password” input type.

        +
        + +
        +
        +form_upload([$data = ''[, $value = ''[, $extra = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Field attributes data
        • +
        • $value (string) – Field value
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML file upload input field tag

        +
        Return type:

        string

        +
        +

        This function is identical in all respects to the form_input() +function above except that it uses the “file” input type, allowing it to +be used to upload files.

        +
        + +
        +
        +form_textarea([$data = ''[, $value = ''[, $extra = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Field attributes data
        • +
        • $value (string) – Field value
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML textarea tag

        +
        Return type:

        string

        +
        +

        This function is identical in all respects to the form_input() +function above except that it generates a “textarea” type.

        +
        +

        Note

        +

        Instead of the maxlength and size attributes in the above example, +you will instead specify rows and cols.

        +
        +
        + +
        +
        +form_dropdown([$name = ''[, $options = array()[, $selected = array()[, $extra = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $name (string) – Field name
        • +
        • $options (array) – An associative array of options to be listed
        • +
        • $selected (array) – List of fields to mark with the selected attribute
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML dropdown select field tag

        +
        Return type:

        string

        +
        +

        Lets you create a standard drop-down field. The first parameter will +contain the name of the field, the second parameter will contain an +associative array of options, and the third parameter will contain the +value you wish to be selected. You can also pass an array of multiple +items through the third parameter, and CodeIgniter will create a +multiple select for you.

        +

        Example:

        +
        $options = array(
        +        'small'         => 'Small Shirt',
        +        'med'           => 'Medium Shirt',
        +        'large'         => 'Large Shirt',
        +        'xlarge'        => 'Extra Large Shirt',
        +);
        +
        +$shirts_on_sale = array('small', 'large');
        +echo form_dropdown('shirts', $options, 'large');
        +
        +/*
        +        Would produce:
        +
        +        <select name="shirts">
        +                <option value="small">Small Shirt</option>
        +                <option value="med">Medium  Shirt</option>
        +                <option value="large" selected="selected">Large Shirt</option>
        +                <option value="xlarge">Extra Large Shirt</option>
        +        </select>
        +*/
        +
        +echo form_dropdown('shirts', $options, $shirts_on_sale);
        +
        +/*
        +        Would produce:
        +
        +        <select name="shirts" multiple="multiple">
        +                <option value="small" selected="selected">Small Shirt</option>
        +                <option value="med">Medium  Shirt</option>
        +                <option value="large" selected="selected">Large Shirt</option>
        +                <option value="xlarge">Extra Large Shirt</option>
        +        </select>
        +*/
        +
        +
        +

        If you would like the opening <select> to contain additional data, like +an id attribute or JavaScript, you can pass it as a string in the fourth +parameter:

        +
        $js = 'id="shirts" onChange="some_function();"';
        +echo form_dropdown('shirts', $options, 'large', $js);
        +
        +
        +

        Or you can pass it as an array:

        +
        $js = array(
        +        'id'       => 'shirts',
        +        'onChange' => 'some_function();'
        +);
        +echo form_dropdown('shirts', $options, 'large', $js);
        +
        +
        +

        If the array passed as $options is a multidimensional array, then +form_dropdown() will produce an <optgroup> with the array key as the +label.

        +
        + +
        +
        +form_multiselect([$name = ''[, $options = array()[, $selected = array()[, $extra = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $name (string) – Field name
        • +
        • $options (array) – An associative array of options to be listed
        • +
        • $selected (array) – List of fields to mark with the selected attribute
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML dropdown multiselect field tag

        +
        Return type:

        string

        +
        +

        Lets you create a standard multiselect field. The first parameter will +contain the name of the field, the second parameter will contain an +associative array of options, and the third parameter will contain the +value or values you wish to be selected.

        +

        The parameter usage is identical to using form_dropdown() above, +except of course that the name of the field will need to use POST array +syntax, e.g. foo[].

        +
        + +
        +
        +form_fieldset([$legend_text = ''[, $attributes = array()]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $legend_text (string) – Text to put in the <legend> tag
        • +
        • $attributes (array) – Attributes to be set on the <fieldset> tag
        • +
        +
        Returns:

        An HTML fieldset opening tag

        +
        Return type:

        string

        +
        +

        Lets you generate fieldset/legend fields.

        +

        Example:

        +
        echo form_fieldset('Address Information');
        +echo "<p>fieldset content here</p>\n";
        +echo form_fieldset_close();
        +
        +/*
        +        Produces:
        +
        +                <fieldset>
        +                        <legend>Address Information</legend>
        +                                <p>form content here</p>
        +                </fieldset>
        +*/
        +
        +
        +

        Similar to other functions, you can submit an associative array in the +second parameter if you prefer to set additional attributes:

        +
        $attributes = array(
        +        'id'    => 'address_info',
        +        'class' => 'address_info'
        +);
        +
        +echo form_fieldset('Address Information', $attributes);
        +echo "<p>fieldset content here</p>\n";
        +echo form_fieldset_close();
        +
        +/*
        +        Produces:
        +
        +        <fieldset id="address_info" class="address_info">
        +                <legend>Address Information</legend>
        +                <p>form content here</p>
        +        </fieldset>
        +*/
        +
        +
        +
        + +
        +
        +form_fieldset_close([$extra = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $extra (string) – Anything to append after the closing tag, as is
        • +
        +
        Returns:

        An HTML fieldset closing tag

        +
        Return type:

        string

        +
        +

        Produces a closing </fieldset> tag. The only advantage to using this +function is it permits you to pass data to it which will be added below +the tag. For example

        +
        $string = '</div></div>';
        +echo form_fieldset_close($string);
        +// Would produce: </fieldset></div></div>
        +
        +
        +
        + +
        +
        +form_checkbox([$data = ''[, $value = ''[, $checked = FALSE[, $extra = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Field attributes data
        • +
        • $value (string) – Field value
        • +
        • $checked (bool) – Whether to mark the checkbox as being checked
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML checkbox input tag

        +
        Return type:

        string

        +
        +

        Lets you generate a checkbox field. Simple example:

        +
        echo form_checkbox('newsletter', 'accept', TRUE);
        +// Would produce:  <input type="checkbox" name="newsletter" value="accept" checked="checked" />
        +
        +
        +

        The third parameter contains a boolean TRUE/FALSE to determine whether +the box should be checked or not.

        +

        Similar to the other form functions in this helper, you can also pass an +array of attributes to the function:

        +
        $data = array(
        +        'name'          => 'newsletter',
        +        'id'            => 'newsletter',
        +        'value'         => 'accept',
        +        'checked'       => TRUE,
        +        'style'         => 'margin:10px'
        +);
        +
        +echo form_checkbox($data);
        +// Would produce: <input type="checkbox" name="newsletter" id="newsletter" value="accept" checked="checked" style="margin:10px" />
        +
        +
        +

        Also as with other functions, if you would like the tag to contain +additional data like JavaScript, you can pass it as a string in the +fourth parameter:

        +
        $js = 'onClick="some_function()"';
        +echo form_checkbox('newsletter', 'accept', TRUE, $js);
        +
        +
        +

        Or you can pass it as an array:

        +
        $js = array('onClick' => 'some_function();');
        +echo form_checkbox('newsletter', 'accept', TRUE, $js);
        +
        +
        +
        + +
        +
        +form_radio([$data = ''[, $value = ''[, $checked = FALSE[, $extra = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Field attributes data
        • +
        • $value (string) – Field value
        • +
        • $checked (bool) – Whether to mark the radio button as being checked
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML radio input tag

        +
        Return type:

        string

        +
        +

        This function is identical in all respects to the form_checkbox() +function above except that it uses the “radio” input type.

        +
        + +
        +
        +form_label([$label_text = ''[, $id = ''[, $attributes = array()]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $label_text (string) – Text to put in the <label> tag
        • +
        • $id (string) – ID of the form element that we’re making a label for
        • +
        • $attributes (string) – HTML attributes
        • +
        +
        Returns:

        An HTML field label tag

        +
        Return type:

        string

        +
        +

        Lets you generate a <label>. Simple example:

        +
        echo form_label('What is your Name', 'username');
        +// Would produce:  <label for="username">What is your Name</label>
        +
        +
        +

        Similar to other functions, you can submit an associative array in the +third parameter if you prefer to set additional attributes.

        +

        Example:

        +
        $attributes = array(
        +        'class' => 'mycustomclass',
        +        'style' => 'color: #000;'
        +);
        +
        +echo form_label('What is your Name', 'username', $attributes);
        +// Would produce:  <label for="username" class="mycustomclass" style="color: #000;">What is your Name</label>
        +
        +
        +
        + +
        +
        +form_submit([$data = ''[, $value = ''[, $extra = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Button name
        • +
        • $value (string) – Button value
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML input submit tag

        +
        Return type:

        string

        +
        +

        Lets you generate a standard submit button. Simple example:

        +
        echo form_submit('mysubmit', 'Submit Post!');
        +// Would produce:  <input type="submit" name="mysubmit" value="Submit Post!" />
        +
        +
        +

        Similar to other functions, you can submit an associative array in the +first parameter if you prefer to set your own attributes. The third +parameter lets you add extra data to your form, like JavaScript.

        +
        + +
        +
        +form_reset([$data = ''[, $value = ''[, $extra = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Button name
        • +
        • $value (string) – Button value
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML input reset button tag

        +
        Return type:

        string

        +
        +

        Lets you generate a standard reset button. Use is identical to +form_submit().

        +
        + +
        +
        +form_button([$data = ''[, $content = ''[, $extra = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Button name
        • +
        • $content (string) – Button label
        • +
        • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
        • +
        +
        Returns:

        An HTML button tag

        +
        Return type:

        string

        +
        +

        Lets you generate a standard button element. You can minimally pass the +button name and content in the first and second parameter:

        +
        echo form_button('name','content');
        +// Would produce: <button name="name" type="button">Content</button>
        +
        +
        +

        Or you can pass an associative array containing any data you wish your +form to contain:

        +
        $data = array(
        +        'name'          => 'button',
        +        'id'            => 'button',
        +        'value'         => 'true',
        +        'type'          => 'reset',
        +        'content'       => 'Reset'
        +);
        +
        +echo form_button($data);
        +// Would produce: <button name="button" id="button" value="true" type="reset">Reset</button>
        +
        +
        +

        If you would like your form to contain some additional data, like +JavaScript, you can pass it as a string in the third parameter:

        +
        $js = 'onClick="some_function()"';
        +echo form_button('mybutton', 'Click Me', $js);
        +
        +
        +
        + +
        +
        +form_close([$extra = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $extra (string) – Anything to append after the closing tag, as is
        • +
        +
        Returns:

        An HTML form closing tag

        +
        Return type:

        string

        +
        +

        Produces a closing </form> tag. The only advantage to using this +function is it permits you to pass data to it which will be added below +the tag. For example:

        +
        $string = '</div></div>';
        +echo form_close($string);
        +// Would produce:  </form> </div></div>
        +
        +
        +
        + +
        +
        +set_value($field[, $default = ''[, $html_escape = TRUE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $default (string) – Default value
        • +
        • $html_escape (bool) – Whether to turn off HTML escaping of the value
        • +
        +
        Returns:

        Field value

        +
        Return type:

        string

        +
        +

        Permits you to set the value of an input form or textarea. You must +supply the field name via the first parameter of the function. The +second (optional) parameter allows you to set a default value for the +form. The third (optional) parameter allows you to turn off HTML escaping +of the value, in case you need to use this function in combination with +i.e. form_input() and avoid double-escaping.

        +

        Example:

        +
        <input type="text" name="quantity" value="<?php echo set_value('quantity', '0'); ?>" size="50" />
        +
        +
        +

        The above form will show “0” when loaded for the first time.

        +
        +

        Note

        +

        If you’ve loaded the Form Validation Library and +have set a validation rule for the field name in use with this helper, then it will +forward the call to the Form Validation Library‘s +own set_value() method. Otherwise, this function looks in $_POST for the +field value.

        +
        +
        + +
        +
        +set_select($field[, $value = ''[, $default = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $value (string) – Value to check for
        • +
        • $default (string) – Whether the value is also a default one
        • +
        +
        Returns:

        ‘selected’ attribute or an empty string

        +
        Return type:

        string

        +
        +

        If you use a <select> menu, this function permits you to display the +menu item that was selected.

        +

        The first parameter must contain the name of the select menu, the second +parameter must contain the value of each item, and the third (optional) +parameter lets you set an item as the default (use boolean TRUE/FALSE).

        +

        Example:

        +
        <select name="myselect">
        +        <option value="one" <?php echo  set_select('myselect', 'one', TRUE); ?> >One</option>
        +        <option value="two" <?php echo  set_select('myselect', 'two'); ?> >Two</option>
        +        <option value="three" <?php echo  set_select('myselect', 'three'); ?> >Three</option>
        +</select>
        +
        +
        +
        + +
        +
        +set_checkbox($field[, $value = ''[, $default = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $value (string) – Value to check for
        • +
        • $default (string) – Whether the value is also a default one
        • +
        +
        Returns:

        ‘checked’ attribute or an empty string

        +
        Return type:

        string

        +
        +

        Permits you to display a checkbox in the state it was submitted.

        +

        The first parameter must contain the name of the checkbox, the second +parameter must contain its value, and the third (optional) parameter +lets you set an item as the default (use boolean TRUE/FALSE).

        +

        Example:

        +
        <input type="checkbox" name="mycheck" value="1" <?php echo set_checkbox('mycheck', '1'); ?> />
        +<input type="checkbox" name="mycheck" value="2" <?php echo set_checkbox('mycheck', '2'); ?> />
        +
        +
        +
        + +
        +
        +set_radio($field[, $value = ''[, $default = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $value (string) – Value to check for
        • +
        • $default (string) – Whether the value is also a default one
        • +
        +
        Returns:

        ‘checked’ attribute or an empty string

        +
        Return type:

        string

        +
        +

        Permits you to display radio buttons in the state they were submitted. +This function is identical to the set_checkbox() function above.

        +

        Example:

        +
        <input type="radio" name="myradio" value="1" <?php echo  set_radio('myradio', '1', TRUE); ?> />
        +<input type="radio" name="myradio" value="2" <?php echo  set_radio('myradio', '2'); ?> />
        +
        +
        +
        +

        Note

        +

        If you are using the Form Validation class, you must always specify +a rule for your field, even if empty, in order for the set_*() +functions to work. This is because if a Form Validation object is +defined, the control for set_*() is handed over to a method of the +class instead of the generic helper function.

        +
        +
        + +
        +
        +form_error([$field = ''[, $prefix = ''[, $suffix = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $prefix (string) – Error opening tag
        • +
        • $suffix (string) – Error closing tag
        • +
        +
        Returns:

        HTML-formatted form validation error message(s)

        +
        Return type:

        string

        +
        +

        Returns a validation error message from the Form Validation Library, associated with the specified field name. +You can optionally specify opening and closing tag(s) to put around the error +message.

        +

        Example:

        +
        // Assuming that the 'username' field value was incorrect:
        +echo form_error('myfield', '<div class="error">', '</div>');
        +
        +// Would produce: <div class="error">Error message associated with the "username" field.</div>
        +
        +
        +
        + +
        +
        +validation_errors([$prefix = ''[, $suffix = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $prefix (string) – Error opening tag
        • +
        • $suffix (string) – Error closing tag
        • +
        +
        Returns:

        HTML-formatted form validation error message(s)

        +
        Return type:

        string

        +
        +

        Similarly to the form_error() function, returns all validation +error messages produced by the Form Validation Library, with optional opening and closing tags +around each of the messages.

        +

        Example:

        +
        echo validation_errors('<span class="error">', '</span>');
        +
        +/*
        +        Would produce, e.g.:
        +
        +        <span class="error">The "email" field doesn't contain a valid e-mail address!</span>
        +        <span class="error">The "password" field doesn't match the "repeat_password" field!</span>
        +
        + */
        +
        +
        +
        + +
        +
        +form_prep($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Value to escape
        • +
        +
        Returns:

        Escaped value

        +
        Return type:

        string

        +
        +

        Allows you to safely use HTML and characters such as quotes within form +elements without breaking out of the form.

        +
        +

        Note

        +

        If you use any of the form helper functions listed in this page the form +values will be prepped automatically, so there is no need to call this +function. Use it only if you are creating your own form elements.

        +
        +
        +

        Note

        +

        This function is DEPRECATED and is just an alias for +common function +html_escape() - please use that instead.

        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/html_helper.html b/sna/user_guide/helpers/html_helper.html new file mode 100644 index 0000000..ae4b008 --- /dev/null +++ b/sna/user_guide/helpers/html_helper.html @@ -0,0 +1,1092 @@ + + + + + + + + + + HTML Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • HTML Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        HTML Helper

        +

        The HTML Helper file contains functions that assist in working with +HTML.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('html');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +heading([$data = ''[, $h = '1'[, $attributes = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Content
        • +
        • $h (string) – Heading level
        • +
        • $attributes (mixed) – HTML attributes
        • +
        +
        Returns:

        HTML heading tag

        +
        Return type:

        string

        +
        +

        Lets you create HTML heading tags. The first parameter will contain the +data, the second the size of the heading. Example:

        +
        echo heading('Welcome!', 3);
        +
        +
        +

        The above would produce: <h3>Welcome!</h3>

        +

        Additionally, in order to add attributes to the heading tag such as HTML +classes, ids or inline styles, a third parameter accepts either a string +or an array:

        +
        echo heading('Welcome!', 3, 'class="pink"');
        +echo heading('How are you?', 4, array('id' => 'question', 'class' => 'green'));
        +
        +
        +

        The above code produces:

        +
        <h3 class="pink">Welcome!<h3>
        +<h4 id="question" class="green">How are you?</h4>
        +
        +
        +
        + +
        +
        +img([$src = ''[, $index_page = FALSE[, $attributes = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $src (string) – Image source data
        • +
        • $index_page (bool) – Whether to treat $src as a routed URI string
        • +
        • $attributes (array) – HTML attributes
        • +
        +
        Returns:

        HTML image tag

        +
        Return type:

        string

        +
        +

        Lets you create HTML <img /> tags. The first parameter contains the +image source. Example:

        +
        echo img('images/picture.jpg'); // gives <img src="http://site.com/images/picture.jpg" />
        +
        +
        +

        There is an optional second parameter that is a TRUE/FALSE value that +specifics if the src should have the page specified by +$config['index_page'] added to the address it creates. +Presumably, this would be if you were using a media controller:

        +
        echo img('images/picture.jpg', TRUE); // gives <img src="http://site.com/index.php/images/picture.jpg" alt="" />
        +
        +
        +

        Additionally, an associative array can be passed to the img() function +for complete control over all attributes and values. If an alt attribute +is not provided, CodeIgniter will generate an empty string.

        +

        Example:

        +
        $image_properties = array(
        +        'src'   => 'images/picture.jpg',
        +        'alt'   => 'Me, demonstrating how to eat 4 slices of pizza at one time',
        +        'class' => 'post_images',
        +        'width' => '200',
        +        'height'=> '200',
        +        'title' => 'That was quite a night',
        +        'rel'   => 'lightbox'
        +);
        +
        +img($image_properties);
        +// <img src="http://site.com/index.php/images/picture.jpg" alt="Me, demonstrating how to eat 4 slices of pizza at one time" class="post_images" width="200" height="200" title="That was quite a night" rel="lightbox" />
        +
        +
        +
        + +
        + +
        +++ + + + + + + + +
        Parameters:
          +
        • $href (string) – What are we linking to
        • +
        • $rel (string) – Relation type
        • +
        • $type (string) – Type of the related document
        • +
        • $title (string) – Link title
        • +
        • $media (string) – Media type
        • +
        • $index_page (bool) – Whether to treat $src as a routed URI string
        • +
        +
        Returns:

        HTML link tag

        +
        Return type:

        string

        +
        +

        Lets you create HTML <link /> tags. This is useful for stylesheet links, +as well as other links. The parameters are href, with optional rel, +type, title, media and index_page.

        +

        index_page is a boolean value that specifies if the href should have +the page specified by $config['index_page'] added to the address it creates.

        +

        Example:

        +
        echo link_tag('css/mystyles.css');
        +// gives <link href="http://site.com/css/mystyles.css" rel="stylesheet" type="text/css" />
        +
        +
        +

        Further examples:

        +
        echo link_tag('favicon.ico', 'shortcut icon', 'image/ico');
        +// <link href="http://site.com/favicon.ico" rel="shortcut icon" type="image/ico" />
        +
        +echo link_tag('feed', 'alternate', 'application/rss+xml', 'My RSS Feed');
        +// <link href="http://site.com/feed" rel="alternate" type="application/rss+xml" title="My RSS Feed" />
        +
        +
        +

        Additionally, an associative array can be passed to the link() function +for complete control over all attributes and values:

        +
        $link = array(
        +        'href'  => 'css/printer.css',
        +        'rel'   => 'stylesheet',
        +        'type'  => 'text/css',
        +        'media' => 'print'
        +);
        +
        +echo link_tag($link);
        +// <link href="http://site.com/css/printer.css" rel="stylesheet" type="text/css" media="print" />
        +
        +
        +
        + +
        +
        +ul($list[, $attributes = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $list (array) – List entries
        • +
        • $attributes (array) – HTML attributes
        • +
        +
        Returns:

        HTML-formatted unordered list

        +
        Return type:

        string

        +
        +

        Permits you to generate unordered HTML lists from simple or +multi-dimensional arrays. Example:

        +
        $list = array(
        +        'red',
        +        'blue',
        +        'green',
        +        'yellow'
        +);
        +
        +$attributes = array(
        +        'class' => 'boldlist',
        +        'id'    => 'mylist'
        +);
        +
        +echo ul($list, $attributes);
        +
        +
        +

        The above code will produce this:

        +
        <ul class="boldlist" id="mylist">
        +        <li>red</li>
        +        <li>blue</li>
        +        <li>green</li>
        +        <li>yellow</li>
        +</ul>
        +
        +
        +

        Here is a more complex example, using a multi-dimensional array:

        +
        $attributes = array(
        +        'class' => 'boldlist',
        +        'id'    => 'mylist'
        +);
        +
        +$list = array(
        +        'colors'  => array(
        +                'red',
        +                'blue',
        +                'green'
        +        ),
        +        'shapes'  => array(
        +                'round',
        +                'square',
        +                'circles' => array(
        +                        'ellipse',
        +                        'oval',
        +                        'sphere'
        +                )
        +        ),
        +        'moods'  => array(
        +                'happy',
        +                'upset' => array(
        +                        'defeated' => array(
        +                                'dejected',
        +                                'disheartened',
        +                                'depressed'
        +                        ),
        +                        'annoyed',
        +                        'cross',
        +                        'angry'
        +                )
        +        )
        +);
        +
        +echo ul($list, $attributes);
        +
        +
        +

        The above code will produce this:

        +
        <ul class="boldlist" id="mylist">
        +        <li>colors
        +                <ul>
        +                        <li>red</li>
        +                        <li>blue</li>
        +                        <li>green</li>
        +                </ul>
        +        </li>
        +        <li>shapes
        +                <ul>
        +                        <li>round</li>
        +                        <li>suare</li>
        +                        <li>circles
        +                                <ul>
        +                                        <li>elipse</li>
        +                                        <li>oval</li>
        +                                        <li>sphere</li>
        +                                </ul>
        +                        </li>
        +                </ul>
        +        </li>
        +        <li>moods
        +                <ul>
        +                        <li>happy</li>
        +                        <li>upset
        +                                <ul>
        +                                        <li>defeated
        +                                                <ul>
        +                                                        <li>dejected</li>
        +                                                        <li>disheartened</li>
        +                                                        <li>depressed</li>
        +                                                </ul>
        +                                        </li>
        +                                        <li>annoyed</li>
        +                                        <li>cross</li>
        +                                        <li>angry</li>
        +                                </ul>
        +                        </li>
        +                </ul>
        +        </li>
        +</ul>
        +
        +
        +
        + +
        +
        +ol($list, $attributes = '')
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $list (array) – List entries
        • +
        • $attributes (array) – HTML attributes
        • +
        +
        Returns:

        HTML-formatted ordered list

        +
        Return type:

        string

        +
        +

        Identical to ul(), only it produces the <ol> tag for +ordered lists instead of <ul>.

        +
        + +
        +
        +meta([$name = ''[, $content = ''[, $type = 'name'[, $newline = "n"]]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $name (string) – Meta name
        • +
        • $content (string) – Meta content
        • +
        • $type (string) – Meta type
        • +
        • $newline (string) – Newline character
        • +
        +
        Returns:

        HTML meta tag

        +
        Return type:

        string

        +
        +

        Helps you generate meta tags. You can pass strings to the function, or +simple arrays, or multidimensional ones.

        +

        Examples:

        +
        echo meta('description', 'My Great site');
        +// Generates:  <meta name="description" content="My Great Site" />
        +
        +echo meta('Content-type', 'text/html; charset=utf-8', 'equiv');
        +// Note the third parameter.  Can be "equiv" or "name"
        +// Generates:  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        +
        +echo meta(array('name' => 'robots', 'content' => 'no-cache'));
        +// Generates:  <meta name="robots" content="no-cache" />
        +
        +$meta = array(
        +        array(
        +                'name' => 'robots',
        +                'content' => 'no-cache'
        +        ),
        +        array(
        +                'name' => 'description',
        +                'content' => 'My Great Site'
        +        ),
        +        array(
        +                'name' => 'keywords',
        +                'content' => 'love, passion, intrigue, deception'
        +        ),
        +        array(
        +                'name' => 'robots',
        +                'content' => 'no-cache'
        +        ),
        +        array(
        +                'name' => 'Content-type',
        +                'content' => 'text/html; charset=utf-8', 'type' => 'equiv'
        +        )
        +);
        +
        +echo meta($meta);
        +// Generates:
        +// <meta name="robots" content="no-cache" />
        +// <meta name="description" content="My Great Site" />
        +// <meta name="keywords" content="love, passion, intrigue, deception" />
        +// <meta name="robots" content="no-cache" />
        +// <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        +
        +
        +
        + +
        +
        +doctype([$type = 'xhtml1-strict'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Doctype name
        • +
        +
        Returns:

        HTML DocType tag

        +
        Return type:

        string

        +
        +

        Helps you generate document type declarations, or DTD’s. XHTML 1.0 +Strict is used by default, but many doctypes are available.

        +

        Example:

        +
        echo doctype(); // <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        +
        +echo doctype('html4-trans'); // <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
        +
        +
        +

        The following is a list of doctype choices. These are configurable, and +pulled from application/config/doctypes.php

        + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Document typeOptionResult
        XHTML 1.1xhtml11<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd“>
        XHTML 1.0 Strictxhtml1-strict<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>
        XHTML 1.0 Transitionalxhtml1-trans<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
        XHTML 1.0 Framesetxhtml1-frame<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd“>
        XHTML Basic 1.1xhtml-basic11<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML Basic 1.1//EN” “http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd“>
        HTML 5html5<!DOCTYPE html>
        HTML 4 Stricthtml4-strict<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd“>
        HTML 4 Transitionalhtml4-trans<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd“>
        HTML 4 Framesethtml4-frame<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Frameset//EN” “http://www.w3.org/TR/html4/frameset.dtd“>
        MathML 1.01mathml1<!DOCTYPE math SYSTEM “http://www.w3.org/Math/DTD/mathml1/mathml.dtd“>
        MathML 2.0mathml2<!DOCTYPE math PUBLIC “-//W3C//DTD MathML 2.0//EN” “http://www.w3.org/Math/DTD/mathml2/mathml2.dtd“>
        SVG 1.0svg10<!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.0//EN” “http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd“>
        SVG 1.1 Fullsvg11<!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1//EN” “http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd“>
        SVG 1.1 Basicsvg11-basic<!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1 Basic//EN” “http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd“>
        SVG 1.1 Tinysvg11-tiny<!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1 Tiny//EN” “http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd“>
        XHTML+MathML+SVG (XHTML host)xhtml-math-svg-xh<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN” “http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd“>
        XHTML+MathML+SVG (SVG host)xhtml-math-svg-sh<!DOCTYPE svg:svg PUBLIC “-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN” “http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd”>
        XHTML+RDFa 1.0xhtml-rdfa-1<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML+RDFa 1.0//EN” “http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd“>
        XHTML+RDFa 1.1xhtml-rdfa-2<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML+RDFa 1.1//EN” “http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd“>
        +
        + +
        +
        +br([$count = 1])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $count (int) – Number of times to repeat the tag
        • +
        +
        Returns:

        HTML line break tag

        +
        Return type:

        string

        +
        +

        Generates line break tags (<br />) based on the number you submit. +Example:

        +
        echo br(3);
        +
        +
        +

        The above would produce:

        +
        <br /><br /><br />
        +
        +
        +
        +

        Note

        +

        This function is DEPRECATED. Use the native str_repeat() +in combination with <br /> instead.

        +
        +
        + +
        +
        +nbs([$num = 1])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $num (int) – Number of space entities to produce
        • +
        +
        Returns:

        A sequence of non-breaking space HTML entities

        +
        Return type:

        string

        +
        +

        Generates non-breaking spaces (&nbsp;) based on the number you submit. +Example:

        +
        echo nbs(3);
        +
        +
        +

        The above would produce:

        +
        &nbsp;&nbsp;&nbsp;
        +
        +
        +
        +

        Note

        +

        This function is DEPRECATED. Use the native str_repeat() +in combination with &nbsp; instead.

        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/index.html b/sna/user_guide/helpers/index.html new file mode 100644 index 0000000..0e0f49d --- /dev/null +++ b/sna/user_guide/helpers/index.html @@ -0,0 +1,561 @@ + + + + + + + + + + Helpers — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        + +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/inflector_helper.html b/sna/user_guide/helpers/inflector_helper.html new file mode 100644 index 0000000..a3aa350 --- /dev/null +++ b/sna/user_guide/helpers/inflector_helper.html @@ -0,0 +1,681 @@ + + + + + + + + + + Inflector Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Inflector Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Inflector Helper

        +

        The Inflector Helper file contains functions that permits you to change +English words to plural, singular, camel case, etc.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('inflector');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +singular($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        A singular word

        +
        Return type:

        string

        +
        +

        Changes a plural word to singular. Example:

        +
        echo singular('dogs'); // Prints 'dog'
        +
        +
        +
        + +
        +
        +plural($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        A plural word

        +
        Return type:

        string

        +
        +

        Changes a singular word to plural. Example:

        +
        echo plural('dog'); // Prints 'dogs'
        +
        +
        +
        + +
        +
        +camelize($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        Camelized string

        +
        Return type:

        string

        +
        +

        Changes a string of words separated by spaces or underscores to camel +case. Example:

        +
        echo camelize('my_dog_spot'); // Prints 'myDogSpot'
        +
        +
        +
        + +
        +
        +underscore($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        String containing underscores instead of spaces

        +
        Return type:

        string

        +
        +

        Takes multiple words separated by spaces and underscores them. +Example:

        +
        echo underscore('my dog spot'); // Prints 'my_dog_spot'
        +
        +
        +
        + +
        +
        +humanize($str[, $separator = '_'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $separator (string) – Input separator
        • +
        +
        Returns:

        Humanized string

        +
        Return type:

        string

        +
        +

        Takes multiple words separated by underscores and adds spaces between +them. Each word is capitalized.

        +

        Example:

        +
        echo humanize('my_dog_spot'); // Prints 'My Dog Spot'
        +
        +
        +

        To use dashes instead of underscores:

        +
        echo humanize('my-dog-spot', '-'); // Prints 'My Dog Spot'
        +
        +
        +
        + +
        +
        +is_countable($word)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $word (string) – Input string
        • +
        +
        Returns:

        TRUE if the word is countable or FALSE if not

        +
        Return type:

        bool

        +
        +

        Checks if the given word has a plural version. Example:

        +
        is_countable('equipment'); // Returns FALSE
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/language_helper.html b/sna/user_guide/helpers/language_helper.html new file mode 100644 index 0000000..42809c3 --- /dev/null +++ b/sna/user_guide/helpers/language_helper.html @@ -0,0 +1,551 @@ + + + + + + + + + + Language Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Language Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Language Helper

        +

        The Language Helper file contains functions that assist in working with +language files.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('language');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +lang($line[, $for = ''[, $attributes = array()]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $line (string) – Language line key
        • +
        • $for (string) – HTML “for” attribute (ID of the element we’re creating a label for)
        • +
        • $attributes (array) – Any additional HTML attributes
        • +
        +
        Returns:

        The language line; in an HTML label tag, if the $for parameter is not empty

        +
        Return type:

        string

        +
        +

        This function returns a line of text from a loaded language file with +simplified syntax that may be more desirable for view files than +CI_Lang::line().

        +

        Examples:

        +
        echo lang('language_key');
        +// Outputs: Language line
        +
        +echo lang('language_key', 'form_item_id', array('class' => 'myClass'));
        +// Outputs: <label for="form_item_id" class="myClass">Language line</label>
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/number_helper.html b/sna/user_guide/helpers/number_helper.html new file mode 100644 index 0000000..d500459 --- /dev/null +++ b/sna/user_guide/helpers/number_helper.html @@ -0,0 +1,560 @@ + + + + + + + + + + Number Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Number Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Number Helper

        +

        The Number Helper file contains functions that help you work with +numeric data.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('number');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +byte_format($num[, $precision = 1])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $num (mixed) – Number of bytes
        • +
        • $precision (int) – Floating point precision
        • +
        +
        Returns:

        Formatted data size string

        +
        Return type:

        string

        +
        +

        Formats numbers as bytes, based on size, and adds the appropriate +suffix. Examples:

        +
        echo byte_format(456); // Returns 456 Bytes
        +echo byte_format(4567); // Returns 4.5 KB
        +echo byte_format(45678); // Returns 44.6 KB
        +echo byte_format(456789); // Returns 447.8 KB
        +echo byte_format(3456789); // Returns 3.3 MB
        +echo byte_format(12345678912345); // Returns 1.8 GB
        +echo byte_format(123456789123456789); // Returns 11,228.3 TB
        +
        +
        +

        An optional second parameter allows you to set the precision of the +result:

        +
        echo byte_format(45678, 2); // Returns 44.61 KB
        +
        +
        +
        +

        Note

        +

        The text generated by this function is found in the following +language file: language/<your_lang>/number_lang.php

        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/path_helper.html b/sna/user_guide/helpers/path_helper.html new file mode 100644 index 0000000..3edbb4c --- /dev/null +++ b/sna/user_guide/helpers/path_helper.html @@ -0,0 +1,558 @@ + + + + + + + + + + Path Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Path Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Path Helper

        +

        The Path Helper file contains functions that permits you to work with +file paths on the server.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('path');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +set_realpath($path[, $check_existance = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Path
        • +
        • $check_existance (bool) – Whether to check if the path actually exists
        • +
        +
        Returns:

        An absolute path

        +
        Return type:

        string

        +
        +

        This function will return a server path without symbolic links or +relative directory structures. An optional second argument will +cause an error to be triggered if the path cannot be resolved.

        +

        Examples:

        +
        $file = '/etc/php5/apache2/php.ini';
        +echo set_realpath($file); // Prints '/etc/php5/apache2/php.ini'
        +
        +$non_existent_file = '/path/to/non-exist-file.txt';
        +echo set_realpath($non_existent_file, TRUE);    // Shows an error, as the path cannot be resolved
        +echo set_realpath($non_existent_file, FALSE);   // Prints '/path/to/non-exist-file.txt'
        +
        +$directory = '/etc/php5';
        +echo set_realpath($directory);  // Prints '/etc/php5/'
        +
        +$non_existent_directory = '/path/to/nowhere';
        +echo set_realpath($non_existent_directory, TRUE);       // Shows an error, as the path cannot be resolved
        +echo set_realpath($non_existent_directory, FALSE);      // Prints '/path/to/nowhere'
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/security_helper.html b/sna/user_guide/helpers/security_helper.html new file mode 100644 index 0000000..20bfffe --- /dev/null +++ b/sna/user_guide/helpers/security_helper.html @@ -0,0 +1,670 @@ + + + + + + + + + + Security Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Security Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Security Helper

        +

        The Security Helper file contains security related functions.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('security');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +xss_clean($str[, $is_image = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input data
        • +
        • $is_image (bool) – Whether we’re dealing with an image
        • +
        +
        Returns:

        XSS-clean string

        +
        Return type:

        string

        +
        +

        Provides Cross Site Script Hack filtering.

        +

        This function is an alias for CI_Input::xss_clean(). For more info, +please see the Input Library documentation.

        +
        + +
        +
        +sanitize_filename($filename)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $filename (string) – Filename
        • +
        +
        Returns:

        Sanitized file name

        +
        Return type:

        string

        +
        +

        Provides protection against directory traversal.

        +

        This function is an alias for CI_Security::sanitize_filename(). +For more info, please see the Security Library +documentation.

        +
        + +
        +
        +do_hash($str[, $type = 'sha1'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input
        • +
        • $type (string) – Algorithm
        • +
        +
        Returns:

        Hex-formatted hash

        +
        Return type:

        string

        +
        +

        Permits you to create one way hashes suitable for encrypting +passwords. Will use SHA1 by default.

        +

        See hash_algos() +for a full list of supported algorithms.

        +

        Examples:

        +
        $str = do_hash($str); // SHA1
        +$str = do_hash($str, 'md5'); // MD5
        +
        +
        +
        +

        Note

        +

        This function was formerly named dohash(), which has been +removed in favor of do_hash().

        +
        +
        +

        Note

        +

        This function is DEPRECATED. Use the native hash() instead.

        +
        +
        + +
        +
        +strip_image_tags($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        The input string with no image tags

        +
        Return type:

        string

        +
        +

        This is a security function that will strip image tags from a string. +It leaves the image URL as plain text.

        +

        Example:

        +
        $string = strip_image_tags($string);
        +
        +
        +

        This function is an alias for CI_Security::strip_image_tags(). For +more info, please see the Security Library +documentation.

        +
        + +
        +
        +encode_php_tags($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        Safely formatted string

        +
        Return type:

        string

        +
        +

        This is a security function that converts PHP tags to entities.

        +
        +

        Note

        +

        xss_clean() does this automatically, if you use it.

        +
        +

        Example:

        +
        $string = encode_php_tags($string);
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/smiley_helper.html b/sna/user_guide/helpers/smiley_helper.html new file mode 100644 index 0000000..6175a41 --- /dev/null +++ b/sna/user_guide/helpers/smiley_helper.html @@ -0,0 +1,709 @@ + + + + + + + + + + Smiley Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Smiley Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Smiley Helper

        +

        The Smiley Helper file contains functions that let you manage smileys +(emoticons).

        +
        +

        Important

        +

        The Smiley helper is DEPRECATED and should not be used. +It is currently only kept for backwards compatibility.

        +
        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('smiley');
        +
        +
        +
        +
        +

        Overview

        +

        The Smiley helper has a renderer that takes plain text smileys, like +:-) and turns them into a image representation, like smile!

        +

        It also lets you display a set of smiley images that when clicked will +be inserted into a form field. For example, if you have a blog that +allows user commenting you can show the smileys next to the comment +form. Your users can click a desired smiley and with the help of some +JavaScript it will be placed into the form field.

        +
        +
        +

        Clickable Smileys Tutorial

        +

        Here is an example demonstrating how you might create a set of clickable +smileys next to a form field. This example requires that you first +download and install the smiley images, then create a controller and the +View as described.

        +
        +

        Important

        +

        Before you begin, please download the smiley images +and put them in a publicly accessible place on your server. +This helper also assumes you have the smiley replacement array +located at application/config/smileys.php

        +
        +
        +

        The Controller

        +

        In your application/controllers/ directory, create a file called +Smileys.php and place the code below in it.

        +
        +

        Important

        +

        Change the URL in the get_clickable_smileys() +function below so that it points to your smiley folder.

        +
        +

        You’ll notice that in addition to the smiley helper, we are also using +the Table Class:

        +
        <?php
        +
        +class Smileys extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $this->load->helper('smiley');
        +                $this->load->library('table');
        +
        +                $image_array = get_clickable_smileys('http://example.com/images/smileys/', 'comments');
        +                $col_array = $this->table->make_columns($image_array, 8);
        +
        +                $data['smiley_table'] = $this->table->generate($col_array);
        +                $this->load->view('smiley_view', $data);
        +        }
        +
        +}
        +
        +
        +

        In your application/views/ directory, create a file called smiley_view.php +and place this code in it:

        +
        <html>
        +        <head>
        +                <title>Smileys</title>
        +                <?php echo smiley_js(); ?>
        +        </head>
        +        <body>
        +                <form name="blog">
        +                        <textarea name="comments" id="comments" cols="40" rows="4"></textarea>
        +                </form>
        +                <p>Click to insert a smiley!</p>
        +                <?php echo $smiley_table; ?> </body> </html>
        +                When you have created the above controller and view, load it by visiting http://www.example.com/index.php/smileys/
        +        </body>
        +</html>
        +
        +
        +
        +
        +

        Field Aliases

        +

        When making changes to a view it can be inconvenient to have the field +id in the controller. To work around this, you can give your smiley +links a generic name that will be tied to a specific id in your view.

        +
        $image_array = get_smiley_links("http://example.com/images/smileys/", "comment_textarea_alias");
        +
        +
        +

        To map the alias to the field id, pass them both into the +smiley_js() function:

        +
        $image_array = smiley_js("comment_textarea_alias", "comments");
        +
        +
        +
        +
        +
        +

        Available Functions

        +
        +
        +get_clickable_smileys($image_url[, $alias = ''[, $smileys = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $image_url (string) – URL path to the smileys directory
        • +
        • $alias (string) – Field alias
        • +
        +
        Returns:

        An array of ready to use smileys

        +
        Return type:

        array

        +
        +

        Returns an array containing your smiley images wrapped in a clickable +link. You must supply the URL to your smiley folder and a field id or +field alias.

        +

        Example:

        +
        $image_array = get_clickable_smileys('http://example.com/images/smileys/', 'comment');
        +
        +
        +
        + +
        +
        +smiley_js([$alias = ''[, $field_id = ''[, $inline = TRUE]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $alias (string) – Field alias
        • +
        • $field_id (string) – Field ID
        • +
        • $inline (bool) – Whether we’re inserting an inline smiley
        • +
        +
        Returns:

        Smiley-enabling JavaScript code

        +
        Return type:

        string

        +
        +

        Generates the JavaScript that allows the images to be clicked and +inserted into a form field. If you supplied an alias instead of an id +when generating your smiley links, you need to pass the alias and +corresponding form id into the function. This function is designed to be +placed into the <head> area of your web page.

        +

        Example:

        +
        <?php echo smiley_js(); ?>
        +
        +
        +
        + +
        +
        +parse_smileys([$str = ''[, $image_url = ''[, $smileys = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Text containing smiley codes
        • +
        • $image_url (string) – URL path to the smileys directory
        • +
        • $smileys (array) – An array of smileys
        • +
        +
        Returns:

        Parsed smileys

        +
        Return type:

        string

        +
        +

        Takes a string of text as input and replaces any contained plain text +smileys into the image equivalent. The first parameter must contain your +string, the second must contain the URL to your smiley folder

        +

        Example:

        +
        $str = 'Here are some smileys: :-)  ;-)';
        +$str = parse_smileys($str, 'http://example.com/images/smileys/');
        +echo $str;
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/string_helper.html b/sna/user_guide/helpers/string_helper.html new file mode 100644 index 0000000..b023410 --- /dev/null +++ b/sna/user_guide/helpers/string_helper.html @@ -0,0 +1,874 @@ + + + + + + + + + + String Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • String Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        String Helper

        +

        The String Helper file contains functions that assist in working with +strings.

        +
        +

        Important

        +

        Please note that these functions are NOT intended, nor +suitable to be used for any kind of security-related logic.

        +
        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('string');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +random_string([$type = 'alnum'[, $len = 8]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $type (string) – Randomization type
        • +
        • $len (int) – Output string length
        • +
        +
        Returns:

        A random string

        +
        Return type:

        string

        +
        +

        Generates a random string based on the type and length you specify. +Useful for creating passwords or generating random hashes.

        +

        The first parameter specifies the type of string, the second parameter +specifies the length. The following choices are available:

        +
          +
        • alpha: A string with lower and uppercase letters only.
        • +
        • alnum: Alpha-numeric string with lower and uppercase characters.
        • +
        • basic: A random number based on mt_rand().
        • +
        • numeric: Numeric string.
        • +
        • nozero: Numeric string with no zeros.
        • +
        • md5: An encrypted random number based on md5() (fixed length of 32).
        • +
        • sha1: An encrypted random number based on sha1() (fixed length of 40).
        • +
        +

        Usage example:

        +
        echo random_string('alnum', 16);
        +
        +
        +
        +

        Note

        +

        Usage of the unique and encrypt types is DEPRECATED. They +are just aliases for md5 and sha1 respectively.

        +
        +
        + +
        +
        +increment_string($str[, $separator = '_'[, $first = 1]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $separator (string) – Separator to append a duplicate number with
        • +
        • $first (int) – Starting number
        • +
        +
        Returns:

        An incremented string

        +
        Return type:

        string

        +
        +

        Increments a string by appending a number to it or increasing the +number. Useful for creating “copies” or a file or duplicating database +content which has unique titles or slugs.

        +

        Usage example:

        +
        echo increment_string('file', '_'); // "file_1"
        +echo increment_string('file', '-', 2); // "file-2"
        +echo increment_string('file_4'); // "file_5"
        +
        +
        +
        + +
        +
        +alternator($args)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $args (mixed) – A variable number of arguments
        • +
        +
        Returns:

        Alternated string(s)

        +
        Return type:

        mixed

        +
        +

        Allows two or more items to be alternated between, when cycling through +a loop. Example:

        +
        for ($i = 0; $i < 10; $i++)
        +{
        +        echo alternator('string one', 'string two');
        +}
        +
        +
        +

        You can add as many parameters as you want, and with each iteration of +your loop the next item will be returned.

        +
        for ($i = 0; $i < 10; $i++)
        +{
        +        echo alternator('one', 'two', 'three', 'four', 'five');
        +}
        +
        +
        +
        +

        Note

        +

        To use multiple separate calls to this function simply call the +function with no arguments to re-initialize.

        +
        +
        + +
        +
        +repeater($data[, $num = 1])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Input
        • +
        • $num (int) – Number of times to repeat
        • +
        +
        Returns:

        Repeated string

        +
        Return type:

        string

        +
        +

        Generates repeating copies of the data you submit. Example:

        +
        $string = "\n";
        +echo repeater($string, 30);
        +
        +
        +

        The above would generate 30 newlines.

        +
        +

        Note

        +

        This function is DEPRECATED. Use the native str_repeat() +instead.

        +
        +
        + +
        +
        +reduce_double_slashes($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        A string with normalized slashes

        +
        Return type:

        string

        +
        +

        Converts double slashes in a string to a single slash, except those +found in URL protocol prefixes (e.g. http&#58;//).

        +

        Example:

        +
        $string = "http://example.com//index.php";
        +echo reduce_double_slashes($string); // results in "http://example.com/index.php"
        +
        +
        +
        + +
        +
        +strip_slashes($data)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (mixed) – Input string or an array of strings
        • +
        +
        Returns:

        String(s) with stripped slashes

        +
        Return type:

        mixed

        +
        +

        Removes any slashes from an array of strings.

        +

        Example:

        +
        $str = array(
        +        'question'  => 'Is your name O\'reilly?',
        +        'answer' => 'No, my name is O\'connor.'
        +);
        +
        +$str = strip_slashes($str);
        +
        +
        +

        The above will return the following array:

        +
        array(
        +        'question'  => "Is your name O'reilly?",
        +        'answer' => "No, my name is O'connor."
        +);
        +
        +
        +
        +

        Note

        +

        For historical reasons, this function will also accept +and handle string inputs. This however makes it just an +alias for stripslashes().

        +
        +
        + +
        +
        +trim_slashes($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        Slash-trimmed string

        +
        Return type:

        string

        +
        +

        Removes any leading/trailing slashes from a string. Example:

        +
        $string = "/this/that/theother/";
        +echo trim_slashes($string); // results in this/that/theother
        +
        +
        +
        +

        Note

        +

        This function is DEPRECATED. Use the native trim() instead: +| +| trim($str, ‘/’);

        +
        +
        + +
        +
        +reduce_multiples($str[, $character = ''[, $trim = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Text to search in
        • +
        • $character (string) – Character to reduce
        • +
        • $trim (bool) – Whether to also trim the specified character
        • +
        +
        Returns:

        Reduced string

        +
        Return type:

        string

        +
        +

        Reduces multiple instances of a particular character occurring directly +after each other. Example:

        +
        $string = "Fred, Bill,, Joe, Jimmy";
        +$string = reduce_multiples($string,","); //results in "Fred, Bill, Joe, Jimmy"
        +
        +
        +

        If the third parameter is set to TRUE it will remove occurrences of the +character at the beginning and the end of the string. Example:

        +
        $string = ",Fred, Bill,, Joe, Jimmy,";
        +$string = reduce_multiples($string, ", ", TRUE); //results in "Fred, Bill, Joe, Jimmy"
        +
        +
        +
        + +
        +
        +quotes_to_entities($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        String with quotes converted to HTML entities

        +
        Return type:

        string

        +
        +

        Converts single and double quotes in a string to the corresponding HTML +entities. Example:

        +
        $string = "Joe's \"dinner\"";
        +$string = quotes_to_entities($string); //results in "Joe&#39;s &quot;dinner&quot;"
        +
        +
        +
        + +
        +
        +strip_quotes($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        String with quotes stripped

        +
        Return type:

        string

        +
        +

        Removes single and double quotes from a string. Example:

        +
        $string = "Joe's \"dinner\"";
        +$string = strip_quotes($string); //results in "Joes dinner"
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/text_helper.html b/sna/user_guide/helpers/text_helper.html new file mode 100644 index 0000000..7310745 --- /dev/null +++ b/sna/user_guide/helpers/text_helper.html @@ -0,0 +1,848 @@ + + + + + + + + + + Text Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Text Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Text Helper

        +

        The Text Helper file contains functions that assist in working with +text.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('text');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +word_limiter($str[, $limit = 100[, $end_char = '&#8230;']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $limit (int) – Limit
        • +
        • $end_char (string) – End character (usually an ellipsis)
        • +
        +
        Returns:

        Word-limited string

        +
        Return type:

        string

        +
        +

        Truncates a string to the number of words specified. Example:

        +
        $string = "Here is a nice text string consisting of eleven words.";
        +$string = word_limiter($string, 4);
        +// Returns:  Here is a nice
        +
        +
        +

        The third parameter is an optional suffix added to the string. By +default it adds an ellipsis.

        +
        + +
        +
        +character_limiter($str[, $n = 500[, $end_char = '&#8230;']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $n (int) – Number of characters
        • +
        • $end_char (string) – End character (usually an ellipsis)
        • +
        +
        Returns:

        Character-limited string

        +
        Return type:

        string

        +
        +

        Truncates a string to the number of characters specified. It +maintains the integrity of words so the character count may be slightly +more or less than what you specify.

        +

        Example:

        +
        $string = "Here is a nice text string consisting of eleven words.";
        +$string = character_limiter($string, 20);
        +// Returns:  Here is a nice text string
        +
        +
        +

        The third parameter is an optional suffix added to the string, if +undeclared this helper uses an ellipsis.

        +
        +

        Note

        +

        If you need to truncate to an exact number of characters please +see the ellipsize() function below.

        +
        +
        + +
        +
        +ascii_to_entities($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        A string with ASCII values converted to entities

        +
        Return type:

        string

        +
        +

        Converts ASCII values to character entities, including high ASCII and MS +Word characters that can cause problems when used in a web page, so that +they can be shown consistently regardless of browser settings or stored +reliably in a database. There is some dependence on your server’s +supported character sets, so it may not be 100% reliable in all cases, +but for the most part it should correctly identify characters outside +the normal range (like accented characters).

        +

        Example:

        +
        $string = ascii_to_entities($string);
        +
        +
        +
        + +
        +
        +convert_accented_characters($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        A string with accented characters converted

        +
        Return type:

        string

        +
        +

        Transliterates high ASCII characters to low ASCII equivalents. Useful +when non-English characters need to be used where only standard ASCII +characters are safely used, for instance, in URLs.

        +

        Example:

        +
        $string = convert_accented_characters($string);
        +
        +
        +
        +

        Note

        +

        This function uses a companion config file +application/config/foreign_chars.php to define the to and +from array for transliteration.

        +
        +
        + +
        +
        +word_censor($str, $censored[, $replacement = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $censored (array) – List of bad words to censor
        • +
        • $replacement (string) – What to replace bad words with
        • +
        +
        Returns:

        Censored string

        +
        Return type:

        string

        +
        +

        Enables you to censor words within a text string. The first parameter +will contain the original string. The second will contain an array of +words which you disallow. The third (optional) parameter can contain +a replacement value for the words. If not specified they are replaced +with pound signs: ####.

        +

        Example:

        +
        $disallowed = array('darn', 'shucks', 'golly', 'phooey');
        +$string = word_censor($string, $disallowed, 'Beep!');
        +
        +
        +
        + +
        +
        +highlight_code($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        String with code highlighted via HTML

        +
        Return type:

        string

        +
        +

        Colorizes a string of code (PHP, HTML, etc.). Example:

        +
        $string = highlight_code($string);
        +
        +
        +

        The function uses PHP’s highlight_string() function, so the +colors used are the ones specified in your php.ini file.

        +
        + +
        +
        +highlight_phrase($str, $phrase[, $tag_open = '<mark>'[, $tag_close = '</mark>']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $phrase (string) – Phrase to highlight
        • +
        • $tag_open (string) – Opening tag used for the highlight
        • +
        • $tag_close (string) – Closing tag for the highlight
        • +
        +
        Returns:

        String with a phrase highlighted via HTML

        +
        Return type:

        string

        +
        +

        Will highlight a phrase within a text string. The first parameter will +contain the original string, the second will contain the phrase you wish +to highlight. The third and fourth parameters will contain the +opening/closing HTML tags you would like the phrase wrapped in.

        +

        Example:

        +
        $string = "Here is a nice text string about nothing in particular.";
        +echo highlight_phrase($string, "nice text", '<span style="color:#990000;">', '</span>');
        +
        +
        +

        The above code prints:

        +
        Here is a <span style="color:#990000;">nice text</span> string about nothing in particular.
        +
        +
        +
        +

        Note

        +

        This function used to use the <strong> tag by default. Older browsers +might not support the new HTML5 mark tag, so it is recommended that you +insert the following CSS code into your stylesheet if you need to support +such browsers:

        +
        mark {
        +        background: #ff0;
        +        color: #000;
        +};
        +
        +
        +
        +
        + +
        +
        +word_wrap($str[, $charlim = 76])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $charlim (int) – Character limit
        • +
        +
        Returns:

        Word-wrapped string

        +
        Return type:

        string

        +
        +

        Wraps text at the specified character count while maintaining +complete words.

        +

        Example:

        +
        $string = "Here is a simple string of text that will help us demonstrate this function.";
        +echo word_wrap($string, 25);
        +
        +// Would produce:
        +// Here is a simple string
        +// of text that will help us
        +// demonstrate this
        +// function.
        +
        +
        +
        + +
        +
        +ellipsize($str, $max_length[, $position = 1[, $ellipsis = '&hellip;']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $max_length (int) – String length limit
        • +
        • $position (mixed) – Position to split at (int or float)
        • +
        • $ellipsis (string) – What to use as the ellipsis character
        • +
        +
        Returns:

        Ellipsized string

        +
        Return type:

        string

        +
        +

        This function will strip tags from a string, split it at a defined +maximum length, and insert an ellipsis.

        +

        The first parameter is the string to ellipsize, the second is the number +of characters in the final string. The third parameter is where in the +string the ellipsis should appear from 0 - 1, left to right. For +example. a value of 1 will place the ellipsis at the right of the +string, .5 in the middle, and 0 at the left.

        +

        An optional forth parameter is the kind of ellipsis. By default, +&hellip; will be inserted.

        +

        Example:

        +
        $str = 'this_string_is_entirely_too_long_and_might_break_my_design.jpg';
        +echo ellipsize($str, 32, .5);
        +
        +
        +

        Produces:

        +
        this_string_is_e&hellip;ak_my_design.jpg
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/typography_helper.html b/sna/user_guide/helpers/typography_helper.html new file mode 100644 index 0000000..a4aa8fc --- /dev/null +++ b/sna/user_guide/helpers/typography_helper.html @@ -0,0 +1,608 @@ + + + + + + + + + + Typography Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • Typography Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Typography Helper

        +

        The Typography Helper file contains functions that help your format text +in semantically relevant ways.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('typography');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +auto_typography($str[, $reduce_linebreaks = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $reduce_linebreaks (bool) – Whether to reduce multiple instances of double newlines to two
        • +
        +
        Returns:

        HTML-formatted typography-safe string

        +
        Return type:

        string

        +
        +

        Formats text so that it is semantically and typographically correct +HTML.

        +

        This function is an alias for CI_Typography::auto_typography(). +For more info, please see the Typography Library documentation.

        +

        Usage example:

        +
        $string = auto_typography($string);
        +
        +
        +
        +

        Note

        +

        Typographic formatting can be processor intensive, particularly if +you have a lot of content being formatted. If you choose to use this +function you may want to consider caching your +pages.

        +
        +
        + +
        +
        +nl2br_except_pre($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        String with HTML-formatted line breaks

        +
        Return type:

        string

        +
        +

        Converts newlines to <br /> tags unless they appear within <pre> tags. +This function is identical to the native PHP nl2br() function, +except that it ignores <pre> tags.

        +

        Usage example:

        +
        $string = nl2br_except_pre($string);
        +
        +
        +
        + +
        +
        +entity_decode($str, $charset = NULL)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $charset (string) – Character set
        • +
        +
        Returns:

        String with decoded HTML entities

        +
        Return type:

        string

        +
        +

        This function is an alias for CI_Security::entity_decode(). +Fore more info, please see the Security Library documentation.

        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/url_helper.html b/sna/user_guide/helpers/url_helper.html new file mode 100644 index 0000000..9e7b0b8 --- /dev/null +++ b/sna/user_guide/helpers/url_helper.html @@ -0,0 +1,1045 @@ + + + + + + + + + + URL Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • URL Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        URL Helper

        +

        The URL Helper file contains functions that assist in working with URLs.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code:

        +
        $this->load->helper('url');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +site_url([$uri = ''[, $protocol = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $uri (string) – URI string
        • +
        • $protocol (string) – Protocol, e.g. ‘http’ or ‘https’
        • +
        +
        Returns:

        Site URL

        +
        Return type:

        string

        +
        +

        Returns your site URL, as specified in your config file. The index.php +file (or whatever you have set as your site index_page in your config +file) will be added to the URL, as will any URI segments you pass to the +function, plus the url_suffix as set in your config file.

        +

        You are encouraged to use this function any time you need to generate a +local URL so that your pages become more portable in the event your URL +changes.

        +

        Segments can be optionally passed to the function as a string or an +array. Here is a string example:

        +
        echo site_url('news/local/123');
        +
        +
        +

        The above example would return something like: +http://example.com/index.php/news/local/123

        +

        Here is an example of segments passed as an array:

        +
        $segments = array('news', 'local', '123');
        +echo site_url($segments);
        +
        +
        +

        This function is an alias for CI_Config::site_url(). For more info, +please see the Config Library documentation.

        +
        + +
        +
        +base_url($uri = '', $protocol = NULL)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $uri (string) – URI string
        • +
        • $protocol (string) – Protocol, e.g. ‘http’ or ‘https’
        • +
        +
        Returns:

        Base URL

        +
        Return type:

        string

        +
        +

        Returns your site base URL, as specified in your config file. Example:

        +
        echo base_url();
        +
        +
        +

        This function returns the same thing as site_url(), without +the index_page or url_suffix being appended.

        +

        Also like site_url(), you can supply segments as a string or +an array. Here is a string example:

        +
        echo base_url("blog/post/123");
        +
        +
        +

        The above example would return something like: +http://example.com/blog/post/123

        +

        This is useful because unlike site_url(), you can supply a +string to a file, such as an image or stylesheet. For example:

        +
        echo base_url("images/icons/edit.png");
        +
        +
        +

        This would give you something like: +http://example.com/images/icons/edit.png

        +

        This function is an alias for CI_Config::base_url(). For more info, +please see the Config Library documentation.

        +
        + +
        +
        +current_url()
        +
        +++ + + + + + +
        Returns:The current URL
        Return type:string
        +

        Returns the full URL (including segments) of the page being currently +viewed.

        +
        +

        Note

        +

        Calling this function is the same as doing this: +| +| site_url(uri_string());

        +
        +
        + +
        +
        +uri_string()
        +
        +++ + + + + + +
        Returns:An URI string
        Return type:string
        +

        Returns the URI segments of any page that contains this function. +For example, if your URL was this:

        +
        http://some-site.com/blog/comments/123
        +
        +
        +

        The function would return:

        +
        blog/comments/123
        +
        +
        +

        This function is an alias for CI_Config::uri_string(). For more info, +please see the Config Library documentation.

        +
        + +
        +
        +index_page()
        +
        +++ + + + + + +
        Returns:‘index_page’ value
        Return type:mixed
        +

        Returns your site index_page, as specified in your config file. +Example:

        +
        echo index_page();
        +
        +
        +
        + +
        +
        +anchor($uri = '', $title = '', $attributes = '')
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $uri (string) – URI string
        • +
        • $title (string) – Anchor title
        • +
        • $attributes (mixed) – HTML attributes
        • +
        +
        Returns:

        HTML hyperlink (anchor tag)

        +
        Return type:

        string

        +
        +

        Creates a standard HTML anchor link based on your local site URL.

        +

        The first parameter can contain any segments you wish appended to the +URL. As with the site_url() function above, segments can +be a string or an array.

        +
        +

        Note

        +

        If you are building links that are internal to your application +do not include the base URL (http&#58;//...). This will be added +automatically from the information specified in your config file. +Include only the URI segments you wish appended to the URL.

        +
        +

        The second segment is the text you would like the link to say. If you +leave it blank, the URL will be used.

        +

        The third parameter can contain a list of attributes you would like +added to the link. The attributes can be a simple string or an +associative array.

        +

        Here are some examples:

        +
        echo anchor('news/local/123', 'My News', 'title="News title"');
        +// Prints: <a href="http://example.com/index.php/news/local/123" title="News title">My News</a>
        +
        +echo anchor('news/local/123', 'My News', array('title' => 'The best news!'));
        +// Prints: <a href="http://example.com/index.php/news/local/123" title="The best news!">My News</a>
        +
        +echo anchor('', 'Click here');
        +// Prints: <a href="http://example.com">Click Here</a>
        +
        +
        +
        + +
        +
        +anchor_popup($uri = '', $title = '', $attributes = FALSE)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $uri (string) – URI string
        • +
        • $title (string) – Anchor title
        • +
        • $attributes (mixed) – HTML attributes
        • +
        +
        Returns:

        Pop-up hyperlink

        +
        Return type:

        string

        +
        +

        Nearly identical to the anchor() function except that it +opens the URL in a new window. You can specify JavaScript window +attributes in the third parameter to control how the window is opened. +If the third parameter is not set it will simply open a new window with +your own browser settings.

        +

        Here is an example with attributes:

        +
        $atts = array(
        +        'width'       => 800,
        +        'height'      => 600,
        +        'scrollbars'  => 'yes',
        +        'status'      => 'yes',
        +        'resizable'   => 'yes',
        +        'screenx'     => 0,
        +        'screeny'     => 0,
        +        'window_name' => '_blank'
        +);
        +
        +echo anchor_popup('news/local/123', 'Click Me!', $atts);
        +
        +
        +
        +

        Note

        +

        The above attributes are the function defaults so you only need to +set the ones that are different from what you need. If you want the +function to use all of its defaults simply pass an empty array in the +third parameter: +| +| echo anchor_popup(‘news/local/123’, ‘Click Me!’, array());

        +
        +
        +

        Note

        +

        The window_name is not really an attribute, but an argument to +the JavaScript window.open() <http://www.w3schools.com/jsref/met_win_open.asp> +method, which accepts either a window name or a window target.

        +
        +
        +

        Note

        +

        Any other attribute than the listed above will be parsed as an +HTML attribute to the anchor tag.

        +
        +
        + +
        +
        +mailto($email, $title = '', $attributes = '')
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $email (string) – E-mail address
        • +
        • $title (string) – Anchor title
        • +
        • $attributes (mixed) – HTML attributes
        • +
        +
        Returns:

        A “mail to” hyperlink

        +
        Return type:

        string

        +
        +

        Creates a standard HTML e-mail link. Usage example:

        +
        echo mailto('me@my-site.com', 'Click Here to Contact Me');
        +
        +
        +

        As with the anchor() tab above, you can set attributes using the +third parameter:

        +
        $attributes = array('title' => 'Mail me');
        +echo mailto('me@my-site.com', 'Contact Me', $attributes);
        +
        +
        +
        + +
        +
        +safe_mailto($email, $title = '', $attributes = '')
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $email (string) – E-mail address
        • +
        • $title (string) – Anchor title
        • +
        • $attributes (mixed) – HTML attributes
        • +
        +
        Returns:

        A spam-safe “mail to” hyperlink

        +
        Return type:

        string

        +
        +

        Identical to the mailto() function except it writes an obfuscated +version of the mailto tag using ordinal numbers written with JavaScript to +help prevent the e-mail address from being harvested by spam bots.

        +
        + +
        + +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $type (string) – Link type (‘email’, ‘url’ or ‘both’)
        • +
        • $popup (bool) – Whether to create popup links
        • +
        +
        Returns:

        Linkified string

        +
        Return type:

        string

        +
        +

        Automatically turns URLs and e-mail addresses contained in a string into +links. Example:

        +
        $string = auto_link($string);
        +
        +
        +

        The second parameter determines whether URLs and e-mails are converted or +just one or the other. Default behavior is both if the parameter is not +specified. E-mail links are encoded as safe_mailto() as shown +above.

        +

        Converts only URLs:

        +
        $string = auto_link($string, 'url');
        +
        +
        +

        Converts only e-mail addresses:

        +
        $string = auto_link($string, 'email');
        +
        +
        +

        The third parameter determines whether links are shown in a new window. +The value can be TRUE or FALSE (boolean):

        +
        $string = auto_link($string, 'both', TRUE);
        +
        +
        +
        + +
        +
        +url_title($str, $separator = '-', $lowercase = FALSE)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $separator (string) – Word separator
        • +
        • $lowercase (bool) – Whether to transform the output string to lower-case
        • +
        +
        Returns:

        URL-formatted string

        +
        Return type:

        string

        +
        +

        Takes a string as input and creates a human-friendly URL string. This is +useful if, for example, you have a blog in which you’d like to use the +title of your entries in the URL. Example:

        +
        $title = "What's wrong with CSS?";
        +$url_title = url_title($title);
        +// Produces: Whats-wrong-with-CSS
        +
        +
        +

        The second parameter determines the word delimiter. By default dashes +are used. Preferred options are: - (dash) or _ (underscore)

        +

        Example:

        +
        $title = "What's wrong with CSS?";
        +$url_title = url_title($title, 'underscore');
        +// Produces: Whats_wrong_with_CSS
        +
        +
        +
        +

        Note

        +

        Old usage of ‘dash’ and ‘underscore’ as the second parameter +is DEPRECATED.

        +
        +

        The third parameter determines whether or not lowercase characters are +forced. By default they are not. Options are boolean TRUE/FALSE.

        +

        Example:

        +
        $title = "What's wrong with CSS?";
        +$url_title = url_title($title, 'underscore', TRUE);
        +// Produces: whats_wrong_with_css
        +
        +
        +
        + +
        +
        +prep_url($str = '')
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – URL string
        • +
        +
        Returns:

        Protocol-prefixed URL string

        +
        Return type:

        string

        +
        +

        This function will add http&#58;// in the event that a protocol prefix +is missing from a URL.

        +

        Pass the URL string to the function like this:

        +
        $url = prep_url('example.com');
        +
        +
        +
        + +
        +
        +redirect($uri = '', $method = 'auto', $code = NULL)
        +
        +++ + + + + + +
        Parameters:
          +
        • $uri (string) – URI string
        • +
        • $method (string) – Redirect method (‘auto’, ‘location’ or ‘refresh’)
        • +
        • $code (string) – HTTP Response code (usually 302 or 303)
        • +
        +
        Return type:

        void

        +
        +

        Does a “header redirect” to the URI specified. If you specify the full +site URL that link will be built, but for local links simply providing +the URI segments to the controller you want to direct to will create the +link. The function will build the URL based on your config file values.

        +

        The optional second parameter allows you to force a particular redirection +method. The available methods are auto, location and refresh, +with location being faster but less reliable on IIS servers. +The default is auto, which will attempt to intelligently choose the +method based on the server environment.

        +

        The optional third parameter allows you to send a specific HTTP Response +Code - this could be used for example to create 301 redirects for search +engine purposes. The default Response Code is 302. The third parameter is +only available with location redirects, and not refresh. Examples:

        +
        if ($logged_in == FALSE)
        +{
        +        redirect('/login/form/');
        +}
        +
        +// with 301 redirect
        +redirect('/article/13', 'location', 301);
        +
        +
        +
        +

        Note

        +

        In order for this function to work it must be used before anything +is outputted to the browser since it utilizes server headers.

        +
        +
        +

        Note

        +

        For very fine grained control over headers, you should use the +Output Library set_header() method.

        +
        +
        +

        Note

        +

        To IIS users: if you hide the Server HTTP header, the auto +method won’t detect IIS, in that case it is advised you explicitly +use the refresh method.

        +
        +
        +

        Note

        +

        When the location method is used, an HTTP status code of 303 +will automatically be selected when the page is currently accessed +via POST and HTTP/1.1 is used.

        +
        +
        +

        Important

        +

        This function will terminate script execution.

        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/helpers/xml_helper.html b/sna/user_guide/helpers/xml_helper.html new file mode 100644 index 0000000..e88e163 --- /dev/null +++ b/sna/user_guide/helpers/xml_helper.html @@ -0,0 +1,560 @@ + + + + + + + + + + XML Helper — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Helpers »
        • + +
        • XML Helper
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        XML Helper

        +

        The XML Helper file contains functions that assist in working with XML +data.

        + +
        +

        Loading this Helper

        +

        This helper is loaded using the following code

        +
        $this->load->helper('xml');
        +
        +
        +
        +
        +

        Available Functions

        +

        The following functions are available:

        +
        +
        +xml_convert($str[, $protect_all = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – the text string to convert
        • +
        • $protect_all (bool) – Whether to protect all content that looks like a potential entity instead of just numbered entities, e.g. &foo;
        • +
        +
        Returns:

        XML-converted string

        +
        Return type:

        string

        +
        +

        Takes a string as input and converts the following reserved XML +characters to entities:

        +
        +
          +
        • Ampersands: &
        • +
        • Less than and greater than characters: < >
        • +
        • Single and double quotes: ‘ “
        • +
        • Dashes: -
        • +
        +
        +

        This function ignores ampersands if they are part of existing numbered +character entities, e.g. &#123;. Example:

        +
        $string = '<p>Here is a paragraph & an entity (&#123;).</p>';
        +$string = xml_convert($string);
        +echo $string;
        +
        +
        +

        outputs:

        +
        &lt;p&gt;Here is a paragraph &amp; an entity (&#123;).&lt;/p&gt;
        +
        +
        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/index.html b/sna/user_guide/index.html new file mode 100644 index 0000000..32aa362 --- /dev/null +++ b/sna/user_guide/index.html @@ -0,0 +1,899 @@ + + + + + + + + + + CodeIgniter User Guide — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • CodeIgniter User Guide
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        CodeIgniter User Guide

        + + + + + + + + + + + + +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/downloads.html b/sna/user_guide/installation/downloads.html new file mode 100644 index 0000000..6a12f6e --- /dev/null +++ b/sna/user_guide/installation/downloads.html @@ -0,0 +1,529 @@ + + + + + + + + + + Downloading CodeIgniter — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Downloading CodeIgniter

        + +
        +

        GitHub

        +

        Git is a distributed version control system.

        +

        Public Git access is available at GitHub. +Please note that while every effort is made to keep this code base +functional, we cannot guarantee the functionality of code taken from +the develop branch.

        +

        Beginning with version 2.0.3, stable versions are also available via GitHub Releases.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/index.html b/sna/user_guide/installation/index.html new file mode 100644 index 0000000..2501706 --- /dev/null +++ b/sna/user_guide/installation/index.html @@ -0,0 +1,533 @@ + + + + + + + + + + Installation Instructions — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Installation Instructions
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Installation Instructions

        +

        CodeIgniter is installed in four steps:

        +
          +
        1. Unzip the package.
        2. +
        3. Upload the CodeIgniter folders and files to your server. Normally the +index.php file will be at your root.
        4. +
        5. Open the application/config/config.php file with a text editor and +set your base URL. If you intend to use encryption or sessions, set +your encryption key.
        6. +
        7. If you intend to use a database, open the +application/config/database.php file with a text editor and set your +database settings.
        8. +
        +

        If you wish to increase security by hiding the location of your +CodeIgniter files you can rename the system and application folders to +something more private. If you do rename them, you must open your main +index.php file and set the $system_path and $application_folder +variables at the top of the file with the new name you’ve chosen.

        +

        For the best security, both the system and any application folders +should be placed above web root so that they are not directly accessible +via a browser. By default, .htaccess files are included in each folder +to help prevent direct access, but it is best to remove them from public +access entirely in case the web server configuration changes or doesn’t +abide by the .htaccess.

        +

        If you would like to keep your views public it is also possible to move +the views folder out of your application folder.

        +

        After moving them, open your main index.php file and set the +$system_path, $application_folder and $view_folder variables, +preferably with a full path, e.g. ‘/www/MyUser/system‘.

        +

        One additional measure to take in production environments is to disable +PHP error reporting and any other development-only functionality. In +CodeIgniter, this can be done by setting the ENVIRONMENT constant, which +is more fully described on the security +page.

        +

        That’s it!

        +

        If you’re new to CodeIgniter, please read the Getting +Started section of the User Guide +to begin learning how to build dynamic PHP applications. Enjoy!

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/troubleshooting.html b/sna/user_guide/installation/troubleshooting.html new file mode 100644 index 0000000..86fb614 --- /dev/null +++ b/sna/user_guide/installation/troubleshooting.html @@ -0,0 +1,512 @@ + + + + + + + + + + Troubleshooting — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Troubleshooting

        +

        If you find that no matter what you put in your URL only your default +page is loading, it might be that your server does not support the +REQUEST_URI variable needed to serve search-engine friendly URLs. As a +first step, open your application/config/config.php file and look for +the URI Protocol information. It will recommend that you try a couple +alternate settings. If it still doesn’t work after you’ve tried this +you’ll need to force CodeIgniter to add a question mark to your URLs. To +do this open your application/config/config.php file and change this:

        +
        $config['index_page'] = "index.php";
        +
        +
        +

        To this:

        +
        $config['index_page'] = "index.php?";
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_120.html b/sna/user_guide/installation/upgrade_120.html new file mode 100644 index 0000000..74509c2 --- /dev/null +++ b/sna/user_guide/installation/upgrade_120.html @@ -0,0 +1,517 @@ + + + + + + + + + + Upgrading From Beta 1.0 to Final 1.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading From Beta 1.0 to Final 1.2

        +

        To upgrade to Version 1.2 please replace the following directories with +the new versions:

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
          +
        • drivers
        • +
        • helpers
        • +
        • init
        • +
        • language
        • +
        • libraries
        • +
        • plugins
        • +
        • scaffolding
        • +
        +

        Please also replace your local copy of the user guide with the new +version.

        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_130.html b/sna/user_guide/installation/upgrade_130.html new file mode 100644 index 0000000..7496a02 --- /dev/null +++ b/sna/user_guide/installation/upgrade_130.html @@ -0,0 +1,620 @@ + + + + + + + + + + Upgrading from 1.2 to 1.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.2 to 1.3

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.2. If you have not upgraded to that version please do so first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace the following directories in your “system” folder with the new +versions:

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
          +
        • application/models/ (new for 1.3)
        • +
        • codeigniter (new for 1.3)
        • +
        • drivers
        • +
        • helpers
        • +
        • init
        • +
        • language
        • +
        • libraries
        • +
        • plugins
        • +
        • scaffolding
        • +
        +
        +
        +

        Step 2: Update your error files

        +

        Version 1.3 contains two new error templates located in +application/errors, and for naming consistency the other error templates +have been renamed.

        +

        If you have not customized any of the error templates simply replace +this folder:

        +
          +
        • application/errors/
        • +
        +

        If you have customized your error templates, rename them as follows:

        +
          +
        • 404.php = error_404.php
        • +
        • error.php = error_general.php
        • +
        • error_db.php (new)
        • +
        • error_php.php (new)
        • +
        +
        +
        +

        Step 3: Update your index.php file

        +

        Please open your main index.php file (located at your root). At the very +bottom of the file, change this:

        +
        require_once BASEPATH.'libraries/Front_controller'.EXT;
        +
        +
        +

        To this:

        +
        require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
        +
        +
        +
        +
        +

        Step 4: Update your config.php file

        +

        Open your application/config/config.php file and add these new items:

        +
        /*
        +|------------------------------------------------
        +| URL suffix
        +|------------------------------------------------
        +|
        +| This option allows you to add a suffix to all URLs.
        +| For example, if a URL is this:
        +|
        +| example.com/index.php/products/view/shoes
        +|
        +| You can optionally add a suffix, like ".html",
        +| making the page appear to be of a certain type:
        +|
        +| example.com/index.php/products/view/shoes.html
        +|
        +*/
        +$config['url_suffix'] = "";
        +
        +
        +/*
        +|------------------------------------------------
        +| Enable Query Strings
        +|------------------------------------------------
        +|
        +| By default CodeIgniter uses search-engine and
        +| human-friendly segment based URLs:
        +|
        +| example.com/who/what/where/
        +|
        +| You can optionally enable standard query string
        +| based URLs:
        +|
        +| example.com?who=me&what=something&where=here
        +|
        +| Options are: TRUE or FALSE (boolean)
        +|
        +| The two other items let you set the query string "words"
        +| that will invoke your controllers and functions:
        +| example.com/index.php?c=controller&m=function
        +|
        +*/
        +$config['enable_query_strings'] = FALSE;
        +$config['controller_trigger'] = 'c';
        +$config['function_trigger'] = 'm';
        +
        +
        +
        +
        +

        Step 5: Update your database.php file

        +

        Open your application/config/database.php file and add these new items:

        +
        $db['default']['dbprefix'] = "";
        +$db['default']['active_r'] = TRUE;
        +
        +
        +
        +
        +

        Step 6: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_131.html b/sna/user_guide/installation/upgrade_131.html new file mode 100644 index 0000000..1f912a0 --- /dev/null +++ b/sna/user_guide/installation/upgrade_131.html @@ -0,0 +1,528 @@ + + + + + + + + + + Upgrading from 1.3 to 1.3.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.3 to 1.3.1

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.3. If you have not upgraded to that version please do so first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace the following directories in your “system” folder with the new +versions:

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
          +
        • drivers
        • +
        • init/init_unit_test.php (new for 1.3.1)
        • +
        • language/
        • +
        • libraries
        • +
        • scaffolding
        • +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_132.html b/sna/user_guide/installation/upgrade_132.html new file mode 100644 index 0000000..72d568c --- /dev/null +++ b/sna/user_guide/installation/upgrade_132.html @@ -0,0 +1,526 @@ + + + + + + + + + + Upgrading from 1.3.1 to 1.3.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.3.1 to 1.3.2

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.3.1. If you have not upgraded to that version please do so first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace the following directories in your “system” folder with the new +versions:

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
          +
        • drivers
        • +
        • init
        • +
        • libraries
        • +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_133.html b/sna/user_guide/installation/upgrade_133.html new file mode 100644 index 0000000..d14f207 --- /dev/null +++ b/sna/user_guide/installation/upgrade_133.html @@ -0,0 +1,540 @@ + + + + + + + + + + Upgrading from 1.3.2 to 1.3.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.3.2 to 1.3.3

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.3.2. If you have not upgraded to that version please do so first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace the following directories in your “system” folder with the new +versions:

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
          +
        • codeigniter
        • +
        • drivers
        • +
        • helpers
        • +
        • init
        • +
        • libraries
        • +
        +
        +
        +

        Step 2: Update your Models

        +

        If you are NOT using CodeIgniter’s +Models feature disregard this step.

        +

        As of version 1.3.3, CodeIgniter does not connect automatically to +your database when a model is loaded. This allows you greater +flexibility in determining which databases you would like used with your +models. If your application is not connecting to your database prior to +a model being loaded you will have to update your code. There are +several options for connecting, as described +here.

        +
        +
        +

        Step 3: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_140.html b/sna/user_guide/installation/upgrade_140.html new file mode 100644 index 0000000..9d69d39 --- /dev/null +++ b/sna/user_guide/installation/upgrade_140.html @@ -0,0 +1,568 @@ + + + + + + + + + + Upgrading from 1.3.3 to 1.4.0 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.3.3 to 1.4.0

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.3.3. If you have not upgraded to that version please do so first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace the following directories in your “system” folder with the new +versions:

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
          +
        • application/config/hooks.php
        • +
        • application/config/mimes.php
        • +
        • codeigniter
        • +
        • drivers
        • +
        • helpers
        • +
        • init
        • +
        • language
        • +
        • libraries
        • +
        • scaffolding
        • +
        +
        +
        +

        Step 2: Update your config.php file

        +

        Open your application/config/config.php file and add these new items:

        +
        /*
        +|--------------------------------------------------------------------------
        +| Enable/Disable System Hooks
        +|--------------------------------------------------------------------------
        +|
        +| If you would like to use the "hooks" feature you must enable it by
        +| setting this variable to TRUE (boolean).  See the user guide for details.
        +|
        +*/
        +$config['enable_hooks'] = FALSE;
        +
        +
        +/*
        +|--------------------------------------------------------------------------
        +| Allowed URL Characters
        +|--------------------------------------------------------------------------
        +|
        +| This lets you specify which characters are permitted within your URLs.
        +| When someone tries to submit a URL with disallowed characters they will
        +| get a warning message.
        +|
        +| As a security measure you are STRONGLY encouraged to restrict URLs to
        +| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
        +|
        +| Leave blank to allow all characters -- but only if you are insane.
        +|
        +| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
        +|
        +*/
        +$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';
        +
        +
        +
        +
        +

        Step 3: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_141.html b/sna/user_guide/installation/upgrade_141.html new file mode 100644 index 0000000..b93158d --- /dev/null +++ b/sna/user_guide/installation/upgrade_141.html @@ -0,0 +1,565 @@ + + + + + + + + + + Upgrading from 1.4.0 to 1.4.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.4.0 to 1.4.1

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.4.0. If you have not upgraded to that version please do so first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace the following directories in your “system” folder with the new +versions:

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
          +
        • codeigniter
        • +
        • drivers
        • +
        • helpers
        • +
        • libraries
        • +
        +
        +
        +

        Step 2: Update your config.php file

        +

        Open your application/config/config.php file and add this new item:

        +
        /*
        +|--------------------------------------------------------------------------
        +| Output Compression
        +|--------------------------------------------------------------------------
        +|
        +| Enables Gzip output compression for faster page loads.  When enabled,
        +| the output class will test whether your server supports Gzip.
        +| Even if it does, however, not all browsers support compression
        +| so enable only if you are reasonably sure your visitors can handle it.
        +|
        +| VERY IMPORTANT:  If you are getting a blank page when compression is enabled it
        +| means you are prematurely outputting something to your browser. It could
        +| even be a line of whitespace at the end of one of your scripts.  For
        +| compression to work, nothing can be sent before the output buffer is called
        +| by the output class.  Do not "echo" any values with compression enabled.
        +|
        +*/
        +$config['compress_output'] = FALSE;
        +
        +
        +
        +
        +

        Step 3: Rename an Autoload Item

        +

        Open the following file: application/config/autoload.php

        +

        Find this array item:

        +
        $autoload['core'] = array();
        +
        +
        +

        And rename it to this:

        +
        $autoload['libraries'] = array();
        +
        +
        +

        This change was made to improve clarity since some users were not sure +that their own libraries could be auto-loaded.

        +
        +
        +

        Step 4: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_150.html b/sna/user_guide/installation/upgrade_150.html new file mode 100644 index 0000000..01c1df5 --- /dev/null +++ b/sna/user_guide/installation/upgrade_150.html @@ -0,0 +1,592 @@ + + + + + + + + + + Upgrading from 1.4.1 to 1.5.0 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.4.1 to 1.5.0

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.4.1. If you have not upgraded to that version please do so first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • application/config/user_agents.php (new file for 1.5)
        • +
        • application/config/smileys.php (new file for 1.5)
        • +
        • codeigniter/
        • +
        • database/ (new folder for 1.5. Replaces the “drivers” folder)
        • +
        • helpers/
        • +
        • language/
        • +
        • libraries/
        • +
        • scaffolding/
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your database.php file

        +

        Open your application/config/database.php file and add these new items:

        +
        $db['default']['cache_on'] = FALSE;
        +$db['default']['cachedir'] = '';
        +
        +
        +
        +
        +

        Step 3: Update your config.php file

        +

        Open your application/config/config.php file and ADD these new items:

        +
        /*
        +|--------------------------------------------------------------------------
        +| Class Extension Prefix
        +|--------------------------------------------------------------------------
        +|
        +| This item allows you to set the filename/classname prefix when extending
        +| native libraries.  For more information please see the user guide:
        +|
        +| https://codeigniter.com/user_guide/general/core_classes.html
        +| https://codeigniter.com/user_guide/general/creating_libraries.html
        +|
        +*/
        +$config['subclass_prefix'] = 'MY_';
        +
        +/*
        +|--------------------------------------------------------------------------
        +| Rewrite PHP Short Tags
        +|--------------------------------------------------------------------------
        +|
        +| If your PHP installation does not have short tag support enabled CI
        +| can rewrite the tags on-the-fly, enabling you to utilize that syntax
        +| in your view files.  Options are TRUE or FALSE (boolean)
        +|
        +*/
        +$config['rewrite_short_tags'] = FALSE;
        +
        +
        +

        In that same file REMOVE this item:

        +
        /*
        +|--------------------------------------------------------------------------
        +| Enable/Disable Error Logging
        +|--------------------------------------------------------------------------
        +|
        +| If you would like errors or debug messages logged set this variable to
        +| TRUE (boolean).  Note: You must set the file permissions on the "logs" folder
        +| such that it is writable.
        +|
        +*/
        +$config['log_errors'] = FALSE;
        +
        +
        +

        Error logging is now disabled simply by setting the threshold to zero.

        +
        +
        +

        Step 4: Update your main index.php file

        +

        If you are running a stock index.php file simply replace your version +with the new one.

        +

        If your index.php file has internal modifications, please add your +modifications to the new file and use it.

        +
        +
        +

        Step 5: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_152.html b/sna/user_guide/installation/upgrade_152.html new file mode 100644 index 0000000..1c7971c --- /dev/null +++ b/sna/user_guide/installation/upgrade_152.html @@ -0,0 +1,537 @@ + + + + + + + + + + Upgrading from 1.5.0 to 1.5.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.5.0 to 1.5.2

        +
        +

        Note

        +

        The instructions on this page assume you are running version +1.5.0 or 1.5.1. If you have not upgraded to that version please do so +first.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/helpers/download_helper.php
        • +
        • system/helpers/form_helper.php
        • +
        • system/libraries/Table.php
        • +
        • system/libraries/User_agent.php
        • +
        • system/libraries/Exceptions.php
        • +
        • system/libraries/Input.php
        • +
        • system/libraries/Router.php
        • +
        • system/libraries/Loader.php
        • +
        • system/libraries/Image_lib.php
        • +
        • system/language/english/unit_test_lang.php
        • +
        • system/database/DB_active_rec.php
        • +
        • system/database/drivers/mysqli/mysqli_driver.php
        • +
        • codeigniter/
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_153.html b/sna/user_guide/installation/upgrade_153.html new file mode 100644 index 0000000..2cb3147 --- /dev/null +++ b/sna/user_guide/installation/upgrade_153.html @@ -0,0 +1,524 @@ + + + + + + + + + + Upgrading from 1.5.2 to 1.5.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.5.2 to 1.5.3

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/database/drivers
        • +
        • system/helpers
        • +
        • system/libraries/Input.php
        • +
        • system/libraries/Loader.php
        • +
        • system/libraries/Profiler.php
        • +
        • system/libraries/Table.php
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_154.html b/sna/user_guide/installation/upgrade_154.html new file mode 100644 index 0000000..d8cf844 --- /dev/null +++ b/sna/user_guide/installation/upgrade_154.html @@ -0,0 +1,548 @@ + + + + + + + + + + Upgrading from 1.5.3 to 1.5.4 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.5.3 to 1.5.4

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • application/config/mimes.php
        • +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/libraries
        • +
        • system/plugins
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Add charset to your config.php

        +

        Add the following to application/config/config.php

        +
        /*
        +|--------------------------------------------------------------------------
        +| Default Character Set
        +|--------------------------------------------------------------------------
        +|
        +| This determines which character set is used by default in various methods
        +| that require a character set to be provided.
        +|
        +*/
        +$config['charset'] = "UTF-8";
        +
        +
        +
        +
        +

        Step 3: Autoloading language files

        +

        If you want to autoload any language files, add this line to +application/config/autoload.php

        +
        $autoload['language'] = array();
        +
        +
        +
        +
        +

        Step 4: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_160.html b/sna/user_guide/installation/upgrade_160.html new file mode 100644 index 0000000..03b8dc0 --- /dev/null +++ b/sna/user_guide/installation/upgrade_160.html @@ -0,0 +1,567 @@ + + + + + + + + + + Upgrading from 1.5.4 to 1.6.0 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.5.4 to 1.6.0

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/libraries
        • +
        • system/plugins
        • +
        • system/language
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Add time_to_update to your config.php

        +

        Add the following to application/config/config.php with the other +session configuration options

        +
        $config['sess_time_to_update']         = 300;
        +
        +
        +
        +
        +

        Step 3: Add $autoload[‘model’]

        +

        Add the following to application/config/autoload.php

        +
        /*
        +| -------------------------------------------------------------------
        +| Auto-load Model files
        +| -------------------------------------------------------------------
        +| Prototype:
        +|
        +| $autoload['model'] = array('my_model');
        +|
        +*/
        +
        +$autoload['model'] = array();
        +
        +
        +
        +
        +

        Step 4: Add to your database.php

        +

        Make the following changes to your application/config/database.php file:

        +

        Add the following variable above the database configuration options, +with $active_group

        +
        $active_record = TRUE;
        +
        +
        +

        Remove the following from your database configuration options

        +
        $db['default']['active_r'] = TRUE;
        +
        +
        +

        Add the following to your database configuration options

        +
        $db['default']['char_set'] = "utf8";
        +$db['default']['dbcollat'] = "utf8_general_ci";
        +
        +
        +
        +
        +

        Step 5: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_161.html b/sna/user_guide/installation/upgrade_161.html new file mode 100644 index 0000000..d98524c --- /dev/null +++ b/sna/user_guide/installation/upgrade_161.html @@ -0,0 +1,523 @@ + + + + + + + + + + Upgrading from 1.6.0 to 1.6.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.6.0 to 1.6.1

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/language
        • +
        • system/libraries
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_162.html b/sna/user_guide/installation/upgrade_162.html new file mode 100644 index 0000000..0e25794 --- /dev/null +++ b/sna/user_guide/installation/upgrade_162.html @@ -0,0 +1,538 @@ + + + + + + + + + + Upgrading from 1.6.1 to 1.6.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.6.1 to 1.6.2

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/language
        • +
        • system/libraries
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Encryption Key

        +

        If you are using sessions, open up application/config/config.php and +verify you’ve set an encryption key.

        +
        +
        +

        Step 3: Constants File

        +

        Copy /application/config/constants.php to your installation, and modify +if necessary.

        +
        +
        +

        Step 4: Mimes File

        +

        Replace /application/config/mimes.php with the dowloaded version. If +you’ve added custom mime types, you’ll need to re-add them.

        +
        +
        +

        Step 5: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_163.html b/sna/user_guide/installation/upgrade_163.html new file mode 100644 index 0000000..9efcf2f --- /dev/null +++ b/sna/user_guide/installation/upgrade_163.html @@ -0,0 +1,523 @@ + + + + + + + + + + Upgrading from 1.6.2 to 1.6.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.6.2 to 1.6.3

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/language
        • +
        • system/libraries
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_170.html b/sna/user_guide/installation/upgrade_170.html new file mode 100644 index 0000000..85ebb4e --- /dev/null +++ b/sna/user_guide/installation/upgrade_170.html @@ -0,0 +1,550 @@ + + + + + + + + + + Upgrading from 1.6.3 to 1.7.0 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.6.3 to 1.7.0

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/language
        • +
        • system/libraries
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your Session Table

        +

        If you are using the Session class in your application, AND if you are +storing session data to a database, you must add a new column named +user_data to your session table. Here is an example of what this column +might look like for MySQL:

        +
        user_data text NOT NULL
        +
        +
        +

        To add this column you will run a query similar to this:

        +
        ALTER TABLE `ci_sessions` ADD `user_data` text NOT NULL
        +
        +
        +

        You’ll find more information regarding the new Session functionality in +the Session class page.

        +
        +
        +

        Step 3: Update your Validation Syntax

        +

        This is an optional, but recommended step, for people currently +using the Validation class. CI 1.7 introduces a new Form Validation +class, which deprecates the old +Validation library. We have left the old one in place so that existing +applications that use it will not break, but you are encouraged to +migrate to the new version as soon as possible. Please read the user +guide carefully as the new library works a little differently, and has +several new features.

        +
        +
        +

        Step 4: Update your user guide

        +

        Please replace your local copy of the user guide with the new version, +including the image files.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_171.html b/sna/user_guide/installation/upgrade_171.html new file mode 100644 index 0000000..a2de298 --- /dev/null +++ b/sna/user_guide/installation/upgrade_171.html @@ -0,0 +1,523 @@ + + + + + + + + + + Upgrading from 1.7.0 to 1.7.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.7.0 to 1.7.1

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/language
        • +
        • system/libraries
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please replace your local copy of the user guide with the new version, +including the image files.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_172.html b/sna/user_guide/installation/upgrade_172.html new file mode 100644 index 0000000..4bc4e54 --- /dev/null +++ b/sna/user_guide/installation/upgrade_172.html @@ -0,0 +1,540 @@ + + + + + + + + + + Upgrading from 1.7.1 to 1.7.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.7.1 to 1.7.2

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace these files and directories in your “system” folder with the new +versions:

        +
          +
        • system/codeigniter
        • +
        • system/database
        • +
        • system/helpers
        • +
        • system/language
        • +
        • system/libraries
        • +
        • index.php
        • +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Remove header() from 404 error template

        +

        If you are using header() in your 404 error template, such as the case +with the default error_404.php template shown below, remove that line +of code.

        +
        <?php header("HTTP/1.1 404 Not Found"); ?>
        +
        +
        +

        404 status headers are now properly handled in the show_404() method +itself.

        +
        +
        +

        Step 3: Confirm your system_path

        +

        In your updated index.php file, confirm that the $system_path variable +is set to your application’s system folder.

        +
        +
        +

        Step 4: Update your user guide

        +

        Please replace your local copy of the user guide with the new version, +including the image files.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_200.html b/sna/user_guide/installation/upgrade_200.html new file mode 100644 index 0000000..d5c0c89 --- /dev/null +++ b/sna/user_guide/installation/upgrade_200.html @@ -0,0 +1,633 @@ + + + + + + + + + + Upgrading from 1.7.2 to 2.0.0 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 1.7.2 to 2.0.0

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Update Instructions

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder except +your application folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Adjust get_dir_file_info() where necessary

        +

        Version 2.0.0 brings a non-backwards compatible change to +get_dir_file_info() in the File +Helper. Non-backwards compatible changes +are extremely rare in CodeIgniter, but this one we feel was warranted +due to how easy it was to create serious server performance issues. If +you need recursiveness where you are using this helper function, +change such instances, setting the second parameter, $top_level_only +to FALSE:

        +
        get_dir_file_info('/path/to/directory', FALSE);
        +
        +
        +
        +
        +

        Step 3: Convert your Plugins to Helpers

        +

        2.0.0 gets rid of the “Plugin” system as their functionality was +identical to Helpers, but non-extensible. You will need to rename your +plugin files from filename_pi.php to filename_helper.php, move them to +your helpers folder, and change all instances of:

        +
        $this->load->plugin('foo');
        +
        +
        +

        to

        +
        $this->load->helper('foo');
        +
        +
        +
        +
        +

        Step 4: Update stored encrypted data

        +
        +

        Note

        +

        If your application does not use the Encrypt library, does +not store Encrypted data permanently, or is on an environment that does +not support Mcrypt, you may skip this step.

        +
        +

        The Encrypt library has had a number of improvements, some for +encryption strength and some for performance, that has an unavoidable +consequence of making it no longer possible to decode encrypted data +produced by the original version of this library. To help with the +transition, a new method has been added, encode_from_legacy() that +will decode the data with the original algorithm and return a re-encoded +string using the improved methods. This will enable you to easily +replace stale encrypted data with fresh in your applications, either on +the fly or en masse.

        +

        Please read how to use this +method in the Encrypt library +documentation.

        +
        +
        +

        Step 5: Remove loading calls for the compatibility helper.

        +

        The compatibility helper has been removed from the CodeIgniter core. All +methods in it should be natively available in supported PHP versions.

        +
        +
        +

        Step 6: Update Class extension

        +

        All core classes are now prefixed with CI_. Update Models and +Controllers to extend CI_Model and CI_Controller, respectively.

        +
        +
        +

        Step 7: Update Parent Constructor calls

        +

        All native CodeIgniter classes now use the PHP 5 __construct() +convention. Please update extended libraries to call +parent::__construct().

        +
        +
        +

        Step 8: Move any core extensions to application/core

        +

        Any extensions to core classes (e.g. MY_Controller.php) in your +application/libraries folder must be moved to the new +application/core folder.

        +
        +
        +

        Step 9: Update your user guide

        +

        Please replace your local copy of the user guide with the new version, +including the image files.

        +
        +
        +
        +

        Update Notes

        +

        Please refer to the 2.0.0 Change Log for full +details, but here are some of the larger changes that are more likely to +impact your code:

        +
          +
        • Scaffolding has been removed.
        • +
        • The CAPTCHA plugin in now a helper.
        • +
        • The JavaScript calendar plugin was removed.
        • +
        • The system/cache and system/logs directories are now in the application +directory.
        • +
        • The Validation class has been removed. Please see the +Form Validation library
        • +
        • “default” is now a reserved name.
        • +
        • The xss_clean() function has moved to the Security Class.
        • +
        • do_xss_clean() now returns FALSE if the uploaded file fails XSS checks.
        • +
        • The Session Class requires now the use of an +encryption key set in the config file.
        • +
        • The following deprecated Active Record functions have been removed: +orwhere, orlike, groupby, orhaving, orderby, +getwhere.
        • +
        • _drop_database() and _create_database() functions have been removed +from the db utility drivers.
        • +
        • The dohash() function of the Security helper +has been renamed to do_hash() for naming consistency.
        • +
        +
        +

        The config folder

        +

        The following files have been changed:

        +
          +
        • config.php
        • +
        • database.php
        • +
        • mimes.php
        • +
        • routes.php
        • +
        • user_agents.php
        • +
        +

        The following files have been added:

        +
          +
        • foreign_chars.php
        • +
        • profiler.php
        • +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_201.html b/sna/user_guide/installation/upgrade_201.html new file mode 100644 index 0000000..61d8b90 --- /dev/null +++ b/sna/user_guide/installation/upgrade_201.html @@ -0,0 +1,533 @@ + + + + + + + + + + Upgrading from 2.0.0 to 2.0.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.0.0 to 2.0.1

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder and replace +your index.php file. If any modifications were made to your index.php +they will need to be made fresh in this new one.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Replace config/mimes.php

        +

        This config file has been updated to contain more mime types, please +copy it to application/config/mimes.php.

        +
        +
        +

        Step 3: Check for forms posting to default controller

        +

        The default behavior for form_open() when called with no parameters +used to be to post to the default controller, but it will now just leave +an empty action=”” meaning the form will submit to the current URL. If +submitting to the default controller was the expected behavior it will +need to be changed from:

        +
        echo form_open(); //<form action="" method="post" accept-charset="utf-8">
        +
        +
        +

        to use either a / or base_url():

        +
        echo form_open('/'); //<form action="http://example.com/index.php/" method="post" accept-charset="utf-8">
        +echo form_open(base_url()); //<form action="http://example.com/" method="post" accept-charset="utf-8">
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_202.html b/sna/user_guide/installation/upgrade_202.html new file mode 100644 index 0000000..85b877d --- /dev/null +++ b/sna/user_guide/installation/upgrade_202.html @@ -0,0 +1,526 @@ + + + + + + + + + + Upgrading from 2.0.1 to 2.0.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.0.1 to 2.0.2

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder and replace +your index.php file. If any modifications were made to your index.php +they will need to be made fresh in this new one.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Remove loading calls for the Security Library

        +

        Security has been moved to the core and is now always loaded +automatically. Make sure you remove any loading calls as they will +result in PHP errors.

        +
        +
        +

        Step 3: Move MY_Security

        +

        If you are overriding or extending the Security library, you will need +to move it to application/core.

        +

        csrf_token_name and csrf_hash have changed to protected class +properties. Please use security->get_csrf_hash() and +security->get_csrf_token_name() to access those values.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_203.html b/sna/user_guide/installation/upgrade_203.html new file mode 100644 index 0000000..c83d951 --- /dev/null +++ b/sna/user_guide/installation/upgrade_203.html @@ -0,0 +1,556 @@ + + + + + + + + + + Upgrading from 2.0.2 to 2.0.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.0.2 to 2.0.3

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder and replace +your index.php file. If any modifications were made to your index.php +they will need to be made fresh in this new one.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your main index.php file

        +

        If you are running a stock index.php file simply replace your version +with the new one.

        +

        If your index.php file has internal modifications, please add your +modifications to the new file and use it.

        +
        +
        +

        Step 3: Replace config/user_agents.php

        +

        This config file has been updated to contain more user agent types, +please copy it to application/config/user_agents.php.

        +
        +
        +

        Step 4: Change references of the EXT constant to ”.php”

        +
        +

        Note

        +

        The EXT Constant has been marked as deprecated, but has not +been removed from the application. You are encouraged to make the +changes sooner rather than later.

        +
        +
        +
        +

        Step 5: Remove APPPATH.’third_party’ from autoload.php

        +

        Open application/config/autoload.php, and look for the following:

        +
        $autoload['packages'] = array(APPPATH.'third_party');
        +
        +
        +

        If you have not chosen to load any additional packages, that line can be +changed to:

        +
        $autoload['packages'] = array();
        +
        +
        +

        Which should provide for nominal performance gains if not autoloading +packages.

        +
        +
        +

        Update Sessions Database Tables

        +

        If you are using database sessions with the CI Session Library, please +update your ci_sessions database table as follows:

        +
        CREATE INDEX last_activity_idx ON ci_sessions(last_activity);
        +ALTER TABLE ci_sessions MODIFY user_agent VARCHAR(120);
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_210.html b/sna/user_guide/installation/upgrade_210.html new file mode 100644 index 0000000..fb79124 --- /dev/null +++ b/sna/user_guide/installation/upgrade_210.html @@ -0,0 +1,520 @@ + + + + + + + + + + Upgrading from 2.0.3 to 2.1.0 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.0.3 to 2.1.0

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Replace config/mimes.php

        +

        This config file has been updated to contain more user agent types, +please copy it to application/config/mimes.php.

        +
        +
        +

        Step 3: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_211.html b/sna/user_guide/installation/upgrade_211.html new file mode 100644 index 0000000..5e07ec8 --- /dev/null +++ b/sna/user_guide/installation/upgrade_211.html @@ -0,0 +1,524 @@ + + + + + + + + + + Upgrading from 2.1.0 to 2.1.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.1.0 to 2.1.1

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Replace config/mimes.php

        +

        This config file has been updated to contain more user mime-types, please copy +it to _application/config/mimes.php*.

        +
        +
        +

        Step 3: Update your IP address tables

        +

        This upgrade adds support for IPv6 IP addresses. In order to store them, you need +to enlarge your ip_address columns to 45 characters. For example, CodeIgniter’s +session table will need to change

        +
        ALTER TABLE ci_sessions CHANGE ip_address ip_address varchar(45) default '0' NOT NULL
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_212.html b/sna/user_guide/installation/upgrade_212.html new file mode 100644 index 0000000..2b0a502 --- /dev/null +++ b/sna/user_guide/installation/upgrade_212.html @@ -0,0 +1,515 @@ + + + + + + + + + + Upgrading from 2.1.1 to 2.1.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.1.1 to 2.1.2

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_213.html b/sna/user_guide/installation/upgrade_213.html new file mode 100644 index 0000000..608c88e --- /dev/null +++ b/sna/user_guide/installation/upgrade_213.html @@ -0,0 +1,515 @@ + + + + + + + + + + Upgrading from 2.1.2 to 2.1.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.1.2 to 2.1.3

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your user guide

        +

        Please also replace your local copy of the user guide with the new +version.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_214.html b/sna/user_guide/installation/upgrade_214.html new file mode 100644 index 0000000..224629b --- /dev/null +++ b/sna/user_guide/installation/upgrade_214.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 2.1.3 to 2.1.4 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.1.3 to 2.1.4

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_220.html b/sna/user_guide/installation/upgrade_220.html new file mode 100644 index 0000000..f4f3844 --- /dev/null +++ b/sna/user_guide/installation/upgrade_220.html @@ -0,0 +1,519 @@ + + + + + + + + + + Upgrading from 2.1.4 to 2.2.x — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.1.4 to 2.2.x

        +
        +

        Note

        +

        The Encrypt Class now requires the +Mcrypt extension. If you were previously using the Encrypt Class +without Mcrypt, then this is a breaking change. You must install +the Mcrypt extension in order to upgrade. For information on +installing Mcrypt please see the PHP documentation +<http://php.net/manual/en/mcrypt.setup.php>.

        +
        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_221.html b/sna/user_guide/installation/upgrade_221.html new file mode 100644 index 0000000..cacb027 --- /dev/null +++ b/sna/user_guide/installation/upgrade_221.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 2.2.0 to 2.2.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.2.0 to 2.2.1

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_222.html b/sna/user_guide/installation/upgrade_222.html new file mode 100644 index 0000000..a31e05c --- /dev/null +++ b/sna/user_guide/installation/upgrade_222.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 2.2.1 to 2.2.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.2.1 to 2.2.2

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_223.html b/sna/user_guide/installation/upgrade_223.html new file mode 100644 index 0000000..9757a0c --- /dev/null +++ b/sna/user_guide/installation/upgrade_223.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 2.2.2 to 2.2.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.2.2 to 2.2.3

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your “system” folder.

        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_300.html b/sna/user_guide/installation/upgrade_300.html new file mode 100644 index 0000000..4b83355 --- /dev/null +++ b/sna/user_guide/installation/upgrade_300.html @@ -0,0 +1,1331 @@ + + + + + + + + + + Upgrading from 2.2.x to 3.0.x — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 2.2.x to 3.0.x

        +

        Before performing an update you should take your site offline by replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory and +replace your index.php file. If any modifications were made to your +index.php they will need to be made fresh in this new one.

        +
        +

        Important

        +

        You have to delete the old system/ directory first and +then put the new one in its place. A simple copy-paste may cause +issues.

        +
        +
        +

        Note

        +

        If you have any custom developed files in these folders please +make copies of them first.

        +
        +
        +
        +

        Step 2: Update your classes file names

        +

        Starting with CodeIgniter 3.0, all class filenames (libraries, drivers, controllers +and models) must be named in a Ucfirst-like manner or in other words - they must +start with a capital letter.

        +

        For example, if you have the following library file:

        +
        +
        application/libraries/mylibrary.php
        +

        ... then you’ll have to rename it to:

        +
        +
        application/libraries/Mylibrary.php
        +

        The same goes for driver libraries and extensions and/or overrides of CodeIgniter’s +own libraries and core classes.

        +
        +
        application/libraries/MY_email.php +application/core/MY_log.php
        +

        The above files should respectively be renamed to the following:

        +
        +
        application/libraries/MY_Email.php +application/core/MY_Log.php
        +

        Controllers:

        +
        +
        application/controllers/welcome.php -> application/controllers/Welcome.php
        +

        Models:

        +
        +
        application/models/misc_model.php -> application/models/Misc_model.php
        +

        Please note that this DOES NOT affect directories, configuration files, views, +helpers, hooks and anything else - it is only applied to classes.

        +

        You must now follow just one simple rule - class names in Ucfirst and everything else +in lowercase.

        +
        +
        +

        Step 3: Replace config/mimes.php

        +

        This config file has been updated to contain more user mime-types, please copy +it to application/config/mimes.php.

        +
        +
        +

        Step 4: Remove $autoload[‘core’] from your config/autoload.php

        +

        Use of the $autoload['core'] config array has been deprecated as of CodeIgniter 1.4.1 and is now removed. +Move any entries that you might have listed there to $autoload['libraries'] instead.

        +
        +
        +

        Step 5: Move your Log class overrides or extensions

        +

        The Log Class is considered as a “core” class and is now located in the +system/core/ directory. Therefore, in order for your Log class overrides +or extensions to work, you need to move them to application/core/:

        +
        +
        application/libraries/Log.php -> application/core/Log.php +application/libraries/MY_Log.php -> application/core/MY_Log.php
        +
        +
        +

        Step 6: Update your Session library usage

        +

        The Session Library has been completely +re-written in CodeIgniter 3 and now comes with a bunch of new features, +but that also means that there are changes that you should make ...

        +

        Most notably, the library now uses separate storage drivers instead of +always relying on (encrypted) cookies. +In fact, cookies as storage have now been removed and you must always use +some kind of server-side storage engine, with the file-system being the +default option.

        +

        The Session Class now utilizes PHP’s own mechanisms for building custom +session handlers, which also means that your session data is now +accessible via the $_SESSION superglobal (though, we’ve kept the +possibility to use it as “userdata”, like you’ve done until now).

        +

        A few configuration options have been removed and a few have been added. +You should really read the whole Session library manual for the details, but here’s a short list of changes +that you should make:

        +
        +
          +
        • Set your $config['sess_driver'] value

          +

          It will default to ‘files’, unless you’ve previously used +$config['sess_use_database'], in which case it will be set to +‘database’.

          +
        • +
        • Set a $config['sess_save_path'] value

          +

          For the ‘database’ driver, a fallback to $config['sess_table_name'] +is in place, but otherwise requires you to read the manual for the +specific driver of your choice.

          +
        • +
        • Update your ci_sessions table (‘database’ driver only)

          +

          The table structure has changed a bit, and more specifically:

          +
          +
            +
          • session_id field is renamed to id
          • +
          • user_agent field is dropped
          • +
          • user_data field is renamed to data and under MySQL is now of type BLOB
          • +
          • last_activity field is renamed to timestamp
          • +
          +
          +

          This is accompanied by a slight change in the table indexes too, so +please read the manual about the Session Database Driver for more information.

          +
          +

          Important

          +

          Only MySQL and PostgreSQL are officially supported +now. Other databases may still work, but due to lack of advisory +locking features, they are unsafe for concurrent requests and +you should consider using another driver instead.

          +
          +
        • +
        • Remove $config['sess_match_useragent']

          +

          The user-agent string is input supplied by the user’s browser, or in +other words: client side input. As such, it is an ineffective feature +and hence why it has been removed.

          +
        • +
        • Remove $config['sess_encrypt_cookie']

          +

          As already noted, the library no longer uses cookies as a storage +mechanism, which renders this option useless.

          +
        • +
        • Remove $config['sess_expire_on_close']

          +

          This option is still usable, but only for backwards compatibility +purposes and it should be otherwise removed. The same effect is +achieved by setting $config['sess_expiration'] to 0.

          +
        • +
        • Check “flashdata” for collisions with “userdata”

          +

          Flashdata is now just regular “userdata”, only marked for deletion on +the next request. In other words: you can’t have both “userdata” and +“flashdata” with the same name, because it’s the same thing.

          +
        • +
        • Check usage of session metadata

          +

          Previously, you could access the ‘session_id’, ‘ip_address’, +‘user_agent’ and ‘last_activity’ metadata items as userdata. +This is no longer possible, and you should read the notes about +Session Metadata +if your application relies on those values.

          +
        • +
        • Check unset_userdata() usage

          +

          Previously, this method used to accept an associative array of +'key' => 'dummy value' pairs for unsetting multiple keys. That +however makes no sense and you now have to pass only the keys, as +the elements of an array.

          +
          // Old
          +$this->session->unset_userdata(array('item' => '', 'item2' => ''));
          +
          +// New
          +$this->session->unset_userdata(array('item', 'item2'));
          +
          +
          +
        • +
        +
        +

        Finally, if you have written a Session extension, you must now move it to +the application/libraries/Session/ directory, although chances are that +it will now also have to be re-factored.

        +
        +
        +

        Step 7: Update your config/database.php

        +

        Due to 3.0.0’s renaming of Active Record to Query Builder, inside your +config/database.php, you will need to rename the $active_record +variable to $query_builder:

        +
        $active_group = 'default';
        +// $active_record = TRUE;
        +$query_builder = TRUE;
        +
        +
        +
        +
        +

        Step 8: Replace your error templates

        +

        In CodeIgniter 3.0, the error templates are now considered as views and have been moved to the +application/views/errors directory.

        +

        Furthermore, we’ve added support for CLI error templates in plain-text format that unlike HTML, +is suitable for the command line. This of course requires another level of separation.

        +

        It is safe to move your old templates from application/errors to application/views/errors/html, +but you’ll have to copy the new application/views/errors/cli directory from the CodeIgniter archive.

        +
        +
        +

        Step 9: Update your config/routes.php file

        +
        +

        Routes containing :any

        +

        Historically, CodeIgniter has always provided the :any wildcard in +routing, with the intention of providing a way to match any character +within an URI segment.

        +

        However, the :any wildcard is actually just an alias for a regular +expression and used to be executed in that manner as .+. This is +considered a bug, as it also matches the / (forward slash) character, which +is the URI segment delimiter and that was never the intention.

        +

        In CodeIgniter 3, the :any wildcard will now represent [^/]+, so +that it will not match a forward slash.

        +

        There are certainly many developers that have utilized this bug as an actual +feature. If you’re one of them and want to match a forward slash, please use +the .+ regular expression:

        +
        (.+)    // matches ANYTHING
        +(:any)  // matches any character, except for '/'
        +
        +
        +
        +
        +

        Directories and ‘default_controller’, ‘404_override’

        +

        As you should know, the $route['default_controller'] and +$route['404_override'] settings accept not only a controller name, but +also controller/method pairs. However, a bug in the routing logic has +made it possible for some users to use that as directory/controller +instead.

        +

        As already said, this behavior was incidental and was never intended, nor +documented. If you’ve relied on it, your application will break with +CodeIgniter 3.0.

        +

        Another notable change in version 3 is that ‘default_controller’ and +‘404_override’ are now applied per directory. To explain what this means, +let’s take the following example:

        +
        $route['default_controller'] = 'main';
        +
        +
        +

        Now, assuming that your website is located at example.com, you already +know that if a user visits http://example.com/, the above setting will +cause your ‘Main’ controller to be loaded.

        +

        However, what happens if you have an application/controllers/admin/ +directory and the user visits http://example.com/admin/? +In CodeIgniter 3, the router will look for a ‘Main’ controller under the +admin/ directory as well. If not found, a Not Found (404) will be triggered.

        +

        The same rule applies to the ‘404_override’ setting.

        +
        +
        +
        +

        Step 10: Many functions now return NULL instead of FALSE on missing items

        +

        Many methods and functions now return NULL instead of FALSE when the required items don’t exist:

        +
        +
          +
        • Common functions
            +
          • config_item()
          • +
          +
        • +
        • Config Class
            +
          • config->item()
          • +
          • config->slash_item()
          • +
          +
        • +
        • Input Class
            +
          • input->get()
          • +
          • input->post()
          • +
          • input->get_post()
          • +
          • input->cookie()
          • +
          • input->server()
          • +
          • input->input_stream()
          • +
          • input->get_request_header()
          • +
          +
        • +
        • Session Class
            +
          • session->userdata()
          • +
          • session->flashdata()
          • +
          +
        • +
        • URI Class
            +
          • uri->segment()
          • +
          • uri->rsegment()
          • +
          +
        • +
        • Array Helper
            +
          • element()
          • +
          • elements()
          • +
          +
        • +
        +
        +
        +
        +

        Step 11: Usage of XSS filtering

        +

        Many functions in CodeIgniter allow you to use its XSS filtering feature +on demand by passing a boolean parameter. The default value of that +parameter used to be boolean FALSE, but it is now changed to NULL and it +will be dynamically determined by your $config['global_xss_filtering'] +value.

        +

        If you used to manually pass a boolean value for the $xss_filter +parameter or if you’ve always had $config['global_xss_filtering'] set +to FALSE, then this change doesn’t concern you.

        +

        Otherwise however, please review your usage of the following functions:

        +
        +
        +
        +
        +

        Important

        +

        Another related change is that the $_GET, $_POST, +$_COOKIE and $_SERVER superglobals are no longer +automatically overwritten when global XSS filtering is turned on.

        +
        +
        +
        +

        Step 12: Check for potential XSS issues with URIs

        +

        The URI Library used to automatically convert +a certain set of “programmatic characters” to HTML entities when they +are encountered in a URI segment.

        +

        This was aimed at providing some automatic XSS protection, in addition +to the $config['permitted_uri_chars'] setting, but has proven to be +problematic and is now removed in CodeIgniter 3.0.

        +

        If your application has relied on this feature, you should update it to +filter URI segments through $this->security->xss_clean() whenever you +output them.

        +
        +
        +

        Step 13: Check for usage of the ‘xss_clean’ Form validation rule

        +

        A largely unknown rule about XSS cleaning is that it should only be +applied to output, as opposed to input data.

        +

        We’ve made that mistake ourselves with our automatic and global XSS cleaning +feature (see previous step about XSS above), so now in an effort to discourage that +practice, we’re also removing ‘xss_clean’ from the officially supported +list of form validation rules.

        +

        Because the Form Validation library +generally validates input data, the ‘xss_clean’ rule simply doesn’t +belong in it.

        +

        If you really, really need to apply that rule, you should now also load the +Security Helper, which contains +xss_clean() as a regular function and therefore can be also used as +a validation rule.

        +
        +
        +

        Step 14: Update usage of Input Class’s get_post() method

        +

        Previously, the Input Class method get_post() +was searching first in POST data, then in GET data. This method has been +modified so that it searches in GET then in POST, as its name suggests.

        +

        A method has been added, post_get(), which searches in POST then in GET, as +get_post() was doing before.

        +
        +
        +

        Step 15: Update usage of Directory Helper’s directory_map() function

        +

        In the resulting array, directories now end with a trailing directory +separator (i.e. a slash, usually).

        +
        +
        +

        Step 16: Update usage of Database Forge’s drop_table() method

        +

        Up until now, drop_table() added an IF EXISTS clause by default or it didn’t work +at all with some drivers. In CodeIgniter 3.0, the IF EXISTS condition is no longer added +by default and has an optional second parameter that allows that instead and is set to +FALSE by default.

        +

        If your application relies on IF EXISTS, you’ll have to change its usage.

        +
        // Now produces just DROP TABLE `table_name`
        +$this->dbforge->drop_table('table_name');
        +
        +// Produces DROP TABLE IF EXISTS `table_name`
        +$this->dbforge->drop_table('table_name', TRUE);
        +
        +
        +
        +

        Note

        +

        The given example uses MySQL-specific syntax, but it should work across +all drivers with the exception of ODBC.

        +
        +
        +
        +

        Step 17: Change usage of Email library with multiple emails

        +

        The Email Library will automatically clear the +set parameters after successfully sending emails. To override this behaviour, +pass FALSE as the first parameter in the send() method:

        +
        if ($this->email->send(FALSE))
        +{
        +        // Parameters won't be cleared
        +}
        +
        +
        +
        +
        +

        Step 18: Update your Form_validation language lines

        +

        Two improvements have been made to the Form Validation Library‘s language +files and error messages format:

        +
        +
          +
        • Language Library line keys now must be +prefixed with form_validation_ in order to avoid collisions:

          +
          // Old
          +$lang['rule'] = ...
          +
          +// New
          +$lang['form_validation_rule'] = ...
          +
          +
          +
        • +
        • The error messages format has been changed to use named parameters, to +allow more flexibility than what sprintf() offers:

          +
          // Old
          +'The %s field does not match the %s field.'
          +
          +// New
          +'The {field} field does not match the {param} field.'
          +
          +
          +
        • +
        +
        +
        +

        Note

        +

        The old formatting still works, but the non-prefixed line keys +are DEPRECATED and scheduled for removal in CodeIgniter 3.1+. +Therefore you’re encouraged to update its usage sooner rather than +later.

        +
        +
        +
        +

        Step 19: Make sure your ‘base_url’ config value is not empty

        +

        When $config['base_url'] is not set, CodeIgniter tries to automatically +detect what your website’s base URL is. This is done purely for convenience +when you are starting development of a new application.

        +

        Auto-detection is never reliable and also has security implications, which +is why you should always have it manually configured!

        +

        One of the changes in CodeIgniter 3.0.3 is how this auto-detection works, +and more specifically it now falls back to the server’s IP address instead +of the hostname requested by the client. Therefore, if you’ve ever relied +on auto-detection, it will change how your website works now.

        +

        In case you need to allow e.g. multiple domains, or both http:// and +https:// prefixes to be dynamically used depending on the request, +remember that application/config/config.php is still a PHP script, in +which you can create this logic with a few lines of code. For example:

        +
        $allowed_domains = array('domain1.tld', 'domain2.tld');
        +$default_domain  = 'domain1.tld';
        +
        +if (in_array($_SERVER['HTTP_HOST'], $allowed_domains, TRUE))
        +{
        +        $domain = $_SERVER['HTTP_HOST'];
        +}
        +else
        +{
        +        $domain = $default_domain;
        +}
        +
        +if ( ! empty($_SERVER['HTTPS']))
        +{
        +        $config['base_url'] = 'https://'.$domain;
        +}
        +else
        +{
        +        $config['base_url'] = 'http://'.$domain;
        +}
        +
        +
        +
        +
        +

        Step 20: Remove usage of (previously) deprecated functionalities

        +

        In addition to the $autoload['core'] configuration setting, there’s a +number of other functionalities that have been removed in CodeIgniter 3.0.0:

        +
        +

        The SHA1 library

        +

        The previously deprecated SHA1 library has been removed, alter your code to use PHP’s native +sha1() function to generate a SHA1 hash.

        +

        Additionally, the sha1() method in the Encrypt Library has been removed.

        +
        +
        +

        The EXT constant

        +

        Usage of the EXT constant has been deprecated since dropping support for PHP 4. There’s no +longer a need to maintain different filename extensions and in this new CodeIgniter version, +the EXT constant has been removed. Use just ‘.php’ instead.

        +
        +
        +

        Smiley helper

        +

        The Smiley Helper is a legacy feature from EllisLab’s +ExpressionEngine product. However, it is too specific for a general purpose framework like +CodeIgniter and as such it is now deprecated.

        +

        Also, the previously deprecated js_insert_smiley() (since version 1.7.2) is now removed.

        +
        +
        +

        The Encrypt library

        +

        Following numerous vulnerability reports, the Encrypt Library has +been deprecated and a new, Encryption Library is added to take +its place.

        +

        The new library requires either the MCrypt extension (and /dev/urandom +availability) or PHP 5.3.3 and the OpenSSL extension. +While this might be rather inconvenient, it is a requirement that allows us to have properly +implemented cryptographic functions.

        +
        +

        Note

        +

        The Encrypt Library is still available for the purpose +of keeping backwards compatibility.

        +
        +
        +

        Important

        +

        You are strongly encouraged to switch to the new Encryption Library as soon as possible!

        +
        +
        +
        +

        The Cart library

        +

        The Cart Library, similarly to the Smiley Helper is too specific for CodeIgniter. It is now deprecated +and scheduled for removal in CodeIgniter 3.1+.

        +
        +

        Note

        +

        The library is still available, but you’re strongly encouraged to remove its usage sooner +rather than later.

        +
        +
        +
        +

        Database drivers ‘mysql’, ‘sqlite’, ‘mssql’, ‘pdo/dblib’

        +

        The mysql driver utilizes the old ‘mysql’ PHP extension, known for its aging code base and +many low-level problems. The extension is deprecated as of PHP 5.5 and CodeIgniter deprecates +it in version 3.0, switching the default configured MySQL driver to mysqli.

        +

        Please use either the ‘mysqli’ or ‘pdo/mysql’ drivers for MySQL. The old ‘mysql’ driver will be +removed at some point in the future.

        +

        The sqlite, mssql and pdo/dblib (also known as pdo/mssql or pdo/sybase) drivers +all depend on PHP extensions that for different reasons no longer exist since PHP 5.3.

        +

        Therefore we are now deprecating these drivers as we will have to remove them in one of the next +CodeIgniter versions. You should use the more advanced, sqlite3, sqlsrv or pdo/sqlsrv +drivers respectively.

        +
        +

        Note

        +

        These drivers are still available, but you’re strongly encouraged to switch to other ones +sooner rather than later.

        +
        +
        +
        +

        Security helper do_hash()

        +

        Security Helper function do_hash() is now just an alias for +PHP’s native hash() function. It is deprecated and scheduled for removal in CodeIgniter 3.1+.

        +
        +

        Note

        +

        This function is still available, but you’re strongly encouraged to remove its usage sooner +rather than later.

        +
        +
        +
        +

        The $config[‘global_xss_filtering’] setting

        +

        As already explained above, XSS filtering should not be done on input data, +but on output instead. Therefore, the $config['global_xss_filtering'], +which automatically filters input data, is considered a bad practice and +is now deprecated.

        +

        Instead, you should manually escape any user-provided data via the +xss_clean() function when you need to output it, or use a +library like HTML Purifier that does that +for you.

        +
        +

        Note

        +

        The setting is still available, but you’re strongly encouraged to +remove its usage sooner rather than later.

        +
        +
        +
        +

        File helper read_file()

        +

        File Helper function read_file() is now just an alias for +PHP’s native file_get_contents() function. It is deprecated and scheduled for removal in +CodeIgniter 3.1+.

        +
        +

        Note

        +

        This function is still available, but you’re strongly encouraged to remove its usage sooner +rather than later.

        +
        +
        +
        +

        String helper repeater()

        +

        String Helper function repeater() is now just an alias for +PHP’s native str_repeat() function. It is deprecated and scheduled for removal in CodeIgniter 3.1+.

        +
        +

        Note

        +

        This function is still available, but you’re strongly encouraged to remove its usage sooner +rather than later.

        +
        +
        +
        +

        String helper trim_slashes()

        +

        String Helper function trim_slashes() is now just an alias +for PHP’s native trim() function (with a slash passed as its second argument). It is deprecated and +scheduled for removal in CodeIgniter 3.1+.

        +
        +

        Note

        +

        This function is still available, but you’re strongly encouraged to remove its usage sooner +rather than later.

        +
        +
        +
        +

        Form helper form_prep()

        +

        Form Helper function form_prep() +is now just an alias for common function +html_escape(). It is deprecated and will be removed in the future.

        +

        Please use html_escape() instead.

        +
        +

        Note

        +

        This function is still available, but you’re strongly encouraged +to remove its usage sooner rather than later.

        +
        +
        +
        +

        Email helper functions

        +

        Email Helper only has two functions

        +
        +
        +

        Both of them are now aliases for PHP’s native filter_var() and mail() functions, respectively. +Therefore the Email Helper altogether is being deprecated and +is scheduled for removal in CodeIgniter 3.1+.

        +
        +

        Note

        +

        These functions are still available, but you’re strongly encouraged to remove their usage +sooner rather than later.

        +
        +
        +
        +

        Date helper standard_date()

        +

        Date Helper function standard_date() is being deprecated due +to the availability of native PHP constants, +which when combined with date() provide the same functionality. Furthermore, they have the +exact same names as the ones supported by standard_date(). Here are examples of how to replace +its usage:

        +
        // Old way
        +standard_date(); // defaults to standard_date('DATE_RFC822', now());
        +
        +// Replacement
        +date(DATE_RFC822, now());
        +
        +// Old way
        +standard_date('DATE_ATOM', $time);
        +
        +// Replacement
        +date(DATE_ATOM, $time);
        +
        +
        +
        +

        Note

        +

        This function is still available, but you’re strongly encouraged to remove its usage sooner +rather than later as it is scheduled for removal in CodeIgniter 3.1+.

        +
        +
        +
        +

        HTML helpers nbs(), br()

        +

        HTML Helper functions nbs() and br() are just aliases +for the native str_repeat() function used with &nbsp; and <br > respectively.

        +

        Because there’s no point in just aliasing native PHP functions, they are now deprecated and +scheduled for removal in CodeIgniter 3.1+.

        +
        +

        Note

        +

        These functions are still available, but you’re strongly encouraged to remove their usage +sooner rather than later.

        +
        +
        +
        +

        Pagination library ‘anchor_class’ setting

        +

        The Pagination Library now supports adding pretty much any HTML +attribute to your anchors via the ‘attributes’ configuration setting. This includes passing the +‘class’ attribute and using the separate ‘anchor_class’ setting no longer makes sense. +As a result of that, the ‘anchor_class’ setting is now deprecated and scheduled for removal in +CodeIgniter 3.1+.

        +
        +

        Note

        +

        This setting is still available, but you’re strongly encouraged to remove its usage sooner +rather than later.

        +
        +
        +
        +

        String helper random_string() types ‘unique’ and ‘encrypt’

        +

        When using the String Helper function random_string(), +you should no longer pass the unique and encrypt randomization types. They are only +aliases for md5 and sha1 respectively and are now deprecated and scheduled for removal +in CodeIgniter 3.1+.

        +
        +

        Note

        +

        These options are still available, but you’re strongly encouraged to remove their usage +sooner rather than later.

        +
        +
        +
        +

        URL helper url_title() separators ‘dash’ and ‘underscore’

        +

        When using the URL Helper function url_title(), you +should no longer pass dash or underscore as the word separator. This function will +now accept any character and you should just pass the chosen character directly, so you +should write ‘-‘ instead of ‘dash’ and ‘_’ instead of ‘underscore’.

        +

        dash and underscore now act as aliases and are deprecated and scheduled for removal +in CodeIgniter 3.1+.

        +
        +

        Note

        +

        These options are still available, but you’re strongly encouraged to remove their usage +sooner rather than later.

        +
        +
        +
        +

        Session Library method all_userdata()

        +

        As seen in the Change Log, Session Library +method userdata() now allows you to fetch all userdata by simply omitting its parameter:

        +
        $this->session->userdata();
        +
        +
        +

        This makes the all_userdata() method redudant and therefore it is now just an alias for +userdata() with the above shown usage and is being deprecated and scheduled for removal +in CodeIgniter 3.1+.

        +
        +

        Note

        +

        This method is still available, but you’re strongly encouraged to remove its usage +sooner rather than later.

        +
        +
        +
        +

        Database Forge method add_column() with an AFTER clause

        +

        If you have used the third parameter for Database Forge method +add_column() to add a field for an AFTER clause, then you should change its usage.

        +

        That third parameter has been deprecated and scheduled for removal in CodeIgniter 3.1+.

        +

        You should now put AFTER clause field names in the field definition array instead:

        +
        // Old usage:
        +$field = array(
        +        'new_field' => array('type' => 'TEXT')
        +);
        +
        +$this->dbforge->add_column('table_name', $field, 'another_field');
        +
        +// New usage:
        +$field = array(
        +        'new_field' => array('type' => 'TEXT', 'after' => 'another_field')
        +);
        +
        +$this->dbforge->add_column('table_name', $field);
        +
        +
        +
        +

        Note

        +

        The parameter is still available, but you’re strongly encouraged to remove its usage +sooner rather than later.

        +
        +
        +

        Note

        +

        This is for MySQL and CUBRID databases only! Other drivers don’t support this +clause and will silently ignore it.

        +
        +
        +
        +

        URI Routing methods fetch_directory(), fetch_class(), fetch_method()

        +

        With properties CI_Router::$directory, CI_Router::$class and CI_Router::$method +being public and their respective fetch_*() no longer doing anything else to just return +the properties - it doesn’t make sense to keep them.

        +

        Those are all internal, undocumented methods, but we’ve opted to deprecate them for now +in order to maintain backwards-compatibility just in case. If some of you have utilized them, +then you can now just access the properties instead:

        +
        $this->router->directory;
        +$this->router->class;
        +$this->router->method;
        +
        +
        +
        +

        Note

        +

        Those methods are still available, but you’re strongly encouraged to remove their usage +sooner rather than later.

        +
        +
        +
        +

        Input library method is_cli_request()

        +

        Calls to the CI_Input::is_cli_request() method are necessary at many places +in the CodeIgniter internals and this is often before the Input Library is loaded. Because of that, it is being replaced by a common +function named is_cli() and this method is now just an alias.

        +

        The new function is both available at all times for you to use and shorter to type.

        +
        // Old
        +$this->input->is_cli_request();
        +
        +// New
        +is_cli();
        +
        +
        +

        CI_Input::is_cli_request() is now now deprecated and scheduled for removal in +CodeIgniter 3.1+.

        +
        +

        Note

        +

        This method is still available, but you’re strongly encouraged to remove its usage +sooner rather than later.

        +
        +
        +
        +

        Config library method system_url()

        +

        Usage of CI_Config::system_url() encourages insecure coding practices. +Namely, your CodeIgniter system/ directory shouldn’t be publicly accessible +from a security point of view.

        +

        Because of this, this method is now deprecated and scheduled for removal in +CodeIgniter 3.1+.

        +
        +

        Note

        +

        This method is still available, but you’re strongly encouraged to remove its usage +sooner rather than later.

        +
        +
        +
        +

        The Javascript library

        +

        The Javascript Library has always had an +‘experimental’ status and was never really useful, nor a proper solution.

        +

        It is now deprecated and scheduled for removal in CodeIgniter 3.1+.

        +
        +

        Note

        +

        This library is still available, but you’re strongly encouraged to remove its usage +sooner rather than later.

        +
        +
        +
        +

        Form Validation method prep_for_form()

        +

        The Form Validation Library has a +prep_for_form() method, which is/can also be used as a rule in +set_rules() to automatically perform HTML encoding on input data.

        +

        Automatically encoding input (instead of output) data is a bad practice in +the first place, and CodeIgniter and PHP itself offer other alternatives +to this method anyway. +For example, Form Helper functions will +automatically perform HTML escaping when necessary.

        +

        Therefore, the prep_for_form method/rule is pretty much useless and is now +deprecated and scheduled for removal in 3.1+.

        +
        +

        Note

        +

        The method is still available, but you’re strongly encouraged to +remove its usage sooner rather than later.

        +
        +
        +
        +
        +

        Step 21: Check your usage of Text helper highlight_phrase()

        +

        The default HTML tag used by Text Helper function +highlight_phrase() has been changed from <strong> to the new HTML5 +tag <mark>.

        +

        Unless you’ve used your own highlighting tags, this might cause trouble +for your visitors who use older web browsers such as Internet Explorer 8. +We therefore suggest that you add the following code to your CSS files +in order to avoid backwards compatibility with old browsers:

        +
        mark {
        +        background: #ff0;
        +        color: #000;
        +};
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_301.html b/sna/user_guide/installation/upgrade_301.html new file mode 100644 index 0000000..30cf5b7 --- /dev/null +++ b/sna/user_guide/installation/upgrade_301.html @@ -0,0 +1,514 @@ + + + + + + + + + + Upgrading from 3.0.0 to 3.0.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.0.0 to 3.0.1

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        +

        Step 2: Update your CLI error templates

        +

        Replace all files under your application/views/errors/cli/ directory.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_302.html b/sna/user_guide/installation/upgrade_302.html new file mode 100644 index 0000000..00df43b --- /dev/null +++ b/sna/user_guide/installation/upgrade_302.html @@ -0,0 +1,521 @@ + + + + + + + + + + Upgrading from 3.0.1 to 3.0.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.0.1 to 3.0.2

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        +

        Step 2: Update your application/config/constants.php file

        +

        The application/config/constants.php file has been updated to check +if constants aren’t already defined before doing that, making it easier +to add an environment-specific configuration.

        +
        +

        Note

        +

        If you’ve made modifications to this file, please make a +backup first and cross-check the differences first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_303.html b/sna/user_guide/installation/upgrade_303.html new file mode 100644 index 0000000..899aef2 --- /dev/null +++ b/sna/user_guide/installation/upgrade_303.html @@ -0,0 +1,548 @@ + + + + + + + + + + Upgrading from 3.0.2 to 3.0.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.0.2 to 3.0.3

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        +

        Step 2: Make sure your ‘base_url’ config value is not empty

        +

        When $config['base_url'] is not set, CodeIgniter tries to automatically +detect what your website’s base URL is. This is done purely for convenience +when you are starting development of a new application.

        +

        Auto-detection is never reliable and also has security implications, which +is why you should always have it manually configured!

        +

        One of the changes in CodeIgniter 3.0.3 is how this auto-detection works, +and more specifically it now falls back to the server’s IP address instead +of the hostname requested by the client. Therefore, if you’ve ever relied +on auto-detection, it will change how your website works now.

        +

        In case you need to allow e.g. multiple domains, or both http:// and +https:// prefixes to be dynamically used depending on the request, +remember that application/config/config.php is still a PHP script, in +which you can create this logic with a few lines of code. For example:

        +
        $allowed_domains = array('domain1.tld', 'domain2.tld');
        +$default_domain  = 'domain1.tld';
        +
        +if (in_array($_SERVER['HTTP_HOST'], $allowed_domains, TRUE))
        +{
        +        $domain = $_SERVER['HTTP_HOST'];
        +}
        +else
        +{
        +        $domain = $default_domain;
        +}
        +
        +if ( ! empty($_SERVER['HTTPS']))
        +{
        +        $config['base_url'] = 'https://'.$domain;
        +}
        +else
        +{
        +        $config['base_url'] = 'http://'.$domain;
        +}
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_304.html b/sna/user_guide/installation/upgrade_304.html new file mode 100644 index 0000000..38b6e99 --- /dev/null +++ b/sna/user_guide/installation/upgrade_304.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 3.0.3 to 3.0.4 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.0.3 to 3.0.4

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_305.html b/sna/user_guide/installation/upgrade_305.html new file mode 100644 index 0000000..34ff9f8 --- /dev/null +++ b/sna/user_guide/installation/upgrade_305.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 3.0.4 to 3.0.5 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.0.4 to 3.0.5

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_306.html b/sna/user_guide/installation/upgrade_306.html new file mode 100644 index 0000000..242265b --- /dev/null +++ b/sna/user_guide/installation/upgrade_306.html @@ -0,0 +1,540 @@ + + + + + + + + + + Upgrading from 3.0.5 to 3.0.6 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.0.5 to 3.0.6

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        +

        Step 2: Update your index.php file (optional)

        +

        We’ve made some tweaks to the index.php file, mostly related to proper +usage of directory separators (i.e. use the DIRECTORY_SEPARATOR +constant instead of a hard coded forward slash “/”).

        +

        Nothing will break if you skip this step, but if you’re running Windows +or just want to be up to date with every change - we do recommend that +you update your index.php file.

        +

        Tip: Just copy the ``ENVIRONMENT``, ``$system_path``, ``$application_folder`` +and ``$view_folder`` declarations from the old file and put them into the +new one, replacing the defaults.

        +
        +
        +

        Step 3: Remove ‘prep_for_form’ usage (deprecation)

        +

        The Form Validation Library has a +prep_for_form() method, which is/can also be used as a rule in +set_rules() to automatically perform HTML encoding on input data.

        +

        Automatically encoding input (instead of output) data is a bad practice in +the first place, and CodeIgniter and PHP itself offer other alternatives +to this method anyway. +For example, Form Helper functions will +automatically perform HTML escaping when necessary.

        +

        Therefore, the prep_for_form method/rule is pretty much useless and is now +deprecated and scheduled for removal in 3.1+.

        +
        +

        Note

        +

        The method is still available, but you’re strongly encouraged to +remove its usage sooner rather than later.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_310.html b/sna/user_guide/installation/upgrade_310.html new file mode 100644 index 0000000..ec28774 --- /dev/null +++ b/sna/user_guide/installation/upgrade_310.html @@ -0,0 +1,528 @@ + + + + + + + + + + Upgrading from 3.0.6 to 3.1.0 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.0.6 to 3.1.0

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        +

        Step 2: Check your PHP version

        +

        We recommend always running versions that are currently supported, which right now is at least PHP 5.6.

        +

        PHP 5.2.x versions are now officially not supported by CodeIgniter, and while 5.3.7+ +may be at least runnable, we strongly discourage you from using any PHP versions below +the ones listed on the PHP.net Supported Versions +page.

        +
        +
        +

        Step 3: If you’re using the ‘odbc’ database driver, check for usage of Query Builder

        +

        Query Builder functionality and escape() can +no longer be used with the ‘odbc’ database driver.

        +

        This is because, due to its nature, the ODBC extension for PHP +does not provide a function that allows to safely escape user-supplied strings for usage +inside an SQL query (which our Query Builder relies on).

        +

        Thus, user inputs MUST be bound, as shown in Running Queries, +under the “Query Bindings” section.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_311.html b/sna/user_guide/installation/upgrade_311.html new file mode 100644 index 0000000..da089c5 --- /dev/null +++ b/sna/user_guide/installation/upgrade_311.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 3.1.0 to 3.1.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.1.0 to 3.1.1

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_312.html b/sna/user_guide/installation/upgrade_312.html new file mode 100644 index 0000000..e11a9fa --- /dev/null +++ b/sna/user_guide/installation/upgrade_312.html @@ -0,0 +1,535 @@ + + + + + + + + + + Upgrading from 3.1.1 to 3.1.2 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.1.1 to 3.1.2

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        +

        Step 2: Update your “ci_sessions” database table

        +

        If you’re using the Session Library with the +‘database’ driver, you may have to ALTER your sessions table for your +sessions to continue to work.

        +
        +

        Note

        +

        The table in question is not necessarily named “ci_sessions”. +It is what you’ve set as your $config['sess_save_path'].

        +
        +

        This will only affect you if you’ve changed your session.hash_function +php.ini setting to something like ‘sha512’. Or if you’ve been running +an older CodeIgniter version on PHP 7.1+.

        +

        It is recommended that you do this anyway, just to avoid potential issues +in the future if you do change your configuration.

        +

        Just execute the one of the following SQL queries, depending on your +database:

        +
        // MySQL:
        +ALTER TABLE ci_sessions CHANGE id id varchar(128) NOT NULL;
        +
        +// PostgreSQL
        +ALTER TABLE ci_sessions ALTER COLUMN id SET DATA TYPE varchar(128);
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_313.html b/sna/user_guide/installation/upgrade_313.html new file mode 100644 index 0000000..4f70f85 --- /dev/null +++ b/sna/user_guide/installation/upgrade_313.html @@ -0,0 +1,540 @@ + + + + + + + + + + Upgrading from 3.1.2 to 3.1.3 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.1.2 to 3.1.3

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        +

        Step 2: Remove usage of nice_date() helper (deprecation)

        +

        The Date Helper function nice_date() is +no longer useful since the introduction of PHP’s DateTime classes

        +

        You can replace it with the following:

        +
        DateTime::createFromFormat($input_format, $input_date)->format($desired_output_format);
        +
        +
        +

        Thus, nice_date() is now deprecated and scheduled for removal in +CodeIgniter 3.2+.

        +
        +

        Note

        +

        The function is still available, but you’re strongly encouraged +to remove its usage sooner rather than later.

        +
        +
        +
        +

        Step 3: Remove usage of $config[‘standardize_newlines’]

        +

        The Input Library would optionally replace +occurrences of rn, r, n in input data with whatever the PHP_EOL +value is on your system - if you’ve set $config['standardize_newlines'] +to TRUE in your application/config/config.php.

        +

        This functionality is now deprecated and scheduled for removal in +CodeIgniter 3.2.+.

        +
        +

        Note

        +

        The functionality is still available, but you’re strongly +encouraged to remove its usage sooner rather than later.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_314.html b/sna/user_guide/installation/upgrade_314.html new file mode 100644 index 0000000..ab320e6 --- /dev/null +++ b/sna/user_guide/installation/upgrade_314.html @@ -0,0 +1,510 @@ + + + + + + + + + + Upgrading from 3.1.3 to 3.1.4 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading from 3.1.3 to 3.1.4

        +

        Before performing an update you should take your site offline by +replacing the index.php file with a static one.

        +
        +

        Step 1: Update your CodeIgniter files

        +

        Replace all files and directories in your system/ directory.

        +
        +

        Note

        +

        If you have any custom developed files in these directories, +please make copies of them first.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrade_b11.html b/sna/user_guide/installation/upgrade_b11.html new file mode 100644 index 0000000..cfe0d8f --- /dev/null +++ b/sna/user_guide/installation/upgrade_b11.html @@ -0,0 +1,568 @@ + + + + + + + + + + Upgrading From Beta 1.0 to Beta 1.1 — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading From Beta 1.0 to Beta 1.1

        +

        To upgrade to Beta 1.1 please perform the following steps:

        +
        +

        Step 1: Replace your index file

        +

        Replace your main index.php file with the new index.php file. Note: If +you have renamed your “system” folder you will need to edit this info in +the new file.

        +
        +
        +

        Step 2: Relocate your config folder

        +

        This version of CodeIgniter now permits multiple sets of “applications” +to all share a common set of backend files. In order to enable each +application to have its own configuration values, the config directory +must now reside inside of your application folder, so please move it +there.

        +
        +
        +

        Step 3: Replace directories

        +

        Replace the following directories with the new versions:

        +
          +
        • drivers
        • +
        • helpers
        • +
        • init
        • +
        • libraries
        • +
        • scaffolding
        • +
        +
        +
        +

        Step 4: Add the calendar language file

        +

        There is a new language file corresponding to the new calendaring class +which must be added to your language folder. Add the following item to +your version: language/english/calendar_lang.php

        +
        +
        +

        Step 5: Edit your config file

        +

        The original application/config/config.php file has a typo in it Open +the file and look for the items related to cookies:

        +
        $conf['cookie_prefix']  = "";
        +$conf['cookie_domain']  = "";
        +$conf['cookie_path']    = "/";
        +
        +
        +

        Change the array name from $conf to $config, like this:

        +
        $config['cookie_prefix']        = "";
        +$config['cookie_domain']        = "";
        +$config['cookie_path']  = "/";
        +
        +
        +

        Lastly, add the following new item to the config file (and edit the +option if needed):

        +
        /*
        +|------------------------------------------------
        +| URI PROTOCOL
        +|------------------------------------------------
        +|
        +| This item determines which server global
        +| should be used to retrieve the URI string. The
        +| default setting of "auto" works for most servers.
        +| If your links do not seem to work, try one of
        +| the other delicious flavors:
        +|
        +| 'auto'         Default - auto detects
        +| 'path_info'    Uses the PATH_INFO
        +| 'query_string'        Uses the QUERY_STRING
        +*/
        +
        +$config['uri_protocol'] = "auto";
        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/installation/upgrading.html b/sna/user_guide/installation/upgrading.html new file mode 100644 index 0000000..2151144 --- /dev/null +++ b/sna/user_guide/installation/upgrading.html @@ -0,0 +1,633 @@ + + + + + + + + + + Upgrading From a Previous Version — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Upgrading From a Previous Version

        +

        Please read the upgrade notes corresponding to the version you are +upgrading from.

        +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/benchmark.html b/sna/user_guide/libraries/benchmark.html new file mode 100644 index 0000000..be0800a --- /dev/null +++ b/sna/user_guide/libraries/benchmark.html @@ -0,0 +1,704 @@ + + + + + + + + + + Benchmarking Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • Benchmarking Class
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Benchmarking Class

        +

        CodeIgniter has a Benchmarking class that is always active, enabling the +time difference between any two marked points to be calculated.

        +
        +

        Note

        +

        This class is initialized automatically by the system so there +is no need to do it manually.

        +
        +

        In addition, the benchmark is always started the moment the framework is +invoked, and ended by the output class right before sending the final +view to the browser, enabling a very accurate timing of the entire +system execution to be shown.

        + +
        +

        Using the Benchmark Class

        +

        The Benchmark class can be used within your +controllers, +views, or your models. +The process for usage is this:

        +
          +
        1. Mark a start point
        2. +
        3. Mark an end point
        4. +
        5. Run the “elapsed time” function to view the results
        6. +
        +

        Here’s an example using real code:

        +
        $this->benchmark->mark('code_start');
        +
        +// Some code happens here
        +
        +$this->benchmark->mark('code_end');
        +
        +echo $this->benchmark->elapsed_time('code_start', 'code_end');
        +
        +
        +
        +

        Note

        +

        The words “code_start” and “code_end” are arbitrary. They +are simply words used to set two markers. You can use any words you +want, and you can set multiple sets of markers. Consider this example:

        +
        $this->benchmark->mark('dog');
        +
        +// Some code happens here
        +
        +$this->benchmark->mark('cat');
        +
        +// More code happens here
        +
        +$this->benchmark->mark('bird');
        +
        +echo $this->benchmark->elapsed_time('dog', 'cat');
        +echo $this->benchmark->elapsed_time('cat', 'bird');
        +echo $this->benchmark->elapsed_time('dog', 'bird');
        +
        +
        +
        +
        +

        Profiling Your Benchmark Points

        +

        If you want your benchmark data to be available to the +Profiler all of your marked points must +be set up in pairs, and each mark point name must end with _start and +_end. Each pair of points must otherwise be named identically. Example:

        +
        $this->benchmark->mark('my_mark_start');
        +
        +// Some code happens here...
        +
        +$this->benchmark->mark('my_mark_end');
        +
        +$this->benchmark->mark('another_mark_start');
        +
        +// Some more code happens here...
        +
        +$this->benchmark->mark('another_mark_end');
        +
        +
        +

        Please read the Profiler page for more +information.

        +
        +
        +

        Displaying Total Execution Time

        +

        If you would like to display the total elapsed time from the moment +CodeIgniter starts to the moment the final output is sent to the +browser, simply place this in one of your view templates:

        +
        <?php echo $this->benchmark->elapsed_time();?>
        +
        +
        +

        You’ll notice that it’s the same function used in the examples above to +calculate the time between two point, except you are not using any +parameters. When the parameters are absent, CodeIgniter does not stop +the benchmark until right before the final output is sent to the +browser. It doesn’t matter where you use the function call, the timer +will continue to run until the very end.

        +

        An alternate way to show your elapsed time in your view files is to use +this pseudo-variable, if you prefer not to use the pure PHP:

        +
        {elapsed_time}
        +
        +
        +
        +

        Note

        +

        If you want to benchmark anything within your controller +functions you must set your own start/end points.

        +
        +
        +
        +

        Displaying Memory Consumption

        +

        If your PHP installation is configured with –enable-memory-limit, you +can display the amount of memory consumed by the entire system using the +following code in one of your view file:

        +
        <?php echo $this->benchmark->memory_usage();?>
        +
        +
        +
        +

        Note

        +

        This function can only be used in your view files. The consumption +will reflect the total memory used by the entire app.

        +
        +

        An alternate way to show your memory usage in your view files is to use +this pseudo-variable, if you prefer not to use the pure PHP:

        +
        {memory_usage}
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Benchmark
        +
        +
        +mark($name)
        +
        +++ + + + + + +
        Parameters:
          +
        • $name (string) – the name you wish to assign to your marker
        • +
        +
        Return type:

        void

        +
        +

        Sets a benchmark marker.

        +
        + +
        +
        +elapsed_time([$point1 = ''[, $point2 = ''[, $decimals = 4]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $point1 (string) – a particular marked point
        • +
        • $point2 (string) – a particular marked point
        • +
        • $decimals (int) – number of decimal places for precision
        • +
        +
        Returns:

        Elapsed time

        +
        Return type:

        string

        +
        +

        Calculates and returns the time difference between two marked points.

        +

        If the first parameter is empty this function instead returns the +{elapsed_time} pseudo-variable. This permits the full system +execution time to be shown in a template. The output class will +swap the real value for this variable.

        +
        + +
        +
        +memory_usage()
        +
        +++ + + + + + +
        Returns:Memory usage info
        Return type:string
        +

        Simply returns the {memory_usage} marker.

        +

        This permits it to be put it anywhere in a template without the memory +being calculated until the end. The Output Class will +swap the real value for this variable.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/caching.html b/sna/user_guide/libraries/caching.html new file mode 100644 index 0000000..0e047e0 --- /dev/null +++ b/sna/user_guide/libraries/caching.html @@ -0,0 +1,896 @@ + + + + + + + + + + Caching Driver — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Caching Driver

        +

        CodeIgniter features wrappers around some of the most popular forms of +fast and dynamic caching. All but file-based caching require specific +server requirements, and a Fatal Exception will be thrown if server +requirements are not met.

        + +
        +

        Example Usage

        +

        The following example will load the cache driver, specify APC +as the driver to use, and fall back to file-based caching if APC is not +available in the hosting environment.

        +
        $this->load->driver('cache', array('adapter' => 'apc', 'backup' => 'file'));
        +
        +if ( ! $foo = $this->cache->get('foo'))
        +{
        +        echo 'Saving to the cache!<br />';
        +        $foo = 'foobarbaz!';
        +
        +        // Save into the cache for 5 minutes
        +        $this->cache->save('foo', $foo, 300);
        +}
        +
        +echo $foo;
        +
        +
        +

        You can also prefix cache item names via the key_prefix setting, which is useful +to avoid collisions when you’re running multiple applications on the same environment.

        +
        $this->load->driver('cache',
        +        array('adapter' => 'apc', 'backup' => 'file', 'key_prefix' => 'my_')
        +);
        +
        +$this->cache->get('foo'); // Will get the cache entry named 'my_foo'
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Cache
        +
        +
        +is_supported($driver)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $driver (string) – the name of the caching driver
        • +
        +
        Returns:

        TRUE if supported, FALSE if not

        +
        Return type:

        bool

        +
        +

        This method is automatically called when accessing drivers via +$this->cache->get(). However, if the individual drivers are used, +make sure to call this method to ensure the driver is supported in the +hosting environment.

        +
        if ($this->cache->apc->is_supported())
        +{
        +        if ($data = $this->cache->apc->get('my_cache'))
        +        {
        +                // do things.
        +        }
        +}
        +
        +
        +
        + +
        +
        +get($id)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $id (string) – Cache item name
        • +
        +
        Returns:

        Item value or FALSE if not found

        +
        Return type:

        mixed

        +
        +

        This method will attempt to fetch an item from the cache store. If the +item does not exist, the method will return FALSE.

        +
        $foo = $this->cache->get('my_cached_item');
        +
        +
        +
        + +
        +
        +save($id, $data[, $ttl = 60[, $raw = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $id (string) – Cache item name
        • +
        • $data (mixed) – the data to save
        • +
        • $ttl (int) – Time To Live, in seconds (default 60)
        • +
        • $raw (bool) – Whether to store the raw value
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        string

        +
        +

        This method will save an item to the cache store. If saving fails, the +method will return FALSE.

        +
        $this->cache->save('cache_item_id', 'data_to_cache');
        +
        +
        +
        +

        Note

        +

        The $raw parameter is only utilized by APC and Memcache, +in order to allow usage of increment() and decrement().

        +
        +
        + +
        +
        +delete($id)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $id (string) – name of cached item
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        This method will delete a specific item from the cache store. If item +deletion fails, the method will return FALSE.

        +
        $this->cache->delete('cache_item_id');
        +
        +
        +
        + +
        +
        +increment($id[, $offset = 1])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $id (string) – Cache ID
        • +
        • $offset (int) – Step/value to add
        • +
        +
        Returns:

        New value on success, FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Performs atomic incrementation of a raw stored value.

        +
        // 'iterator' has a value of 2
        +
        +$this->cache->increment('iterator'); // 'iterator' is now 3
        +
        +$this->cache->increment('iterator', 3); // 'iterator' is now 6
        +
        +
        +
        + +
        +
        +decrement($id[, $offset = 1])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $id (string) – Cache ID
        • +
        • $offset (int) – Step/value to reduce by
        • +
        +
        Returns:

        New value on success, FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Performs atomic decrementation of a raw stored value.

        +
        // 'iterator' has a value of 6
        +
        +$this->cache->decrement('iterator'); // 'iterator' is now 5
        +
        +$this->cache->decrement('iterator', 2); // 'iterator' is now 3
        +
        +
        +
        + +
        +
        +clean()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        This method will ‘clean’ the entire cache. If the deletion of the +cache files fails, the method will return FALSE.

        +
        $this->cache->clean();
        +
        +
        +
        + +
        +
        +cache_info()
        +
        +++ + + + + + +
        Returns:Information on the entire cache database
        Return type:mixed
        +

        This method will return information on the entire cache.

        +
        var_dump($this->cache->cache_info());
        +
        +
        +
        +

        Note

        +

        The information returned and the structure of the data is dependent +on which adapter is being used.

        +
        +
        + +
        +
        +get_metadata($id)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $id (string) – Cache item name
        • +
        +
        Returns:

        Metadata for the cached item

        +
        Return type:

        mixed

        +
        +

        This method will return detailed information on a specific item in the +cache.

        +
        var_dump($this->cache->get_metadata('my_cached_item'));
        +
        +
        +
        +

        Note

        +

        The information returned and the structure of the data is dependent +on which adapter is being used.

        +
        +
        + +
        + +
        +
        +

        Drivers

        +
        +

        Alternative PHP Cache (APC) Caching

        +

        All of the methods listed above can be accessed without passing a +specific adapter to the driver loader as follows:

        +
        $this->load->driver('cache');
        +$this->cache->apc->save('foo', 'bar', 10);
        +
        +
        +

        For more information on APC, please see +http://php.net/apc.

        +
        +
        +

        File-based Caching

        +

        Unlike caching from the Output Class, the driver file-based caching +allows for pieces of view files to be cached. Use this with care, and +make sure to benchmark your application, as a point can come where disk +I/O will negate positive gains by caching.

        +

        All of the methods listed above can be accessed without passing a +specific adapter to the driver loader as follows:

        +
        $this->load->driver('cache');
        +$this->cache->file->save('foo', 'bar', 10);
        +
        +
        +
        +
        +

        Memcached Caching

        +

        Multiple Memcached servers can be specified in the memcached.php +configuration file, located in the _application/config/* directory.

        +

        All of the methods listed above can be accessed without passing a +specific adapter to the driver loader as follows:

        +
        $this->load->driver('cache');
        +$this->cache->memcached->save('foo', 'bar', 10);
        +
        +
        +

        For more information on Memcached, please see +http://php.net/memcached.

        +
        +
        +

        WinCache Caching

        +

        Under Windows, you can also utilize the WinCache driver.

        +

        All of the methods listed above can be accessed without passing a +specific adapter to the driver loader as follows:

        +
        $this->load->driver('cache');
        +$this->cache->wincache->save('foo', 'bar', 10);
        +
        +
        +

        For more information on WinCache, please see +http://php.net/wincache.

        +
        +
        +

        Redis Caching

        +

        Redis is an in-memory key-value store which can operate in LRU cache mode. +To use it, you need Redis server and phpredis PHP extension.

        +

        Config options to connect to redis server must be stored in the application/config/redis.php file. +Available options are:

        +
        $config['socket_type'] = 'tcp'; //`tcp` or `unix`
        +$config['socket'] = '/var/run/redis.sock'; // in case of `unix` socket type
        +$config['host'] = '127.0.0.1';
        +$config['password'] = NULL;
        +$config['port'] = 6379;
        +$config['timeout'] = 0;
        +
        +
        +

        All of the methods listed above can be accessed without passing a +specific adapter to the driver loader as follows:

        +
        $this->load->driver('cache');
        +$this->cache->redis->save('foo', 'bar', 10);
        +
        +
        +

        For more information on Redis, please see +http://redis.io.

        +
        +
        +

        Dummy Cache

        +

        This is a caching backend that will always ‘miss.’ It stores no data, +but lets you keep your caching code in place in environments that don’t +support your chosen cache.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/calendar.html b/sna/user_guide/libraries/calendar.html new file mode 100644 index 0000000..554847d --- /dev/null +++ b/sna/user_guide/libraries/calendar.html @@ -0,0 +1,973 @@ + + + + + + + + + + Calendaring Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Calendaring Class

        +

        The Calendar class enables you to dynamically create calendars. Your +calendars can be formatted through the use of a calendar template, +allowing 100% control over every aspect of its design. In addition, you +can pass data to your calendar cells.

        + +
        +

        Using the Calendaring Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Calendar class is +initialized in your controller using the $this->load->library function:

        +
        $this->load->library('calendar');
        +
        +
        +

        Once loaded, the Calendar object will be available using:

        +
        $this->calendar
        +
        +
        +
        +
        +

        Displaying a Calendar

        +

        Here is a very simple example showing how you can display a calendar:

        +
        $this->load->library('calendar');
        +echo $this->calendar->generate();
        +
        +
        +

        The above code will generate a calendar for the current month/year based +on your server time. To show a calendar for a specific month and year +you will pass this information to the calendar generating function:

        +
        $this->load->library('calendar');
        +echo $this->calendar->generate(2006, 6);
        +
        +
        +

        The above code will generate a calendar showing the month of June in +2006. The first parameter specifies the year, the second parameter +specifies the month.

        +
        +
        +

        Passing Data to your Calendar Cells

        +

        To add data to your calendar cells involves creating an associative +array in which the keys correspond to the days you wish to populate and +the array value contains the data. The array is passed to the third +parameter of the calendar generating function. Consider this example:

        +
        $this->load->library('calendar');
        +
        +$data = array(
        +        3  => 'http://example.com/news/article/2006/06/03/',
        +        7  => 'http://example.com/news/article/2006/06/07/',
        +        13 => 'http://example.com/news/article/2006/06/13/',
        +        26 => 'http://example.com/news/article/2006/06/26/'
        +);
        +
        +echo $this->calendar->generate(2006, 6, $data);
        +
        +
        +

        Using the above example, day numbers 3, 7, 13, and 26 will become links +pointing to the URLs you’ve provided.

        +
        +

        Note

        +

        By default it is assumed that your array will contain links. +In the section that explains the calendar template below you’ll see how +you can customize how data passed to your cells is handled so you can +pass different types of information.

        +
        +
        +
        +

        Setting Display Preferences

        +

        There are seven preferences you can set to control various aspects of +the calendar. Preferences are set by passing an array of preferences in +the second parameter of the loading function. Here is an example:

        +
        $prefs = array(
        +        'start_day'    => 'saturday',
        +        'month_type'   => 'long',
        +        'day_type'     => 'short'
        +);
        +
        +$this->load->library('calendar', $prefs);
        +
        +echo $this->calendar->generate();
        +
        +
        +

        The above code would start the calendar on saturday, use the “long” +month heading, and the “short” day names. More information regarding +preferences below.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefaultOptionsDescription
        templateNoneNone
        +
        A string or array containing your calendar template.
        +
        See the template section below.
        +
        +
        local_timetime()NoneA Unix timestamp corresponding to the current time.
        start_daysundayAny week day (sunday, monday, tuesday, etc.)Sets the day of the week the calendar should start on.
        month_typelonglong, short
        +
        Determines what version of the month name to use in the header.
        +
        long = January, short = Jan.
        +
        +
        day_typeabrlong, short, abr
        +
        Determines what version of the weekday names to use in
        +
        the column headers. long = Sunday, short = Sun, abr = Su.
        +
        +
        show_next_prevFALSETRUE/FALSE (boolean)
        +
        Determines whether to display links allowing you to toggle
        +
        to next/previous months. See information on this feature below.
        +
        +
        next_prev_urlcontroller/methodA URLSets the basepath used in the next/previous calendar links.
        show_other_daysFALSETRUE/FALSE (boolean)
        +
        Determines whether to display days of other months that share the
        +
        first or last week of the calendar month.
        +
        +
        +
        + +
        +

        Creating a Calendar Template

        +

        By creating a calendar template you have 100% control over the design of +your calendar. Using the string method, each component of your calendar +will be placed within a pair of pseudo-variables as shown here:

        +
        $prefs['template'] = '
        +
        +        {table_open}<table border="0" cellpadding="0" cellspacing="0">{/table_open}
        +
        +        {heading_row_start}<tr>{/heading_row_start}
        +
        +        {heading_previous_cell}<th><a href="{previous_url}">&lt;&lt;</a></th>{/heading_previous_cell}
        +        {heading_title_cell}<th colspan="{colspan}">{heading}</th>{/heading_title_cell}
        +        {heading_next_cell}<th><a href="{next_url}">&gt;&gt;</a></th>{/heading_next_cell}
        +
        +        {heading_row_end}</tr>{/heading_row_end}
        +
        +        {week_row_start}<tr>{/week_row_start}
        +        {week_day_cell}<td>{week_day}</td>{/week_day_cell}
        +        {week_row_end}</tr>{/week_row_end}
        +
        +        {cal_row_start}<tr>{/cal_row_start}
        +        {cal_cell_start}<td>{/cal_cell_start}
        +        {cal_cell_start_today}<td>{/cal_cell_start_today}
        +        {cal_cell_start_other}<td class="other-month">{/cal_cell_start_other}
        +
        +        {cal_cell_content}<a href="{content}">{day}</a>{/cal_cell_content}
        +        {cal_cell_content_today}<div class="highlight"><a href="{content}">{day}</a></div>{/cal_cell_content_today}
        +
        +        {cal_cell_no_content}{day}{/cal_cell_no_content}
        +        {cal_cell_no_content_today}<div class="highlight">{day}</div>{/cal_cell_no_content_today}
        +
        +        {cal_cell_blank}&nbsp;{/cal_cell_blank}
        +
        +        {cal_cell_other}{day}{/cal_cel_other}
        +
        +        {cal_cell_end}</td>{/cal_cell_end}
        +        {cal_cell_end_today}</td>{/cal_cell_end_today}
        +        {cal_cell_end_other}</td>{/cal_cell_end_other}
        +        {cal_row_end}</tr>{/cal_row_end}
        +
        +        {table_close}</table>{/table_close}
        +';
        +
        +$this->load->library('calendar', $prefs);
        +
        +echo $this->calendar->generate();
        +
        +
        +

        Using the array method, you will pass key => value pairs. You can pass as +many or as few values as you’d like. Omitted keys will use the default values +inherited in the calendar class.

        +

        Example:

        +
        $prefs['template'] = array(
        +        'table_open'           => '<table class="calendar">',
        +        'cal_cell_start'       => '<td class="day">',
        +        'cal_cell_start_today' => '<td class="today">'
        +);
        +
        +$this->load->library('calendar', $prefs);
        +
        +echo $this->calendar->generate();
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Calendar
        +
        +
        +initialize([$config = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $config (array) – Configuration parameters
        • +
        +
        Returns:

        CI_Calendar instance (method chaining)

        +
        Return type:

        CI_Calendar

        +
        +

        Initializes the Calendaring preferences. Accepts an associative array as input, containing display preferences.

        +
        + +
        +
        +generate([$year = ''[, $month = ''[, $data = array()]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $year (int) – Year
        • +
        • $month (int) – Month
        • +
        • $data (array) – Data to be shown in the calendar cells
        • +
        +
        Returns:

        HTML-formatted calendar

        +
        Return type:

        string

        +
        +

        Generate the calendar.

        +
        + +
        +
        +get_month_name($month)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $month (int) – Month
        • +
        +
        Returns:

        Month name

        +
        Return type:

        string

        +
        +

        Generates a textual month name based on the numeric month provided.

        +
        + +
        +
        +get_day_names($day_type = '')
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $day_type (string) – ‘long’, ‘short’, or ‘abr’
        • +
        +
        Returns:

        Array of day names

        +
        Return type:

        array

        +
        +

        Returns an array of day names (Sunday, Monday, etc.) based on the type +provided. Options: long, short, abr. If no $day_type is provided (or +if an invalid type is provided) this method will return the “abbreviated” +style.

        +
        + +
        +
        +adjust_date($month, $year)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $month (int) – Month
        • +
        • $year (int) – Year
        • +
        +
        Returns:

        An associative array containing month and year

        +
        Return type:

        array

        +
        +

        This method makes sure that you have a valid month/year. For example, if +you submit 13 as the month, the year will increment and the month will +become January:

        +
        print_r($this->calendar->adjust_date(13, 2014));
        +
        +
        +

        outputs:

        +
        Array
        +(
        +        [month] => '01'
        +        [year] => '2015'
        +)
        +
        +
        +
        + +
        +
        +get_total_days($month, $year)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $month (int) – Month
        • +
        • $year (int) – Year
        • +
        +
        Returns:

        Count of days in the specified month

        +
        Return type:

        int

        +
        +

        Total days in a given month:

        +
        echo $this->calendar->get_total_days(2, 2012);
        +// 29
        +
        +
        +
        +

        Note

        +

        This method is an alias for Date Helper function days_in_month().

        +
        +
        + +
        +
        +default_template()
        +
        +++ + + + + + +
        Returns:An array of template values
        Return type:array
        +

        Sets the default template. This method is used when you have not created +your own template.

        +
        + +
        +
        +parse_template()
        +
        +++ + + + + + +
        Returns:CI_Calendar instance (method chaining)
        Return type:CI_Calendar
        +

        Harvests the data within the template {pseudo-variables} used to +display the calendar.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/cart.html b/sna/user_guide/libraries/cart.html new file mode 100644 index 0000000..148a6cf --- /dev/null +++ b/sna/user_guide/libraries/cart.html @@ -0,0 +1,1026 @@ + + + + + + + + + + Shopping Cart Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • Shopping Cart Class
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Shopping Cart Class

        +

        The Cart Class permits items to be added to a session that stays active +while a user is browsing your site. These items can be retrieved and +displayed in a standard “shopping cart” format, allowing the user to +update the quantity or remove items from the cart.

        +
        +

        Important

        +

        The Cart library is DEPRECATED and should not be used. +It is currently only kept for backwards compatibility.

        +
        +

        Please note that the Cart Class ONLY provides the core “cart” +functionality. It does not provide shipping, credit card authorization, +or other processing components.

        + +
        +

        Using the Cart Class

        +
        +

        Initializing the Shopping Cart Class

        +
        +

        Important

        +

        The Cart class utilizes CodeIgniter’s Session +Class to save the cart information to a database, so +before using the Cart class you must set up a database table as +indicated in the Session Documentation, and set the +session preferences in your application/config/config.php file to +utilize a database.

        +
        +

        To initialize the Shopping Cart Class in your controller constructor, +use the $this->load->library() method:

        +
        $this->load->library('cart');
        +
        +
        +

        Once loaded, the Cart object will be available using:

        +
        $this->cart
        +
        +
        +
        +

        Note

        +

        The Cart Class will load and initialize the Session Class +automatically, so unless you are using sessions elsewhere in your +application, you do not need to load the Session class.

        +
        +
        +
        +

        Adding an Item to The Cart

        +

        To add an item to the shopping cart, simply pass an array with the +product information to the $this->cart->insert() method, as shown +below:

        +
        $data = array(
        +        'id'      => 'sku_123ABC',
        +        'qty'     => 1,
        +        'price'   => 39.95,
        +        'name'    => 'T-Shirt',
        +        'options' => array('Size' => 'L', 'Color' => 'Red')
        +);
        +
        +$this->cart->insert($data);
        +
        +
        +
        +

        Important

        +

        The first four array indexes above (id, qty, price, and +name) are required. If you omit any of them the data will not be +saved to the cart. The fifth index (options) is optional. It is intended +to be used in cases where your product has options associated with it. +Use an array for options, as shown above.

        +
        +

        The five reserved indexes are:

        +
          +
        • id - Each product in your store must have a unique identifier. +Typically this will be an “sku” or other such identifier.
        • +
        • qty - The quantity being purchased.
        • +
        • price - The price of the item.
        • +
        • name - The name of the item.
        • +
        • options - Any additional attributes that are needed to identify +the product. These must be passed via an array.
        • +
        +

        In addition to the five indexes above, there are two reserved words: +rowid and subtotal. These are used internally by the Cart class, so +please do NOT use those words as index names when inserting data into +the cart.

        +

        Your array may contain additional data. Anything you include in your +array will be stored in the session. However, it is best to standardize +your data among all your products in order to make displaying the +information in a table easier.

        +
        $data = array(
        +        'id'      => 'sku_123ABC',
        +        'qty'     => 1,
        +        'price'   => 39.95,
        +        'name'    => 'T-Shirt',
        +        'coupon'         => 'XMAS-50OFF'
        +);
        +
        +$this->cart->insert($data);
        +
        +
        +

        The insert() method will return the $rowid if you successfully insert a +single item.

        +
        +
        +

        Adding Multiple Items to The Cart

        +

        By using a multi-dimensional array, as shown below, it is possible to +add multiple products to the cart in one action. This is useful in cases +where you wish to allow people to select from among several items on the +same page.

        +
        $data = array(
        +        array(
        +                'id'      => 'sku_123ABC',
        +                'qty'     => 1,
        +                'price'   => 39.95,
        +                'name'    => 'T-Shirt',
        +                'options' => array('Size' => 'L', 'Color' => 'Red')
        +        ),
        +        array(
        +                'id'      => 'sku_567ZYX',
        +                'qty'     => 1,
        +                'price'   => 9.95,
        +                'name'    => 'Coffee Mug'
        +        ),
        +        array(
        +                'id'      => 'sku_965QRS',
        +                'qty'     => 1,
        +                'price'   => 29.95,
        +                'name'    => 'Shot Glass'
        +        )
        +);
        +
        +$this->cart->insert($data);
        +
        +
        +
        +
        +

        Displaying the Cart

        +

        To display the cart you will create a view +file with code similar to the one shown below.

        +

        Please note that this example uses the form +helper.

        +
        <?php echo form_open('path/to/controller/update/method'); ?>
        +
        +<table cellpadding="6" cellspacing="1" style="width:100%" border="0">
        +
        +<tr>
        +        <th>QTY</th>
        +        <th>Item Description</th>
        +        <th style="text-align:right">Item Price</th>
        +        <th style="text-align:right">Sub-Total</th>
        +</tr>
        +
        +<?php $i = 1; ?>
        +
        +<?php foreach ($this->cart->contents() as $items): ?>
        +
        +        <?php echo form_hidden($i.'[rowid]', $items['rowid']); ?>
        +
        +        <tr>
        +                <td><?php echo form_input(array('name' => $i.'[qty]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5')); ?></td>
        +                <td>
        +                        <?php echo $items['name']; ?>
        +
        +                        <?php if ($this->cart->has_options($items['rowid']) == TRUE): ?>
        +
        +                                <p>
        +                                        <?php foreach ($this->cart->product_options($items['rowid']) as $option_name => $option_value): ?>
        +
        +                                                <strong><?php echo $option_name; ?>:</strong> <?php echo $option_value; ?><br />
        +
        +                                        <?php endforeach; ?>
        +                                </p>
        +
        +                        <?php endif; ?>
        +
        +                </td>
        +                <td style="text-align:right"><?php echo $this->cart->format_number($items['price']); ?></td>
        +                <td style="text-align:right">$<?php echo $this->cart->format_number($items['subtotal']); ?></td>
        +        </tr>
        +
        +<?php $i++; ?>
        +
        +<?php endforeach; ?>
        +
        +<tr>
        +        <td colspan="2"> </td>
        +        <td class="right"><strong>Total</strong></td>
        +        <td class="right">$<?php echo $this->cart->format_number($this->cart->total()); ?></td>
        +</tr>
        +
        +</table>
        +
        +<p><?php echo form_submit('', 'Update your Cart'); ?></p>
        +
        +
        +
        +
        +

        Updating The Cart

        +

        To update the information in your cart, you must pass an array +containing the Row ID and one or more pre-defined properties to the +$this->cart->update() method.

        +
        +

        Note

        +

        If the quantity is set to zero, the item will be removed from +the cart.

        +
        +
        $data = array(
        +        'rowid' => 'b99ccdf16028f015540f341130b6d8ec',
        +        'qty'   => 3
        +);
        +
        +$this->cart->update($data);
        +
        +// Or a multi-dimensional array
        +
        +$data = array(
        +        array(
        +                'rowid'   => 'b99ccdf16028f015540f341130b6d8ec',
        +                'qty'     => 3
        +        ),
        +        array(
        +                'rowid'   => 'xw82g9q3r495893iajdh473990rikw23',
        +                'qty'     => 4
        +        ),
        +        array(
        +                'rowid'   => 'fh4kdkkkaoe30njgoe92rkdkkobec333',
        +                'qty'     => 2
        +        )
        +);
        +
        +$this->cart->update($data);
        +
        +
        +

        You may also update any property you have previously defined when +inserting the item such as options, price or other custom fields.

        +
        $data = array(
        +        'rowid'  => 'b99ccdf16028f015540f341130b6d8ec',
        +        'qty'    => 1,
        +        'price'  => 49.95,
        +        'coupon' => NULL
        +);
        +
        +$this->cart->update($data);
        +
        +
        +
        +

        What is a Row ID?

        +

        The row ID is a unique identifier that is generated by the cart code +when an item is added to the cart. The reason a unique ID is created +is so that identical products with different options can be managed +by the cart.

        +

        For example, let’s say someone buys two identical t-shirts (same product +ID), but in different sizes. The product ID (and other attributes) will +be identical for both sizes because it’s the same shirt. The only +difference will be the size. The cart must therefore have a means of +identifying this difference so that the two sizes of shirts can be +managed independently. It does so by creating a unique “row ID” based on +the product ID and any options associated with it.

        +

        In nearly all cases, updating the cart will be something the user does +via the “view cart” page, so as a developer, it is unlikely that you +will ever have to concern yourself with the “row ID”, other than making +sure your “view cart” page contains this information in a hidden form +field, and making sure it gets passed to the update() method when +the update form is submitted. Please examine the construction of the +“view cart” page above for more information.

        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Cart
        +
        +
        +$product_id_rules = '.a-z0-9_-'
        +

        These are the regular expression rules that we use to validate the product +ID - alpha-numeric, dashes, underscores, or periods by default

        +
        + +
        +
        +$product_name_rules = 'w -.:'
        +

        These are the regular expression rules that we use to validate the product ID and product name - alpha-numeric, dashes, underscores, colons or periods by +default

        +
        + +
        +
        +$product_name_safe = TRUE
        +

        Whether or not to only allow safe product names. Default TRUE.

        +
        + +
        +
        +insert([$items = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $items (array) – Items to insert into the cart
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Insert items into the cart and save it to the session table. Returns TRUE +on success and FALSE on failure.

        +
        + +
        +
        +update([$items = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $items (array) – Items to update in the cart
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        This method permits changing the properties of a given item. +Typically it is called from the “view cart” page if a user makes changes +to the quantity before checkout. That array must contain the rowid +for each item.

        +
        + +
        +
        +remove($rowid)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $rowid (int) – ID of the item to remove from the cart
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Allows you to remove an item from the shopping cart by passing it the +$rowid.

        +
        + +
        +
        +total()
        +
        +++ + + + + + +
        Returns:Total amount
        Return type:int
        +

        Displays the total amount in the cart.

        +
        + +
        +
        +total_items()
        +
        +++ + + + + + +
        Returns:Total amount of items in the cart
        Return type:int
        +

        Displays the total number of items in the cart.

        +
        + +
        +
        +contents([$newest_first = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $newest_first (bool) – Whether to order the array with newest items first
        • +
        +
        Returns:

        An array of cart contents

        +
        Return type:

        array

        +
        +

        Returns an array containing everything in the cart. You can sort the +order by which the array is returned by passing it TRUE where the contents +will be sorted from newest to oldest, otherwise it is sorted from oldest +to newest.

        +
        + +
        +
        +get_item($row_id)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $row_id (int) – Row ID to retrieve
        • +
        +
        Returns:

        Array of item data

        +
        Return type:

        array

        +
        +

        Returns an array containing data for the item matching the specified row +ID, or FALSE if no such item exists.

        +
        + +
        +
        +has_options($row_id = '')
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $row_id (int) – Row ID to inspect
        • +
        +
        Returns:

        TRUE if options exist, FALSE otherwise

        +
        Return type:

        bool

        +
        +

        Returns TRUE (boolean) if a particular row in the cart contains options. +This method is designed to be used in a loop with contents(), since +you must pass the rowid to this method, as shown in the Displaying +the Cart example above.

        +
        + +
        +
        +product_options([$row_id = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $row_id (int) – Row ID
        • +
        +
        Returns:

        Array of product options

        +
        Return type:

        array

        +
        +

        Returns an array of options for a particular product. This method is +designed to be used in a loop with contents(), since you +must pass the rowid to this method, as shown in the Displaying the +Cart example above.

        +
        + +
        +
        +destroy()
        +
        +++ + + + +
        Return type:void
        +

        Permits you to destroy the cart. This method will likely be called +when you are finished processing the customer’s order.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/config.html b/sna/user_guide/libraries/config.html new file mode 100644 index 0000000..d9ca933 --- /dev/null +++ b/sna/user_guide/libraries/config.html @@ -0,0 +1,835 @@ + + + + + + + + + + Config Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Config Class

        +

        The Config class provides a means to retrieve configuration preferences. +These preferences can come from the default config file +(application/config/config.php) or from your own custom config files.

        +
        +

        Note

        +

        This class is initialized automatically by the system so there +is no need to do it manually.

        +
        + +
        +

        Working with the Config Class

        +
        +

        Anatomy of a Config File

        +

        By default, CodeIgniter has one primary config file, located at +application/config/config.php. If you open the file using your text +editor you’ll see that config items are stored in an array called +$config.

        +

        You can add your own config items to this file, or if you prefer to keep +your configuration items separate (assuming you even need config items), +simply create your own file and save it in config folder.

        +
        +

        Note

        +

        If you do create your own config files use the same format as +the primary one, storing your items in an array called $config. +CodeIgniter will intelligently manage these files so there will be no +conflict even though the array has the same name (assuming an array +index is not named the same as another).

        +
        +
        +
        +

        Loading a Config File

        +
        +

        Note

        +

        CodeIgniter automatically loads the primary config file +(application/config/config.php), so you will only need to load a config +file if you have created your own.

        +
        +

        There are two ways to load a config file:

        +
        +

        Manual Loading

        +

        To load one of your custom config files you will use the following +function within the controller that +needs it:

        +
        $this->config->load('filename');
        +
        +
        +

        Where filename is the name of your config file, without the .php file +extension.

        +

        If you need to load multiple config files normally they will be +merged into one master config array. Name collisions can occur, +however, if you have identically named array indexes in different +config files. To avoid collisions you can set the second parameter to +TRUE and each config file will be stored in an array index +corresponding to the name of the config file. Example:

        +
        // Stored in an array with this prototype: $this->config['blog_settings'] = $config
        +$this->config->load('blog_settings', TRUE);
        +
        +
        +

        Please see the section entitled Fetching Config Items below to learn +how to retrieve config items set this way.

        +

        The third parameter allows you to suppress errors in the event that a +config file does not exist:

        +
        $this->config->load('blog_settings', FALSE, TRUE);
        +
        +
        +
        +
        +

        Auto-loading

        +

        If you find that you need a particular config file globally, you can +have it loaded automatically by the system. To do this, open the +autoload.php file, located at application/config/autoload.php, +and add your config file as indicated in the file.

        +
        +
        +
        +

        Fetching Config Items

        +

        To retrieve an item from your config file, use the following function:

        +
        $this->config->item('item_name');
        +
        +
        +

        Where item_name is the $config array index you want to retrieve. For +example, to fetch your language choice you’ll do this:

        +
        $lang = $this->config->item('language');
        +
        +
        +

        The function returns NULL if the item you are trying to fetch +does not exist.

        +

        If you are using the second parameter of the $this->config->load +function in order to assign your config items to a specific index you +can retrieve it by specifying the index name in the second parameter of +the $this->config->item() function. Example:

        +
        // Loads a config file named blog_settings.php and assigns it to an index named "blog_settings"
        +$this->config->load('blog_settings', TRUE);
        +
        +// Retrieve a config item named site_name contained within the blog_settings array
        +$site_name = $this->config->item('site_name', 'blog_settings');
        +
        +// An alternate way to specify the same item:
        +$blog_config = $this->config->item('blog_settings');
        +$site_name = $blog_config['site_name'];
        +
        +
        +
        +
        +

        Setting a Config Item

        +

        If you would like to dynamically set a config item or change an existing +one, you can do so using:

        +
        $this->config->set_item('item_name', 'item_value');
        +
        +
        +

        Where item_name is the $config array index you want to change, and +item_value is its value.

        +
        +
        +

        Environments

        +

        You may load different configuration files depending on the current +environment. The ENVIRONMENT constant is defined in index.php, and is +described in detail in the Handling +Environments section.

        +

        To create an environment-specific configuration file, create or copy a +configuration file in application/config/{ENVIRONMENT}/{FILENAME}.php

        +

        For example, to create a production-only config.php, you would:

        +
          +
        1. Create the directory application/config/production/
        2. +
        3. Copy your existing config.php into the above directory
        4. +
        5. Edit application/config/production/config.php so it contains your +production settings
        6. +
        +

        When you set the ENVIRONMENT constant to ‘production’, the settings for +your new production-only config.php will be loaded.

        +

        You can place the following configuration files in environment-specific +folders:

        +
          +
        • Default CodeIgniter configuration files
        • +
        • Your own custom configuration files
        • +
        +
        +

        Note

        +

        CodeIgniter always loads the global config file first (i.e., the one in application/config/), +then tries to load the configuration files for the current environment. +This means you are not obligated to place all of your configuration files in an +environment folder. Only the files that change per environment. Additionally you don’t +have to copy all the config items in the environment config file. Only the config items +that you wish to change for your environment. The config items declared in your environment +folders always overwrite those in your global config files.

        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Config
        +
        +
        +$config
        +

        Array of all loaded config values

        +
        + +
        +
        +$is_loaded
        +

        Array of all loaded config files

        +
        + +
        +
        +item($item[, $index=''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $item (string) – Config item name
        • +
        • $index (string) – Index name
        • +
        +
        Returns:

        Config item value or NULL if not found

        +
        Return type:

        mixed

        +
        +

        Fetch a config file item.

        +
        + +
        +
        +set_item($item, $value)
        +
        +++ + + + + + +
        Parameters:
          +
        • $item (string) – Config item name
        • +
        • $value (string) – Config item value
        • +
        +
        Return type:

        void

        +
        +

        Sets a config file item to the specified value.

        +
        + +
        +
        +slash_item($item)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $item (string) – config item name
        • +
        +
        Returns:

        Config item value with a trailing forward slash or NULL if not found

        +
        Return type:

        mixed

        +
        +

        This method is identical to item(), except it appends a forward +slash to the end of the item, if it exists.

        +
        + +
        +
        +load([$file = ''[, $use_sections = FALSE[, $fail_gracefully = FALSE]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $file (string) – Configuration file name
        • +
        • $use_sections (bool) – Whether config values should be loaded into their own section (index of the main config array)
        • +
        • $fail_gracefully (bool) – Whether to return FALSE or to display an error message
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Loads a configuration file.

        +
        + +
        +
        +site_url()
        +
        +++ + + + + + +
        Returns:Site URL
        Return type:string
        +

        This method retrieves the URL to your site, along with the “index” value +you’ve specified in the config file.

        +

        This method is normally accessed via the corresponding functions in the +URL Helper.

        +
        + +
        +
        +base_url()
        +
        +++ + + + + + +
        Returns:Base URL
        Return type:string
        +

        This method retrieves the URL to your site, plus an optional path such +as to a stylesheet or image.

        +

        This method is normally accessed via the corresponding functions in the +URL Helper.

        +
        + +
        +
        +system_url()
        +
        +++ + + + + + +
        Returns:URL pointing at your CI system/ directory
        Return type:string
        +

        This method retrieves the URL to your CodeIgniter system/ directory.

        +
        +

        Note

        +

        This method is DEPRECATED because it encourages usage of +insecure coding practices. Your system/ directory shouldn’t +be publicly accessible.

        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/email.html b/sna/user_guide/libraries/email.html new file mode 100644 index 0000000..30c6f9c --- /dev/null +++ b/sna/user_guide/libraries/email.html @@ -0,0 +1,1219 @@ + + + + + + + + + + Email Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Email Class

        +

        CodeIgniter’s robust Email Class supports the following features:

        +
          +
        • Multiple Protocols: Mail, Sendmail, and SMTP
        • +
        • TLS and SSL Encryption for SMTP
        • +
        • Multiple recipients
        • +
        • CC and BCCs
        • +
        • HTML or Plaintext email
        • +
        • Attachments
        • +
        • Word wrapping
        • +
        • Priorities
        • +
        • BCC Batch Mode, enabling large email lists to be broken into small +BCC batches.
        • +
        • Email Debugging tools
        • +
        + +
        +

        Using the Email Library

        +
        +

        Sending Email

        +

        Sending email is not only simple, but you can configure it on the fly or +set your preferences in a config file.

        +

        Here is a basic example demonstrating how you might send email. Note: +This example assumes you are sending the email from one of your +controllers.

        +
        $this->load->library('email');
        +
        +$this->email->from('your@example.com', 'Your Name');
        +$this->email->to('someone@example.com');
        +$this->email->cc('another@another-example.com');
        +$this->email->bcc('them@their-example.com');
        +
        +$this->email->subject('Email Test');
        +$this->email->message('Testing the email class.');
        +
        +$this->email->send();
        +
        +
        +
        +
        +

        Setting Email Preferences

        +

        There are 21 different preferences available to tailor how your email +messages are sent. You can either set them manually as described here, +or automatically via preferences stored in your config file, described +below:

        +

        Preferences are set by passing an array of preference values to the +email initialize method. Here is an example of how you might set some +preferences:

        +
        $config['protocol'] = 'sendmail';
        +$config['mailpath'] = '/usr/sbin/sendmail';
        +$config['charset'] = 'iso-8859-1';
        +$config['wordwrap'] = TRUE;
        +
        +$this->email->initialize($config);
        +
        +
        +
        +

        Note

        +

        Most of the preferences have default values that will be used +if you do not set them.

        +
        +
        +

        Setting Email Preferences in a Config File

        +

        If you prefer not to set preferences using the above method, you can +instead put them into a config file. Simply create a new file called the +email.php, add the $config array in that file. Then save the file at +config/email.php and it will be used automatically. You will NOT need to +use the $this->email->initialize() method if you save your +preferences in a config file.

        +
        +
        +
        +

        Email Preferences

        +

        The following is a list of all the preferences that can be set when +sending email.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefault ValueOptionsDescription
        useragentCodeIgniterNoneThe “user agent”.
        protocolmailmail, sendmail, or smtpThe mail sending protocol.
        mailpath/usr/sbin/sendmailNoneThe server path to Sendmail.
        smtp_hostNo DefaultNoneSMTP Server Address.
        smtp_userNo DefaultNoneSMTP Username.
        smtp_passNo DefaultNoneSMTP Password.
        smtp_port25NoneSMTP Port.
        smtp_timeout5NoneSMTP Timeout (in seconds).
        smtp_keepaliveFALSETRUE or FALSE (boolean)Enable persistent SMTP connections.
        smtp_cryptoNo Defaulttls or sslSMTP Encryption
        wordwrapTRUETRUE or FALSE (boolean)Enable word-wrap.
        wrapchars76 Character count to wrap at.
        mailtypetexttext or htmlType of mail. If you send HTML email you must send it as a complete web +page. Make sure you don’t have any relative links or relative image +paths otherwise they will not work.
        charset$config['charset'] Character set (utf-8, iso-8859-1, etc.).
        validateFALSETRUE or FALSE (boolean)Whether to validate the email address.
        priority31, 2, 3, 4, 5Email Priority. 1 = highest. 5 = lowest. 3 = normal.
        crlf\n“\r\n” or “\n” or “\r”Newline character. (Use “\r\n” to comply with RFC 822).
        newline\n“\r\n” or “\n” or “\r”Newline character. (Use “\r\n” to comply with RFC 822).
        bcc_batch_modeFALSETRUE or FALSE (boolean)Enable BCC Batch Mode.
        bcc_batch_size200NoneNumber of emails in each BCC batch.
        dsnFALSETRUE or FALSE (boolean)Enable notify message from server
        +
        +
        +

        Overriding Word Wrapping

        +

        If you have word wrapping enabled (recommended to comply with RFC 822) +and you have a very long link in your email it can get wrapped too, +causing it to become un-clickable by the person receiving it. +CodeIgniter lets you manually override word wrapping within part of your +message like this:

        +
        The text of your email that
        +gets wrapped normally.
        +
        +{unwrap}http://example.com/a_long_link_that_should_not_be_wrapped.html{/unwrap}
        +
        +More text that will be
        +wrapped normally.
        +
        +
        +

        Place the item you do not want word-wrapped between: {unwrap} {/unwrap}

        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Email
        +
        +
        +from($from[, $name = ''[, $return_path = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $from (string) – “From” e-mail address
        • +
        • $name (string) – “From” display name
        • +
        • $return_path (string) – Optional email address to redirect undelivered e-mail to
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the email address and name of the person sending the email:

        +
        $this->email->from('you@example.com', 'Your Name');
        +
        +
        +

        You can also set a Return-Path, to help redirect undelivered mail:

        +
        $this->email->from('you@example.com', 'Your Name', 'returned_emails@example.com');
        +
        +
        +
        +

        Note

        +

        Return-Path can’t be used if you’ve configured ‘smtp’ as +your protocol.

        +
        +
        + +
        +
        +reply_to($replyto[, $name = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $replyto (string) – E-mail address for replies
        • +
        • $name (string) – Display name for the reply-to e-mail address
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the reply-to address. If the information is not provided the +information in the :meth:from method is used. Example:

        +
        $this->email->reply_to('you@example.com', 'Your Name');
        +
        +
        +
        + +
        +
        +to($to)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $to (mixed) – Comma-delimited string or an array of e-mail addresses
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the email address(s) of the recipient(s). Can be a single e-mail, +a comma-delimited list or an array:

        +
        $this->email->to('someone@example.com');
        +
        +
        +
        $this->email->to('one@example.com, two@example.com, three@example.com');
        +
        +
        +
        $this->email->to(
        +        array('one@example.com', 'two@example.com', 'three@example.com')
        +);
        +
        +
        +
        + +
        +
        +cc($cc)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $cc (mixed) – Comma-delimited string or an array of e-mail addresses
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the CC email address(s). Just like the “to”, can be a single e-mail, +a comma-delimited list or an array.

        +
        + +
        +
        +bcc($bcc[, $limit = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $bcc (mixed) – Comma-delimited string or an array of e-mail addresses
        • +
        • $limit (int) – Maximum number of e-mails to send per batch
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the BCC email address(s). Just like the to() method, can be a single +e-mail, a comma-delimited list or an array.

        +

        If $limit is set, “batch mode” will be enabled, which will send +the emails to batches, with each batch not exceeding the specified +$limit.

        +
        + +
        +
        +subject($subject)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $subject (string) – E-mail subject line
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the email subject:

        +
        $this->email->subject('This is my subject');
        +
        +
        +
        + +
        +
        +message($body)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $body (string) – E-mail message body
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the e-mail message body:

        +
        $this->email->message('This is my message');
        +
        +
        +
        + +
        +
        +set_alt_message($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Alternative e-mail message body
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Sets the alternative e-mail message body:

        +
        $this->email->set_alt_message('This is the alternative message');
        +
        +
        +

        This is an optional message string which can be used if you send +HTML formatted email. It lets you specify an alternative message +with no HTML formatting which is added to the header string for +people who do not accept HTML email. If you do not set your own +message CodeIgniter will extract the message from your HTML email +and strip the tags.

        +
        + +
        +
        +set_header($header, $value)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $header (string) – Header name
        • +
        • $value (string) – Header value
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Appends additional headers to the e-mail:

        +
        $this->email->set_header('Header1', 'Value1');
        +$this->email->set_header('Header2', 'Value2');
        +
        +
        +
        + +
        +
        +clear([$clear_attachments = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $clear_attachments (bool) – Whether or not to clear attachments
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Initializes all the email variables to an empty state. This method +is intended for use if you run the email sending method in a loop, +permitting the data to be reset between cycles.

        +
        foreach ($list as $name => $address)
        +{
        +        $this->email->clear();
        +
        +        $this->email->to($address);
        +        $this->email->from('your@example.com');
        +        $this->email->subject('Here is your info '.$name);
        +        $this->email->message('Hi '.$name.' Here is the info you requested.');
        +        $this->email->send();
        +}
        +
        +
        +

        If you set the parameter to TRUE any attachments will be cleared as +well:

        +
        $this->email->clear(TRUE);
        +
        +
        +
        + +
        +
        +send([$auto_clear = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $auto_clear (bool) – Whether to clear message data automatically
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        The e-mail sending method. Returns boolean TRUE or FALSE based on +success or failure, enabling it to be used conditionally:

        +
        if ( ! $this->email->send())
        +{
        +        // Generate error
        +}
        +
        +
        +

        This method will automatically clear all parameters if the request was +successful. To stop this behaviour pass FALSE:

        +
        if ($this->email->send(FALSE))
        +{
        +        // Parameters won't be cleared
        +}
        +
        +
        +
        +

        Note

        +

        In order to use the print_debugger() method, you need +to avoid clearing the email parameters.

        +
        +
        + +
        +
        +attach($filename[, $disposition = ''[, $newname = NULL[, $mime = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $filename (string) – File name
        • +
        • $disposition (string) – ‘disposition’ of the attachment. Most +email clients make their own decision regardless of the MIME +specification used here. https://www.iana.org/assignments/cont-disp/cont-disp.xhtml
        • +
        • $newname (string) – Custom file name to use in the e-mail
        • +
        • $mime (string) – MIME type to use (useful for buffered data)
        • +
        +
        Returns:

        CI_Email instance (method chaining)

        +
        Return type:

        CI_Email

        +
        +

        Enables you to send an attachment. Put the file path/name in the first +parameter. For multiple attachments use the method multiple times. +For example:

        +
        $this->email->attach('/path/to/photo1.jpg');
        +$this->email->attach('/path/to/photo2.jpg');
        +$this->email->attach('/path/to/photo3.jpg');
        +
        +
        +

        To use the default disposition (attachment), leave the second parameter blank, +otherwise use a custom disposition:

        +
        $this->email->attach('image.jpg', 'inline');
        +
        +
        +

        You can also use a URL:

        +
        $this->email->attach('http://example.com/filename.pdf');
        +
        +
        +

        If you’d like to use a custom file name, you can use the third parameter:

        +
        $this->email->attach('filename.pdf', 'attachment', 'report.pdf');
        +
        +
        +

        If you need to use a buffer string instead of a real - physical - file you can +use the first parameter as buffer, the third parameter as file name and the fourth +parameter as mime-type:

        +
        $this->email->attach($buffer, 'attachment', 'report.pdf', 'application/pdf');
        +
        +
        +
        + +
        +
        +attachment_cid($filename)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $filename (string) – Existing attachment filename
        • +
        +
        Returns:

        Attachment Content-ID or FALSE if not found

        +
        Return type:

        string

        +
        +

        Sets and returns an attachment’s Content-ID, which enables your to embed an inline +(picture) attachment into HTML. First parameter must be the already attached file name.

        +
        $filename = '/img/photo1.jpg';
        +$this->email->attach($filename);
        +foreach ($list as $address)
        +{
        +        $this->email->to($address);
        +        $cid = $this->email->attachment_cid($filename);
        +        $this->email->message('<img src="cid:'. $cid .'" alt="photo1" />');
        +        $this->email->send();
        +}
        +
        +
        +
        +

        Note

        +

        Content-ID for each e-mail must be re-created for it to be unique.

        +
        +
        + +
        +
        +print_debugger([$include = array('headers', 'subject', 'body')])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $include (array) – Which parts of the message to print out
        • +
        +
        Returns:

        Formatted debug data

        +
        Return type:

        string

        +
        +

        Returns a string containing any server messages, the email headers, and +the email message. Useful for debugging.

        +

        You can optionally specify which parts of the message should be printed. +Valid options are: headers, subject, body.

        +

        Example:

        +
        // You need to pass FALSE while sending in order for the email data
        +// to not be cleared - if that happens, print_debugger() would have
        +// nothing to output.
        +$this->email->send(FALSE);
        +
        +// Will only print the email headers, excluding the message subject and body
        +$this->email->print_debugger(array('headers'));
        +
        +
        +
        +

        Note

        +

        By default, all of the raw data will be printed.

        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/encrypt.html b/sna/user_guide/libraries/encrypt.html new file mode 100644 index 0000000..cbcc099 --- /dev/null +++ b/sna/user_guide/libraries/encrypt.html @@ -0,0 +1,788 @@ + + + + + + + + + + Encrypt Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Encrypt Class

        +

        The Encrypt Class provides two-way data encryption. It encrypted using +the Mcrypt PHP extension, which is required for the Encrypt Class to run.

        +
        +

        Important

        +

        This library has been DEPRECATED and is only kept for +backwards compatibility. Please use the new Encryption Library.

        +
        + +
        +

        Using the Encrypt Library

        +
        +

        Setting your Key

        +

        A key is a piece of information that controls the cryptographic +process and permits an encrypted string to be decoded. In fact, the key +you chose will provide the only means to decode data that was +encrypted with that key, so not only must you choose the key carefully, +you must never change it if you intend use it for persistent data.

        +

        It goes without saying that you should guard your key carefully. Should +someone gain access to your key, the data will be easily decoded. If +your server is not totally under your control it’s impossible to ensure +key security so you may want to think carefully before using it for +anything that requires high security, like storing credit card numbers.

        +

        To take maximum advantage of the encryption algorithm, your key should +be 32 characters in length (256 bits). The key should be as random a +string as you can concoct, with numbers and uppercase and lowercase +letters. Your key should not be a simple text string. In order to be +cryptographically secure it needs to be as random as possible.

        +

        Your key can be either stored in your application/config/config.php, or +you can design your own storage mechanism and pass the key dynamically +when encoding/decoding.

        +

        To save your key to your application/config/config.php, open the file +and set:

        +
        $config['encryption_key'] = "YOUR KEY";
        +
        +
        +
        +
        +

        Message Length

        +

        It’s important for you to know that the encoded messages the encryption +function generates will be approximately 2.6 times longer than the +original message. For example, if you encrypt the string “my super +secret data”, which is 21 characters in length, you’ll end up with an +encoded string that is roughly 55 characters (we say “roughly” because +the encoded string length increments in 64 bit clusters, so it’s not +exactly linear). Keep this information in mind when selecting your data +storage mechanism. Cookies, for example, can only hold 4K of +information.

        +
        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Encrypt class is +initialized in your controller using the $this->load->library() +method:

        +
        $this->load->library('encrypt');
        +
        +
        +

        Once loaded, the Encrypt library object will be available using:

        +
        $this->encrypt
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Encrypt
        +
        +
        +encode($string[, $key = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $string (string) – Data to encrypt
        • +
        • $key (string) – Encryption key
        • +
        +
        Returns:

        Encrypted string

        +
        Return type:

        string

        +
        +

        Performs the data encryption and returns it as a string. Example:

        +
        $msg = 'My secret message';
        +
        +$encrypted_string = $this->encrypt->encode($msg);
        +
        +
        +

        You can optionally pass your encryption key via the second parameter if +you don’t want to use the one in your config file:

        +
        $msg = 'My secret message';
        +$key = 'super-secret-key';
        +
        +$encrypted_string = $this->encrypt->encode($msg, $key);
        +
        +
        +
        + +
        +
        +decode($string[, $key = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $string (string) – String to decrypt
        • +
        • $key (string) – Encryption key
        • +
        +
        Returns:

        Plain-text string

        +
        Return type:

        string

        +
        +

        Decrypts an encoded string. Example:

        +
        $encrypted_string = 'APANtByIGI1BpVXZTJgcsAG8GZl8pdwwa84';
        +
        +$plaintext_string = $this->encrypt->decode($encrypted_string);
        +
        +
        +

        You can optionally pass your encryption key via the second parameter if +you don’t want to use the one in your config file:

        +
        $msg = 'My secret message';
        +$key = 'super-secret-key';
        +
        +$encrypted_string = $this->encrypt->decode($msg, $key);
        +
        +
        +
        + +
        +
        +set_cipher($cipher)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $cipher (int) – Valid PHP MCrypt cypher constant
        • +
        +
        Returns:

        CI_Encrypt instance (method chaining)

        +
        Return type:

        CI_Encrypt

        +
        +

        Permits you to set an Mcrypt cipher. By default it uses +MCRYPT_RIJNDAEL_256. Example:

        +
        $this->encrypt->set_cipher(MCRYPT_BLOWFISH);
        +
        +
        +

        Please visit php.net for a list of available ciphers.

        +

        If you’d like to manually test whether your server supports MCrypt you +can use:

        +
        echo extension_loaded('mcrypt') ? 'Yup' : 'Nope';
        +
        +
        +
        + +
        +
        +set_mode($mode)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $mode (int) – Valid PHP MCrypt mode constant
        • +
        +
        Returns:

        CI_Encrypt instance (method chaining)

        +
        Return type:

        CI_Encrypt

        +
        +

        Permits you to set an Mcrypt mode. By default it uses MCRYPT_MODE_CBC. +Example:

        +
        $this->encrypt->set_mode(MCRYPT_MODE_CFB);
        +
        +
        +

        Please visit php.net for a list of available modes.

        +
        + +
        +
        +encode_from_legacy($string[, $legacy_mode = MCRYPT_MODE_ECB[, $key = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $string (string) – String to encrypt
        • +
        • $legacy_mode (int) – Valid PHP MCrypt cipher constant
        • +
        • $key (string) – Encryption key
        • +
        +
        Returns:

        Newly encrypted string

        +
        Return type:

        string

        +
        +

        Enables you to re-encode data that was originally encrypted with +CodeIgniter 1.x to be compatible with the Encrypt library in +CodeIgniter 2.x. It is only necessary to use this method if you have +encrypted data stored permanently such as in a file or database and are +on a server that supports Mcrypt. “Light” use encryption such as +encrypted session data or transitory encrypted flashdata require no +intervention on your part. However, existing encrypted Sessions will be +destroyed since data encrypted prior to 2.x will not be decoded.

        +
        +

        Important

        +

        Why only a method to re-encode the data instead of maintaining legacy +methods for both encoding and decoding? The algorithms in the +Encrypt library have improved in CodeIgniter 2.x both for performance +and security, and we do not wish to encourage continued use of the older +methods. You can of course extend the Encryption library if you wish and +replace the new methods with the old and retain seamless compatibility +with CodeIgniter 1.x encrypted data, but this a decision that a +developer should make cautiously and deliberately, if at all.

        +
        +
        $new_data = $this->encrypt->encode_from_legacy($old_encrypted_string);
        +
        +
        + +++++ + + + + + + + + + + + + + + + + + + + + +
        ParameterDefaultDescription
        $orig_datan/aThe original encrypted data from CodeIgniter 1.x’s Encryption library
        $legacy_modeMCRYPT_MODE_ECBThe Mcrypt mode that was used to generate the original encrypted data. +CodeIgniter 1.x’s default was MCRYPT_MODE_ECB, and it will assume that +to be the case unless overridden by this parameter.
        $keyn/aThe encryption key. This it typically specified in your config file as +outlined above.
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/encryption.html b/sna/user_guide/libraries/encryption.html new file mode 100644 index 0000000..8394b56 --- /dev/null +++ b/sna/user_guide/libraries/encryption.html @@ -0,0 +1,1406 @@ + + + + + + + + + + Encryption Library — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • Encryption Library
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Encryption Library

        +
        +

        Important

        +

        DO NOT use this or any other encryption library for +user password storage! Passwords must be hashed instead, and you +should do that via PHP’s own Password Hashing extension.

        +
        +

        The Encryption Library provides two-way data encryption. To do so in +a cryptographically secure way, it utilizes PHP extensions that are +unfortunately not always available on all systems. +You must meet one of the following dependencies in order to use this +library:

        + +

        If neither of the above dependencies is met, we simply cannot offer +you a good enough implementation to meet the high standards required +for proper cryptography.

        + +
        +

        Using the Encryption Library

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Encryption library is +initialized in your controller using the $this->load->library() +method:

        +
        $this->load->library('encryption');
        +
        +
        +

        Once loaded, the Encryption library object will be available using:

        +
        $this->encryption
        +
        +
        +
        +
        +

        Default behavior

        +

        By default, the Encryption Library will use the AES-128 cipher in CBC +mode, using your configured encryption_key and SHA512 HMAC authentication.

        +
        +

        Note

        +

        AES-128 is chosen both because it is proven to be strong and +because of its wide availability across different cryptographic +software and programming languages’ APIs.

        +
        +

        However, the encryption_key is not used as is.

        +

        If you are somewhat familiar with cryptography, you should already know +that a HMAC also requires a secret key and using the same key for both +encryption and authentication is a bad practice.

        +

        Because of that, two separate keys are derived from your already configured +encryption_key: one for encryption and one for authentication. This is +done via a technique called HMAC-based Key Derivation Function (HKDF).

        +
        +
        +

        Setting your encryption_key

        +

        An encryption key is a piece of information that controls the +cryptographic process and permits a plain-text string to be encrypted, +and afterwards - decrypted. It is the secret “ingredient” in the whole +process that allows you to be the only one who is able to decrypt data +that you’ve decided to hide from the eyes of the public. +After one key is used to encrypt data, that same key provides the only +means to decrypt it, so not only must you chose one carefully, but you +must not lose it or you will also lose access to the data.

        +

        It must be noted that to ensure maximum security, such key should not +only be as strong as possible, but also often changed. Such behavior +however is rarely practical or possible to implement, and that is why +CodeIgniter gives you the ability to configure a single key that is to be +used (almost) every time.

        +

        It goes without saying that you should guard your key carefully. Should +someone gain access to your key, the data will be easily decrypted. If +your server is not totally under your control it’s impossible to ensure +key security so you may want to think carefully before using it for +anything that requires high security, like storing credit card numbers.

        +

        Your encryption key must be as long as the encyption algorithm in use +allows. For AES-128, that’s 128 bits or 16 bytes (charcters) long. +You will find a table below that shows the supported key lengths of +different ciphers.

        +

        The key should be as random as possible and it must not be a regular +text string, nor the output of a hashing function, etc. In order to create +a proper key, you must use the Encryption library’s create_key() method

        +
        // $key will be assigned a 16-byte (128-bit) random key
        +$key = $this->encryption->create_key(16);
        +
        +
        +

        The key can be either stored in your application/config/config.php, or +you can design your own storage mechanism and pass the key dynamically +when encrypting/decrypting.

        +

        To save your key to your application/config/config.php, open the file +and set:

        +
        $config['encryption_key'] = 'YOUR KEY';
        +
        +
        +

        You’ll notice that the create_key() method outputs binary data, which +is hard to deal with (i.e. a copy-paste may damage it), so you may use +bin2hex(), hex2bin() or Base64-encoding to work with the key in +a more friendly manner. For example:

        +
        // Get a hex-encoded representation of the key:
        +$key = bin2hex($this->encryption->create_key(16));
        +
        +// Put the same value in your config with hex2bin(),
        +// so that it is still passed as binary to the library:
        +$config['encryption_key'] = hex2bin(<your hex-encoded key>);
        +
        +
        +
        +
        +

        Supported encryption ciphers and modes

        +
        +

        Note

        +

        The terms ‘cipher’ and ‘encryption algorithm’ are interchangeable.

        +
        +
        +

        Portable ciphers

        +

        Because MCrypt and OpenSSL (also called drivers throughout this document) +each support different sets of encryption algorithms and often implement +them in different ways, our Encryption library is designed to use them in +a portable fashion, or in other words - it enables you to use them +interchangeably, at least for the ciphers supported by both drivers.

        +

        It is also implemented in a way that aims to match the standard +implementations in other programming languages and libraries.

        +

        Here’s a list of the so called “portable” ciphers, where +“CodeIgniter name” is the string value that you’d have to pass to the +Encryption library to use that cipher:

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Cipher nameCodeIgniter nameKey lengths (bits / bytes)Supported modes
        AES-128 / Rijndael-128aes-128128 / 16CBC, CTR, CFB, CFB8, OFB, ECB
        AES-192aes-192192 / 24CBC, CTR, CFB, CFB8, OFB, ECB
        AES-256aes-256256 / 32CBC, CTR, CFB, CFB8, OFB, ECB
        DESdes56 / 7CBC, CFB, CFB8, OFB, ECB
        TripleDEStripledes56 / 7, 112 / 14, 168 / 21CBC, CFB, CFB8, OFB
        Blowfishblowfish128-448 / 16-56CBC, CFB, OFB, ECB
        CAST5 / CAST-128cast588-128 / 11-16CBC, CFB, OFB, ECB
        RC4 / ARCFourrc440-2048 / 5-256Stream
        +
        +

        Important

        +

        Because of how MCrypt works, if you fail to provide a key +with the appropriate length, you might end up using a different +algorithm than the one configured, so be really careful with that!

        +
        +
        +

        Note

        +

        In case it isn’t clear from the above table, Blowfish, CAST5 +and RC4 support variable length keys. That is, any number in the +shown ranges is valid, although in bit terms that only happens +in 8-bit increments.

        +
        +
        +

        Note

        +

        Even though CAST5 supports key lengths lower than 128 bits +(16 bytes), in fact they will just be zero-padded to the +maximum length, as specified in RFC 2144.

        +
        +
        +

        Note

        +

        Blowfish supports key lengths as small as 32 bits (4 bytes), but +our tests have shown that only lengths of 128 bits (16 bytes) or +higher are properly supported by both MCrypt and OpenSSL. It is +also a bad practice to use such low-length keys anyway.

        +
        +
        +
        +

        Driver-specific ciphers

        +

        As noted above, MCrypt and OpenSSL support different sets of encryption +ciphers. For portability reasons and because we haven’t tested them +properly, we do not advise you to use the ones that are driver-specific, +but regardless, here’s a list of most of them:

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Cipher nameDriverKey lengths (bits / bytes)Supported modes
        AES-128OpenSSL128 / 16CBC, CTR, CFB, CFB8, OFB, ECB, XTS
        AES-192OpenSSL192 / 24CBC, CTR, CFB, CFB8, OFB, ECB, XTS
        AES-256OpenSSL256 / 32CBC, CTR, CFB, CFB8, OFB, ECB, XTS
        Rijndael-128MCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        Rijndael-192MCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        Rijndael-256MCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        GOSTMCrypt256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        TwofishMCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        CAST-128MCrypt40-128 / 5-16CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        CAST-256MCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        Loki97MCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        SaferPlusMCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        SerpentMCrypt128 / 16, 192 / 24, 256 / 32CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        XTEAMCrypt128 / 16CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        RC2MCrypt8-1024 / 1-128CBC, CTR, CFB, CFB8, OFB, OFB8, ECB
        RC2OpenSSL8-1024 / 1-128CBC, CFB, OFB, ECB
        Camellia-128OpenSSL128 / 16CBC, CFB, CFB8, OFB, ECB
        Camellia-192OpenSSL192 / 24CBC, CFB, CFB8, OFB, ECB
        Camellia-256OpenSSL256 / 32CBC, CFB, CFB8, OFB, ECB
        SeedOpenSSL128 / 16CBC, CFB, OFB, ECB
        +
        +

        Note

        +

        If you wish to use one of those ciphers, you’d have to pass +its name in lower-case to the Encryption library.

        +
        +
        +

        Note

        +

        You’ve probably noticed that all AES cipers (and Rijndael-128) +are also listed in the portable ciphers list. This is because +drivers support different modes for these ciphers. Also, it is +important to note that AES-128 and Rijndael-128 are actually +the same cipher, but only when used with a 128-bit key.

        +
        +
        +

        Note

        +

        CAST-128 / CAST-5 is also listed in both the portable and +driver-specific ciphers list. This is because OpenSSL’s +implementation doesn’t appear to be working correctly with +key sizes of 80 bits and lower.

        +
        +
        +

        Note

        +

        RC2 is listed as supported by both MCrypt and OpenSSL. +However, both drivers implement them differently and they +are not portable. It is probably worth noting that we only +found one obscure source confirming that it is MCrypt that +is not properly implementing it.

        +
        +
        +
        +

        Encryption modes

        +

        Different modes of encryption have different characteristics and serve +for different purposes. Some are stronger than others, some are faster +and some offer extra features. +We are not going in depth into that here, we’ll leave that to the +cryptography experts. The table below is to provide brief informational +reference to our more experienced users. If you are a beginner, just +stick to the CBC mode - it is widely accepted as strong and secure for +general purposes.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Mode nameCodeIgniter nameDriver supportAdditional info
        CBCcbcMCrypt, OpenSSLA safe default choice
        CTRctrMCrypt, OpenSSLConsidered as theoretically better than CBC, but not as widely available
        CFBcfbMCrypt, OpenSSLN/A
        CFB8cfb8MCrypt, OpenSSLSame as CFB, but operates in 8-bit mode (not recommended).
        OFBofbMCrypt, OpenSSLN/A
        OFB8ofb8MCryptSame as OFB, but operates in 8-bit mode (not recommended).
        ECBecbMCrypt, OpenSSLIgnores IV (not recommended).
        XTSxtsOpenSSLUsually used for encrypting random access data such as RAM or hard-disk storage.
        StreamstreamMCrypt, OpenSSLThis is not actually a mode, it just says that a stream cipher is being used. Required because of the general cipher+mode initialization process.
        +
        +
        +
        +

        Message Length

        +

        It’s probably important for you to know that an encrypted string is usually +longer than the original, plain-text string (depending on the cipher).

        +

        This is influenced by the cipher algorithm itself, the IV prepended to the +cipher-text and the HMAC authentication message that is also prepended. +Furthermore, the encrypted message is also Base64-encoded so that it is safe +for storage and transmission, regardless of a possible character set in use.

        +

        Keep this information in mind when selecting your data storage mechanism. +Cookies, for example, can only hold 4K of information.

        +
        +
        +

        Configuring the library

        +

        For usability, performance, but also historical reasons tied to our old +Encrypt Class, the Encryption library is designed to +use repeatedly the same driver, encryption cipher, mode and key.

        +

        As noted in the “Default behavior” section above, this means using an +auto-detected driver (OpenSSL has a higher priority), the AES-128 ciper +in CBC mode, and your $config['encryption_key'] value.

        +

        If you wish to change that however, you need to use the initialize() +method. It accepts an associative array of parameters, all of which are +optional:

        + ++++ + + + + + + + + + + + + + + + + + + + +
        OptionPossible values
        driver‘mcrypt’, ‘openssl’
        cipherCipher name (see Supported encryption ciphers and modes)
        modeEncryption mode (see Encryption modes)
        keyEncryption key
        +

        For example, if you were to change the encryption algorithm and +mode to AES-256 in CTR mode, this is what you should do:

        +
        $this->encryption->initialize(
        +        array(
        +                'cipher' => 'aes-256',
        +                'mode' => 'ctr',
        +                'key' => '<a 32-character random string>'
        +        )
        +);
        +
        +
        +

        Note that we only mentioned that you want to change the ciper and mode, +but we also included a key in the example. As previously noted, it is +important that you choose a key with a proper size for the used algorithm.

        +

        There’s also the ability to change the driver, if for some reason you +have both, but want to use MCrypt instead of OpenSSL:

        +
        // Switch to the MCrypt driver
        +$this->encryption->initialize(array('driver' => 'mcrypt'));
        +
        +// Switch back to the OpenSSL driver
        +$this->encryption->initialize(array('driver' => 'openssl'));
        +
        +
        +
        +
        +

        Encrypting and decrypting data

        +

        Encrypting and decrypting data with the already configured library +settings is simple. As simple as just passing the string to the +encrypt() and/or decrypt() methods:

        +
        $plain_text = 'This is a plain-text message!';
        +$ciphertext = $this->encryption->encrypt($plain_text);
        +
        +// Outputs: This is a plain-text message!
        +echo $this->encryption->decrypt($ciphertext);
        +
        +
        +

        And that’s it! The Encryption library will do everything necessary +for the whole process to be cryptographically secure out-of-the-box. +You don’t need to worry about it.

        +
        +

        Important

        +

        Both methods will return FALSE in case of an error. +While for encrypt() this can only mean incorrect +configuration, you should always check the return value +of decrypt() in production code.

        +
        +
        +

        How it works

        +

        If you must know how the process works, here’s what happens under +the hood:

        +
          +
        • $this->encryption->encrypt($plain_text)
            +
          1. Derive an encryption key and a HMAC key from your configured +encryption_key via HKDF, using the SHA-512 digest algorithm.
          2. +
          3. Generate a random initialization vector (IV).
          4. +
          5. Encrypt the data via AES-128 in CBC mode (or another previously +configured cipher and mode), using the above-mentioned derived +encryption key and IV.
          6. +
          7. Prepend said IV to the resulting cipher-text.
          8. +
          9. Base64-encode the resulting string, so that it can be safely +stored or transferred without worrying about character sets.
          10. +
          11. Create a SHA-512 HMAC authentication message using the derived +HMAC key to ensure data integrity and prepend it to the Base64 +string.
          12. +
          +
        • +
        • $this->encryption->decrypt($ciphertext)
            +
          1. Derive an encryption key and a HMAC key from your configured +encryption_key via HKDF, using the SHA-512 digest algorithm. +Because your configured encryption_key is the same, this +will produce the same result as in the encrypt() method +above - otherwise you won’t be able to decrypt it.
          2. +
          3. Check if the string is long enough, separate the HMAC out of +it and validate if it is correct (this is done in a way that +prevents timing attacks against it). Return FALSE if either of +the checks fails.
          4. +
          5. Base64-decode the string.
          6. +
          7. Separate the IV out of the cipher-text and decrypt the said +cipher-text using that IV and the derived encryption key.
          8. +
          +
        • +
        +
        +
        +

        Using custom parameters

        +

        Let’s say you have to interact with another system that is out +of your control and uses another method to encrypt data. A +method that will most certainly not match the above-described +sequence and probably not use all of the steps either.

        +

        The Encryption library allows you to change how its encryption +and decryption processes work, so that you can easily tailor a +custom solution for such situations.

        +
        +

        Note

        +

        It is possible to use the library in this way, without +setting an encryption_key in your configuration file.

        +
        +

        All you have to do is to pass an associative array with a few +parameters to either the encrypt() or decrypt() method. +Here’s an example:

        +
        // Assume that we have $ciphertext, $key and $hmac_key
        +// from on outside source
        +
        +$message = $this->encryption->decrypt(
        +        $ciphertext,
        +        array(
        +                'cipher' => 'blowfish',
        +                'mode' => 'cbc',
        +                'key' => $key,
        +                'hmac_digest' => 'sha256',
        +                'hmac_key' => $hmac_key
        +        )
        +);
        +
        +
        +

        In the above example, we are decrypting a message that was encrypted +using the Blowfish cipher in CBC mode and authenticated via a SHA-256 +HMAC.

        +
        +

        Important

        +

        Note that both ‘key’ and ‘hmac_key’ are used in this +example. When using custom parameters, encryption and HMAC keys +are not derived like the default behavior of the library is.

        +
        +

        Below is a list of the available options.

        +

        However, unless you really need to and you know what you are doing, +we advise you to not change the encryption process as this could +impact security, so please do so with caution.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        OptionDefault valueMandatory / OptionalDescription
        cipherN/AYesEncryption algorithm (see Supported encryption ciphers and modes).
        modeN/AYesEncryption mode (see Encryption modes).
        keyN/AYesEncryption key.
        hmacTRUENoWhether to use a HMAC. +Boolean. If set to FALSE, then hmac_digest and +hmac_key will be ignored.
        hmac_digestsha512NoHMAC message digest algorithm (see Supported HMAC authentication algorithms).
        hmac_keyN/AYes, unless hmac is FALSEHMAC key.
        raw_dataFALSENoWhether the cipher-text should be raw. +Boolean. If set to TRUE, then Base64 encoding and +decoding will not be performed and HMAC will not +be a hexadecimal string.
        +
        +

        Important

        +

        encrypt() and decrypt() will return FALSE if +a mandatory parameter is not provided or if a provided +value is incorrect. This includes hmac_key, unless hmac +is set to FALSE.

        +
        +
        +
        +

        Supported HMAC authentication algorithms

        +

        For HMAC message authentication, the Encryption library supports +usage of the SHA-2 family of algorithms:

        + +++++ + + + + + + + + + + + + + + + + + + + + + + + + +
        AlgorithmRaw length (bytes)Hex-encoded length (bytes)
        sha51264128
        sha3844896
        sha2563264
        sha2242856
        +

        The reason for not including other popular algorithms, such as +MD5 or SHA1 is that they are no longer considered secure enough +and as such, we don’t want to encourage their usage. +If you absolutely need to use them, it is easy to do so via PHP’s +native hash_hmac() function.

        +

        Stronger algorithms of course will be added in the future as they +appear and become widely available.

        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Encryption
        +
        +
        +initialize($params)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $params (array) – Configuration parameters
        • +
        +
        Returns:

        CI_Encryption instance (method chaining)

        +
        Return type:

        CI_Encryption

        +
        +

        Initializes (configures) the library to use a different +driver, cipher, mode or key.

        +

        Example:

        +
        $this->encryption->initialize(
        +        array('mode' => 'ctr')
        +);
        +
        +
        +

        Please refer to the Configuring the library section for detailed info.

        +
        + +
        +
        +encrypt($data[, $params = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Data to encrypt
        • +
        • $params (array) – Optional parameters
        • +
        +
        Returns:

        Encrypted data or FALSE on failure

        +
        Return type:

        string

        +
        +

        Encrypts the input data and returns its ciphertext.

        +

        Example:

        +
        $ciphertext = $this->encryption->encrypt('My secret message');
        +
        +
        +

        Please refer to the Using custom parameters section for information +on the optional parameters.

        +
        + +
        +
        +decrypt($data[, $params = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Data to decrypt
        • +
        • $params (array) – Optional parameters
        • +
        +
        Returns:

        Decrypted data or FALSE on failure

        +
        Return type:

        string

        +
        +

        Decrypts the input data and returns it in plain-text.

        +

        Example:

        +
        echo $this->encryption->decrypt($ciphertext);
        +
        +
        +

        Please refer to the Using custom parameters secrion for information +on the optional parameters.

        +
        + +
        +
        +create_key($length)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $length (int) – Output length
        • +
        +
        Returns:

        A pseudo-random cryptographic key with the specified length, or FALSE on failure

        +
        Return type:

        string

        +
        +

        Creates a cryptographic key by fetching random data from +the operating system’s sources (i.e. /dev/urandom).

        +
        + +
        +
        +hkdf($key[, $digest = 'sha512'[, $salt = NULL[, $length = NULL[, $info = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Input key material
        • +
        • $digest (string) – A SHA-2 family digest algorithm
        • +
        • $salt (string) – Optional salt
        • +
        • $length (int) – Optional output length
        • +
        • $info (string) – Optional context/application-specific info
        • +
        +
        Returns:

        A pseudo-random key or FALSE on failure

        +
        Return type:

        string

        +
        +

        Derives a key from another, presumably weaker key.

        +

        This method is used internally to derive an encryption and HMAC key +from your configured encryption_key.

        +

        It is publicly available due to its otherwise general purpose. It is +described in RFC 5869.

        +

        However, as opposed to the description in RFC 5869, this implementation +doesn’t support SHA1.

        +

        Example:

        +
        $hmac_key = $this->encryption->hkdf(
        +        $key,
        +        'sha512',
        +        NULL,
        +        NULL,
        +        'authentication'
        +);
        +
        +// $hmac_key is a pseudo-random key with a length of 64 bytes
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/file_uploading.html b/sna/user_guide/libraries/file_uploading.html new file mode 100644 index 0000000..c6f812d --- /dev/null +++ b/sna/user_guide/libraries/file_uploading.html @@ -0,0 +1,1026 @@ + + + + + + + + + + File Uploading Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • File Uploading Class
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        File Uploading Class

        +

        CodeIgniter’s File Uploading Class permits files to be uploaded. You can +set various preferences, restricting the type and size of the files.

        + +
        +

        The Process

        +

        Uploading a file involves the following general process:

        +
          +
        • An upload form is displayed, allowing a user to select a file and +upload it.
        • +
        • When the form is submitted, the file is uploaded to the destination +you specify.
        • +
        • Along the way, the file is validated to make sure it is allowed to be +uploaded based on the preferences you set.
        • +
        • Once uploaded, the user will be shown a success message.
        • +
        +

        To demonstrate this process here is brief tutorial. Afterward you’ll +find reference information.

        +
        +

        Creating the Upload Form

        +

        Using a text editor, create a form called upload_form.php. In it, place +this code and save it to your application/views/ directory:

        +
        <html>
        +<head>
        +<title>Upload Form</title>
        +</head>
        +<body>
        +
        +<?php echo $error;?>
        +
        +<?php echo form_open_multipart('upload/do_upload');?>
        +
        +<input type="file" name="userfile" size="20" />
        +
        +<br /><br />
        +
        +<input type="submit" value="upload" />
        +
        +</form>
        +
        +</body>
        +</html>
        +
        +
        +

        You’ll notice we are using a form helper to create the opening form tag. +File uploads require a multipart form, so the helper creates the proper +syntax for you. You’ll also notice we have an $error variable. This is +so we can show error messages in the event the user does something +wrong.

        +
        +
        +

        The Success Page

        +

        Using a text editor, create a form called upload_success.php. In it, +place this code and save it to your application/views/ directory:

        +
        <html>
        +<head>
        +<title>Upload Form</title>
        +</head>
        +<body>
        +
        +<h3>Your file was successfully uploaded!</h3>
        +
        +<ul>
        +<?php foreach ($upload_data as $item => $value):?>
        +<li><?php echo $item;?>: <?php echo $value;?></li>
        +<?php endforeach; ?>
        +</ul>
        +
        +<p><?php echo anchor('upload', 'Upload Another File!'); ?></p>
        +
        +</body>
        +</html>
        +
        +
        +
        +
        +

        The Controller

        +

        Using a text editor, create a controller called Upload.php. In it, place +this code and save it to your application/controllers/ directory:

        +
        <?php
        +
        +class Upload extends CI_Controller {
        +
        +        public function __construct()
        +        {
        +                parent::__construct();
        +                $this->load->helper(array('form', 'url'));
        +        }
        +
        +        public function index()
        +        {
        +                $this->load->view('upload_form', array('error' => ' ' ));
        +        }
        +
        +        public function do_upload()
        +        {
        +                $config['upload_path']          = './uploads/';
        +                $config['allowed_types']        = 'gif|jpg|png';
        +                $config['max_size']             = 100;
        +                $config['max_width']            = 1024;
        +                $config['max_height']           = 768;
        +
        +                $this->load->library('upload', $config);
        +
        +                if ( ! $this->upload->do_upload('userfile'))
        +                {
        +                        $error = array('error' => $this->upload->display_errors());
        +
        +                        $this->load->view('upload_form', $error);
        +                }
        +                else
        +                {
        +                        $data = array('upload_data' => $this->upload->data());
        +
        +                        $this->load->view('upload_success', $data);
        +                }
        +        }
        +}
        +?>
        +
        +
        +
        +
        +

        The Upload Directory

        +

        You’ll need a destination directory for your uploaded images. Create a +directory at the root of your CodeIgniter installation called uploads +and set its file permissions to 777.

        +
        +
        +

        Try it!

        +

        To try your form, visit your site using a URL similar to this one:

        +
        example.com/index.php/upload/
        +
        +
        +

        You should see an upload form. Try uploading an image file (either a +jpg, gif, or png). If the path in your controller is correct it should +work.

        +
        +
        +
        +

        Reference Guide

        +
        +

        Initializing the Upload Class

        +

        Like most other classes in CodeIgniter, the Upload class is initialized +in your controller using the $this->load->library() method:

        +
        $this->load->library('upload');
        +
        +
        +

        Once the Upload class is loaded, the object will be available using: +$this->upload

        +
        +
        +

        Setting Preferences

        +

        Similar to other libraries, you’ll control what is allowed to be upload +based on your preferences. In the controller you built above you set the +following preferences:

        +
        $config['upload_path'] = './uploads/';
        +$config['allowed_types'] = 'gif|jpg|png';
        +$config['max_size']     = '100';
        +$config['max_width'] = '1024';
        +$config['max_height'] = '768';
        +
        +$this->load->library('upload', $config);
        +
        +// Alternately you can set preferences by calling the ``initialize()`` method. Useful if you auto-load the class:
        +$this->upload->initialize($config);
        +
        +
        +

        The above preferences should be fairly self-explanatory. Below is a +table describing all available preferences.

        +
        +
        +

        Preferences

        +

        The following preferences are available. The default value indicates +what will be used if you do not specify that preference.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefault ValueOptionsDescription
        upload_pathNoneNoneThe path to the directory where the upload should be placed. The +directory must be writable and the path can be absolute or relative.
        allowed_typesNoneNoneThe mime types corresponding to the types of files you allow to be +uploaded. Usually the file extension can be used as the mime type. +Can be either an array or a pipe-separated string.
        file_nameNoneDesired file nameIf set CodeIgniter will rename the uploaded file to this name. The +extension provided in the file name must also be an allowed file type. +If no extension is provided in the original file_name will be used.
        file_ext_tolowerFALSETRUE/FALSE (boolean)If set to TRUE, the file extension will be forced to lower case
        overwriteFALSETRUE/FALSE (boolean)If set to true, if a file with the same name as the one you are +uploading exists, it will be overwritten. If set to false, a number will +be appended to the filename if another with the same name exists.
        max_size0NoneThe maximum size (in kilobytes) that the file can be. Set to zero for no +limit. Note: Most PHP installations have their own limit, as specified +in the php.ini file. Usually 2 MB (or 2048 KB) by default.
        max_width0NoneThe maximum width (in pixels) that the image can be. Set to zero for no +limit.
        max_height0NoneThe maximum height (in pixels) that the image can be. Set to zero for no +limit.
        min_width0NoneThe minimum width (in pixels) that the image can be. Set to zero for no +limit.
        min_height0NoneThe minimum height (in pixels) that the image can be. Set to zero for no +limit.
        max_filename0NoneThe maximum length that a file name can be. Set to zero for no limit.
        max_filename_increment100NoneWhen overwrite is set to FALSE, use this to set the maximum filename +increment for CodeIgniter to append to the filename.
        encrypt_nameFALSETRUE/FALSE (boolean)If set to TRUE the file name will be converted to a random encrypted +string. This can be useful if you would like the file saved with a name +that can not be discerned by the person uploading it.
        remove_spacesTRUETRUE/FALSE (boolean)If set to TRUE, any spaces in the file name will be converted to +underscores. This is recommended.
        detect_mimeTRUETRUE/FALSE (boolean)If set to TRUE, a server side detection of the file type will be +performed to avoid code injection attacks. DO NOT disable this option +unless you have no other option as that would cause a security risk.
        mod_mime_fixTRUETRUE/FALSE (boolean)If set to TRUE, multiple filename extensions will be suffixed with an +underscore in order to avoid triggering Apache mod_mime. +DO NOT turn off this option if your upload directory is public, as this +is a security risk.
        +
        +
        +

        Setting preferences in a config file

        +

        If you prefer not to set preferences using the above method, you can +instead put them into a config file. Simply create a new file called the +upload.php, add the $config array in that file. Then save the file in: +config/upload.php and it will be used automatically. You will NOT +need to use the $this->upload->initialize() method if you save your +preferences in a config file.

        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Upload
        +
        +
        +initialize([array $config = array()[, $reset = TRUE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $config (array) – Preferences
        • +
        • $reset (bool) – Whether to reset preferences (that are not provided in $config) to their defaults
        • +
        +
        Returns:

        CI_Upload instance (method chaining)

        +
        Return type:

        CI_Upload

        +
        +
        + +
        +
        +do_upload([$field = 'userfile'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Name of the form field
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Performs the upload based on the preferences you’ve set.

        +
        +

        Note

        +

        By default the upload routine expects the file to come from +a form field called userfile, and the form must be of type +“multipart”.

        +
        +
        <form method="post" action="some_action" enctype="multipart/form-data" />
        +
        +
        +

        If you would like to set your own field name simply pass its value to +the do_upload() method:

        +
        $field_name = "some_field_name";
        +$this->upload->do_upload($field_name);
        +
        +
        +
        + +
        +
        +display_errors([$open = '<p>'[, $close = '</p>']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $open (string) – Opening markup
        • +
        • $close (string) – Closing markup
        • +
        +
        Returns:

        Formatted error message(s)

        +
        Return type:

        string

        +
        +

        Retrieves any error messages if the do_upload() method returned +false. The method does not echo automatically, it returns the data so +you can assign it however you need.

        +

        Formatting Errors

        +
        +

        By default the above method wraps any errors within <p> tags. You can +set your own delimiters like this:

        +
        $this->upload->display_errors('<p>', '</p>');
        +
        +
        +
        +
        + +
        +
        +data([$index = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (string) – Element to return instead of the full array
        • +
        +
        Returns:

        Information about the uploaded file

        +
        Return type:

        mixed

        +
        +

        This is a helper method that returns an array containing all of the +data related to the file you uploaded. Here is the array prototype:

        +
        Array
        +(
        +        [file_name]     => mypic.jpg
        +        [file_type]     => image/jpeg
        +        [file_path]     => /path/to/your/upload/
        +        [full_path]     => /path/to/your/upload/jpg.jpg
        +        [raw_name]      => mypic
        +        [orig_name]     => mypic.jpg
        +        [client_name]   => mypic.jpg
        +        [file_ext]      => .jpg
        +        [file_size]     => 22.2
        +        [is_image]      => 1
        +        [image_width]   => 800
        +        [image_height]  => 600
        +        [image_type]    => jpeg
        +        [image_size_str] => width="800" height="200"
        +)
        +
        +
        +

        To return one element from the array:

        +
        $this->upload->data('file_name');       // Returns: mypic.jpg
        +
        +
        +

        Here’s a table explaining the above-displayed array items:

        + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        ItemDescription
        file_nameName of the file that was uploaded, including the filename extension
        file_typeFile MIME type identifier
        file_pathAbsolute server path to the file
        full_pathAbsolute server path, including the file name
        raw_nameFile name, without the extension
        orig_nameOriginal file name. This is only useful if you use the encrypted name option.
        client_nameFile name as supplied by the client user agent, prior to any file name preparation or incrementing
        file_extFilename extension, period included
        file_sizeFile size in kilobytes
        is_imageWhether the file is an image or not. 1 = image. 0 = not.
        image_widthImage width
        image_heightImage height
        image_typeImage type (usually the file name extension without the period)
        image_size_strA string containing the width and height (useful to put into an image tag)
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/form_validation.html b/sna/user_guide/libraries/form_validation.html new file mode 100644 index 0000000..eed3de1 --- /dev/null +++ b/sna/user_guide/libraries/form_validation.html @@ -0,0 +1,1933 @@ + + + + + + + + + + Form Validation — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Form Validation

        +

        CodeIgniter provides a comprehensive form validation and data prepping +class that helps minimize the amount of code you’ll write.

        + +
        +

        Overview

        +

        Before explaining CodeIgniter’s approach to data validation, let’s +describe the ideal scenario:

        +
          +
        1. A form is displayed.
        2. +
        3. You fill it in and submit it.
        4. +
        5. If you submitted something invalid, or perhaps missed a required +item, the form is redisplayed containing your data along with an +error message describing the problem.
        6. +
        7. This process continues until you have submitted a valid form.
        8. +
        +

        On the receiving end, the script must:

        +
          +
        1. Check for required data.
        2. +
        3. Verify that the data is of the correct type, and meets the correct +criteria. For example, if a username is submitted it must be +validated to contain only permitted characters. It must be of a +minimum length, and not exceed a maximum length. The username can’t +be someone else’s existing username, or perhaps even a reserved word. +Etc.
        4. +
        5. Sanitize the data for security.
        6. +
        7. Pre-format the data if needed (Does the data need to be trimmed? HTML +encoded? Etc.)
        8. +
        9. Prep the data for insertion in the database.
        10. +
        +

        Although there is nothing terribly complex about the above process, it +usually requires a significant amount of code, and to display error +messages, various control structures are usually placed within the form +HTML. Form validation, while simple to create, is generally very messy +and tedious to implement.

        +
        +
        +

        Form Validation Tutorial

        +

        What follows is a “hands on” tutorial for implementing CodeIgniters Form +Validation.

        +

        In order to implement form validation you’ll need three things:

        +
          +
        1. A View file containing a form.
        2. +
        3. A View file containing a “success” message to be displayed upon +successful submission.
        4. +
        5. A controller method to receive and +process the submitted data.
        6. +
        +

        Let’s create those three things, using a member sign-up form as the +example.

        +
        +

        The Form

        +

        Using a text editor, create a form called myform.php. In it, place this +code and save it to your application/views/ folder:

        +
        <html>
        +<head>
        +<title>My Form</title>
        +</head>
        +<body>
        +
        +<?php echo validation_errors(); ?>
        +
        +<?php echo form_open('form'); ?>
        +
        +<h5>Username</h5>
        +<input type="text" name="username" value="" size="50" />
        +
        +<h5>Password</h5>
        +<input type="text" name="password" value="" size="50" />
        +
        +<h5>Password Confirm</h5>
        +<input type="text" name="passconf" value="" size="50" />
        +
        +<h5>Email Address</h5>
        +<input type="text" name="email" value="" size="50" />
        +
        +<div><input type="submit" value="Submit" /></div>
        +
        +</form>
        +
        +</body>
        +</html>
        +
        +
        +
        +
        +

        The Success Page

        +

        Using a text editor, create a form called formsuccess.php. In it, place +this code and save it to your application/views/ folder:

        +
        <html>
        +<head>
        +<title>My Form</title>
        +</head>
        +<body>
        +
        +<h3>Your form was successfully submitted!</h3>
        +
        +<p><?php echo anchor('form', 'Try it again!'); ?></p>
        +
        +</body>
        +</html>
        +
        +
        +
        +
        +

        The Controller

        +

        Using a text editor, create a controller called Form.php. In it, place +this code and save it to your application/controllers/ folder:

        +
        <?php
        +
        +class Form extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $this->load->helper(array('form', 'url'));
        +
        +                $this->load->library('form_validation');
        +
        +                if ($this->form_validation->run() == FALSE)
        +                {
        +                        $this->load->view('myform');
        +                }
        +                else
        +                {
        +                        $this->load->view('formsuccess');
        +                }
        +        }
        +}
        +
        +
        +
        +
        +

        Try it!

        +

        To try your form, visit your site using a URL similar to this one:

        +
        example.com/index.php/form/
        +
        +
        +

        If you submit the form you should simply see the form reload. That’s +because you haven’t set up any validation rules yet.

        +

        Since you haven’t told the Form Validation class to validate anything +yet, it returns FALSE (boolean false) by default. ``The run()`` method +only returns TRUE if it has successfully applied your rules without any +of them failing.

        +
        +
        +

        Explanation

        +

        You’ll notice several things about the above pages:

        +

        The form (myform.php) is a standard web form with a couple exceptions:

        +
          +
        1. It uses a form helper to create the form opening. Technically, this +isn’t necessary. You could create the form using standard HTML. +However, the benefit of using the helper is that it generates the +action URL for you, based on the URL in your config file. This makes +your application more portable in the event your URLs change.

          +
        2. +
        3. At the top of the form you’ll notice the following function call:

          +
          <?php echo validation_errors(); ?>
          +
          +
          +

          This function will return any error messages sent back by the +validator. If there are no messages it returns an empty string.

          +
        4. +
        +

        The controller (Form.php) has one method: index(). This method +initializes the validation class and loads the form helper and URL +helper used by your view files. It also runs the validation routine. +Based on whether the validation was successful it either presents the +form or the success page.

        +
        +
        +

        Setting Validation Rules

        +

        CodeIgniter lets you set as many validation rules as you need for a +given field, cascading them in order, and it even lets you prep and +pre-process the field data at the same time. To set validation rules you +will use the set_rules() method:

        +
        $this->form_validation->set_rules();
        +
        +
        +

        The above method takes three parameters as input:

        +
          +
        1. The field name - the exact name you’ve given the form field.
        2. +
        3. A “human” name for this field, which will be inserted into the error +message. For example, if your field is named “user” you might give it +a human name of “Username”.
        4. +
        5. The validation rules for this form field.
        6. +
        7. (optional) Set custom error messages on any rules given for current field. If not provided will use the default one.
        8. +
        +
        +

        Note

        +

        If you would like the field name to be stored in a language +file, please see Translating Field Names.

        +
        +

        Here is an example. In your controller (Form.php), add this code just +below the validation initialization method:

        +
        $this->form_validation->set_rules('username', 'Username', 'required');
        +$this->form_validation->set_rules('password', 'Password', 'required');
        +$this->form_validation->set_rules('passconf', 'Password Confirmation', 'required');
        +$this->form_validation->set_rules('email', 'Email', 'required');
        +
        +
        +

        Your controller should now look like this:

        +
        <?php
        +
        +class Form extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $this->load->helper(array('form', 'url'));
        +
        +                $this->load->library('form_validation');
        +
        +                $this->form_validation->set_rules('username', 'Username', 'required');
        +                $this->form_validation->set_rules('password', 'Password', 'required',
        +                        array('required' => 'You must provide a %s.')
        +                );
        +                $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required');
        +                $this->form_validation->set_rules('email', 'Email', 'required');
        +
        +                if ($this->form_validation->run() == FALSE)
        +                {
        +                        $this->load->view('myform');
        +                }
        +                else
        +                {
        +                        $this->load->view('formsuccess');
        +                }
        +        }
        +}
        +
        +
        +

        Now submit the form with the fields blank and you should see the error +messages. If you submit the form with all the fields populated you’ll +see your success page.

        +
        +

        Note

        +

        The form fields are not yet being re-populated with the data +when there is an error. We’ll get to that shortly.

        +
        +
        +
        +

        Setting Rules Using an Array

        +

        Before moving on it should be noted that the rule setting method can +be passed an array if you prefer to set all your rules in one action. If +you use this approach, you must name your array keys as indicated:

        +
        $config = array(
        +        array(
        +                'field' => 'username',
        +                'label' => 'Username',
        +                'rules' => 'required'
        +        ),
        +        array(
        +                'field' => 'password',
        +                'label' => 'Password',
        +                'rules' => 'required',
        +                'errors' => array(
        +                        'required' => 'You must provide a %s.',
        +                ),
        +        ),
        +        array(
        +                'field' => 'passconf',
        +                'label' => 'Password Confirmation',
        +                'rules' => 'required'
        +        ),
        +        array(
        +                'field' => 'email',
        +                'label' => 'Email',
        +                'rules' => 'required'
        +        )
        +);
        +
        +$this->form_validation->set_rules($config);
        +
        +
        +
        +
        +

        Cascading Rules

        +

        CodeIgniter lets you pipe multiple rules together. Let’s try it. Change +your rules in the third parameter of rule setting method, like this:

        +
        $this->form_validation->set_rules(
        +        'username', 'Username',
        +        'required|min_length[5]|max_length[12]|is_unique[users.username]',
        +        array(
        +                'required'      => 'You have not provided %s.',
        +                'is_unique'     => 'This %s already exists.'
        +        )
        +);
        +$this->form_validation->set_rules('password', 'Password', 'required');
        +$this->form_validation->set_rules('passconf', 'Password Confirmation', 'required|matches[password]');
        +$this->form_validation->set_rules('email', 'Email', 'required|valid_email|is_unique[users.email]');
        +
        +
        +

        The above code sets the following rules:

        +
          +
        1. The username field be no shorter than 5 characters and no longer than +12.
        2. +
        3. The password field must match the password confirmation field.
        4. +
        5. The email field must contain a valid email address.
        6. +
        +

        Give it a try! Submit your form without the proper data and you’ll see +new error messages that correspond to your new rules. There are numerous +rules available which you can read about in the validation reference.

        +
        +

        Note

        +

        You can also pass an array of rules to set_rules(), +instead of a string. Example:

        +
        $this->form_validation->set_rules('username', 'Username', array('required', 'min_length[5]'));
        +
        +
        +
        +
        +
        +

        Prepping Data

        +

        In addition to the validation method like the ones we used above, you +can also prep your data in various ways. For example, you can set up +rules like this:

        +
        $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[5]|max_length[12]');
        +$this->form_validation->set_rules('password', 'Password', 'trim|required|min_length[8]');
        +$this->form_validation->set_rules('passconf', 'Password Confirmation', 'trim|required|matches[password]');
        +$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
        +
        +
        +

        In the above example, we are “trimming” the fields, checking for length +where necessary and making sure that both password fields match.

        +

        Any native PHP function that accepts one parameter can be used as a +rule, like ``htmlspecialchars()``, ``trim()``, etc.

        +
        +

        Note

        +

        You will generally want to use the prepping functions +after the validation rules so if there is an error, the +original data will be shown in the form.

        +
        +
        +
        +

        Re-populating the form

        +

        Thus far we have only been dealing with errors. It’s time to repopulate +the form field with the submitted data. CodeIgniter offers several +helper functions that permit you to do this. The one you will use most +commonly is:

        +
        set_value('field name')
        +
        +
        +

        Open your myform.php view file and update the value in each field +using the set_value() function:

        +

        Don’t forget to include each field name in the :php:func:`set_value()` +function calls!

        +
        <html>
        +<head>
        +<title>My Form</title>
        +</head>
        +<body>
        +
        +<?php echo validation_errors(); ?>
        +
        +<?php echo form_open('form'); ?>
        +
        +<h5>Username</h5>
        +<input type="text" name="username" value="<?php echo set_value('username'); ?>" size="50" />
        +
        +<h5>Password</h5>
        +<input type="text" name="password" value="<?php echo set_value('password'); ?>" size="50" />
        +
        +<h5>Password Confirm</h5>
        +<input type="text" name="passconf" value="<?php echo set_value('passconf'); ?>" size="50" />
        +
        +<h5>Email Address</h5>
        +<input type="text" name="email" value="<?php echo set_value('email'); ?>" size="50" />
        +
        +<div><input type="submit" value="Submit" /></div>
        +
        +</form>
        +
        +</body>
        +</html>
        +
        +
        +

        Now reload your page and submit the form so that it triggers an error. +Your form fields should now be re-populated

        +
        +

        Note

        +

        The Class Reference section below +contains methods that permit you to re-populate <select> menus, +radio buttons, and checkboxes.

        +
        +
        +

        Important

        +

        If you use an array as the name of a form field, you +must supply it as an array to the function. Example:

        +
        <input type="text" name="colors[]" value="<?php echo set_value('colors[]'); ?>" size="50" />
        +
        +
        +
        +

        For more info please see the Using Arrays as Field Names section below.

        +
        +
        +

        Callbacks: Your own Validation Methods

        +

        The validation system supports callbacks to your own validation +methods. This permits you to extend the validation class to meet your +needs. For example, if you need to run a database query to see if the +user is choosing a unique username, you can create a callback method +that does that. Let’s create an example of this.

        +

        In your controller, change the “username” rule to this:

        +
        $this->form_validation->set_rules('username', 'Username', 'callback_username_check');
        +
        +
        +

        Then add a new method called username_check() to your controller. +Here’s how your controller should now look:

        +
        <?php
        +
        +class Form extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $this->load->helper(array('form', 'url'));
        +
        +                $this->load->library('form_validation');
        +
        +                $this->form_validation->set_rules('username', 'Username', 'callback_username_check');
        +                $this->form_validation->set_rules('password', 'Password', 'required');
        +                $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required');
        +                $this->form_validation->set_rules('email', 'Email', 'required|is_unique[users.email]');
        +
        +                if ($this->form_validation->run() == FALSE)
        +                {
        +                        $this->load->view('myform');
        +                }
        +                else
        +                {
        +                        $this->load->view('formsuccess');
        +                }
        +        }
        +
        +        public function username_check($str)
        +        {
        +                if ($str == 'test')
        +                {
        +                        $this->form_validation->set_message('username_check', 'The {field} field can not be the word "test"');
        +                        return FALSE;
        +                }
        +                else
        +                {
        +                        return TRUE;
        +                }
        +        }
        +
        +}
        +
        +
        +

        Reload your form and submit it with the word “test” as the username. You +can see that the form field data was passed to your callback method +for you to process.

        +

        To invoke a callback just put the method name in a rule, with +“callback_” as the rule prefix. If you need to receive an extra +parameter in your callback method, just add it normally after the +method name between square brackets, as in: callback_foo[bar], +then it will be passed as the second argument of your callback method.

        +
        +

        Note

        +

        You can also process the form data that is passed to your +callback and return it. If your callback returns anything other than a +boolean TRUE/FALSE it is assumed that the data is your newly processed +form data.

        +
        +
        +
        +

        Callable: Use anything as a rule

        +

        If callback rules aren’t good enough for you (for example, because they are +limited to your controller), don’t get disappointed, there’s one more way +to create custom rules: anything that is_callable() would return TRUE for.

        +

        Consider the following example:

        +
        $this->form_validation->set_rules(
        +        'username', 'Username',
        +        array(
        +                'required',
        +                array($this->users_model, 'valid_username')
        +        )
        +);
        +
        +
        +

        The above code would use the valid_username() method from your +Users_model object.

        +

        This is just an example of course, and callbacks aren’t limited to models. +You can use any object/method that accepts the field value as its’ first +parameter. You can also use an anonymous function:

        +
        $this->form_validation->set_rules(
        +        'username', 'Username',
        +        array(
        +                'required',
        +                function($value)
        +                {
        +                        // Check $value
        +                }
        +        )
        +);
        +
        +
        +

        Of course, since a Callable rule by itself is not a string, it isn’t +a rule name either. That is a problem when you want to set error messages +for them. In order to get around that problem, you can put such rules as +the second element of an array, with the first one being the rule name:

        +
        $this->form_validation->set_rules(
        +        'username', 'Username',
        +        array(
        +                'required',
        +                array('username_callable', array($this->users_model, 'valid_username'))
        +        )
        +);
        +
        +
        +

        Anonymous function version:

        +
        $this->form_validation->set_rules(
        +        'username', 'Username',
        +        array(
        +                'required',
        +                array(
        +                        'username_callable',
        +                        function($str)
        +                        {
        +                                // Check validity of $str and return TRUE or FALSE
        +                        }
        +                )
        +        )
        +);
        +
        +
        +
        +
        +

        Setting Error Messages

        +

        All of the native error messages are located in the following language +file: system/language/english/form_validation_lang.php

        +

        To set your own global custom message for a rule, you can either +extend/override the language file by creating your own in +application/language/english/form_validation_lang.php (read more +about this in the Language Class documentation), +or use the following method:

        +
        $this->form_validation->set_message('rule', 'Error Message');
        +
        +
        +

        If you need to set a custom error message for a particular field on +some particular rule, use the set_rules() method:

        +
        $this->form_validation->set_rules('field_name', 'Field Label', 'rule1|rule2|rule3',
        +        array('rule2' => 'Error Message on rule2 for this field_name')
        +);
        +
        +
        +

        Where rule corresponds to the name of a particular rule, and Error +Message is the text you would like displayed.

        +

        If you’d like to include a field’s “human” name, or the optional +parameter some rules allow for (such as max_length), you can add the +{field} and {param} tags to your message, respectively:

        +
        $this->form_validation->set_message('min_length', '{field} must have at least {param} characters.');
        +
        +
        +

        On a field with the human name Username and a rule of min_length[5], an +error would display: “Username must have at least 5 characters.”

        +
        +

        Note

        +

        The old sprintf() method of using %s in your error messages +will still work, however it will override the tags above. You should +use one or the other.

        +
        +

        In the callback rule example above, the error message was set by passing +the name of the method (without the “callback_” prefix):

        +
        $this->form_validation->set_message('username_check')
        +
        +
        +
        +
        +

        Translating Field Names

        +

        If you would like to store the “human” name you passed to the +set_rules() method in a language file, and therefore make the name +able to be translated, here’s how:

        +

        First, prefix your “human” name with lang:, as in this example:

        +
        $this->form_validation->set_rules('first_name', 'lang:first_name', 'required');
        +
        +
        +

        Then, store the name in one of your language file arrays (without the +prefix):

        +
        $lang['first_name'] = 'First Name';
        +
        +
        +
        +

        Note

        +

        If you store your array item in a language file that is not +loaded automatically by CI, you’ll need to remember to load it in your +controller using:

        +
        $this->lang->load('file_name');
        +
        +
        +
        +

        See the Language Class page for more info regarding +language files.

        +
        +
        +

        Changing the Error Delimiters

        +

        By default, the Form Validation class adds a paragraph tag (<p>) around +each error message shown. You can either change these delimiters +globally, individually, or change the defaults in a config file.

        +
          +
        1. Changing delimiters Globally +To globally change the error delimiters, in your controller method, +just after loading the Form Validation class, add this:

          +
          $this->form_validation->set_error_delimiters('<div class="error">', '</div>');
          +
          +
          +

          In this example, we’ve switched to using div tags.

          +
        2. +
        3. Changing delimiters Individually +Each of the two error generating functions shown in this tutorial can +be supplied their own delimiters as follows:

          +
          <?php echo form_error('field name', '<div class="error">', '</div>'); ?>
          +
          +
          +

          Or:

          +
          <?php echo validation_errors('<div class="error">', '</div>'); ?>
          +
          +
          +
        4. +
        5. Set delimiters in a config file +You can add your error delimiters in application/config/form_validation.php as follows:

          +
          $config['error_prefix'] = '<div class="error_prefix">';
          +$config['error_suffix'] = '</div>';
          +
          +
          +
        6. +
        +
        +
        +

        Showing Errors Individually

        +

        If you prefer to show an error message next to each form field, rather +than as a list, you can use the form_error() function.

        +

        Try it! Change your form so that it looks like this:

        +
        <h5>Username</h5>
        +<?php echo form_error('username'); ?>
        +<input type="text" name="username" value="<?php echo set_value('username'); ?>" size="50" />
        +
        +<h5>Password</h5>
        +<?php echo form_error('password'); ?>
        +<input type="text" name="password" value="<?php echo set_value('password'); ?>" size="50" />
        +
        +<h5>Password Confirm</h5>
        +<?php echo form_error('passconf'); ?>
        +<input type="text" name="passconf" value="<?php echo set_value('passconf'); ?>" size="50" />
        +
        +<h5>Email Address</h5>
        +<?php echo form_error('email'); ?>
        +<input type="text" name="email" value="<?php echo set_value('email'); ?>" size="50" />
        +
        +
        +

        If there are no errors, nothing will be shown. If there is an error, the +message will appear.

        +
        +

        Important

        +

        If you use an array as the name of a form field, you +must supply it as an array to the function. Example:

        +
        <?php echo form_error('options[size]'); ?>
        +<input type="text" name="options[size]" value="<?php echo set_value("options[size]"); ?>" size="50" />
        +
        +
        +
        +

        For more info please see the Using Arrays as Field Names section below.

        +
        +
        +

        Validating an Array (other than $_POST)

        +

        Sometimes you may want to validate an array that does not originate from $_POST data.

        +

        In this case, you can specify the array to be validated:

        +
        $data = array(
        +        'username' => 'johndoe',
        +        'password' => 'mypassword',
        +        'passconf' => 'mypassword'
        +);
        +
        +$this->form_validation->set_data($data);
        +
        +
        +

        Creating validation rules, running the validation, and retrieving error +messages works the same whether you are validating $_POST data or +another array of your choice.

        +
        +

        Important

        +

        You have to call the set_data() method before defining +any validation rules.

        +
        +
        +

        Important

        +

        If you want to validate more than one array during a single +execution, then you should call the reset_validation() method +before setting up rules and validating the new array.

        +
        +

        For more info please see the Class Reference section below.

        +
        +
        +
        +

        Saving Sets of Validation Rules to a Config File

        +

        A nice feature of the Form Validation class is that it permits you to +store all your validation rules for your entire application in a config +file. You can organize these rules into “groups”. These groups can +either be loaded automatically when a matching controller/method is +called, or you can manually call each set as needed.

        +
        +

        How to save your rules

        +

        To store your validation rules, simply create a file named +form_validation.php in your application/config/ folder. In that file +you will place an array named $config with your rules. As shown earlier, +the validation array will have this prototype:

        +
        $config = array(
        +        array(
        +                'field' => 'username',
        +                'label' => 'Username',
        +                'rules' => 'required'
        +        ),
        +        array(
        +                'field' => 'password',
        +                'label' => 'Password',
        +                'rules' => 'required'
        +        ),
        +        array(
        +                'field' => 'passconf',
        +                'label' => 'Password Confirmation',
        +                'rules' => 'required'
        +        ),
        +        array(
        +                'field' => 'email',
        +                'label' => 'Email',
        +                'rules' => 'required'
        +        )
        +);
        +
        +
        +

        Your validation rule file will be loaded automatically and used when you +call the run() method.

        +

        Please note that you MUST name your $config array.

        +
        +
        +

        Creating Sets of Rules

        +

        In order to organize your rules into “sets” requires that you place them +into “sub arrays”. Consider the following example, showing two sets of +rules. We’ve arbitrarily called these two rules “signup” and “email”. +You can name your rules anything you want:

        +
        $config = array(
        +        'signup' => array(
        +                array(
        +                        'field' => 'username',
        +                        'label' => 'Username',
        +                        'rules' => 'required'
        +                ),
        +                array(
        +                        'field' => 'password',
        +                        'label' => 'Password',
        +                        'rules' => 'required'
        +                ),
        +                array(
        +                        'field' => 'passconf',
        +                        'label' => 'Password Confirmation',
        +                        'rules' => 'required'
        +                ),
        +                array(
        +                        'field' => 'email',
        +                        'label' => 'Email',
        +                        'rules' => 'required'
        +                )
        +        ),
        +        'email' => array(
        +                array(
        +                        'field' => 'emailaddress',
        +                        'label' => 'EmailAddress',
        +                        'rules' => 'required|valid_email'
        +                ),
        +                array(
        +                        'field' => 'name',
        +                        'label' => 'Name',
        +                        'rules' => 'required|alpha'
        +                ),
        +                array(
        +                        'field' => 'title',
        +                        'label' => 'Title',
        +                        'rules' => 'required'
        +                ),
        +                array(
        +                        'field' => 'message',
        +                        'label' => 'MessageBody',
        +                        'rules' => 'required'
        +                )
        +        )
        +);
        +
        +
        +
        +
        +

        Calling a Specific Rule Group

        +

        In order to call a specific group, you will pass its name to the run() +method. For example, to call the signup rule you will do this:

        +
        if ($this->form_validation->run('signup') == FALSE)
        +{
        +        $this->load->view('myform');
        +}
        +else
        +{
        +        $this->load->view('formsuccess');
        +}
        +
        +
        +
        +
        +

        Associating a Controller Method with a Rule Group

        +

        An alternate (and more automatic) method of calling a rule group is to +name it according to the controller class/method you intend to use it +with. For example, let’s say you have a controller named Member and a +method named signup. Here’s what your class might look like:

        +
        <?php
        +
        +class Member extends CI_Controller {
        +
        +        public function signup()
        +        {
        +                $this->load->library('form_validation');
        +
        +                if ($this->form_validation->run() == FALSE)
        +                {
        +                        $this->load->view('myform');
        +                }
        +                else
        +                {
        +                        $this->load->view('formsuccess');
        +                }
        +        }
        +}
        +
        +
        +

        In your validation config file, you will name your rule group +member/signup:

        +
        $config = array(
        +        'member/signup' => array(
        +                array(
        +                        'field' => 'username',
        +                        'label' => 'Username',
        +                        'rules' => 'required'
        +                ),
        +                array(
        +                        'field' => 'password',
        +                        'label' => 'Password',
        +                        'rules' => 'required'
        +                ),
        +                array(
        +                        'field' => 'passconf',
        +                        'label' => 'PasswordConfirmation',
        +                        'rules' => 'required'
        +                ),
        +                array(
        +                        'field' => 'email',
        +                        'label' => 'Email',
        +                        'rules' => 'required'
        +                )
        +        )
        +);
        +
        +
        +

        When a rule group is named identically to a controller class/method it +will be used automatically when the run() method is invoked from that +class/method.

        +
        +
        +
        +

        Using Arrays as Field Names

        +

        The Form Validation class supports the use of arrays as field names. +Consider this example:

        +
        <input type="text" name="options[]" value="" size="50" />
        +
        +
        +

        If you do use an array as a field name, you must use the EXACT array +name in the Helper Functions that require the +field name, and as your Validation Rule field name.

        +

        For example, to set a rule for the above field you would use:

        +
        $this->form_validation->set_rules('options[]', 'Options', 'required');
        +
        +
        +

        Or, to show an error for the above field you would use:

        +
        <?php echo form_error('options[]'); ?>
        +
        +
        +

        Or to re-populate the field you would use:

        +
        <input type="text" name="options[]" value="<?php echo set_value('options[]'); ?>" size="50" />
        +
        +
        +

        You can use multidimensional arrays as field names as well. For example:

        +
        <input type="text" name="options[size]" value="" size="50" />
        +
        +
        +

        Or even:

        +
        <input type="text" name="sports[nba][basketball]" value="" size="50" />
        +
        +
        +

        As with our first example, you must use the exact array name in the +helper functions:

        +
        <?php echo form_error('sports[nba][basketball]'); ?>
        +
        +
        +

        If you are using checkboxes (or other fields) that have multiple +options, don’t forget to leave an empty bracket after each option, so +that all selections will be added to the POST array:

        +
        <input type="checkbox" name="options[]" value="red" />
        +<input type="checkbox" name="options[]" value="blue" />
        +<input type="checkbox" name="options[]" value="green" />
        +
        +
        +

        Or if you use a multidimensional array:

        +
        <input type="checkbox" name="options[color][]" value="red" />
        +<input type="checkbox" name="options[color][]" value="blue" />
        +<input type="checkbox" name="options[color][]" value="green" />
        +
        +
        +

        When you use a helper function you’ll include the bracket as well:

        +
        <?php echo form_error('options[color][]'); ?>
        +
        +
        +
        +
        +

        Rule Reference

        +

        The following is a list of all the native rules that are available to +use:

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        RuleParameterDescriptionExample
        requiredNoReturns FALSE if the form element is empty. 
        matchesYesReturns FALSE if the form element does not match the one in the parameter.matches[form_item]
        regex_matchYesReturns FALSE if the form element does not match the regular expression.regex_match[/regex/]
        differsYesReturns FALSE if the form element does not differ from the one in the parameter.differs[form_item]
        is_uniqueYesReturns FALSE if the form element is not unique to the table and field name in the +parameter. Note: This rule requires Query Builder to be +enabled in order to work.is_unique[table.field]
        min_lengthYesReturns FALSE if the form element is shorter than the parameter value.min_length[3]
        max_lengthYesReturns FALSE if the form element is longer than the parameter value.max_length[12]
        exact_lengthYesReturns FALSE if the form element is not exactly the parameter value.exact_length[8]
        greater_thanYesReturns FALSE if the form element is less than or equal to the parameter value or not +numeric.greater_than[8]
        greater_than_equal_toYesReturns FALSE if the form element is less than the parameter value, +or not numeric.greater_than_equal_to[8]
        less_thanYesReturns FALSE if the form element is greater than or equal to the parameter value or +not numeric.less_than[8]
        less_than_equal_toYesReturns FALSE if the form element is greater than the parameter value, +or not numeric.less_than_equal_to[8]
        in_listYesReturns FALSE if the form element is not within a predetermined list.in_list[red,blue,green]
        alphaNoReturns FALSE if the form element contains anything other than alphabetical characters. 
        alpha_numericNoReturns FALSE if the form element contains anything other than alpha-numeric characters. 
        alpha_numeric_spacesNoReturns FALSE if the form element contains anything other than alpha-numeric characters +or spaces. Should be used after trim to avoid spaces at the beginning or end. 
        alpha_dashNoReturns FALSE if the form element contains anything other than alpha-numeric characters, +underscores or dashes. 
        numericNoReturns FALSE if the form element contains anything other than numeric characters. 
        integerNoReturns FALSE if the form element contains anything other than an integer. 
        decimalNoReturns FALSE if the form element contains anything other than a decimal number. 
        is_naturalNoReturns FALSE if the form element contains anything other than a natural number: +0, 1, 2, 3, etc. 
        is_natural_no_zeroNoReturns FALSE if the form element contains anything other than a natural +number, but not zero: 1, 2, 3, etc. 
        valid_urlNoReturns FALSE if the form element does not contain a valid URL. 
        valid_emailNoReturns FALSE if the form element does not contain a valid email address. 
        valid_emailsNoReturns FALSE if any value provided in a comma separated list is not a valid email. 
        valid_ipYesReturns FALSE if the supplied IP address is not valid. +Accepts an optional parameter of ‘ipv4’ or ‘ipv6’ to specify an IP format. 
        valid_base64NoReturns FALSE if the supplied string contains anything other than valid Base64 characters. 
        +
        +

        Note

        +

        These rules can also be called as discrete methods. For +example:

        +
        $this->form_validation->required($string);
        +
        +
        +
        +
        +

        Note

        +

        You can also use any native PHP functions that permit up +to two parameters, where at least one is required (to pass +the field data).

        +
        +
        +
        +

        Prepping Reference

        +

        The following is a list of all the prepping methods that are available +to use:

        + +++++ + + + + + + + + + + + + + + + + + + + + + + + + +
        NameParameterDescription
        prep_for_formNoDEPRECATED: Converts special characters so that HTML data can be shown in a form field without breaking it.
        prep_urlNoAdds “http://” to URLs if missing.
        strip_image_tagsNoStrips the HTML from image tags leaving the raw URL.
        encode_php_tagsNoConverts PHP tags to entities.
        +
        +

        Note

        +

        You can also use any native PHP functions that permits one +parameter, like trim(), htmlspecialchars(), urldecode(), +etc.

        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Form_validation
        +
        +
        +set_rules($field[, $label = ''[, $rules = ''[, $errors = array()]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $label (string) – Field label
        • +
        • $rules (mixed) – Validation rules, as a string list separated by a pipe “|”, or as an array or rules
        • +
        • $errors (array) – A list of custom error messages
        • +
        +
        Returns:

        CI_Form_validation instance (method chaining)

        +
        Return type:

        CI_Form_validation

        +
        +

        Permits you to set validation rules, as described in the tutorial +sections above:

        + +
        + +
        +
        +run([$group = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $group (string) – The name of the validation group to run
        • +
        +
        Returns:

        TRUE on success, FALSE if validation failed

        +
        Return type:

        bool

        +
        +

        Runs the validation routines. Returns boolean TRUE on success and FALSE +on failure. You can optionally pass the name of the validation group via +the method, as described in: Saving Sets of Validation Rules to a Config File

        +
        + +
        +
        +set_message($lang[, $val = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $lang (string) – The rule the message is for
        • +
        • $val (string) – The message
        • +
        +
        Returns:

        CI_Form_validation instance (method chaining)

        +
        Return type:

        CI_Form_validation

        +
        +

        Permits you to set custom error messages. See Setting Error Messages

        +
        + +
        +
        +set_error_delimiters([$prefix = '<p>'[, $suffix = '</p>']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $prefix (string) – Error message prefix
        • +
        • $suffix (string) – Error message suffix
        • +
        +
        Returns:

        CI_Form_validation instance (method chaining)

        +
        Return type:

        CI_Form_validation

        +
        +

        Sets the default prefix and suffix for error messages.

        +
        + +
        +
        +set_data($data)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $data (array) – Array of data validate
        • +
        +
        Returns:

        CI_Form_validation instance (method chaining)

        +
        Return type:

        CI_Form_validation

        +
        +

        Permits you to set an array for validation, instead of using the default +$_POST array.

        +
        + +
        +
        +reset_validation()
        +
        +++ + + + + + +
        Returns:CI_Form_validation instance (method chaining)
        Return type:CI_Form_validation
        +

        Permits you to reset the validation when you validate more than one array. +This method should be called before validating each new array.

        +
        + +
        +
        +error_array()
        +
        +++ + + + + + +
        Returns:Array of error messages
        Return type:array
        +

        Returns the error messages as an array.

        +
        + +
        +
        +error_string([$prefix = ''[, $suffix = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $prefix (string) – Error message prefix
        • +
        • $suffix (string) – Error message suffix
        • +
        +
        Returns:

        Error messages as a string

        +
        Return type:

        string

        +
        +

        Returns all error messages (as returned from error_array()) formatted as a +string and separated by a newline character.

        +
        + +
        +
        +error($field[, $prefix = ''[, $suffix = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        • $prefix (string) – Optional prefix
        • +
        • $suffix (string) – Optional suffix
        • +
        +
        Returns:

        Error message string

        +
        Return type:

        string

        +
        +

        Returns the error message for a specific field, optionally adding a +prefix and/or suffix to it (usually HTML tags).

        +
        + +
        +
        +has_rule($field)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $field (string) – Field name
        • +
        +
        Returns:

        TRUE if the field has rules set, FALSE if not

        +
        Return type:

        bool

        +
        +

        Checks to see if there is a rule set for the specified field.

        +
        + +
        + +
        +
        +

        Helper Reference

        +

        Please refer to the Form Helper manual for +the following functions:

        + +

        Note that these are procedural functions, so they do not require you +to prepend them with $this->form_validation.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/ftp.html b/sna/user_guide/libraries/ftp.html new file mode 100644 index 0000000..07f1927 --- /dev/null +++ b/sna/user_guide/libraries/ftp.html @@ -0,0 +1,1017 @@ + + + + + + + + + + FTP Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        FTP Class

        +

        CodeIgniter’s FTP Class permits files to be transferred to a remote +server. Remote files can also be moved, renamed, and deleted. The FTP +class also includes a “mirroring” function that permits an entire local +directory to be recreated remotely via FTP.

        +
        +

        Note

        +

        SFTP and SSL FTP protocols are not supported, only standard +FTP.

        +
        + +
        +

        Working with the FTP Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the FTP class is initialized in +your controller using the $this->load->library function:

        +
        $this->load->library('ftp');
        +
        +
        +

        Once loaded, the FTP object will be available using: $this->ftp

        +
        +
        +

        Usage Examples

        +

        In this example a connection is opened to the FTP server, and a local +file is read and uploaded in ASCII mode. The file permissions are set to +755.

        +
        $this->load->library('ftp');
        +
        +$config['hostname'] = 'ftp.example.com';
        +$config['username'] = 'your-username';
        +$config['password'] = 'your-password';
        +$config['debug']        = TRUE;
        +
        +$this->ftp->connect($config);
        +
        +$this->ftp->upload('/local/path/to/myfile.html', '/public_html/myfile.html', 'ascii', 0775);
        +
        +$this->ftp->close();
        +
        +
        +

        In this example a list of files is retrieved from the server.

        +
        $this->load->library('ftp');
        +
        +$config['hostname'] = 'ftp.example.com';
        +$config['username'] = 'your-username';
        +$config['password'] = 'your-password';
        +$config['debug']        = TRUE;
        +
        +$this->ftp->connect($config);
        +
        +$list = $this->ftp->list_files('/public_html/');
        +
        +print_r($list);
        +
        +$this->ftp->close();
        +
        +
        +

        In this example a local directory is mirrored on the server.

        +
        $this->load->library('ftp');
        +
        +$config['hostname'] = 'ftp.example.com';
        +$config['username'] = 'your-username';
        +$config['password'] = 'your-password';
        +$config['debug']        = TRUE;
        +
        +$this->ftp->connect($config);
        +
        +$this->ftp->mirror('/path/to/myfolder/', '/public_html/myfolder/');
        +
        +$this->ftp->close();
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_FTP
        +
        +
        +connect([$config = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $config (array) – Connection values
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Connects and logs into to the FTP server. Connection preferences are set +by passing an array to the function, or you can store them in a config +file.

        +

        Here is an example showing how you set preferences manually:

        +
        $this->load->library('ftp');
        +
        +$config['hostname'] = 'ftp.example.com';
        +$config['username'] = 'your-username';
        +$config['password'] = 'your-password';
        +$config['port']     = 21;
        +$config['passive']  = FALSE;
        +$config['debug']    = TRUE;
        +
        +$this->ftp->connect($config);
        +
        +
        +

        Setting FTP Preferences in a Config File

        +

        If you prefer you can store your FTP preferences in a config file. +Simply create a new file called the ftp.php, add the $config array in +that file. Then save the file at application/config/ftp.php and it +will be used automatically.

        +

        Available connection options

        + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Option nameDefault valueDescription
        hostnamen/aFTP hostname (usually something like: ftp.example.com)
        usernamen/aFTP username
        passwordn/aFTP password
        port21FTP server port number
        debugFALSETRUE/FALSE (boolean): Whether to enable debugging to display error messages
        passiveTRUETRUE/FALSE (boolean): Whether to use passive mode
        +
        + +
        +
        +upload($locpath, $rempath[, $mode = 'auto'[, $permissions = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $locpath (string) – Local file path
        • +
        • $rempath (string) – Remote file path
        • +
        • $mode (string) – FTP mode, defaults to ‘auto’ (options are: ‘auto’, ‘binary’, ‘ascii’)
        • +
        • $permissions (int) – File permissions (octal)
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Uploads a file to your server. You must supply the local path and the +remote path, and you can optionally set the mode and permissions. +Example:

        +
        $this->ftp->upload('/local/path/to/myfile.html', '/public_html/myfile.html', 'ascii', 0775);
        +
        +
        +

        If ‘auto’ mode is used it will base the mode on the file extension of the source file.

        +

        If set, permissions have to be passed as an octal value.

        +
        + +
        +
        +download($rempath, $locpath[, $mode = 'auto'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $rempath (string) – Remote file path
        • +
        • $locpath (string) – Local file path
        • +
        • $mode (string) – FTP mode, defaults to ‘auto’ (options are: ‘auto’, ‘binary’, ‘ascii’)
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Downloads a file from your server. You must supply the remote path and +the local path, and you can optionally set the mode. Example:

        +
        $this->ftp->download('/public_html/myfile.html', '/local/path/to/myfile.html', 'ascii');
        +
        +
        +

        If ‘auto’ mode is used it will base the mode on the file extension of the source file.

        +

        Returns FALSE if the download does not execute successfully +(including if PHP does not have permission to write the local file).

        +
        + +
        +
        +rename($old_file, $new_file[, $move = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $old_file (string) – Old file name
        • +
        • $new_file (string) – New file name
        • +
        • $move (bool) – Whether a move is being performed
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Permits you to rename a file. Supply the source file name/path and the new file name/path.

        +
        // Renames green.html to blue.html
        +$this->ftp->rename('/public_html/foo/green.html', '/public_html/foo/blue.html');
        +
        +
        +
        + +
        +
        +move($old_file, $new_file)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $old_file (string) – Old file name
        • +
        • $new_file (string) – New file name
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Lets you move a file. Supply the source and destination paths:

        +
        // Moves blog.html from "joe" to "fred"
        +$this->ftp->move('/public_html/joe/blog.html', '/public_html/fred/blog.html');
        +
        +
        +
        +

        Note

        +

        If the destination file name is different the file will be renamed.

        +
        +
        + +
        +
        +delete_file($filepath)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $filepath (string) – Path to file to delete
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Lets you delete a file. Supply the source path with the file name.

        +
        $this->ftp->delete_file('/public_html/joe/blog.html');
        +
        +
        +
        + +
        +
        +delete_dir($filepath)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $filepath (string) – Path to directory to delete
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Lets you delete a directory and everything it contains. Supply the +source path to the directory with a trailing slash.

        +
        +

        Important

        +

        Be VERY careful with this method! +It will recursively delete everything within the supplied path, +including sub-folders and all files. Make absolutely sure your path +is correct. Try using list_files() first to verify that your path is correct.

        +
        +
        $this->ftp->delete_dir('/public_html/path/to/folder/');
        +
        +
        +
        + +
        +
        +list_files([$path = '.'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Directory path
        • +
        +
        Returns:

        An array list of files or FALSE on failure

        +
        Return type:

        array

        +
        +

        Permits you to retrieve a list of files on your server returned as an +array. You must supply the path to the desired directory.

        +
        $list = $this->ftp->list_files('/public_html/');
        +print_r($list);
        +
        +
        +
        + +
        +
        +mirror($locpath, $rempath)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $locpath (string) – Local path
        • +
        • $rempath (string) – Remote path
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Recursively reads a local folder and everything it contains (including +sub-folders) and creates a mirror via FTP based on it. Whatever the +directory structure of the original file path will be recreated on the +server. You must supply a source path and a destination path:

        +
        $this->ftp->mirror('/path/to/myfolder/', '/public_html/myfolder/');
        +
        +
        +
        + +
        +
        +mkdir($path[, $permissions = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Path to directory to create
        • +
        • $permissions (int) – Permissions (octal)
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Lets you create a directory on your server. Supply the path ending in +the folder name you wish to create, with a trailing slash.

        +

        Permissions can be set by passing an octal value in the second parameter.

        +
        // Creates a folder named "bar"
        +$this->ftp->mkdir('/public_html/foo/bar/', 0755);
        +
        +
        +
        + +
        +
        +chmod($path, $perm)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Path to alter permissions for
        • +
        • $perm (int) – Permissions (octal)
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Permits you to set file permissions. Supply the path to the file or +directory you wish to alter permissions on:

        +
        // Chmod "bar" to 755
        +$this->ftp->chmod('/public_html/foo/bar/', 0755);
        +
        +
        +
        + +
        +
        +changedir($path[, $suppress_debug = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Directory path
        • +
        • $suppress_debug (bool) – Whether to turn off debug messages for this command
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Changes the current working directory to the specified path.

        +

        The $suppress_debug parameter is useful in case you want to use this method +as an is_dir() alternative for FTP.

        +
        + +
        +
        +close()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        Closes the connection to your server. It’s recommended that you use this +when you are finished uploading.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/image_lib.html b/sna/user_guide/libraries/image_lib.html new file mode 100644 index 0000000..a4150c0 --- /dev/null +++ b/sna/user_guide/libraries/image_lib.html @@ -0,0 +1,1256 @@ + + + + + + + + + + Image Manipulation Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • Image Manipulation Class
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Image Manipulation Class

        +

        CodeIgniter’s Image Manipulation class lets you perform the following +actions:

        +
          +
        • Image Resizing
        • +
        • Thumbnail Creation
        • +
        • Image Cropping
        • +
        • Image Rotating
        • +
        • Image Watermarking
        • +
        +

        All three major image libraries are supported: GD/GD2, NetPBM, and +ImageMagick

        +
        +

        Note

        +

        Watermarking is only available using the GD/GD2 library. In +addition, even though other libraries are supported, GD is required in +order for the script to calculate the image properties. The image +processing, however, will be performed with the library you specify.

        +
        + +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the image class is initialized +in your controller using the $this->load->library function:

        +
        $this->load->library('image_lib');
        +
        +
        +

        Once the library is loaded it will be ready for use. The image library +object you will use to call all functions is: $this->image_lib

        +
        +

        Processing an Image

        +

        Regardless of the type of processing you would like to perform +(resizing, cropping, rotation, or watermarking), the general process is +identical. You will set some preferences corresponding to the action you +intend to perform, then call one of four available processing functions. +For example, to create an image thumbnail you’ll do this:

        +
        $config['image_library'] = 'gd2';
        +$config['source_image'] = '/path/to/image/mypic.jpg';
        +$config['create_thumb'] = TRUE;
        +$config['maintain_ratio'] = TRUE;
        +$config['width']         = 75;
        +$config['height']       = 50;
        +
        +$this->load->library('image_lib', $config);
        +
        +$this->image_lib->resize();
        +
        +
        +

        The above code tells the image_resize function to look for an image +called mypic.jpg located in the source_image folder, then create a +thumbnail that is 75 X 50 pixels using the GD2 image_library. Since the +maintain_ratio option is enabled, the thumb will be as close to the +target width and height as possible while preserving the original aspect +ratio. The thumbnail will be called mypic_thumb.jpg and located at +the same level as source_image.

        +
        +

        Note

        +

        In order for the image class to be allowed to do any +processing, the folder containing the image files must have write +permissions.

        +
        +
        +

        Note

        +

        Image processing can require a considerable amount of server +memory for some operations. If you are experiencing out of memory errors +while processing images you may need to limit their maximum size, and/or +adjust PHP memory limits.

        +
        +
        +
        +

        Processing Methods

        +

        There are four available processing methods:

        +
          +
        • $this->image_lib->resize()
        • +
        • $this->image_lib->crop()
        • +
        • $this->image_lib->rotate()
        • +
        • $this->image_lib->watermark()
        • +
        +

        These methods return boolean TRUE upon success and FALSE for failure. +If they fail you can retrieve the error message using this function:

        +
        echo $this->image_lib->display_errors();
        +
        +
        +

        A good practice is to use the processing function conditionally, showing an +error upon failure, like this:

        +
        if ( ! $this->image_lib->resize())
        +{
        +        echo $this->image_lib->display_errors();
        +}
        +
        +
        +
        +

        Note

        +

        You can optionally specify the HTML formatting to be applied to +the errors, by submitting the opening/closing tags in the function, +like this:

        +
        $this->image_lib->display_errors('<p>', '</p>');
        +
        +
        +
        +
        +
        +

        Preferences

        +

        The preferences described below allow you to tailor the image processing +to suit your needs.

        +

        Note that not all preferences are available for every function. For +example, the x/y axis preferences are only available for image cropping. +Likewise, the width and height preferences have no effect on cropping. +The “availability” column indicates which functions support a given +preference.

        +

        Availability Legend:

        +
          +
        • R - Image Resizing
        • +
        • C - Image Cropping
        • +
        • X - Image Rotation
        • +
        • W - Image Watermarking
        • +
        + +++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefault ValueOptionsDescriptionAvailability
        image_libraryGD2GD, GD2, ImageMagick, NetPBMSets the image library to be used.R, C, X, W
        library_pathNoneNoneSets the server path to your ImageMagick or NetPBM library. If you use +either of those libraries you must supply the path.R, C, X +R, C, S, W
        source_imageNoneNoneSets the source image name/path. The path must be a relative or absolute +server path, not a URL. 
        dynamic_outputFALSETRUE/FALSE (boolean)Determines whether the new image file should be written to disk or +generated dynamically. Note: If you choose the dynamic setting, only one +image can be shown at a time, and it can’t be positioned on the page. It +simply outputs the raw image dynamically to your browser, along with +image headers.R, C, X, W
        file_permissions0644(integer)File system permissions to apply on the resulting image file, +writing it to the disk. WARNING: Use octal integer notation!R, C, X, W
        quality90%1 - 100%Sets the quality of the image. The higher the quality the larger the +file size.R, C, X, W
        new_imageNoneNoneSets the destination image name/path. You’ll use this preference when +creating an image copy. The path must be a relative or absolute server +path, not a URL.R, C, X, W
        widthNoneNoneSets the width you would like the image set to.R, C
        heightNoneNoneSets the height you would like the image set to.R, C
        create_thumbFALSETRUE/FALSE (boolean)Tells the image processing function to create a thumb.R
        thumb_marker_thumbNoneSpecifies the thumbnail indicator. It will be inserted just before the +file extension, so mypic.jpg would become mypic_thumb.jpgR
        maintain_ratioTRUETRUE/FALSE (boolean)Specifies whether to maintain the original aspect ratio when resizing or +use hard values.R, C
        master_dimautoauto, width, heightSpecifies what to use as the master axis when resizing or creating +thumbs. For example, let’s say you want to resize an image to 100 X 75 +pixels. If the source image size does not allow perfect resizing to +those dimensions, this setting determines which axis should be used as +the hard value. “auto” sets the axis automatically based on whether the +image is taller than wider, or vice versa.R
        rotation_angleNone90, 180, 270, vrt, horSpecifies the angle of rotation when rotating images. Note that PHP +rotates counter-clockwise, so a 90 degree rotation to the right must be +specified as 270.X
        x_axisNoneNoneSets the X coordinate in pixels for image cropping. For example, a +setting of 30 will crop an image 30 pixels from the left.C
        y_axisNoneNoneSets the Y coordinate in pixels for image cropping. For example, a +setting of 30 will crop an image 30 pixels from the top.C
        +
        +
        +

        Setting preferences in a config file

        +

        If you prefer not to set preferences using the above method, you can +instead put them into a config file. Simply create a new file called +image_lib.php, add the $config array in that file. Then save the file +in config/image_lib.php and it will be used automatically. You will +NOT need to use the $this->image_lib->initialize() method if you save +your preferences in a config file.

        +
        +
        +
        +

        Image Watermarking

        +

        The Watermarking feature requires the GD/GD2 library.

        +
        +

        Two Types of Watermarking

        +

        There are two types of watermarking that you can use:

        +
          +
        • Text: The watermark message will be generated using text, either +with a True Type font that you specify, or using the native text +output that the GD library supports. If you use the True Type version +your GD installation must be compiled with True Type support (most +are, but not all).
        • +
        • Overlay: The watermark message will be generated by overlaying an +image (usually a transparent PNG or GIF) containing your watermark +over the source image.
        • +
        +
        +
        +

        Watermarking an Image

        +

        Just as with the other methods (resizing, cropping, and rotating) the +general process for watermarking involves setting the preferences +corresponding to the action you intend to perform, then calling the +watermark function. Here is an example:

        +
        $config['source_image'] = '/path/to/image/mypic.jpg';
        +$config['wm_text'] = 'Copyright 2006 - John Doe';
        +$config['wm_type'] = 'text';
        +$config['wm_font_path'] = './system/fonts/texb.ttf';
        +$config['wm_font_size'] = '16';
        +$config['wm_font_color'] = 'ffffff';
        +$config['wm_vrt_alignment'] = 'bottom';
        +$config['wm_hor_alignment'] = 'center';
        +$config['wm_padding'] = '20';
        +
        +$this->image_lib->initialize($config);
        +
        +$this->image_lib->watermark();
        +
        +
        +

        The above example will use a 16 pixel True Type font to create the text +“Copyright 2006 - John Doe”. The watermark will be positioned at the +bottom/center of the image, 20 pixels from the bottom of the image.

        +
        +

        Note

        +

        In order for the image class to be allowed to do any +processing, the image file must have “write” file permissions +For example, 777.

        +
        +
        +
        +

        Watermarking Preferences

        +

        This table shows the preferences that are available for both types of +watermarking (text or overlay)

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefault ValueOptionsDescription
        wm_typetexttext, overlaySets the type of watermarking that should be used.
        source_imageNoneNoneSets the source image name/path. The path must be a relative or absolute +server path, not a URL.
        dynamic_outputFALSETRUE/FALSE (boolean)Determines whether the new image file should be written to disk or +generated dynamically. Note: If you choose the dynamic setting, only one +image can be shown at a time, and it can’t be positioned on the page. It +simply outputs the raw image dynamically to your browser, along with +image headers.
        quality90%1 - 100%Sets the quality of the image. The higher the quality the larger the +file size.
        wm_paddingNoneA numberThe amount of padding, set in pixels, that will be applied to the +watermark to set it away from the edge of your images.
        wm_vrt_alignmentbottomtop, middle, bottomSets the vertical alignment for the watermark image.
        wm_hor_alignmentcenterleft, center, rightSets the horizontal alignment for the watermark image.
        wm_hor_offsetNoneNoneYou may specify a horizontal offset (in pixels) to apply to the +watermark position. The offset normally moves the watermark to the +right, except if you have your alignment set to “right” then your offset +value will move the watermark toward the left of the image.
        wm_vrt_offsetNoneNoneYou may specify a vertical offset (in pixels) to apply to the watermark +position. The offset normally moves the watermark down, except if you +have your alignment set to “bottom” then your offset value will move the +watermark toward the top of the image.
        +
        +

        Text Preferences

        +

        This table shows the preferences that are available for the text type of +watermarking.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefault ValueOptionsDescription
        wm_textNoneNoneThe text you would like shown as the watermark. Typically this will be a +copyright notice.
        wm_font_pathNoneNoneThe server path to the True Type Font you would like to use. If you do +not use this option, the native GD font will be used.
        wm_font_size16NoneThe size of the text. Note: If you are not using the True Type option +above, the number is set using a range of 1 - 5. Otherwise, you can use +any valid pixel size for the font you’re using.
        wm_font_colorffffffNoneThe font color, specified in hex. Both the full 6-length (ie, 993300) and +the short three character abbreviated version (ie, fff) are supported.
        wm_shadow_colorNoneNoneThe color of the drop shadow, specified in hex. If you leave this blank +a drop shadow will not be used. Both the full 6-length (ie, 993300) and +the short three character abbreviated version (ie, fff) are supported.
        wm_shadow_distance3NoneThe distance (in pixels) from the font that the drop shadow should +appear.
        +
        +
        +

        Overlay Preferences

        +

        This table shows the preferences that are available for the overlay type +of watermarking.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefault ValueOptionsDescription
        wm_overlay_pathNoneNoneThe server path to the image you wish to use as your watermark. Required +only if you are using the overlay method.
        wm_opacity501 - 100Image opacity. You may specify the opacity (i.e. transparency) of your +watermark image. This allows the watermark to be faint and not +completely obscure the details from the original image behind it. A 50% +opacity is typical.
        wm_x_transp4A numberIf your watermark image is a PNG or GIF image, you may specify a color +on the image to be “transparent”. This setting (along with the next) +will allow you to specify that color. This works by specifying the “X” +and “Y” coordinate pixel (measured from the upper left) within the image +that corresponds to a pixel representative of the color you want to be +transparent.
        wm_y_transp4A numberAlong with the previous setting, this allows you to specify the +coordinate to a pixel representative of the color you want to be +transparent.
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Image_lib
        +
        +
        +initialize([$props = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $props (array) – Image processing preferences
        • +
        +
        Returns:

        TRUE on success, FALSE in case of invalid settings

        +
        Return type:

        bool

        +
        +

        Initializes the class for processing an image.

        +
        + +
        +
        +resize()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        The image resizing method lets you resize the original image, create a +copy (with or without resizing), or create a thumbnail image.

        +

        For practical purposes there is no difference between creating a copy +and creating a thumbnail except a thumb will have the thumbnail marker +as part of the name (i.e. mypic_thumb.jpg).

        +

        All preferences listed in the Preferences table are available for this +method except these three: rotation_angle, x_axis and y_axis.

        +

        Creating a Thumbnail

        +

        The resizing method will create a thumbnail file (and preserve the +original) if you set this preference to TRUE:

        +
        $config['create_thumb'] = TRUE;
        +
        +
        +

        This single preference determines whether a thumbnail is created or not.

        +

        Creating a Copy

        +

        The resizing method will create a copy of the image file (and preserve +the original) if you set a path and/or a new filename using this +preference:

        +
        $config['new_image'] = '/path/to/new_image.jpg';
        +
        +
        +

        Notes regarding this preference:

        +
          +
        • If only the new image name is specified it will be placed in the same +folder as the original
        • +
        • If only the path is specified, the new image will be placed in the +destination with the same name as the original.
        • +
        • If both the path and image name are specified it will placed in its +own destination and given the new name.
        • +
        +

        Resizing the Original Image

        +

        If neither of the two preferences listed above (create_thumb, and +new_image) are used, the resizing method will instead target the +original image for processing.

        +
        + +
        +
        +crop()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        The cropping method works nearly identically to the resizing function +except it requires that you set preferences for the X and Y axis (in +pixels) specifying where to crop, like this:

        +
        $config['x_axis'] = 100;
        +$config['y_axis'] = 40;
        +
        +
        +

        All preferences listed in the Preferences table are available for this +method except these: rotation_angle, create_thumb and new_image.

        +

        Here’s an example showing how you might crop an image:

        +
        $config['image_library'] = 'imagemagick';
        +$config['library_path'] = '/usr/X11R6/bin/';
        +$config['source_image'] = '/path/to/image/mypic.jpg';
        +$config['x_axis'] = 100;
        +$config['y_axis'] = 60;
        +
        +$this->image_lib->initialize($config);
        +
        +if ( ! $this->image_lib->crop())
        +{
        +        echo $this->image_lib->display_errors();
        +}
        +
        +
        +
        +

        Note

        +

        Without a visual interface it is difficult to crop images, so this +method is not very useful unless you intend to build such an +interface. That’s exactly what we did using for the photo gallery module +in ExpressionEngine, the CMS we develop. We added a JavaScript UI that +lets the cropping area be selected.

        +
        +
        + +
        +
        +rotate()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        The image rotation method requires that the angle of rotation be set +via its preference:

        +
        $config['rotation_angle'] = '90';
        +
        +
        +

        There are 5 rotation options:

        +
          +
        1. 90 - rotates counter-clockwise by 90 degrees.
        2. +
        3. 180 - rotates counter-clockwise by 180 degrees.
        4. +
        5. 270 - rotates counter-clockwise by 270 degrees.
        6. +
        7. hor - flips the image horizontally.
        8. +
        9. vrt - flips the image vertically.
        10. +
        +

        Here’s an example showing how you might rotate an image:

        +
        $config['image_library'] = 'netpbm';
        +$config['library_path'] = '/usr/bin/';
        +$config['source_image'] = '/path/to/image/mypic.jpg';
        +$config['rotation_angle'] = 'hor';
        +
        +$this->image_lib->initialize($config);
        +
        +if ( ! $this->image_lib->rotate())
        +{
        +        echo $this->image_lib->display_errors();
        +}
        +
        +
        +
        + +
        +
        +watermark()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        Creates a watermark over an image, please refer to the Watermarking an Image +section for more info.

        +
        + +
        +
        +clear()
        +
        +++ + + + +
        Return type:void
        +

        The clear method resets all of the values used when processing an +image. You will want to call this if you are processing images in a +loop.

        +
        $this->image_lib->clear();
        +
        +
        +
        + +
        +
        +display_errors([$open = '<p>[, $close = '</p>']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $open (string) – Error message opening tag
        • +
        • $close (string) – Error message closing tag
        • +
        +
        Returns:

        Error messages

        +
        Return type:

        string

        +
        +

        Returns all detected errors formatted as a string.

        +
        echo $this->image_lib->display_errors();
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/index.html b/sna/user_guide/libraries/index.html new file mode 100644 index 0000000..d183704 --- /dev/null +++ b/sna/user_guide/libraries/index.html @@ -0,0 +1,588 @@ + + + + + + + + + + Libraries — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        + +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/input.html b/sna/user_guide/libraries/input.html new file mode 100644 index 0000000..99a3b5a --- /dev/null +++ b/sna/user_guide/libraries/input.html @@ -0,0 +1,1192 @@ + + + + + + + + + + Input Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Input Class

        +

        The Input Class serves two purposes:

        +
          +
        1. It pre-processes global input data for security.
        2. +
        3. It provides some helper methods for fetching input data and pre-processing it.
        4. +
        +
        +

        Note

        +

        This class is initialized automatically by the system so there +is no need to do it manually.

        +
        + +
        +

        Input Filtering

        +
        +

        Security Filtering

        +

        The security filtering method is called automatically when a new +controller is invoked. It does the +following:

        +
          +
        • If $config['allow_get_array'] is FALSE (default is TRUE), destroys +the global GET array.
        • +
        • Destroys all global variables in the event register_globals is +turned on.
        • +
        • Filters the GET/POST/COOKIE array keys, permitting only alpha-numeric +(and a few other) characters.
        • +
        • Provides XSS (Cross-site Scripting Hacks) filtering. This can be +enabled globally, or upon request.
        • +
        • Standardizes newline characters to PHP_EOL (\n in UNIX-based OSes, +\r\n under Windows). This is configurable.
        • +
        +
        +
        +

        XSS Filtering

        +

        The Input class has the ability to filter input automatically to prevent +cross-site scripting attacks. If you want the filter to run +automatically every time it encounters POST or COOKIE data you can +enable it by opening your application/config/config.php file and setting +this:

        +
        $config['global_xss_filtering'] = TRUE;
        +
        +
        +

        Please refer to the Security class documentation for +information on using XSS Filtering in your application.

        +
        +

        Important

        +

        The ‘global_xss_filtering’ setting is DEPRECATED and kept +solely for backwards-compatibility purposes. XSS escaping should +be performed on output, not input!

        +
        +
        +
        +
        +

        Accessing form data

        +
        +

        Using POST, GET, COOKIE, or SERVER Data

        +

        CodeIgniter comes with helper methods that let you fetch POST, GET, +COOKIE or SERVER items. The main advantage of using the provided +methods rather than fetching an item directly ($_POST['something']) +is that the methods will check to see if the item is set and return +NULL if not. This lets you conveniently use data without +having to test whether an item exists first. In other words, normally +you might do something like this:

        +
        $something = isset($_POST['something']) ? $_POST['something'] : NULL;
        +
        +
        +

        With CodeIgniter’s built in methods you can simply do this:

        +
        $something = $this->input->post('something');
        +
        +
        +

        The main methods are:

        +
          +
        • $this->input->post()
        • +
        • $this->input->get()
        • +
        • $this->input->cookie()
        • +
        • $this->input->server()
        • +
        +
        +
        +

        Using the php://input stream

        +

        If you want to utilize the PUT, DELETE, PATCH or other exotic request +methods, they can only be accessed via a special input stream, that +can only be read once. This isn’t as easy as just reading from e.g. +the $_POST array, because it will always exist and you can try +and access multiple variables without caring that you might only have +one shot at all of the POST data.

        +

        CodeIgniter will take care of that for you, and you can read the data +from the php://input stream at any time, just by using the +$raw_input_stream property:

        +
        $this->input->raw_input_stream;
        +
        +
        +

        Additionally if the input stream is form-encoded like $_POST you can +access its values by calling the +input_stream() method:

        +
        $this->input->input_stream('key');
        +
        +
        +

        Similar to other methods such as get() and post(), if the +requested data is not found, it will return NULL and you can also +decide whether to run the data through xss_clean() by passing +a boolean value as the second parameter:

        +
        $this->input->input_stream('key', TRUE); // XSS Clean
        +$this->input->input_stream('key', FALSE); // No XSS filter
        +
        +
        +
        +

        Note

        +

        You can utilize method() in order to know if you’re reading +PUT, DELETE or PATCH data.

        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Input
        +
        +
        +$raw_input_stream
        +

        Read only property that will return php://input data as is.

        +

        The property can be read multiple times.

        +
        + +
        +
        +post([$index = NULL[, $xss_clean = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (mixed) – POST parameter name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        $_POST if no parameters supplied, otherwise the POST value if found or NULL if not

        +
        Return type:

        mixed

        +
        +

        The first parameter will contain the name of the POST item you are +looking for:

        +
        $this->input->post('some_data');
        +
        +
        +

        The method returns NULL if the item you are attempting to retrieve +does not exist.

        +

        The second optional parameter lets you run the data through the XSS +filter. It’s enabled by setting the second parameter to boolean TRUE +or by setting your $config['global_xss_filtering'] to TRUE.

        +
        $this->input->post('some_data', TRUE);
        +
        +
        +

        To return an array of all POST items call without any parameters.

        +

        To return all POST items and pass them through the XSS filter set the +first parameter NULL while setting the second parameter to boolean TRUE.

        +
        $this->input->post(NULL, TRUE); // returns all POST items with XSS filter
        +$this->input->post(NULL, FALSE); // returns all POST items without XSS filter
        +
        +
        +

        To return an array of multiple POST parameters, pass all the required keys +as an array.

        +
        $this->input->post(array('field1', 'field2'));
        +
        +
        +

        Same rule applied here, to retrieve the parameters with XSS filtering enabled, set the +second parameter to boolean TRUE.

        +
        $this->input->post(array('field1', 'field2'), TRUE);
        +
        +
        +
        + +
        +
        +get([$index = NULL[, $xss_clean = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (mixed) – GET parameter name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        $_GET if no parameters supplied, otherwise the GET value if found or NULL if not

        +
        Return type:

        mixed

        +
        +

        This method is identical to post(), only it fetches GET data.

        +
        $this->input->get('some_data', TRUE);
        +
        +
        +

        To return an array of all GET items call without any parameters.

        +

        To return all GET items and pass them through the XSS filter set the +first parameter NULL while setting the second parameter to boolean TRUE.

        +
        $this->input->get(NULL, TRUE); // returns all GET items with XSS filter
        +$this->input->get(NULL, FALSE); // returns all GET items without XSS filtering
        +
        +
        +

        To return an array of multiple GET parameters, pass all the required keys +as an array.

        +
        $this->input->get(array('field1', 'field2'));
        +
        +
        +

        Same rule applied here, to retrieve the parameters with XSS filtering enabled, set the +second parameter to boolean TRUE.

        +
        $this->input->get(array('field1', 'field2'), TRUE);
        +
        +
        +
        + +
        +
        +post_get($index[, $xss_clean = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (string) – POST/GET parameter name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        POST/GET value if found, NULL if not

        +
        Return type:

        mixed

        +
        +

        This method works pretty much the same way as post() and get(), +only combined. It will search through both POST and GET streams for data, +looking in POST first, and then in GET:

        +
        $this->input->post_get('some_data', TRUE);
        +
        +
        +
        + +
        +
        +get_post($index[, $xss_clean = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (string) – GET/POST parameter name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        GET/POST value if found, NULL if not

        +
        Return type:

        mixed

        +
        +

        This method works the same way as post_get() only it looks for GET +data first.

        +
        +
        $this->input->get_post(‘some_data’, TRUE);
        +
        +

        Note

        +

        This method used to act EXACTLY like post_get(), but it’s +behavior has changed in CodeIgniter 3.0.

        +
        +
        + +
        +
        +cookie([$index = NULL[, $xss_clean = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (mixed) – COOKIE name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        $_COOKIE if no parameters supplied, otherwise the COOKIE value if found or NULL if not

        +
        Return type:

        mixed

        +
        +

        This method is identical to post() and get(), only it fetches cookie +data:

        +
        $this->input->cookie('some_cookie');
        +$this->input->cookie('some_cookie, TRUE); // with XSS filter
        +
        +
        +

        To return an array of multiple cookie values, pass all the required keys +as an array.

        +
        $this->input->cookie(array('some_cookie', 'some_cookie2'));
        +
        +
        +
        +

        Note

        +

        Unlike the Cookie Helper +function get_cookie(), this method does NOT prepend +your configured $config['cookie_prefix'] value.

        +
        +
        + +
        +
        +server($index[, $xss_clean = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (mixed) – Value name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        $_SERVER item value if found, NULL if not

        +
        Return type:

        mixed

        +
        +

        This method is identical to the post(), get() and cookie() +methods, only it fetches server data ($_SERVER):

        +
        $this->input->server('some_data');
        +
        +
        +

        To return an array of multiple $_SERVER values, pass all the required keys +as an array.

        +
        $this->input->server(array('SERVER_PROTOCOL', 'REQUEST_URI'));
        +
        +
        +
        + +
        +
        +input_stream([$index = NULL[, $xss_clean = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (mixed) – Key name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        Input stream array if no parameters supplied, otherwise the specified value if found or NULL if not

        +
        Return type:

        mixed

        +
        +

        This method is identical to get(), post() and cookie(), +only it fetches the php://input stream data.

        +
        + +
        + +
        +++ + + + + + +
        Parameters:
          +
        • $name (mixed) – Cookie name or an array of parameters
        • +
        • $value (string) – Cookie value
        • +
        • $expire (int) – Cookie expiration time in seconds
        • +
        • $domain (string) – Cookie domain
        • +
        • $path (string) – Cookie path
        • +
        • $prefix (string) – Cookie name prefix
        • +
        • $secure (bool) – Whether to only transfer the cookie through HTTPS
        • +
        • $httponly (bool) – Whether to only make the cookie accessible for HTTP requests (no JavaScript)
        • +
        +
        Return type:

        void

        +
        +

        Sets a cookie containing the values you specify. There are two ways to +pass information to this method so that a cookie can be set: Array +Method, and Discrete Parameters:

        +

        Array Method

        +

        Using this method, an associative array is passed to the first +parameter:

        +
        $cookie = array(
        +        'name'   => 'The Cookie Name',
        +        'value'  => 'The Value',
        +        'expire' => '86500',
        +        'domain' => '.some-domain.com',
        +        'path'   => '/',
        +        'prefix' => 'myprefix_',
        +        'secure' => TRUE
        +);
        +
        +$this->input->set_cookie($cookie);
        +
        +
        +

        Notes

        +

        Only the name and value are required. To delete a cookie set it with the +expiration blank.

        +

        The expiration is set in seconds, which will be added to the current +time. Do not include the time, but rather only the number of seconds +from now that you wish the cookie to be valid. If the expiration is +set to zero the cookie will only last as long as the browser is open.

        +

        For site-wide cookies regardless of how your site is requested, add your +URL to the domain starting with a period, like this: +.your-domain.com

        +

        The path is usually not needed since the method sets a root path.

        +

        The prefix is only needed if you need to avoid name collisions with +other identically named cookies for your server.

        +

        The httponly and secure flags, when omitted, will default to your +$config['cookie_httponly'] and $config['cookie_secure'] settings.

        +

        Discrete Parameters

        +

        If you prefer, you can set the cookie by passing data using individual +parameters:

        +
        $this->input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure);
        +
        +
        +
        + +
        +
        +ip_address()
        +
        +++ + + + + + +
        Returns:Visitor’s IP address or ‘0.0.0.0’ if not valid
        Return type:string
        +

        Returns the IP address for the current user. If the IP address is not +valid, the method will return ‘0.0.0.0’:

        +
        echo $this->input->ip_address();
        +
        +
        +
        +

        Important

        +

        This method takes into account the $config['proxy_ips'] +setting and will return the reported HTTP_X_FORWARDED_FOR, +HTTP_CLIENT_IP, HTTP_X_CLIENT_IP or HTTP_X_CLUSTER_CLIENT_IP +address for the allowed IP addresses.

        +
        +
        + +
        +
        +valid_ip($ip[, $which = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $ip (string) – IP address
        • +
        • $which (string) – IP protocol (‘ipv4’ or ‘ipv6’)
        • +
        +
        Returns:

        TRUE if the address is valid, FALSE if not

        +
        Return type:

        bool

        +
        +

        Takes an IP address as input and returns TRUE or FALSE (boolean) depending +on whether it is valid or not.

        +
        +

        Note

        +

        The $this->input->ip_address() method above automatically +validates the IP address.

        +
        +
        if ( ! $this->input->valid_ip($ip))
        +{
        +        echo 'Not Valid';
        +}
        +else
        +{
        +        echo 'Valid';
        +}
        +
        +
        +

        Accepts an optional second string parameter of ‘ipv4’ or ‘ipv6’ to specify +an IP format. The default checks for both formats.

        +
        + +
        +
        +user_agent([$xss_clean = NULL])
        +
        +++ + + + + + + + +
        Returns:

        User agent string or NULL if not set

        +
        Parameters:
          +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Return type:

        mixed

        +
        +

        Returns the user agent string (web browser) being used by the current user, +or NULL if it’s not available.

        +
        echo $this->input->user_agent();
        +
        +
        +

        See the User Agent Class for methods which extract +information from the user agent string.

        +
        + +
        +
        +request_headers([$xss_clean = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        An array of HTTP request headers

        +
        Return type:

        array

        +
        +

        Returns an array of HTTP request headers. +Useful if running in a non-Apache environment where +apache_request_headers() +will not be supported.

        +
        $headers = $this->input->request_headers();
        +
        +
        +
        + +
        +
        +get_request_header($index[, $xss_clean = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $index (string) – HTTP request header name
        • +
        • $xss_clean (bool) – Whether to apply XSS filtering
        • +
        +
        Returns:

        An HTTP request header or NULL if not found

        +
        Return type:

        string

        +
        +

        Returns a single member of the request headers array or NULL +if the searched header is not found.

        +
        $this->input->get_request_header('some-header', TRUE);
        +
        +
        +
        + +
        +
        +is_ajax_request()
        +
        +++ + + + + + +
        Returns:TRUE if it is an Ajax request, FALSE if not
        Return type:bool
        +

        Checks to see if the HTTP_X_REQUESTED_WITH server header has been +set, and returns boolean TRUE if it is or FALSE if not.

        +
        + +
        +
        +is_cli_request()
        +
        +++ + + + + + +
        Returns:TRUE if it is a CLI request, FALSE if not
        Return type:bool
        +

        Checks to see if the application was run from the command-line +interface.

        +
        +

        Note

        +

        This method checks both the PHP SAPI name currently in use +and if the STDIN constant is defined, which is usually a +failsafe way to see if PHP is being run via the command line.

        +
        +
        $this->input->is_cli_request()
        +
        +
        +
        +

        Note

        +

        This method is DEPRECATED and is now just an alias for the +is_cli() function.

        +
        +
        + +
        +
        +method([$upper = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $upper (bool) – Whether to return the request method name in upper or lower case
        • +
        +
        Returns:

        HTTP request method

        +
        Return type:

        string

        +
        +

        Returns the $_SERVER['REQUEST_METHOD'], with the option to set it +in uppercase or lowercase.

        +
        echo $this->input->method(TRUE); // Outputs: POST
        +echo $this->input->method(FALSE); // Outputs: post
        +echo $this->input->method(); // Outputs: post
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/javascript.html b/sna/user_guide/libraries/javascript.html new file mode 100644 index 0000000..f42a7e4 --- /dev/null +++ b/sna/user_guide/libraries/javascript.html @@ -0,0 +1,803 @@ + + + + + + + + + + Javascript Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Javascript Class

        +

        CodeIgniter provides a library to help you with certain common functions +that you may want to use with Javascript. Please note that CodeIgniter +does not require the jQuery library to run, and that any scripting +library will work equally well. The jQuery library is simply presented +as a convenience if you choose to use it.

        +
        +

        Important

        +

        This library is DEPRECATED and should not be used. It has always +been with an ‘experimental’ status and is now no longer supported. +Currently only kept for backwards compatibility.

        +
        + +
        +

        Using the Javascript Class

        +
        +

        Initializing the Class

        +

        To initialize the Javascript class manually in your controller +constructor, use the $this->load->library() method. Currently, +the only available library is jQuery, which will automatically be +loaded like this:

        +
        $this->load->library('javascript');
        +
        +
        +

        The Javascript class also accepts parameters:

        +
          +
        • js_library_driver (string) default: ‘jquery’
        • +
        • autoload (bool) default: TRUE
        • +
        +

        You may override the defaults by sending an associative array:

        +
        $this->load->library(
        +        'javascript',
        +        array(
        +                'js_library_driver' => 'scripto',
        +                'autoload' => FALSE
        +        )
        +);
        +
        +
        +

        Again, presently only ‘jquery’ is available. You may wish to set +autoload to FALSE, though, if you do not want the jQuery library to +automatically include a script tag for the main jQuery script file. This +is useful if you are loading it from a location outside of CodeIgniter, +or already have the script tag in your markup.

        +

        Once loaded, the jQuery library object will be available using:

        +
        +
        $this->javascript
        +
        +
        +

        Setup and Configuration

        +
        +

        Set these variables in your view

        +

        As a Javascript library, your files must be available to your +application.

        +

        As Javascript is a client side language, the library must be able to +write content into your final output. This generally means a view. +You’ll need to include the following variables in the <head> +sections of your output.

        +
        <?php echo $library_src;?>
        +<?php echo $script_head;?>
        +
        +
        +

        $library_src, is where the actual library file will be loaded, as +well as any subsequent plugin script calls; $script_head is where +specific events, functions and other commands will be rendered.

        +
        +
        +

        Set the path to the librarys with config items

        +

        There are some configuration items in Javascript library. These can +either be set in application/config.php, within its own +config/javascript.php file, or within any controller usings the +set_item() function.

        +

        An image to be used as an “ajax loader”, or progress indicator. Without +one, the simple text message of “loading” will appear when Ajax calls +need to be made.

        +
        $config['javascript_location'] = 'http://localhost/codeigniter/themes/js/jquery/';
        +$config['javascript_ajax_img'] = 'images/ajax-loader.gif';
        +
        +
        +

        If you keep your files in the same directories they were downloaded +from, then you need not set this configuration items.

        +
        +
        +
        +

        The jQuery Class

        +

        To initialize the jQuery class manually in your controller constructor, +use the $this->load->library() method:

        +
        $this->load->library('javascript/jquery');
        +
        +
        +

        You may send an optional parameter to determine whether or not a script +tag for the main jQuery file will be automatically included when loading +the library. It will be created by default. To prevent this, load the +library as follows:

        +
        $this->load->library('javascript/jquery', FALSE);
        +
        +
        +

        Once loaded, the jQuery library object will be available using:

        +
        +
        $this->jquery
        +
        +
        +

        jQuery Events

        +

        Events are set using the following syntax.

        +
        $this->jquery->event('element_path', code_to_run());
        +
        +
        +

        In the above example:

        +
          +
        • “event” is any of blur, change, click, dblclick, error, focus, hover, +keydown, keyup, load, mousedown, mouseup, mouseover, mouseup, resize, +scroll, or unload.
        • +
        • “element_path” is any valid jQuery selector. Due to jQuery’s unique +selector syntax, this is usually an element id, or CSS selector. For +example “#notice_area” would effect <div id="notice_area">, and +“#content a.notice” would effect all anchors with a class of “notice” +in the div with id “content”.
        • +
        • code_to_run()” is script your write yourself, or an action such as +an effect from the jQuery library below.
        • +
        +
        +
        +

        Effects

        +

        The query library supports a powerful +Effects repertoire. Before an effect +can be used, it must be loaded:

        +
        $this->jquery->effect([optional path] plugin name); // for example $this->jquery->effect('bounce');
        +
        +
        +
        +

        hide() / show()

        +

        Each of this functions will affect the visibility of an item on your +page. hide() will set an item invisible, show() will reveal it.

        +
        $this->jquery->hide(target, optional speed, optional extra information);
        +$this->jquery->show(target, optional speed, optional extra information);
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        • “speed” is optional, and is set to either slow, normal, fast, or +alternatively a number of milliseconds.
        • +
        • “extra information” is optional, and could include a callback, or +other additional information.
        • +
        +
        +
        +

        toggle()

        +

        toggle() will change the visibility of an item to the opposite of its +current state, hiding visible elements, and revealing hidden ones.

        +
        $this->jquery->toggle(target);
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        +
        +
        +

        animate()

        +
        $this->jquery->animate(target, parameters, optional speed, optional extra information);
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        • “parameters” in jQuery would generally include a series of CSS +properties that you wish to change.
        • +
        • “speed” is optional, and is set to either slow, normal, fast, or +alternatively a number of milliseconds.
        • +
        • “extra information” is optional, and could include a callback, or +other additional information.
        • +
        +

        For a full summary, see +http://api.jquery.com/animate/

        +

        Here is an example of an animate() called on a div with an id of “note”, +and triggered by a click using the jQuery library’s click() event.

        +
        $params = array(
        +'height' => 80,
        +'width' => '50%',
        +'marginLeft' => 125
        +);
        +$this->jquery->click('#trigger', $this->jquery->animate('#note', $params, 'normal'));
        +
        +
        +
        +
        +

        fadeIn() / fadeOut()

        +
        $this->jquery->fadeIn(target,  optional speed, optional extra information);
        +$this->jquery->fadeOut(target,  optional speed, optional extra information);
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        • “speed” is optional, and is set to either slow, normal, fast, or +alternatively a number of milliseconds.
        • +
        • “extra information” is optional, and could include a callback, or +other additional information.
        • +
        +
        +
        +

        toggleClass()

        +

        This function will add or remove a CSS class to its target.

        +
        $this->jquery->toggleClass(target, class)
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        • “class” is any CSS classname. Note that this class must be defined +and available in a CSS that is already loaded.
        • +
        +
        +
        +

        fadeIn() / fadeOut()

        +

        These effects cause an element(s) to disappear or reappear over time.

        +
        $this->jquery->fadeIn(target,  optional speed, optional extra information);
        +$this->jquery->fadeOut(target,  optional speed, optional extra information);
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        • “speed” is optional, and is set to either slow, normal, fast, or +alternatively a number of milliseconds.
        • +
        • “extra information” is optional, and could include a callback, or +other additional information.
        • +
        +
        +
        +

        slideUp() / slideDown() / slideToggle()

        +

        These effects cause an element(s) to slide.

        +
        $this->jquery->slideUp(target,  optional speed, optional extra information);
        +$this->jquery->slideDown(target,  optional speed, optional extra information);
        +$this->jquery->slideToggle(target,  optional speed, optional extra information);
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        • “speed” is optional, and is set to either slow, normal, fast, or +alternatively a number of milliseconds.
        • +
        • “extra information” is optional, and could include a callback, or +other additional information.
        • +
        +
        +
        +
        +

        Plugins

        +

        Some select jQuery plugins are made available using this library.

        +
        +

        corner()

        +

        Used to add distinct corners to page elements. For full details see +http://malsup.com/jquery/corner/

        +
        $this->jquery->corner(target, corner_style);
        +
        +
        +
          +
        • “target” will be any valid jQuery selector or selectors.
        • +
        • “corner_style” is optional, and can be set to any valid style such +as round, sharp, bevel, bite, dog, etc. Individual corners can be set +by following the style with a space and using “tl” (top left), “tr” +(top right), “bl” (bottom left), or “br” (bottom right).
        • +
        +
        $this->jquery->corner("#note", "cool tl br");
        +
        +
        +
        +
        +

        tablesorter()

        +

        description to come

        +
        + +
        +

        calendar()

        +

        description to come

        +
        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/language.html b/sna/user_guide/libraries/language.html new file mode 100644 index 0000000..be3f927 --- /dev/null +++ b/sna/user_guide/libraries/language.html @@ -0,0 +1,734 @@ + + + + + + + + + + Language Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Language Class

        +

        The Language Class provides functions to retrieve language files and +lines of text for purposes of internationalization.

        +

        In your CodeIgniter system folder, you will find a language sub-directory +containing a set of language files for the english idiom. +The files in this directory (system/language/english/) define the regular messages, +error messages, and other generally output terms or expressions, for the different parts +of the CodeIgniter framework.

        +

        You can create or incorporate your own language files, as needed, in order to provide +application-specific error and other messages, or to provide translations of the core +messages into other languages. These translations or additional messages would go inside +your application/language/ directory, with separate sub-directories for each idiom +(for instance, ‘french’ or ‘german’).

        +

        The CodeIgniter framework comes with a set of language files for the “english” idiom. +Additional approved translations for different idioms may be found in the +CodeIgniter 3 Translations repositories. +Each repository deals with a single idiom.

        +

        When CodeIgniter loads language files, it will load the one in system/language/ +first and will then look for an override in your application/language/ directory.

        +
        +

        Note

        +

        Each language should be stored in its own folder. For example, +the English files are located at: system/language/english

        +
        + +
        +

        Handling Multiple Languages

        +

        If you want to support multiple languages in your application, you would provide folders inside +your application/language/ directory for each of them, and you would specify the default +language in your application/config/config.php.

        +

        The application/language/english/ directory would contain any additional language files +needed by your application, for instance for error messages.

        +

        Each of the other idiom-specific directories would contain the core language files that you +obtained from the translations repositories, or that you translated yourself, as well as +any additional ones needed by your application.

        +

        You would store the language you are currently using, for instance in a session variable.

        +
        +

        Sample Language Files

        +
        system/
        +        language/
        +                english/
        +                        ...
        +                        email_lang.php
        +                        form_validation_lang.php
        +                        ...
        +
        +application/
        +        language/
        +                english/
        +                        error_messages_lang.php
        +                french/
        +                        ...
        +                        email_lang.php
        +                        error_messages_lang.php
        +                        form_validation_lang.php
        +                        ...
        +
        +
        +
        +
        +

        Example of switching languages

        +
        $idiom = $this->session->get_userdata('language');
        +$this->lang->load('error_messages', $idiom);
        +$oops = $this->lang->line('message_key');
        +
        +
        +
        +
        +
        +

        Internationalization

        +

        The Language class in CodeIgniter is meant to provide an easy and lightweight +way to support multiplelanguages in your application. It is not meant to be a +full implementation of what is commonly called internationalization and localization.

        +

        We use the term “idiom” to refer to a language using its common name, +rather than using any of the international standards, such as “en”, “en-US”, +or “en-CA-x-ca” for English and some of its variants.

        +
        +

        Note

        +

        There is nothing to prevent you from using those abbreviations in your application!

        +
        +
        +
        +

        Using the Language Class

        +
        +

        Creating Language Files

        +

        Language files must be named with _lang.php as the filename extension. +For example, let’s say you want to create a file containing error messages. +You might name it: error_lang.php

        +

        Within the file you will assign each line of text to an array called +$lang with this prototype:

        +
        $lang['language_key'] = 'The actual message to be shown';
        +
        +
        +
        +

        Note

        +

        It’s a good practice to use a common prefix for all messages +in a given file to avoid collisions with similarly named items in other +files. For example, if you are creating error messages you might prefix +them with error_

        +
        +
        $lang['error_email_missing'] = 'You must submit an email address';
        +$lang['error_url_missing'] = 'You must submit a URL';
        +$lang['error_username_missing'] = 'You must submit a username';
        +
        +
        +
        +
        +

        Loading A Language File

        +

        In order to fetch a line from a particular file you must load the file +first. Loading a language file is done with the following code:

        +
        $this->lang->load('filename', 'language');
        +
        +
        +

        Where filename is the name of the file you wish to load (without the +file extension), and language is the language set containing it (ie, +english). If the second parameter is missing, the default language set +in your application/config/config.php file will be used.

        +

        You can also load multiple language files at the same time by passing an array of language files as first parameter.

        +
        $this->lang->load(array('filename1', 'filename2'));
        +
        +
        +
        +

        Note

        +

        The language parameter can only consist of letters.

        +
        +
        +
        +

        Fetching a Line of Text

        +

        Once your desired language file is loaded you can access any line of +text using this function:

        +
        $this->lang->line('language_key');
        +
        +
        +

        Where language_key is the array key corresponding to the line you wish +to show.

        +

        You can optionally pass FALSE as the second argument of that method to +disable error logging, in case you’re not sure if the line exists:

        +
        $this->lang->line('misc_key', FALSE);
        +
        +
        +
        +

        Note

        +

        This method simply returns the line. It does not echo it.

        +
        +
        +

        Using language lines as form labels

        +

        This feature has been deprecated from the language library and moved to +the lang() function of the Language Helper.

        +
        +
        +
        +

        Auto-loading Languages

        +

        If you find that you need a particular language globally throughout your +application, you can tell CodeIgniter to auto-load it during system initialization. This is done +by opening the application/config/autoload.php file and adding the +language(s) to the autoload array.

        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Lang
        +
        +
        +load($langfile[, $idiom = ''[, $return = FALSE[, $add_suffix = TRUE[, $alt_path = '']]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $langfile (mixed) – Language file to load or array with multiple files
        • +
        • $idiom (string) – Language name (i.e. ‘english’)
        • +
        • $return (bool) – Whether to return the loaded array of translations
        • +
        • $add_suffix (bool) – Whether to add the ‘_lang’ suffix to the language file name
        • +
        • $alt_path (string) – An alternative path to look in for the language file
        • +
        +
        Returns:

        Array of language lines if $return is set to TRUE, otherwise void

        +
        Return type:

        mixed

        +
        +

        Loads a language file.

        +
        + +
        +
        +line($line[, $log_errors = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $line (string) – Language line key name
        • +
        • $log_errors (bool) – Whether to log an error if the line isn’t found
        • +
        +
        Returns:

        Language line string or FALSE on failure

        +
        Return type:

        string

        +
        +

        Fetches a single translation line from the already loaded language files, +based on the line’s name.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/loader.html b/sna/user_guide/libraries/loader.html new file mode 100644 index 0000000..c784cc6 --- /dev/null +++ b/sna/user_guide/libraries/loader.html @@ -0,0 +1,1214 @@ + + + + + + + + + + Loader Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Loader Class

        +

        Loader, as the name suggests, is used to load elements. These elements +can be libraries (classes) View files, +Drivers, +Helpers, +Models, or your own files.

        +
        +

        Note

        +

        This class is initialized automatically by the system so there +is no need to do it manually.

        +
        + +
        +

        Application “Packages”

        +

        An application package allows for the easy distribution of complete sets +of resources in a single directory, complete with its own libraries, +models, helpers, config, and language files. It is recommended that +these packages be placed in the application/third_party directory. Below +is a sample map of an package directory.

        +

        The following is an example of a directory for an application package +named “Foo Bar”.

        +
        /application/third_party/foo_bar
        +
        +config/
        +helpers/
        +language/
        +libraries/
        +models/
        +
        +
        +

        Whatever the purpose of the “Foo Bar” application package, it has its +own config files, helpers, language files, libraries, and models. To use +these resources in your controllers, you first need to tell the Loader +that you are going to be loading resources from a package, by adding the +package path via the add_package_path() method.

        +
        +

        Package view files

        +

        By Default, package view files paths are set when add_package_path() +is called. View paths are looped through, and once a match is +encountered that view is loaded.

        +

        In this instance, it is possible for view naming collisions within +packages to occur, and possibly the incorrect package being loaded. To +ensure against this, set an optional second parameter of FALSE when +calling add_package_path().

        +
        $this->load->add_package_path(APPPATH.'my_app', FALSE);
        +$this->load->view('my_app_index'); // Loads
        +$this->load->view('welcome_message'); // Will not load the default welcome_message b/c the second param to add_package_path is FALSE
        +
        +// Reset things
        +$this->load->remove_package_path(APPPATH.'my_app');
        +
        +// Again without the second parameter:
        +$this->load->add_package_path(APPPATH.'my_app');
        +$this->load->view('my_app_index'); // Loads
        +$this->load->view('welcome_message'); // Loads
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Loader
        +
        +
        +library($library[, $params = NULL[, $object_name = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $library (mixed) – Library name as a string or an array with multiple libraries
        • +
        • $params (array) – Optional array of parameters to pass to the loaded library’s constructor
        • +
        • $object_name (string) – Optional object name to assign the library to
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +

        This method is used to load core classes.

        +
        +

        Note

        +

        We use the terms “class” and “library” interchangeably.

        +
        +

        For example, if you would like to send email with CodeIgniter, the first +step is to load the email class within your controller:

        +
        $this->load->library('email');
        +
        +
        +

        Once loaded, the library will be ready for use, using $this->email.

        +

        Library files can be stored in subdirectories within the main +“libraries” directory, or within your personal application/libraries +directory. To load a file located in a subdirectory, simply include the +path, relative to the “libraries” directory. For example, if you have +file located at:

        +
        libraries/flavors/Chocolate.php
        +
        +
        +

        You will load it using:

        +
        $this->load->library('flavors/chocolate');
        +
        +
        +

        You may nest the file in as many subdirectories as you want.

        +

        Additionally, multiple libraries can be loaded at the same time by +passing an array of libraries to the load method.

        +
        $this->load->library(array('email', 'table'));
        +
        +
        +

        Setting options

        +

        The second (optional) parameter allows you to optionally pass +configuration setting. You will typically pass these as an array:

        +
        $config = array (
        +        'mailtype' => 'html',
        +        'charset'  => 'utf-8,
        +        'priority' => '1'
        +);
        +
        +$this->load->library('email', $config);
        +
        +
        +

        Config options can usually also be set via a config file. Each library +is explained in detail in its own page, so please read the information +regarding each one you would like to use.

        +

        Please take note, when multiple libraries are supplied in an array for +the first parameter, each will receive the same parameter information.

        +

        Assigning a Library to a different object name

        +

        If the third (optional) parameter is blank, the library will usually be +assigned to an object with the same name as the library. For example, if +the library is named Calendar, it will be assigned to a variable named +$this->calendar.

        +

        If you prefer to set your own class names you can pass its value to the +third parameter:

        +
        $this->load->library('calendar', NULL, 'my_calendar');
        +
        +// Calendar class is now accessed using:
        +$this->my_calendar
        +
        +
        +

        Please take note, when multiple libraries are supplied in an array for +the first parameter, this parameter is discarded.

        +
        + +
        +
        +driver($library[, $params = NULL[, $object_name]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $library (mixed) – Library name as a string or an array with multiple libraries
        • +
        • $params (array) – Optional array of parameters to pass to the loaded library’s constructor
        • +
        • $object_name (string) – Optional object name to assign the library to
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +

        This method is used to load driver libraries, acts very much like the +library() method.

        +

        As an example, if you would like to use sessions with CodeIgniter, the first +step is to load the session driver within your controller:

        +
        $this->load->driver('session');
        +
        +
        +

        Once loaded, the library will be ready for use, using $this->session.

        +

        Driver files must be stored in a subdirectory within the main +“libraries” directory, or within your personal application/libraries +directory. The subdirectory must match the parent class name. Read the +Drivers description for details.

        +

        Additionally, multiple driver libraries can be loaded at the same time by +passing an array of drivers to the load method.

        +
        $this->load->driver(array('session', 'cache'));
        +
        +
        +

        Setting options

        +

        The second (optional) parameter allows you to optionally pass +configuration settings. You will typically pass these as an array:

        +
        $config = array(
        +        'sess_driver' => 'cookie',
        +        'sess_encrypt_cookie'  => true,
        +        'encryption_key' => 'mysecretkey'
        +);
        +
        +$this->load->driver('session', $config);
        +
        +
        +

        Config options can usually also be set via a config file. Each library +is explained in detail in its own page, so please read the information +regarding each one you would like to use.

        +

        Assigning a Driver to a different object name

        +

        If the third (optional) parameter is blank, the library will be assigned +to an object with the same name as the parent class. For example, if +the library is named Session, it will be assigned to a variable named +$this->session.

        +

        If you prefer to set your own class names you can pass its value to the +third parameter:

        +
        $this->load->library('session', '', 'my_session');
        +
        +// Session class is now accessed using:
        +$this->my_session
        +
        +
        +
        + +
        +
        +view($view[, $vars = array()[, return = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $view (string) – View name
        • +
        • $vars (array) – An associative array of variables
        • +
        • $return (bool) – Whether to return the loaded view
        • +
        +
        Returns:

        View content string if $return is set to TRUE, otherwise CI_Loader instance (method chaining)

        +
        Return type:

        mixed

        +
        +

        This method is used to load your View files. If you haven’t read the +Views section of the user guide it is +recommended that you do since it shows you how this method is +typically used.

        +

        The first parameter is required. It is the name of the view file you +would like to load.

        +
        +

        Note

        +

        The .php file extension does not need to be specified unless +you use something other than .php.

        +
        +

        The second optional parameter can take an associative array or an +object as input, which it runs through the PHP +extract() function to convert to variables +that can be used in your view files. Again, read the +Views page to learn how this might be useful.

        +

        The third optional parameter lets you change the behavior of the +method so that it returns data as a string rather than sending it to +your browser. This can be useful if you want to process the data in some +way. If you set the parameter to TRUE (boolean) it will return data. The +default behavior is FALSE, which sends it to your browser. Remember to +assign it to a variable if you want the data returned:

        +
        $string = $this->load->view('myfile', '', TRUE);
        +
        +
        +
        + +
        +
        +vars($vars[, $val = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $vars (mixed) – An array of variables or a single variable name
        • +
        • $val (mixed) – Optional variable value
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +

        This method takes an associative array as input and generates +variables using the PHP extract() +function. This method produces the same result as using the second +parameter of the $this->load->view() method above. The reason you +might want to use this method independently is if you would like to +set some global variables in the constructor of your controller and have +them become available in any view file loaded from any method. You can +have multiple calls to this method. The data get cached and merged +into one array for conversion to variables.

        +
        + +
        +
        +get_var($key)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Variable name key
        • +
        +
        Returns:

        Value if key is found, NULL if not

        +
        Return type:

        mixed

        +
        +

        This method checks the associative array of variables available to +your views. This is useful if for any reason a var is set in a library +or another controller method using $this->load->vars().

        +
        + +
        +
        +get_vars()
        +
        +++ + + + + + +
        Returns:An array of all assigned view variables
        Return type:array
        +

        This method retrieves all variables available to your views.

        +
        + +
        +
        +clear_vars()
        +
        +++ + + + + + +
        Returns:CI_Loader instance (method chaining)
        Return type:CI_Loader
        +

        Clears cached view variables.

        +
        + +
        +
        +model($model[, $name = ''[, $db_conn = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $model (mixed) – Model name or an array containing multiple models
        • +
        • $name (string) – Optional object name to assign the model to
        • +
        • $db_conn (string) – Optional database configuration group to load
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +
        $this->load->model('model_name');
        +
        +
        +

        If your model is located in a subdirectory, include the relative path +from your models directory. For example, if you have a model located at +application/models/blog/Queries.php you’ll load it using:

        +
        $this->load->model('blog/queries');
        +
        +
        +

        If you would like your model assigned to a different object name you can +specify it via the second parameter of the loading method:

        +
        $this->load->model('model_name', 'fubar');
        +$this->fubar->method();
        +
        +
        +
        + +
        +
        +database([$params = ''[, $return = FALSE[, $query_builder = NULL]]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $params (mixed) – Database group name or configuration options
        • +
        • $return (bool) – Whether to return the loaded database object
        • +
        • $query_builder (bool) – Whether to load the Query Builder
        • +
        +
        Returns:

        Loaded CI_DB instance or FALSE on failure if $return is set to TRUE, otherwise CI_Loader instance (method chaining)

        +
        Return type:

        mixed

        +
        +

        This method lets you load the database class. The two parameters are +optional. Please see the database +section for more info.

        +
        + +
        +
        +dbforge([$db = NULL[, $return = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $db (object) – Database object
        • +
        • $return (bool) – Whether to return the Database Forge instance
        • +
        +
        Returns:

        Loaded CI_DB_forge instance if $return is set to TRUE, otherwise CI_Loader instance (method chaining)

        +
        Return type:

        mixed

        +
        +

        Loads the Database Forge class, please refer +to that manual for more info.

        +
        + +
        +
        +dbutil([$db = NULL[, $return = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $db (object) – Database object
        • +
        • $return (bool) – Whether to return the Database Utilities instance
        • +
        +
        Returns:

        Loaded CI_DB_utility instance if $return is set to TRUE, otherwise CI_Loader instance (method chaining)

        +
        Return type:

        mixed

        +
        +

        Loads the Database Utilities class, please +refer to that manual for more info.

        +
        + +
        +
        +helper($helpers)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $helpers (mixed) – Helper name as a string or an array containing multiple helpers
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +

        This method loads helper files, where file_name is the name of the +file, without the _helper.php extension.

        +
        + +
        +
        +file($path[, $return = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – File path
        • +
        • $return (bool) – Whether to return the loaded file
        • +
        +
        Returns:

        File contents if $return is set to TRUE, otherwise CI_Loader instance (method chaining)

        +
        Return type:

        mixed

        +
        +

        This is a generic file loading method. Supply the filepath and name in +the first parameter and it will open and read the file. By default the +data is sent to your browser, just like a View file, but if you set the +second parameter to boolean TRUE it will instead return the data as a +string.

        +
        + +
        +
        +language($files[, $lang = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $files (mixed) – Language file name or an array of multiple language files
        • +
        • $lang (string) – Language name
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +

        This method is an alias of the language loading +method: $this->lang->load().

        +
        + +
        +
        +config($file[, $use_sections = FALSE[, $fail_gracefully = FALSE]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $file (string) – Configuration file name
        • +
        • $use_sections (bool) – Whether configuration values should be loaded into their own section
        • +
        • $fail_gracefully (bool) – Whether to just return FALSE in case of failure
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        This method is an alias of the config file loading +method: $this->config->load()

        +
        + +
        +
        +is_loaded($class)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $class (string) – Class name
        • +
        +
        Returns:

        Singleton property name if found, FALSE if not

        +
        Return type:

        mixed

        +
        +

        Allows you to check if a class has already been loaded or not.

        +
        +

        Note

        +

        The word “class” here refers to libraries and drivers.

        +
        +

        If the requested class has been loaded, the method returns its assigned +name in the CI Super-object and FALSE if it’s not:

        +
        $this->load->library('form_validation');
        +$this->load->is_loaded('Form_validation');      // returns 'form_validation'
        +
        +$this->load->is_loaded('Nonexistent_library');  // returns FALSE
        +
        +
        +
        +

        Important

        +

        If you have more than one instance of a class (assigned to +different properties), then the first one will be returned.

        +
        +
        $this->load->library('form_validation', $config, 'fv');
        +$this->load->library('form_validation');
        +
        +$this->load->is_loaded('Form_validation');      // returns 'fv'
        +
        +
        +
        + +
        +
        +add_package_path($path[, $view_cascade = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Path to add
        • +
        • $view_cascade (bool) – Whether to use cascading views
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +

        Adding a package path instructs the Loader class to prepend a given path +for subsequent requests for resources. As an example, the “Foo Bar” +application package above has a library named Foo_bar.php. In our +controller, we’d do the following:

        +
        $this->load->add_package_path(APPPATH.'third_party/foo_bar/')
        +        ->library('foo_bar');
        +
        +
        +
        + +
        +
        +remove_package_path([$path = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Path to remove
        • +
        +
        Returns:

        CI_Loader instance (method chaining)

        +
        Return type:

        CI_Loader

        +
        +

        When your controller is finished using resources from an application +package, and particularly if you have other application packages you +want to work with, you may wish to remove the package path so the Loader +no longer looks in that directory for resources. To remove the last path +added, simply call the method with no parameters.

        +

        Or to remove a specific package path, specify the same path previously +given to add_package_path() for a package.:

        +
        $this->load->remove_package_path(APPPATH.'third_party/foo_bar/');
        +
        +
        +
        + +
        +
        +get_package_paths([$include_base = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $include_base (bool) – Whether to include BASEPATH
        • +
        +
        Returns:

        An array of package paths

        +
        Return type:

        array

        +
        +

        Returns all currently available package paths.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/migration.html b/sna/user_guide/libraries/migration.html new file mode 100644 index 0000000..236776d --- /dev/null +++ b/sna/user_guide/libraries/migration.html @@ -0,0 +1,759 @@ + + + + + + + + + + Migrations Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Migrations Class

        +

        Migrations are a convenient way for you to alter your database in a +structured and organized manner. You could edit fragments of SQL by hand +but you would then be responsible for telling other developers that they +need to go and run them. You would also have to keep track of which changes +need to be run against the production machines next time you deploy.

        +

        The database table migration tracks which migrations have already been +run so all you have to do is update your application files and +call $this->migration->current() to work out which migrations should be run. +The current version is found in application/config/migration.php.

        + +
        +

        Migration file names

        +

        Each Migration is run in numeric order forward or backwards depending on the +method taken. Two numbering styles are available:

        +
          +
        • Sequential: each migration is numbered in sequence, starting with 001. +Each number must be three digits, and there must not be any gaps in the +sequence. (This was the numbering scheme prior to CodeIgniter 3.0.)
        • +
        • Timestamp: each migration is numbered using the timestamp when the migration +was created, in YYYYMMDDHHIISS format (e.g. 20121031100537). This +helps prevent numbering conflicts when working in a team environment, and is +the preferred scheme in CodeIgniter 3.0 and later.
        • +
        +

        The desired style may be selected using the $config['migration_type'] +setting in your application/config/migration.php file.

        +

        Regardless of which numbering style you choose to use, prefix your migration +files with the migration number followed by an underscore and a descriptive +name for the migration. For example:

        +
          +
        • 001_add_blog.php (sequential numbering)
        • +
        • 20121031100537_add_blog.php (timestamp numbering)
        • +
        +
        +
        +

        Create a Migration

        +

        This will be the first migration for a new site which has a blog. All +migrations go in the application/migrations/ directory and have names such +as 20121031100537_add_blog.php.

        +
        <?php
        +
        +defined('BASEPATH') OR exit('No direct script access allowed');
        +
        +class Migration_Add_blog extends CI_Migration {
        +
        +        public function up()
        +        {
        +                $this->dbforge->add_field(array(
        +                        'blog_id' => array(
        +                                'type' => 'INT',
        +                                'constraint' => 5,
        +                                'unsigned' => TRUE,
        +                                'auto_increment' => TRUE
        +                        ),
        +                        'blog_title' => array(
        +                                'type' => 'VARCHAR',
        +                                'constraint' => '100',
        +                        ),
        +                        'blog_description' => array(
        +                                'type' => 'TEXT',
        +                                'null' => TRUE,
        +                        ),
        +                ));
        +                $this->dbforge->add_key('blog_id', TRUE);
        +                $this->dbforge->create_table('blog');
        +        }
        +
        +        public function down()
        +        {
        +                $this->dbforge->drop_table('blog');
        +        }
        +}
        +
        +
        +

        Then in application/config/migration.php set $config['migration_version'] = 20121031100537;.

        +
        +
        +

        Usage Example

        +

        In this example some simple code is placed in application/controllers/Migrate.php +to update the schema.:

        +
        <?php
        +
        +class Migrate extends CI_Controller
        +{
        +
        +        public function index()
        +        {
        +                $this->load->library('migration');
        +
        +                if ($this->migration->current() === FALSE)
        +                {
        +                        show_error($this->migration->error_string());
        +                }
        +        }
        +
        +}
        +
        +
        +
        +
        +

        Migration Preferences

        +

        The following is a table of all the config options for migrations.

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefaultOptionsDescription
        migration_enabledFALSETRUE / FALSEEnable or disable migrations.
        migration_pathAPPPATH.’migrations/’NoneThe path to your migrations folder.
        migration_version0NoneThe current version your database should use.
        migration_tablemigrationsNoneThe table name for storing the schema +version number.
        migration_auto_latestFALSETRUE / FALSEEnable or disable automatically +running migrations.
        migration_type‘timestamp’‘timestamp’ / ‘sequential’The type of numeric identifier used to name +migration files.
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Migration
        +
        +
        +current()
        +
        +++ + + + + + +
        Returns:TRUE if no migrations are found, current version string on success, FALSE on failure
        Return type:mixed
        +

        Migrates up to the current version (whatever is set for +$config['migration_version'] in application/config/migration.php).

        +
        + +
        +
        +error_string()
        +
        +++ + + + + + +
        Returns:Error messages
        Return type:string
        +

        This returns a string of errors that were detected while performing a migration.

        +
        + +
        +
        +find_migrations()
        +
        +++ + + + + + +
        Returns:An array of migration files
        Return type:array
        +

        An array of migration filenames are returned that are found in the migration_path property.

        +
        + +
        +
        +latest()
        +
        +++ + + + + + +
        Returns:Current version string on success, FALSE on failure
        Return type:mixed
        +

        This works much the same way as current() but instead of looking for +the $config['migration_version'] the Migration class will use the very +newest migration found in the filesystem.

        +
        + +
        +
        +version($target_version)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $target_version (mixed) – Migration version to process
        • +
        +
        Returns:

        TRUE if no migrations are found, current version string on success, FALSE on failure

        +
        Return type:

        mixed

        +
        +

        Version can be used to roll back changes or step forwards programmatically to +specific versions. It works just like current() but ignores $config['migration_version'].

        +
        $this->migration->version(5);
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/output.html b/sna/user_guide/libraries/output.html new file mode 100644 index 0000000..76351ad --- /dev/null +++ b/sna/user_guide/libraries/output.html @@ -0,0 +1,913 @@ + + + + + + + + + + Output Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Output Class

        +

        The Output class is a core class with one main function: To send the +finalized web page to the requesting browser. It is also responsible for +caching your web pages, if you use that +feature.

        +
        +

        Note

        +

        This class is initialized automatically by the system so there +is no need to do it manually.

        +
        +

        Under normal circumstances you won’t even notice the Output class since +it works transparently without your intervention. For example, when you +use the Loader class to load a view file, +it’s automatically passed to the Output class, which will be called +automatically by CodeIgniter at the end of system execution. It is +possible, however, for you to manually intervene with the output if you +need to.

        + +
        +

        Class Reference

        +
        +
        +class CI_Output
        +
        +
        +$parse_exec_vars = TRUE;
        +

        Enables/disables parsing of the {elapsed_time} and {memory_usage} pseudo-variables.

        +

        CodeIgniter will parse those tokens in your output by default. To disable this, set +this property to FALSE in your controller.

        +
        $this->output->parse_exec_vars = FALSE;
        +
        +
        +
        + +
        +
        +set_output($output)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $output (string) – String to set the output to
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Permits you to manually set the final output string. Usage example:

        +
        $this->output->set_output($data);
        +
        +
        +
        +

        Important

        +

        If you do set your output manually, it must be the last thing done +in the function you call it from. For example, if you build a page in one +of your controller methods, don’t set the output until the end.

        +
        +
        + +
        +
        +set_content_type($mime_type[, $charset = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $mime_type (string) – MIME Type idenitifer string
        • +
        • $charset (string) – Character set
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Permits you to set the mime-type of your page so you can serve JSON data, JPEG’s, XML, etc easily.

        +
        $this->output
        +        ->set_content_type('application/json')
        +        ->set_output(json_encode(array('foo' => 'bar')));
        +
        +$this->output
        +        ->set_content_type('jpeg') // You could also use ".jpeg" which will have the full stop removed before looking in config/mimes.php
        +        ->set_output(file_get_contents('files/something.jpg'));
        +
        +
        +
        +

        Important

        +

        Make sure any non-mime string you pass to this method +exists in application/config/mimes.php or it will have no effect.

        +
        +

        You can also set the character set of the document, by passing a second argument:

        +
        $this->output->set_content_type('css', 'utf-8');
        +
        +
        +
        + +
        +
        +get_content_type()
        +
        +++ + + + + + +
        Returns:Content-Type string
        Return type:string
        +

        Returns the Content-Type HTTP header that’s currently in use, excluding the character set value.

        +
        $mime = $this->output->get_content_type();
        +
        +
        +
        +

        Note

        +

        If not set, the default return value is ‘text/html’.

        +
        +
        + +
        +
        +get_header($header)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $header (string) – HTTP header name
        • +
        +
        Returns:

        HTTP response header or NULL if not found

        +
        Return type:

        mixed

        +
        +

        Returns the requested HTTP header value, or NULL if the requested header is not set. +Example:

        +
        $this->output->set_content_type('text/plain', 'UTF-8');
        +echo $this->output->get_header('content-type');
        +// Outputs: text/plain; charset=utf-8
        +
        +
        +
        +

        Note

        +

        The header name is compared in a case-insensitive manner.

        +
        +
        +

        Note

        +

        Raw headers sent via PHP’s native header() function are also detected.

        +
        +
        + +
        +
        +get_output()
        +
        +++ + + + + + +
        Returns:Output string
        Return type:string
        +

        Permits you to manually retrieve any output that has been sent for +storage in the output class. Usage example:

        +
        $string = $this->output->get_output();
        +
        +
        +

        Note that data will only be retrievable from this function if it has +been previously sent to the output class by one of the CodeIgniter +functions like $this->load->view().

        +
        + +
        +
        +append_output($output)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $output (string) – Additional output data to append
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Appends data onto the output string.

        +
        $this->output->append_output($data);
        +
        +
        +
        + +
        +
        +set_header($header[, $replace = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $header (string) – HTTP response header
        • +
        • $replace (bool) – Whether to replace the old header value, if it is already set
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Permits you to manually set server headers, which the output class will +send for you when outputting the final rendered display. Example:

        +
        $this->output->set_header('HTTP/1.0 200 OK');
        +$this->output->set_header('HTTP/1.1 200 OK');
        +$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s', $last_update).' GMT');
        +$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
        +$this->output->set_header('Cache-Control: post-check=0, pre-check=0');
        +$this->output->set_header('Pragma: no-cache');
        +
        +
        +
        + +
        +
        +set_status_header([$code = 200[, $text = '']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $code (int) – HTTP status code
        • +
        • $text (string) – Optional message
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Permits you to manually set a server status header. Example:

        +
        $this->output->set_status_header(401);
        +// Sets the header as:  Unauthorized
        +
        +
        +

        See here for a full list of headers.

        +
        +

        Note

        +

        This method is an alias for Common function +set_status_header().

        +
        +
        + +
        +
        +enable_profiler([$val = TRUE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $val (bool) – Whether to enable or disable the Profiler
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Permits you to enable/disable the Profiler, which will display benchmark +and other data at the bottom of your pages for debugging and optimization purposes.

        +

        To enable the profiler place the following line anywhere within your +Controller methods:

        +
        $this->output->enable_profiler(TRUE);
        +
        +
        +

        When enabled a report will be generated and inserted at the bottom of your pages.

        +

        To disable the profiler you would use:

        +
        $this->output->enable_profiler(FALSE);
        +
        +
        +
        + +
        +
        +set_profiler_sections($sections)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $sections (array) – Profiler sections
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Permits you to enable/disable specific sections of the Profiler when it is enabled. +Please refer to the Profiler documentation for further information.

        +
        + +
        +
        +cache($time)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $time (int) – Cache expiration time in minutes
        • +
        +
        Returns:

        CI_Output instance (method chaining)

        +
        Return type:

        CI_Output

        +
        +

        Caches the current page for the specified amount of minutes.

        +

        For more information, please see the caching documentation.

        +
        + +
        +
        +_display([$output = ''])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $output (string) – Output data override
        • +
        +
        Returns:

        void

        +
        Return type:

        void

        +
        +

        Sends finalized output data to the browser along with any server headers. It also stops benchmark +timers.

        +
        +

        Note

        +

        This method is called automatically at the end of script execution, you won’t need to +call it manually unless you are aborting script execution using exit() or die() in your code.

        +
        +

        Example:

        +
        $response = array('status' => 'OK');
        +
        +$this->output
        +        ->set_status_header(200)
        +        ->set_content_type('application/json', 'utf-8')
        +        ->set_output(json_encode($response, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES))
        +        ->_display();
        +exit;
        +
        +
        +
        +

        Note

        +

        Calling this method manually without aborting script execution will result in duplicated output.

        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/pagination.html b/sna/user_guide/libraries/pagination.html new file mode 100644 index 0000000..f161dc3 --- /dev/null +++ b/sna/user_guide/libraries/pagination.html @@ -0,0 +1,785 @@ + + + + + + + + + + Pagination Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Pagination Class

        +

        CodeIgniter’s Pagination class is very easy to use, and it is 100% +customizable, either dynamically or via stored preferences.

        + +

        If you are not familiar with the term “pagination”, it refers to links +that allows you to navigate from page to page, like this:

        +
        « First  < 1 2 3 4 5 >  Last »
        +
        +
        +
        +

        Example

        +

        Here is a simple example showing how to create pagination in one of your +controller methods:

        +
        $this->load->library('pagination');
        +
        +$config['base_url'] = 'http://example.com/index.php/test/page/';
        +$config['total_rows'] = 200;
        +$config['per_page'] = 20;
        +
        +$this->pagination->initialize($config);
        +
        +echo $this->pagination->create_links();
        +
        +
        +
        +

        Notes

        +

        The $config array contains your configuration variables. It is passed to +the $this->pagination->initialize() method as shown above. Although +there are some twenty items you can configure, at minimum you need the +three shown. Here is a description of what those items represent:

        +
          +
        • base_url This is the full URL to the controller class/function +containing your pagination. In the example above, it is pointing to a +controller called “Test” and a function called “page”. Keep in mind +that you can re-route your URI if you +need a different structure.
        • +
        • total_rows This number represents the total rows in the result +set you are creating pagination for. Typically this number will be +the total rows that your database query returned.
        • +
        • per_page The number of items you intend to show per page. In the +above example, you would be showing 20 items per page.
        • +
        +

        The create_links() method returns an empty string when there is no +pagination to show.

        +
        +
        +

        Setting preferences in a config file

        +

        If you prefer not to set preferences using the above method, you can +instead put them into a config file. Simply create a new file called +pagination.php, add the $config array in that file. Then save the file +in application/config/pagination.php and it will be used automatically. +You will NOT need to use $this->pagination->initialize() if you save +your preferences in a config file.

        +
        +
        +
        +

        Customizing the Pagination

        +

        The following is a list of all the preferences you can pass to the +initialization function to tailor the display.

        +

        $config[‘uri_segment’] = 3;

        +

        The pagination function automatically determines which segment of your +URI contains the page number. If you need something different you can +specify it.

        +

        $config[‘num_links’] = 2;

        +

        The number of “digit” links you would like before and after the selected +page number. For example, the number 2 will place two digits on either +side, as in the example links at the very top of this page.

        +

        $config[‘use_page_numbers’] = TRUE;

        +

        By default, the URI segment will use the starting index for the items +you are paginating. If you prefer to show the the actual page number, +set this to TRUE.

        +

        $config[‘page_query_string’] = TRUE;

        +

        By default, the pagination library assume you are using URI +Segments, and constructs your links something +like:

        +
        http://example.com/index.php/test/page/20
        +
        +
        +

        If you have $config['enable_query_strings'] set to TRUE your links +will automatically be re-written using Query Strings. This option can +also be explicitly set. Using $config['page_query_string'] set to TRUE, +the pagination link will become:

        +
        http://example.com/index.php?c=test&m=page&per_page=20
        +
        +
        +

        Note that “per_page” is the default query string passed, however can be +configured using $config['query_string_segment'] = 'your_string'

        +

        $config[‘reuse_query_string’] = FALSE;

        +

        By default your Query String arguments (nothing to do with other +query string options) will be ignored. Setting this config to +TRUE will add existing query string arguments back into the +URL after the URI segment and before the suffix.:

        +
        http://example.com/index.php/test/page/20?query=search%term
        +
        +
        +

        This helps you mix together normal URI Segments +as well as query string arguments, which until 3.0 was not possible.

        +

        $config[‘prefix’] = ‘’;

        +

        A custom prefix added to the path. The prefix value will be right before +the offset segment.

        +

        $config[‘suffix’] = ‘’;

        +

        A custom suffix added to the path. The sufix value will be right after +the offset segment.

        +

        $config[‘use_global_url_suffix’] = FALSE;

        +

        When set to TRUE, it will override the $config['suffix'] value and +instead set it to the one that you have in $config['url_suffix'] in +your application/config/config.php file.

        +
        +
        +

        Adding Enclosing Markup

        +

        If you would like to surround the entire pagination with some markup you +can do it with these two preferences:

        +

        $config[‘full_tag_open’] = ‘<p>’;

        +

        The opening tag placed on the left side of the entire result.

        +

        $config[‘full_tag_close’] = ‘</p>’;

        +

        The closing tag placed on the right side of the entire result.

        +
        + + + + + + +
        +

        Hiding the Pages

        +

        If you wanted to not list the specific pages (for example, you only want +“next” and “previous” links), you can suppress their rendering by +adding:

        +
        $config['display_pages'] = FALSE;
        +
        +
        +
        +
        +

        Adding attributes to anchors

        +

        If you want to add an extra attribute to be added to every link rendered +by the pagination class, you can set them as key/value pairs in the +“attributes” config:

        +
        // Produces: class="myclass"
        +$config['attributes'] = array('class' => 'myclass');
        +
        +
        +
        +

        Note

        +

        Usage of the old method of setting classes via “anchor_class” +is deprecated.

        +
        +
        +
        +

        Disabling the “rel” attribute

        +

        By default the rel attribute is dynamically generated and appended to +the appropriate anchors. If for some reason you want to turn it off, +you can pass boolean FALSE as a regular attribute

        +
        $config['attributes']['rel'] = FALSE;
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Pagination
        +
        +
        +initialize([$params = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $params (array) – Configuration parameters
        • +
        +
        Returns:

        CI_Pagination instance (method chaining)

        +
        Return type:

        CI_Pagination

        +
        +

        Initializes the Pagination class with your preferred options.

        +
        + +
        + +
        +++ + + + + + +
        Returns:HTML-formatted pagination
        Return type:string
        +

        Returns a “pagination” bar, containing the generated links or an empty string if there’s just a single page.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/parser.html b/sna/user_guide/libraries/parser.html new file mode 100644 index 0000000..5905f10 --- /dev/null +++ b/sna/user_guide/libraries/parser.html @@ -0,0 +1,851 @@ + + + + + + + + + + Template Parser Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • Template Parser Class
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Template Parser Class

        +

        The Template Parser Class can perform simple text substitution for +pseudo-variables contained within your view files. +It can parse simple variables or variable tag pairs.

        +

        If you’ve never used a template engine, +pseudo-variable names are enclosed in braces, like this:

        +
        <html>
        +        <head>
        +                <title>{blog_title}</title>
        +        </head>
        +        <body>
        +                <h3>{blog_heading}</h3>
        +
        +        {blog_entries}
        +                <h5>{title}</h5>
        +                <p>{body}</p>
        +        {/blog_entries}
        +
        +        </body>
        +</html>
        +
        +
        +

        These variables are not actual PHP variables, but rather plain text +representations that allow you to eliminate PHP from your templates +(view files).

        +
        +

        Note

        +

        CodeIgniter does not require you to use this class since +using pure PHP in your view pages lets them run a little faster. +However, some developers prefer to use a template engine if +they work with designers who they feel would find some +confusion working with PHP.

        +
        +
        +

        Important

        +

        The Template Parser Class is not a full-blown +template parsing solution. We’ve kept it very lean on purpose in order +to maintain maximum performance.

        +
        + +
        +

        Using the Template Parser Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Parser class is initialized +in your controller using the $this->load->library() method:

        +
        $this->load->library('parser');
        +
        +
        +

        Once loaded, the Parser library object will be available using: +$this->parser

        +
        +
        +

        Parsing templates

        +

        You can use the parse() method to parse (or render) simple templates, +like this:

        +
        $data = array(
        +        'blog_title' => 'My Blog Title',
        +        'blog_heading' => 'My Blog Heading'
        +);
        +
        +$this->parser->parse('blog_template', $data);
        +
        +
        +

        The first parameter contains the name of the view +file (in this example the file would be called +blog_template.php), and the second parameter contains an associative +array of data to be replaced in the template. In the above example, the +template would contain two variables: {blog_title} and {blog_heading}

        +

        There is no need to “echo” or do something with the data returned by +$this->parser->parse(). It is automatically passed to the output class +to be sent to the browser. However, if you do want the data returned +instead of sent to the output class you can pass TRUE (boolean) as the +third parameter:

        +
        $string = $this->parser->parse('blog_template', $data, TRUE);
        +
        +
        +
        +
        +

        Variable Pairs

        +

        The above example code allows simple variables to be replaced. What if +you would like an entire block of variables to be repeated, with each +iteration containing new values? Consider the template example we showed +at the top of the page:

        +
        <html>
        +        <head>
        +                <title>{blog_title}</title>
        +        </head>
        +        <body>
        +                <h3>{blog_heading}</h3>
        +
        +        {blog_entries}
        +                <h5>{title}</h5>
        +                <p>{body}</p>
        +        {/blog_entries}
        +
        +        </body>
        +</html>
        +
        +
        +

        In the above code you’ll notice a pair of variables: {blog_entries} +data... {/blog_entries}. In a case like this, the entire chunk of data +between these pairs would be repeated multiple times, corresponding to +the number of rows in the “blog_entries” element of the parameters array.

        +

        Parsing variable pairs is done using the identical code shown above to +parse single variables, except, you will add a multi-dimensional array +corresponding to your variable pair data. Consider this example:

        +
        $this->load->library('parser');
        +
        +$data = array(
        +        'blog_title'   => 'My Blog Title',
        +        'blog_heading' => 'My Blog Heading',
        +        'blog_entries' => array(
        +                array('title' => 'Title 1', 'body' => 'Body 1'),
        +                array('title' => 'Title 2', 'body' => 'Body 2'),
        +                array('title' => 'Title 3', 'body' => 'Body 3'),
        +                array('title' => 'Title 4', 'body' => 'Body 4'),
        +                array('title' => 'Title 5', 'body' => 'Body 5')
        +        )
        +);
        +
        +$this->parser->parse('blog_template', $data);
        +
        +
        +

        If your “pair” data is coming from a database result, which is already a +multi-dimensional array, you can simply use the database result_array() +method:

        +
        $query = $this->db->query("SELECT * FROM blog");
        +
        +$this->load->library('parser');
        +
        +$data = array(
        +        'blog_title'   => 'My Blog Title',
        +        'blog_heading' => 'My Blog Heading',
        +        'blog_entries' => $query->result_array()
        +);
        +
        +$this->parser->parse('blog_template', $data);
        +
        +
        +
        +
        +

        Usage Notes

        +

        If you include substitution parameters that are not referenced in your +template, they are ignored:

        +
        $template = 'Hello, {firstname} {lastname}';
        +$data = array(
        +        'title' => 'Mr',
        +        'firstname' => 'John',
        +        'lastname' => 'Doe'
        +);
        +$this->parser->parse_string($template, $data);
        +
        +// Result: Hello, John Doe
        +
        +
        +

        If you do not include a substitution parameter that is referenced in your +template, the original pseudo-variable is shown in the result:

        +
        $template = 'Hello, {firstname} {initials} {lastname}';
        +$data = array(
        +        'title' => 'Mr',
        +        'firstname' => 'John',
        +        'lastname' => 'Doe'
        +);
        +$this->parser->parse_string($template, $data);
        +
        +// Result: Hello, John {initials} Doe
        +
        +
        +

        If you provide a string substitution parameter when an array is expected, +i.e. for a variable pair, the substitution is done for the opening variable +pair tag, but the closing variable pair tag is not rendered properly:

        +
        $template = 'Hello, {firstname} {lastname} ({degrees}{degree} {/degrees})';
        +$data = array(
        +        'degrees' => 'Mr',
        +        'firstname' => 'John',
        +        'lastname' => 'Doe',
        +        'titles' => array(
        +                array('degree' => 'BSc'),
        +                array('degree' => 'PhD')
        +        )
        +);
        +$this->parser->parse_string($template, $data);
        +
        +// Result: Hello, John Doe (Mr{degree} {/degrees})
        +
        +
        +

        If you name one of your individual substitution parameters the same as one +used inside a variable pair, the results may not be as expected:

        +
        $template = 'Hello, {firstname} {lastname} ({degrees}{degree} {/degrees})';
        +$data = array(
        +        'degree' => 'Mr',
        +        'firstname' => 'John',
        +        'lastname' => 'Doe',
        +        'degrees' => array(
        +                array('degree' => 'BSc'),
        +                array('degree' => 'PhD')
        +        )
        +);
        +$this->parser->parse_string($template, $data);
        +
        +// Result: Hello, John Doe (Mr Mr )
        +
        +
        +
        +
        +

        View Fragments

        +

        You do not have to use variable pairs to get the effect of iteration in +your views. It is possible to use a view fragment for what would be inside +a variable pair, and to control the iteration in your controller instead +of in the view.

        +

        An example with the iteration controlled in the view:

        +
        $template = '<ul>{menuitems}
        +        <li><a href="{link}">{title}</a></li>
        +{/menuitems}</ul>';
        +
        +$data = array(
        +        'menuitems' => array(
        +                array('title' => 'First Link', 'link' => '/first'),
        +                array('title' => 'Second Link', 'link' => '/second'),
        +        )
        +);
        +$this->parser->parse_string($template, $data);
        +
        +
        +

        Result:

        +
        <ul>
        +        <li><a href="/first">First Link</a></li>
        +        <li><a href="/second">Second Link</a></li>
        +</ul>
        +
        +
        +

        An example with the iteration controlled in the controller, +using a view fragment:

        +
        $temp = '';
        +$template1 = '<li><a href="{link}">{title}</a></li>';
        +$data1 = array(
        +        array('title' => 'First Link', 'link' => '/first'),
        +        array('title' => 'Second Link', 'link' => '/second'),
        +);
        +
        +foreach ($data1 as $menuitem)
        +{
        +        $temp .= $this->parser->parse_string($template1, $menuitem, TRUE);
        +}
        +
        +$template = '<ul>{menuitems}</ul>';
        +$data = array(
        +        'menuitems' => $temp
        +);
        +$this->parser->parse_string($template, $data);
        +
        +
        +

        Result:

        +
        <ul>
        +        <li><a href="/first">First Link</a></li>
        +        <li><a href="/second">Second Link</a></li>
        +</ul>
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Parser
        +
        +
        +parse($template, $data[, $return = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $template (string) – Path to view file
        • +
        • $data (array) – Variable data
        • +
        • $return (bool) – Whether to only return the parsed template
        • +
        +
        Returns:

        Parsed template string

        +
        Return type:

        string

        +
        +

        Parses a template from the provided path and variables.

        +
        + +
        +
        +parse_string($template, $data[, $return = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $template (string) – Path to view file
        • +
        • $data (array) – Variable data
        • +
        • $return (bool) – Whether to only return the parsed template
        • +
        +
        Returns:

        Parsed template string

        +
        Return type:

        string

        +
        +

        This method works exactly like parse(), only it accepts +the template as a string instead of loading a view file.

        +
        + +
        +
        +set_delimiters([$l = '{'[, $r = '}']])
        +
        +++ + + + + + +
        Parameters:
          +
        • $l (string) – Left delimiter
        • +
        • $r (string) – Right delimiter
        • +
        +
        Return type:

        void

        +
        +

        Sets the delimiters (opening and closing) for a +pseudo-variable “tag” in a template.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/security.html b/sna/user_guide/libraries/security.html new file mode 100644 index 0000000..a2668b5 --- /dev/null +++ b/sna/user_guide/libraries/security.html @@ -0,0 +1,740 @@ + + + + + + + + + + Security Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Security Class

        +

        The Security Class contains methods that help you create a secure +application, processing input data for security.

        + +
        +

        XSS Filtering

        +

        CodeIgniter comes with a Cross Site Scripting prevention filter, which +looks for commonly used techniques to trigger JavaScript or other types +of code that attempt to hijack cookies or do other malicious things. +If anything disallowed is encountered it is rendered safe by converting +the data to character entities.

        +

        To filter data through the XSS filter use the xss_clean() method:

        +
        $data = $this->security->xss_clean($data);
        +
        +
        +

        An optional second parameter, is_image, allows this function to be used +to test images for potential XSS attacks, useful for file upload +security. When this second parameter is set to TRUE, instead of +returning an altered string, the function returns TRUE if the image is +safe, and FALSE if it contained potentially malicious information that a +browser may attempt to execute.

        +
        if ($this->security->xss_clean($file, TRUE) === FALSE)
        +{
        +        // file failed the XSS test
        +}
        +
        +
        +
        +

        Important

        +

        If you want to filter HTML attribute values, use +html_escape() instead!

        +
        +
        +
        +

        Cross-site request forgery (CSRF)

        +

        You can enable CSRF protection by altering your application/config/config.php +file in the following way:

        +
        $config['csrf_protection'] = TRUE;
        +
        +
        +

        If you use the form helper, then +form_open() will automatically insert a hidden csrf field in +your forms. If not, then you can use get_csrf_token_name() +and get_csrf_hash()

        +
        $csrf = array(
        +        'name' => $this->security->get_csrf_token_name(),
        +        'hash' => $this->security->get_csrf_hash()
        +);
        +
        +...
        +
        +<input type="hidden" name="<?=$csrf['name'];?>" value="<?=$csrf['hash'];?>" />
        +
        +
        +

        Tokens may be either regenerated on every submission (default) or +kept the same throughout the life of the CSRF cookie. The default +regeneration of tokens provides stricter security, but may result +in usability concerns as other tokens become invalid (back/forward +navigation, multiple tabs/windows, asynchronous actions, etc). You +may alter this behavior by editing the following config parameter

        +
        $config['csrf_regenerate'] = TRUE;
        +
        +
        +

        Select URIs can be whitelisted from csrf protection (for example API +endpoints expecting externally POSTed content). You can add these URIs +by editing the ‘csrf_exclude_uris’ config parameter:

        +
        $config['csrf_exclude_uris'] = array('api/person/add');
        +
        +
        +

        Regular expressions are also supported (case-insensitive):

        +
        $config['csrf_exclude_uris'] = array(
        +        'api/record/[0-9]+',
        +        'api/title/[a-z]+'
        +);
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Security
        +
        +
        +xss_clean($str[, $is_image = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (mixed) – Input string or an array of strings
        • +
        +
        Returns:

        XSS-clean data

        +
        Return type:

        mixed

        +
        +

        Tries to remove XSS exploits from the input data and returns the cleaned string. +If the optional second parameter is set to true, it will return boolean TRUE if +the image is safe to use and FALSE if malicious data was detected in it.

        +
        +

        Important

        +

        This method is not suitable for filtering HTML attribute vales! +Use html_escape() for that instead.

        +
        +
        + +
        +
        +sanitize_filename($str[, $relative_path = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – File name/path
        • +
        • $relative_path (bool) – Whether to preserve any directories in the file path
        • +
        +
        Returns:

        Sanitized file name/path

        +
        Return type:

        string

        +
        +

        Tries to sanitize filenames in order to prevent directory traversal attempts +and other security threats, which is particularly useful for files that were supplied via user input.

        +
        $filename = $this->security->sanitize_filename($this->input->post('filename'));
        +
        +
        +

        If it is acceptable for the user input to include relative paths, e.g. +file/in/some/approved/folder.txt, you can set the second optional parameter, $relative_path to TRUE.

        +
        $filename = $this->security->sanitize_filename($this->input->post('filename'), TRUE);
        +
        +
        +
        + +
        +
        +get_csrf_token_name()
        +
        +++ + + + + + +
        Returns:CSRF token name
        Return type:string
        +

        Returns the CSRF token name (the $config['csrf_token_name'] value).

        +
        + +
        +
        +get_csrf_hash()
        +
        +++ + + + + + +
        Returns:CSRF hash
        Return type:string
        +

        Returns the CSRF hash value. Useful in combination with get_csrf_token_name() +for manually building forms or sending valid AJAX POST requests.

        +
        + +
        +
        +entity_decode($str[, $charset = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $charset (string) – Character set of the input string
        • +
        +
        Returns:

        Entity-decoded string

        +
        Return type:

        string

        +
        +

        This method acts a lot like PHP’s own native html_entity_decode() function in ENT_COMPAT mode, only +it tries to detect HTML entities that don’t end in a semicolon because some browsers allow that.

        +

        If the $charset parameter is left empty, then your configured $config['charset'] value will be used.

        +
        + +
        +
        +get_random_bytes($length)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $length (int) – Output length
        • +
        +
        Returns:

        A binary stream of random bytes or FALSE on failure

        +
        Return type:

        string

        +
        +

        A convenience method for getting proper random bytes via mcrypt_create_iv(), +/dev/urandom or openssl_random_pseudo_bytes() (in that order), if one +of them is available.

        +

        Used for generating CSRF and XSS tokens.

        +
        +

        Note

        +

        The output is NOT guaranteed to be cryptographically secure, +just the best attempt at that.

        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/sessions.html b/sna/user_guide/libraries/sessions.html new file mode 100644 index 0000000..efee220 --- /dev/null +++ b/sna/user_guide/libraries/sessions.html @@ -0,0 +1,1923 @@ + + + + + + + + + + Session Library — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Session Library

        +

        The Session class permits you maintain a user’s “state” and track their +activity while they browse your site.

        +

        CodeIgniter comes with a few session storage drivers:

        +
        +
          +
        • files (default; file-system based)
        • +
        • database
        • +
        • redis
        • +
        • memcached
        • +
        +
        +

        In addition, you may create your own, custom session drivers based on other +kinds of storage, while still taking advantage of the features of the +Session class.

        + +
        +

        Using the Session Class

        +
        +

        Initializing a Session

        +

        Sessions will typically run globally with each page load, so the Session +class should either be initialized in your controller constructors, or it can be auto-loaded by the system. +For the most part the session class will run unattended in the background, +so simply initializing the class will cause it to read, create, and update +sessions when necessary.

        +

        To initialize the Session class manually in your controller constructor, +use the $this->load->library() method:

        +
        $this->load->library('session');
        +
        +
        +

        Once loaded, the Sessions library object will be available using:

        +
        $this->session
        +
        +
        +
        +

        Important

        +

        Because the Loader Class is instantiated +by CodeIgniter’s base controller, make sure to call +parent::__construct() before trying to load a library from +inside a controller constructor.

        +
        +
        +
        +

        How do Sessions work?

        +

        When a page is loaded, the session class will check to see if valid +session cookie is sent by the user’s browser. If a sessions cookie does +not exist (or if it doesn’t match one stored on the server or has +expired) a new session will be created and saved.

        +

        If a valid session does exist, its information will be updated. With each +update, the session ID may be regenerated if configured to do so.

        +

        It’s important for you to understand that once initialized, the Session +class runs automatically. There is nothing you need to do to cause the +above behavior to happen. You can, as you’ll see below, work with session +data, but the process of reading, writing, and updating a session is +automatic.

        +
        +

        Note

        +

        Under CLI, the Session library will automatically halt itself, +as this is a concept based entirely on the HTTP protocol.

        +
        +
        +

        A note about concurrency

        +

        Unless you’re developing a website with heavy AJAX usage, you can skip this +section. If you are, however, and if you’re experiencing performance +issues, then this note is exactly what you’re looking for.

        +

        Sessions in previous versions of CodeIgniter didn’t implement locking, +which meant that two HTTP requests using the same session could run exactly +at the same time. To use a more appropriate technical term - requests were +non-blocking.

        +

        However, non-blocking requests in the context of sessions also means +unsafe, because modifications to session data (or session ID regeneration) +in one request can interfere with the execution of a second, concurrent +request. This detail was at the root of many issues and the main reason why +CodeIgniter 3.0 has a completely re-written Session library.

        +

        Why are we telling you this? Because it is likely that after trying to +find the reason for your performance issues, you may conclude that locking +is the issue and therefore look into how to remove the locks ...

        +

        DO NOT DO THAT! Removing locks would be wrong and it will cause you +more problems!

        +

        Locking is not the issue, it is a solution. Your issue is that you still +have the session open, while you’ve already processed it and therefore no +longer need it. So, what you need is to close the session for the +current request after you no longer need it.

        +

        Long story short - call session_write_close() once you no longer need +anything to do with session variables.

        +
        +
        +
        +

        What is Session Data?

        +

        Session data is simply an array associated with a particular session ID +(cookie).

        +

        If you’ve used sessions in PHP before, you should be familiar with PHP’s +$_SESSION superglobal +(if not, please read the content on that link).

        +

        CodeIgniter gives access to its session data through the same means, as it +uses the session handlers’ mechanism provided by PHP. Using session data is +as simple as manipulating (read, set and unset values) the $_SESSION +array.

        +

        In addition, CodeIgniter also provides 2 special types of session data +that are further explained below: flashdata and tempdata.

        +
        +

        Note

        +

        In previous versions, regular session data in CodeIgniter was +referred to as ‘userdata’. Have this in mind if that term is used +elsewhere in the manual. Most of it is written to explain how +the custom ‘userdata’ methods work.

        +
        +
        +
        +

        Retrieving Session Data

        +

        Any piece of information from the session array is available through the +$_SESSION superglobal:

        +
        $_SESSION['item']
        +
        +
        +

        Or through the magic getter:

        +
        $this->session->item
        +
        +
        +

        And for backwards compatibility, through the userdata() method:

        +
        $this->session->userdata('item');
        +
        +
        +

        Where item is the array key corresponding to the item you wish to fetch. +For example, to assign a previously stored ‘name’ item to the $name +variable, you will do this:

        +
        $name = $_SESSION['name'];
        +
        +// or:
        +
        +$name = $this->session->name
        +
        +// or:
        +
        +$name = $this->session->userdata('name');
        +
        +
        +
        +

        Note

        +

        The userdata() method returns NULL if the item you are trying +to access does not exist.

        +
        +

        If you want to retrieve all of the existing userdata, you can simply +omit the item key (magic getter only works for properties):

        +
        $_SESSION
        +
        +// or:
        +
        +$this->session->userdata();
        +
        +
        +
        +
        +

        Adding Session Data

        +

        Let’s say a particular user logs into your site. Once authenticated, you +could add their username and e-mail address to the session, making that +data globally available to you without having to run a database query when +you need it.

        +

        You can simply assign data to the $_SESSION array, as with any other +variable. Or as a property of $this->session.

        +

        Alternatively, the old method of assigning it as “userdata” is also +available. That however passing an array containing your new data to the +set_userdata() method:

        +
        $this->session->set_userdata($array);
        +
        +
        +

        Where $array is an associative array containing your new data. Here’s +an example:

        +
        $newdata = array(
        +        'username'  => 'johndoe',
        +        'email'     => 'johndoe@some-site.com',
        +        'logged_in' => TRUE
        +);
        +
        +$this->session->set_userdata($newdata);
        +
        +
        +

        If you want to add userdata one value at a time, set_userdata() also +supports this syntax:

        +
        $this->session->set_userdata('some_name', 'some_value');
        +
        +
        +

        If you want to verify that a session value exists, simply check with +isset():

        +
        // returns FALSE if the 'some_name' item doesn't exist or is NULL,
        +// TRUE otherwise:
        +isset($_SESSION['some_name'])
        +
        +
        +

        Or you can call has_userdata():

        +
        $this->session->has_userdata('some_name');
        +
        +
        +
        +
        +

        Removing Session Data

        +

        Just as with any other variable, unsetting a value in $_SESSION can be +done through unset():

        +
        unset($_SESSION['some_name']);
        +
        +// or multiple values:
        +
        +unset(
        +        $_SESSION['some_name'],
        +        $_SESSION['another_name']
        +);
        +
        +
        +

        Also, just as set_userdata() can be used to add information to a +session, unset_userdata() can be used to remove it, by passing the +session key. For example, if you wanted to remove ‘some_name’ from your +session data array:

        +
        $this->session->unset_userdata('some_name');
        +
        +
        +

        This method also accepts an array of item keys to unset:

        +
        $array_items = array('username', 'email');
        +
        +$this->session->unset_userdata($array_items);
        +
        +
        +
        +

        Note

        +

        In previous versions, the unset_userdata() method used +to accept an associative array of key => 'dummy value' +pairs. This is no longer supported.

        +
        +
        +
        +

        Flashdata

        +

        CodeIgniter supports “flashdata”, or session data that will only be +available for the next request, and is then automatically cleared.

        +

        This can be very useful, especially for one-time informational, error or +status messages (for example: “Record 2 deleted”).

        +

        It should be noted that flashdata variables are regular session vars, +only marked in a specific way under the ‘__ci_vars’ key (please don’t touch +that one, you’ve been warned).

        +

        To mark an existing item as “flashdata”:

        +
        $this->session->mark_as_flash('item');
        +
        +
        +

        If you want to mark multiple items as flashdata, simply pass the keys as an +array:

        +
        $this->session->mark_as_flash(array('item', 'item2'));
        +
        +
        +

        To add flashdata:

        +
        $_SESSION['item'] = 'value';
        +$this->session->mark_as_flash('item');
        +
        +
        +

        Or alternatively, using the set_flashdata() method:

        +
        $this->session->set_flashdata('item', 'value');
        +
        +
        +

        You can also pass an array to set_flashdata(), in the same manner as +set_userdata().

        +

        Reading flashdata variables is the same as reading regular session data +through $_SESSION:

        +
        $_SESSION['item']
        +
        +
        +
        +

        Important

        +

        The userdata() method will NOT return flashdata items.

        +
        +

        However, if you want to be sure that you’re reading “flashdata” (and not +any other kind), you can also use the flashdata() method:

        +
        $this->session->flashdata('item');
        +
        +
        +

        Or to get an array with all flashdata, simply omit the key parameter:

        +
        $this->session->flashdata();
        +
        +
        +
        +

        Note

        +

        The flashdata() method returns NULL if the item cannot be +found.

        +
        +

        If you find that you need to preserve a flashdata variable through an +additional request, you can do so using the keep_flashdata() method. +You can either pass a single item or an array of flashdata items to keep.

        +
        $this->session->keep_flashdata('item');
        +$this->session->keep_flashdata(array('item1', 'item2', 'item3'));
        +
        +
        +
        +
        +

        Tempdata

        +

        CodeIgniter also supports “tempdata”, or session data with a specific +expiration time. After the value expires, or the session expires or is +deleted, the value is automatically removed.

        +

        Similarly to flashdata, tempdata variables are regular session vars that +are marked in a specific way under the ‘__ci_vars’ key (again, don’t touch +that one).

        +

        To mark an existing item as “tempdata”, simply pass its key and expiry time +(in seconds!) to the mark_as_temp() method:

        +
        // 'item' will be erased after 300 seconds
        +$this->session->mark_as_temp('item', 300);
        +
        +
        +

        You can mark multiple items as tempdata in two ways, depending on whether +you want them all to have the same expiry time or not:

        +
        // Both 'item' and 'item2' will expire after 300 seconds
        +$this->session->mark_as_temp(array('item', 'item2'), 300);
        +
        +// 'item' will be erased after 300 seconds, while 'item2'
        +// will do so after only 240 seconds
        +$this->session->mark_as_temp(array(
        +        'item'  => 300,
        +        'item2' => 240
        +));
        +
        +
        +

        To add tempdata:

        +
        $_SESSION['item'] = 'value';
        +$this->session->mark_as_temp('item', 300); // Expire in 5 minutes
        +
        +
        +

        Or alternatively, using the set_tempdata() method:

        +
        $this->session->set_tempdata('item', 'value', 300);
        +
        +
        +

        You can also pass an array to set_tempdata():

        +
        $tempdata = array('newuser' => TRUE, 'message' => 'Thanks for joining!');
        +
        +$this->session->set_tempdata($tempdata, NULL, $expire);
        +
        +
        +
        +

        Note

        +

        If the expiration is omitted or set to 0, the default +time-to-live value of 300 seconds (or 5 minutes) will be used.

        +
        +

        To read a tempdata variable, again you can just access it through the +$_SESSION superglobal array:

        +
        $_SESSION['item']
        +
        +
        +
        +

        Important

        +

        The userdata() method will NOT return tempdata items.

        +
        +

        Or if you want to be sure that you’re reading “tempdata” (and not any +other kind), you can also use the tempdata() method:

        +
        $this->session->tempdata('item');
        +
        +
        +

        And of course, if you want to retrieve all existing tempdata:

        +
        $this->session->tempdata();
        +
        +
        +
        +

        Note

        +

        The tempdata() method returns NULL if the item cannot be +found.

        +
        +

        If you need to remove a tempdata value before it expires, you can directly +unset it from the $_SESSION array:

        +
        unset($_SESSION['item']);
        +
        +
        +

        However, this won’t remove the marker that makes this specific item to be +tempdata (it will be invalidated on the next HTTP request), so if you +intend to reuse that same key in the same request, you’d want to use +unset_tempdata():

        +
        $this->session->unset_tempdata('item');
        +
        +
        +
        +
        +

        Destroying a Session

        +

        To clear the current session (for example, during a logout), you may +simply use either PHP’s session_destroy() +function, or the sess_destroy() method. Both will work in exactly the +same way:

        +
        session_destroy();
        +
        +// or
        +
        +$this->session->sess_destroy();
        +
        +
        +
        +

        Note

        +

        This must be the last session-related operation that you do +during the same request. All session data (including flashdata and +tempdata) will be destroyed permanently and functions will be +unusable during the same request after you destroy the session.

        +
        +
        +
        +

        Accessing session metadata

        +

        In previous CodeIgniter versions, the session data array included 4 items +by default: ‘session_id’, ‘ip_address’, ‘user_agent’, ‘last_activity’.

        +

        This was due to the specifics of how sessions worked, but is now no longer +necessary with our new implementation. However, it may happen that your +application relied on these values, so here are alternative methods of +accessing them:

        +
        +
          +
        • session_id: session_id()
        • +
        • ip_address: $_SERVER['REMOTE_ADDR']
        • +
        • user_agent: $this->input->user_agent() (unused by sessions)
        • +
        • last_activity: Depends on the storage, no straightforward way. Sorry!
        • +
        +
        +
        +
        +

        Session Preferences

        +

        CodeIgniter will usually make everything work out of the box. However, +Sessions are a very sensitive component of any application, so some +careful configuration must be done. Please take your time to consider +all of the options and their effects.

        +

        You’ll find the following Session related preferences in your +application/config/config.php file:

        + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefaultOptionsDescription
        sess_driverfilesfiles/database/redis/memcached/customThe session storage driver to use.
        sess_cookie_nameci_session[A-Za-z_-] characters onlyThe name used for the session cookie.
        sess_expiration7200 (2 hours)Time in seconds (integer)The number of seconds you would like the session to last. +If you would like a non-expiring session (until browser is closed) set the value to zero: 0
        sess_save_pathNULLNoneSpecifies the storage location, depends on the driver being used.
        sess_match_ipFALSETRUE/FALSE (boolean)Whether to validate the user’s IP address when reading the session cookie. +Note that some ISPs dynamically changes the IP, so if you want a non-expiring session you +will likely set this to FALSE.
        sess_time_to_update300Time in seconds (integer)This option controls how often the session class will regenerate itself and create a new +session ID. Setting it to 0 will disable session ID regeneration.
        sess_regenerate_destroyFALSETRUE/FALSE (boolean)Whether to destroy session data associated with the old session ID when auto-regenerating +the session ID. When set to FALSE, the data will be later deleted by the garbage collector.
        +
        +

        Note

        +

        As a last resort, the Session library will try to fetch PHP’s +session related INI settings, as well as legacy CI settings such as +‘sess_expire_on_close’ when any of the above is not configured. +However, you should never rely on this behavior as it can cause +unexpected results or be changed in the future. Please configure +everything properly.

        +
        +

        In addition to the values above, the cookie and native drivers apply the +following configuration values shared by the Input and +Security classes:

        + +++++ + + + + + + + + + + + + + + + + + + + + +
        PreferenceDefaultDescription
        cookie_domain‘’The domain for which the session is applicable
        cookie_path/The path to which the session is applicable
        cookie_secureFALSEWhether to create the session cookie only on encrypted (HTTPS) connections
        +
        +

        Note

        +

        The ‘cookie_httponly’ setting doesn’t have an effect on sessions. +Instead the HttpOnly parameter is always enabled, for security +reasons. Additionally, the ‘cookie_prefix’ setting is completely +ignored.

        +
        +
        +
        +

        Session Drivers

        +

        As already mentioned, the Session library comes with 4 drivers, or storage +engines, that you can use:

        +
        +
          +
        • files
        • +
        • database
        • +
        • redis
        • +
        • memcached
        • +
        +
        +

        By default, the Files Driver will be used when a session is initialized, +because it is the most safe choice and is expected to work everywhere +(virtually every environment has a file system).

        +

        However, any other driver may be selected via the $config['sess_driver'] +line in your application/config/config.php file, if you chose to do so. +Have it in mind though, every driver has different caveats, so be sure to +get yourself familiar with them (below) before you make that choice.

        +

        In addition, you may also create and use Custom Drivers, if the ones +provided by default don’t satisfy your use case.

        +
        +

        Note

        +

        In previous CodeIgniter versions, a different, “cookie driver” +was the only option and we have received negative feedback on not +providing that option. While we do listen to feedback from the +community, we want to warn you that it was dropped because it is +unsafe and we advise you NOT to try to replicate it via a +custom driver.

        +
        +
        +

        Files Driver

        +

        The ‘files’ driver uses your file system for storing session data.

        +

        It can safely be said that it works exactly like PHP’s own default session +implementation, but in case this is an important detail for you, have it +mind that it is in fact not the same code and it has some limitations +(and advantages).

        +

        To be more specific, it doesn’t support PHP’s directory level and mode +formats used in session.save_path, +and it has most of the options hard-coded for safety. Instead, only +absolute paths are supported for $config['sess_save_path'].

        +

        Another important thing that you should know, is to make sure that you +don’t use a publicly-readable or shared directory for storing your session +files. Make sure that only you have access to see the contents of your +chosen sess_save_path directory. Otherwise, anybody who can do that, can +also steal any of the current sessions (also known as “session fixation” +attack).

        +

        On UNIX-like operating systems, this is usually achieved by setting the +0700 mode permissions on that directory via the chmod command, which +allows only the directory’s owner to perform read and write operations on +it. But be careful because the system user running the script is usually +not your own, but something like ‘www-data’ instead, so only setting those +permissions will probable break your application.

        +

        Instead, you should do something like this, depending on your environment

        +
        mkdir /<path to your application directory>/sessions/
        +chmod 0700 /<path to your application directory>/sessions/
        +chown www-data /<path to your application directory>/sessions/
        +
        +
        +
        +
        Bonus Tip
        +

        Some of you will probably opt to choose another session driver because +file storage is usually slower. This is only half true.

        +

        A very basic test will probably trick you into believing that an SQL +database is faster, but in 99% of the cases, this is only true while you +only have a few current sessions. As the sessions count and server loads +increase - which is the time when it matters - the file system will +consistently outperform almost all relational database setups.

        +

        In addition, if performance is your only concern, you may want to look +into using tmpfs, +(warning: external resource), which can make your sessions blazing fast.

        +
        +
        +
        +

        Database Driver

        +

        The ‘database’ driver uses a relational database such as MySQL or +PostgreSQL to store sessions. This is a popular choice among many users, +because it allows the developer easy access to the session data within +an application - it is just another table in your database.

        +

        However, there are some conditions that must be met:

        +
        +
          +
        • Only your default database connection (or the one that you access +as $this->db from your controllers) can be used.
        • +
        • You must have the Query Builder +enabled.
        • +
        • You can NOT use a persistent connection.
        • +
        • You can NOT use a connection with the cache_on setting enabled.
        • +
        +
        +

        In order to use the ‘database’ session driver, you must also create this +table that we already mentioned and then set it as your +$config['sess_save_path'] value. +For example, if you would like to use ‘ci_sessions’ as your table name, +you would do this:

        +
        $config['sess_driver'] = 'database';
        +$config['sess_save_path'] = 'ci_sessions';
        +
        +
        +
        +

        Note

        +

        If you’ve upgraded from a previous version of CodeIgniter and +you don’t have ‘sess_save_path’ configured, then the Session +library will look for the old ‘sess_table_name’ setting and use +it instead. Please don’t rely on this behavior as it will get +removed in the future.

        +
        +

        And then of course, create the database table ...

        +

        For MySQL:

        +
        CREATE TABLE IF NOT EXISTS `ci_sessions` (
        +        `id` varchar(128) NOT NULL,
        +        `ip_address` varchar(45) NOT NULL,
        +        `timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
        +        `data` blob NOT NULL,
        +        KEY `ci_sessions_timestamp` (`timestamp`)
        +);
        +
        +
        +

        For PostgreSQL:

        +
        CREATE TABLE "ci_sessions" (
        +        "id" varchar(128) NOT NULL,
        +        "ip_address" varchar(45) NOT NULL,
        +        "timestamp" bigint DEFAULT 0 NOT NULL,
        +        "data" text DEFAULT '' NOT NULL
        +);
        +
        +CREATE INDEX "ci_sessions_timestamp" ON "ci_sessions" ("timestamp");
        +
        +
        +

        You will also need to add a PRIMARY KEY depending on your ‘sess_match_ip’ +setting. The examples below work both on MySQL and PostgreSQL:

        +
        // When sess_match_ip = TRUE
        +ALTER TABLE ci_sessions ADD PRIMARY KEY (id, ip_address);
        +
        +// When sess_match_ip = FALSE
        +ALTER TABLE ci_sessions ADD PRIMARY KEY (id);
        +
        +// To drop a previously created primary key (use when changing the setting)
        +ALTER TABLE ci_sessions DROP PRIMARY KEY;
        +
        +
        +
        +

        Important

        +

        Only MySQL and PostgreSQL databases are officially +supported, due to lack of advisory locking mechanisms on other +platforms. Using sessions without locks can cause all sorts of +problems, especially with heavy usage of AJAX, and we will not +support such cases. Use session_write_close() after you’ve +done processing session data if you’re having performance +issues.

        +
        +
        +
        +

        Redis Driver

        +
        +

        Note

        +

        Since Redis doesn’t have a locking mechanism exposed, locks for +this driver are emulated by a separate value that is kept for up +to 300 seconds.

        +
        +

        Redis is a storage engine typically used for caching and popular because +of its high performance, which is also probably your reason to use the +‘redis’ session driver.

        +

        The downside is that it is not as ubiquitous as relational databases and +requires the phpredis PHP +extension to be installed on your system, and that one doesn’t come +bundled with PHP. +Chances are, you’re only be using the ‘redis’ driver only if you’re already +both familiar with Redis and using it for other purposes.

        +

        Just as with the ‘files’ and ‘database’ drivers, you must also configure +the storage location for your sessions via the +$config['sess_save_path'] setting. +The format here is a bit different and complicated at the same time. It is +best explained by the phpredis extension’s README file, so we’ll simply +link you to it:

        +
        +
        +
        +

        Warning

        +

        CodeIgniter’s Session library does NOT use the actual ‘redis’ +session.save_handler. Take note only of the path format in +the link above.

        +
        +

        For the most common case however, a simple host:port pair should be +sufficient:

        +
        $config['sess_driver'] = 'redis';
        +$config['sess_save_path'] = 'tcp://localhost:6379';
        +
        +
        +
        +
        +

        Memcached Driver

        +
        +

        Note

        +

        Since Memcache doesn’t have a locking mechanism exposed, locks +for this driver are emulated by a separate value that is kept for +up to 300 seconds.

        +
        +

        The ‘memcached’ driver is very similar to the ‘redis’ one in all of its +properties, except perhaps for availability, because PHP’s Memcached extension is distributed via PECL and some +Linux distrubutions make it available as an easy to install package.

        +

        Other than that, and without any intentional bias towards Redis, there’s +not much different to be said about Memcached - it is also a popular +product that is usually used for caching and famed for its speed.

        +

        However, it is worth noting that the only guarantee given by Memcached +is that setting value X to expire after Y seconds will result in it being +deleted after Y seconds have passed (but not necessarily that it won’t +expire earlier than that time). This happens very rarely, but should be +considered as it may result in loss of sessions.

        +

        The $config['sess_save_path'] format is fairly straightforward here, +being just a host:port pair:

        +
        $config['sess_driver'] = 'memcached';
        +$config['sess_save_path'] = 'localhost:11211';
        +
        +
        +
        +
        Bonus Tip
        +

        Multi-server configuration with an optional weight parameter as the +third colon-separated (:weight) value is also supported, but we have +to note that we haven’t tested if that is reliable.

        +

        If you want to experiment with this feature (on your own risk), simply +separate the multiple server paths with commas:

        +
        // localhost will be given higher priority (5) here,
        +// compared to 192.0.2.1 with a weight of 1.
        +$config['sess_save_path'] = 'localhost:11211:5,192.0.2.1:11211:1';
        +
        +
        +
        +
        +
        +

        Custom Drivers

        +

        You may also create your own, custom session drivers. However, have it in +mind that this is typically not an easy task, as it takes a lot of +knowledge to do it properly.

        +

        You need to know not only how sessions work in general, but also how they +work specifically in PHP, how the underlying storage mechanism works, how +to handle concurrency, avoid deadlocks (but NOT through lack of locks) and +last but not least - how to handle the potential security issues, which +is far from trivial.

        +

        Long story short - if you don’t know how to do that already in raw PHP, +you shouldn’t be trying to do it within CodeIgniter either. You’ve been +warned.

        +

        If you only want to add some extra functionality to your sessions, just +extend the base Session class, which is a lot more easier. Read the +Creating Libraries article to +learn how to do that.

        +

        Now, to the point - there are three general rules that you must follow +when creating a session driver for CodeIgniter:

        +
        +
          +
        • Put your driver’s file under application/libraries/Session/drivers/ +and follow the naming conventions used by the Session class.

          +

          For example, if you were to create a ‘dummy’ driver, you would have +a Session_dummy_driver class name, that is declared in +application/libraries/Session/drivers/Session_dummy_driver.php.

          +
        • +
        • Extend the CI_Session_driver class.

          +

          This is just a basic class with a few internal helper methods. It is +also extendable like any other library, if you really need to do that, +but we are not going to explain how ... if you’re familiar with how +class extensions/overrides work in CI, then you already know how to do +it. If not, well, you shouldn’t be doing it in the first place.

          +
        • +
        • Implement the SessionHandlerInterface interface.

          +
          +

          Note

          +

          You may notice that SessionHandlerInterface is provided +by PHP since version 5.4.0. CodeIgniter will automatically declare +the same interface if you’re running an older PHP version.

          +
          +

          The link will explain why and how.

          +
        • +
        +
        +

        So, based on our ‘dummy’ driver example above, you’d end up with something +like this:

        +
        // application/libraries/Session/drivers/Session_dummy_driver.php:
        +
        +class CI_Session_dummy_driver extends CI_Session_driver implements SessionHandlerInterface
        +{
        +
        +        public function __construct(&$params)
        +        {
        +                // DO NOT forget this
        +                parent::__construct($params);
        +
        +                // Configuration & other initializations
        +        }
        +
        +        public function open($save_path, $name)
        +        {
        +                // Initialize storage mechanism (connection)
        +        }
        +
        +        public function read($session_id)
        +        {
        +                // Read session data (if exists), acquire locks
        +        }
        +
        +        public function write($session_id, $session_data)
        +        {
        +                // Create / update session data (it might not exist!)
        +        }
        +
        +        public function close()
        +        {
        +                // Free locks, close connections / streams / etc.
        +        }
        +
        +        public function destroy($session_id)
        +        {
        +                // Call close() method & destroy data for current session (order may differ)
        +        }
        +
        +        public function gc($maxlifetime)
        +        {
        +                // Erase data for expired sessions
        +        }
        +
        +}
        +
        +
        +

        If you’ve done everything properly, you can now set your sess_driver +configuration value to ‘dummy’ and use your own driver. Congratulations!

        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Session
        +
        +
        +userdata([$key = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Session item key or NULL
        • +
        +
        Returns:

        Value of the specified item key, or an array of all userdata

        +
        Return type:

        mixed

        +
        +

        Gets the value for a specific $_SESSION item, or an +array of all “userdata” items if not key was specified.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications. You should +directly access $_SESSION instead.

        +
        +
        + +
        +
        +all_userdata()
        +
        +++ + + + + + +
        Returns:An array of all userdata
        Return type:array
        +

        Returns an array containing all “userdata” items.

        +
        +

        Note

        +

        This method is DEPRECATED. Use userdata() +with no parameters instead.

        +
        +
        + +
        +
        +&get_userdata()
        +
        +++ + + + + + +
        Returns:A reference to $_SESSION
        Return type:array
        +

        Returns a reference to the $_SESSION array.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications.

        +
        +
        + +
        +
        +has_userdata($key)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Session item key
        • +
        +
        Returns:

        TRUE if the specified key exists, FALSE if not

        +
        Return type:

        bool

        +
        +

        Checks if an item exists in $_SESSION.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications. It is just +an alias for isset($_SESSION[$key]) - please +use that instead.

        +
        +
        + +
        +
        +set_userdata($data[, $value = NULL])
        +
        +++ + + + + + +
        Parameters:
          +
        • $data (mixed) – An array of key/value pairs to set as session data, or the key for a single item
        • +
        • $value (mixed) – The value to set for a specific session item, if $data is a key
        • +
        +
        Return type:

        void

        +
        +

        Assigns data to the $_SESSION superglobal.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications.

        +
        +
        + +
        +
        +unset_userdata($key)
        +
        +++ + + + + + +
        Parameters:
          +
        • $key (mixed) – Key for the session data item to unset, or an array of multiple keys
        • +
        +
        Return type:

        void

        +
        +

        Unsets the specified key(s) from the $_SESSION +superglobal.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications. It is just +an alias for unset($_SESSION[$key]) - please +use that instead.

        +
        +
        + +
        +
        +mark_as_flash($key)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Key to mark as flashdata, or an array of multiple keys
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Marks a $_SESSION item key (or multiple ones) as +“flashdata”.

        +
        + +
        +
        +get_flash_keys()
        +
        +++ + + + + + +
        Returns:Array containing the keys of all “flashdata” items.
        Return type:array
        +

        Gets a list of all $_SESSION that have been marked as +“flashdata”.

        +
        + +
        +
        +unmark_flash($key)
        +
        +++ + + + + + +
        Parameters:
          +
        • $key (mixed) – Key to be un-marked as flashdata, or an array of multiple keys
        • +
        +
        Return type:

        void

        +
        +

        Unmarks a $_SESSION item key (or multiple ones) as +“flashdata”.

        +
        + +
        +
        +flashdata([$key = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Flashdata item key or NULL
        • +
        +
        Returns:

        Value of the specified item key, or an array of all flashdata

        +
        Return type:

        mixed

        +
        +

        Gets the value for a specific $_SESSION item that has +been marked as “flashdata”, or an array of all “flashdata” +items if no key was specified.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications. You should +directly access $_SESSION instead.

        +
        +
        + +
        +
        +keep_flashdata($key)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Flashdata key to keep, or an array of multiple keys
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Retains the specified session data key(s) as “flashdata” +through the next request.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications. It is just +an alias for the mark_as_flash() method.

        +
        +
        + +
        +
        +set_flashdata($data[, $value = NULL])
        +
        +++ + + + + + +
        Parameters:
          +
        • $data (mixed) – An array of key/value pairs to set as flashdata, or the key for a single item
        • +
        • $value (mixed) – The value to set for a specific session item, if $data is a key
        • +
        +
        Return type:

        void

        +
        +

        Assigns data to the $_SESSION superglobal and marks it +as “flashdata”.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications.

        +
        +
        + +
        +
        +mark_as_temp($key[, $ttl = 300])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Key to mark as tempdata, or an array of multiple keys
        • +
        • $ttl (int) – Time-to-live value for the tempdata, in seconds
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Marks a $_SESSION item key (or multiple ones) as +“tempdata”.

        +
        + +
        +
        +get_temp_keys()
        +
        +++ + + + + + +
        Returns:Array containing the keys of all “tempdata” items.
        Return type:array
        +

        Gets a list of all $_SESSION that have been marked as +“tempdata”.

        +
        + +
        +
        +unmark_temp($key)
        +
        +++ + + + + + +
        Parameters:
          +
        • $key (mixed) – Key to be un-marked as tempdata, or an array of multiple keys
        • +
        +
        Return type:

        void

        +
        +

        Unmarks a $_SESSION item key (or multiple ones) as +“tempdata”.

        +
        + +
        +
        +tempdata([$key = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (mixed) – Tempdata item key or NULL
        • +
        +
        Returns:

        Value of the specified item key, or an array of all tempdata

        +
        Return type:

        mixed

        +
        +

        Gets the value for a specific $_SESSION item that has +been marked as “tempdata”, or an array of all “tempdata” +items if no key was specified.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications. You should +directly access $_SESSION instead.

        +
        +
        + +
        +
        +set_tempdata($data[, $value = NULL])
        +
        +++ + + + + + +
        Parameters:
          +
        • $data (mixed) – An array of key/value pairs to set as tempdata, or the key for a single item
        • +
        • $value (mixed) – The value to set for a specific session item, if $data is a key
        • +
        • $ttl (int) – Time-to-live value for the tempdata item(s), in seconds
        • +
        +
        Return type:

        void

        +
        +

        Assigns data to the $_SESSION superglobal and marks it +as “tempdata”.

        +
        +

        Note

        +

        This is a legacy method kept only for backwards +compatibility with older applications.

        +
        +
        + +
        +
        +sess_regenerate([$destroy = FALSE])
        +
        +++ + + + + + +
        Parameters:
          +
        • $destroy (bool) – Whether to destroy session data
        • +
        +
        Return type:

        void

        +
        +

        Regenerate session ID, optionally destroying the current +session’s data.

        +
        +

        Note

        +

        This method is just an alias for PHP’s native +session_regenerate_id() function.

        +
        +
        + +
        +
        +sess_destroy()
        +
        +++ + + + +
        Return type:void
        +

        Destroys the current session.

        +
        +

        Note

        +

        This must be the last session-related function +that you call. All session data will be lost after +you do that.

        +
        +
        +

        Note

        +

        This method is just an alias for PHP’s native +session_destroy() function.

        +
        +
        + +
        +
        +__get($key)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Session item key
        • +
        +
        Returns:

        The requested session data item, or NULL if it doesn’t exist

        +
        Return type:

        mixed

        +
        +

        A magic method that allows you to use +$this->session->item instead of $_SESSION['item'], +if that’s what you prefer.

        +

        It will also return the session ID by calling +session_id() if you try to access +$this->session->session_id.

        +
        + +
        +
        +__set($key, $value)
        +
        +++ + + + + + +
        Parameters:
          +
        • $key (string) – Session item key
        • +
        • $value (mixed) – Value to assign to the session item key
        • +
        +
        Returns:

        void

        +
        +

        A magic method that allows you to assign items to +$_SESSION by accessing them as $this->session +properties:

        +
        $this->session->foo = 'bar';
        +
        +// Results in:
        +// $_SESSION['foo'] = 'bar';
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/table.html b/sna/user_guide/libraries/table.html new file mode 100644 index 0000000..466e4b7 --- /dev/null +++ b/sna/user_guide/libraries/table.html @@ -0,0 +1,912 @@ + + + + + + + + + + HTML Table Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        HTML Table Class

        +

        The Table Class provides functions that enable you to auto-generate HTML +tables from arrays or database result sets.

        + +
        +

        Using the Table Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Table class is initialized +in your controller using the $this->load->library() method:

        +
        $this->load->library('table');
        +
        +
        +

        Once loaded, the Table library object will be available using:

        +
        $this->table
        +
        +
        +
        +
        +

        Examples

        +

        Here is an example showing how you can create a table from a +multi-dimensional array. Note that the first array index will become the +table heading (or you can set your own headings using the set_heading() +method described in the function reference below).

        +
        $this->load->library('table');
        +
        +$data = array(
        +        array('Name', 'Color', 'Size'),
        +        array('Fred', 'Blue', 'Small'),
        +        array('Mary', 'Red', 'Large'),
        +        array('John', 'Green', 'Medium')
        +);
        +
        +echo $this->table->generate($data);
        +
        +
        +

        Here is an example of a table created from a database query result. The +table class will automatically generate the headings based on the table +names (or you can set your own headings using the set_heading() +method described in the class reference below).

        +
        $this->load->library('table');
        +
        +$query = $this->db->query('SELECT * FROM my_table');
        +
        +echo $this->table->generate($query);
        +
        +
        +

        Here is an example showing how you might create a table using discrete +parameters:

        +
        $this->load->library('table');
        +
        +$this->table->set_heading('Name', 'Color', 'Size');
        +
        +$this->table->add_row('Fred', 'Blue', 'Small');
        +$this->table->add_row('Mary', 'Red', 'Large');
        +$this->table->add_row('John', 'Green', 'Medium');
        +
        +echo $this->table->generate();
        +
        +
        +

        Here is the same example, except instead of individual parameters, +arrays are used:

        +
        $this->load->library('table');
        +
        +$this->table->set_heading(array('Name', 'Color', 'Size'));
        +
        +$this->table->add_row(array('Fred', 'Blue', 'Small'));
        +$this->table->add_row(array('Mary', 'Red', 'Large'));
        +$this->table->add_row(array('John', 'Green', 'Medium'));
        +
        +echo $this->table->generate();
        +
        +
        +
        +
        +

        Changing the Look of Your Table

        +

        The Table Class permits you to set a table template with which you can +specify the design of your layout. Here is the template prototype:

        +
        $template = array(
        +        'table_open'            => '<table border="0" cellpadding="4" cellspacing="0">',
        +
        +        'thead_open'            => '<thead>',
        +        'thead_close'           => '</thead>',
        +
        +        'heading_row_start'     => '<tr>',
        +        'heading_row_end'       => '</tr>',
        +        'heading_cell_start'    => '<th>',
        +        'heading_cell_end'      => '</th>',
        +
        +        'tbody_open'            => '<tbody>',
        +        'tbody_close'           => '</tbody>',
        +
        +        'row_start'             => '<tr>',
        +        'row_end'               => '</tr>',
        +        'cell_start'            => '<td>',
        +        'cell_end'              => '</td>',
        +
        +        'row_alt_start'         => '<tr>',
        +        'row_alt_end'           => '</tr>',
        +        'cell_alt_start'        => '<td>',
        +        'cell_alt_end'          => '</td>',
        +
        +        'table_close'           => '</table>'
        +);
        +
        +$this->table->set_template($template);
        +
        +
        +
        +

        Note

        +

        You’ll notice there are two sets of “row” blocks in the +template. These permit you to create alternating row colors or design +elements that alternate with each iteration of the row data.

        +
        +

        You are NOT required to submit a complete template. If you only need to +change parts of the layout you can simply submit those elements. In this +example, only the table opening tag is being changed:

        +
        $template = array(
        +        'table_open' => '<table border="1" cellpadding="2" cellspacing="1" class="mytable">'
        +);
        +
        +$this->table->set_template($template);
        +
        +
        +

        You can also set defaults for these in a config file.

        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Table
        +
        +
        +$function = NULL
        +

        Allows you to specify a native PHP function or a valid function array object to be applied to all cell data.

        +
        $this->load->library('table');
        +
        +$this->table->set_heading('Name', 'Color', 'Size');
        +$this->table->add_row('Fred', '<strong>Blue</strong>', 'Small');
        +
        +$this->table->function = 'htmlspecialchars';
        +echo $this->table->generate();
        +
        +
        +

        In the above example, all cell data would be ran through PHP’s htmlspecialchars() function, resulting in:

        +
        <td>Fred</td><td>&lt;strong&gt;Blue&lt;/strong&gt;</td><td>Small</td>
        +
        +
        +
        + +
        +
        +generate([$table_data = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $table_data (mixed) – Data to populate the table rows with
        • +
        +
        Returns:

        HTML table

        +
        Return type:

        string

        +
        +

        Returns a string containing the generated table. Accepts an optional parameter which can be an array or a database result object.

        +
        + +
        +
        +set_caption($caption)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $caption (string) – Table caption
        • +
        +
        Returns:

        CI_Table instance (method chaining)

        +
        Return type:

        CI_Table

        +
        +

        Permits you to add a caption to the table.

        +
        $this->table->set_caption('Colors');
        +
        +
        +
        + +
        +
        +set_heading([$args = array()[, ...]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $args (mixed) – An array or multiple strings containing the table column titles
        • +
        +
        Returns:

        CI_Table instance (method chaining)

        +
        Return type:

        CI_Table

        +
        +

        Permits you to set the table heading. You can submit an array or discrete params:

        +
        $this->table->set_heading('Name', 'Color', 'Size');
        +
        +$this->table->set_heading(array('Name', 'Color', 'Size'));
        +
        +
        +
        + +
        +
        +add_row([$args = array()[, ...]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $args (mixed) – An array or multiple strings containing the row values
        • +
        +
        Returns:

        CI_Table instance (method chaining)

        +
        Return type:

        CI_Table

        +
        +

        Permits you to add a row to your table. You can submit an array or discrete params:

        +
        $this->table->add_row('Blue', 'Red', 'Green');
        +
        +$this->table->add_row(array('Blue', 'Red', 'Green'));
        +
        +
        +

        If you would like to set an individual cell’s tag attributes, you can use an associative array for that cell. +The associative key data defines the cell’s data. Any other key => val pairs are added as key=’val’ attributes to the tag:

        +
        $cell = array('data' => 'Blue', 'class' => 'highlight', 'colspan' => 2);
        +$this->table->add_row($cell, 'Red', 'Green');
        +
        +// generates
        +// <td class='highlight' colspan='2'>Blue</td><td>Red</td><td>Green</td>
        +
        +
        +
        + +
        +
        +make_columns([$array = array()[, $col_limit = 0]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $array (array) – An array containing multiple rows’ data
        • +
        • $col_limit (int) – Count of columns in the table
        • +
        +
        Returns:

        An array of HTML table columns

        +
        Return type:

        array

        +
        +

        This method takes a one-dimensional array as input and creates a multi-dimensional array with a depth equal to the number of columns desired. +This allows a single array with many elements to be displayed in a table that has a fixed column count. Consider this example:

        +
        $list = array('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve');
        +
        +$new_list = $this->table->make_columns($list, 3);
        +
        +$this->table->generate($new_list);
        +
        +// Generates a table with this prototype
        +
        +<table border="0" cellpadding="4" cellspacing="0">
        +<tr>
        +<td>one</td><td>two</td><td>three</td>
        +</tr><tr>
        +<td>four</td><td>five</td><td>six</td>
        +</tr><tr>
        +<td>seven</td><td>eight</td><td>nine</td>
        +</tr><tr>
        +<td>ten</td><td>eleven</td><td>twelve</td></tr>
        +</table>
        +
        +
        +
        + +
        +
        +set_template($template)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $template (array) – An associative array containing template values
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Permits you to set your template. You can submit a full or partial template.

        +
        $template = array(
        +        'table_open'  => '<table border="1" cellpadding="2" cellspacing="1" class="mytable">'
        +);
        +
        +$this->table->set_template($template);
        +
        +
        +
        + +
        +
        +set_empty($value)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $value (mixed) – Value to put in empty cells
        • +
        +
        Returns:

        CI_Table instance (method chaining)

        +
        Return type:

        CI_Table

        +
        +

        Lets you set a default value for use in any table cells that are empty. +You might, for example, set a non-breaking space:

        +
        $this->table->set_empty("&nbsp;");
        +
        +
        +
        + +
        +
        +clear()
        +
        +++ + + + + + +
        Returns:CI_Table instance (method chaining)
        Return type:CI_Table
        +

        Lets you clear the table heading and row data. If you need to show multiple tables with different data you should to call this method +after each table has been generated to clear the previous table information. Example:

        +
        $this->load->library('table');
        +
        +$this->table->set_heading('Name', 'Color', 'Size');
        +$this->table->add_row('Fred', 'Blue', 'Small');
        +$this->table->add_row('Mary', 'Red', 'Large');
        +$this->table->add_row('John', 'Green', 'Medium');
        +
        +echo $this->table->generate();
        +
        +$this->table->clear();
        +
        +$this->table->set_heading('Name', 'Day', 'Delivery');
        +$this->table->add_row('Fred', 'Wednesday', 'Express');
        +$this->table->add_row('Mary', 'Monday', 'Air');
        +$this->table->add_row('John', 'Saturday', 'Overnight');
        +
        +echo $this->table->generate();
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/trackback.html b/sna/user_guide/libraries/trackback.html new file mode 100644 index 0000000..af39027 --- /dev/null +++ b/sna/user_guide/libraries/trackback.html @@ -0,0 +1,1036 @@ + + + + + + + + + + Trackback Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Trackback Class

        +

        The Trackback Class provides functions that enable you to send and +receive Trackback data.

        +

        If you are not familiar with Trackbacks you’ll find more information +here.

        + +
        +

        Using the Trackback Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Trackback class is +initialized in your controller using the $this->load->library() method:

        +
        $this->load->library('trackback');
        +
        +
        +

        Once loaded, the Trackback library object will be available using:

        +
        $this->trackback
        +
        +
        +
        +
        +

        Sending Trackbacks

        +

        A Trackback can be sent from any of your controller functions using code +similar to this example:

        +
        $this->load->library('trackback');
        +
        +$tb_data = array(
        +        'ping_url'  => 'http://example.com/trackback/456',
        +        'url'       => 'http://www.my-example.com/blog/entry/123',
        +        'title'     => 'The Title of My Entry',
        +        'excerpt'   => 'The entry content.',
        +        'blog_name' => 'My Blog Name',
        +        'charset'   => 'utf-8'
        +);
        +
        +if ( ! $this->trackback->send($tb_data))
        +{
        +        echo $this->trackback->display_errors();
        +}
        +else
        +{
        +        echo 'Trackback was sent!';
        +}
        +
        +
        +

        Description of array data:

        +
          +
        • ping_url - The URL of the site you are sending the Trackback to. +You can send Trackbacks to multiple URLs by separating each URL with a comma.
        • +
        • url - The URL to YOUR site where the weblog entry can be seen.
        • +
        • title - The title of your weblog entry.
        • +
        • excerpt - The content of your weblog entry.
        • +
        • blog_name - The name of your weblog.
        • +
        • charset - The character encoding your weblog is written in. If omitted, UTF-8 will be used.
        • +
        +
        +

        Note

        +

        The Trackback class will automatically send only the first 500 characters of your +entry. It will also strip all HTML.

        +
        +

        The Trackback sending method returns TRUE/FALSE (boolean) on success +or failure. If it fails, you can retrieve the error message using:

        +
        $this->trackback->display_errors();
        +
        +
        +
        +
        +

        Receiving Trackbacks

        +

        Before you can receive Trackbacks you must create a weblog. If you don’t +have a blog yet there’s no point in continuing.

        +

        Receiving Trackbacks is a little more complex than sending them, only +because you will need a database table in which to store them, and you +will need to validate the incoming trackback data. You are encouraged to +implement a thorough validation process to guard against spam and +duplicate data. You may also want to limit the number of Trackbacks you +allow from a particular IP within a given span of time to further +curtail spam. The process of receiving a Trackback is quite simple; the +validation is what takes most of the effort.

        +
        +
        +

        Your Ping URL

        +

        In order to accept Trackbacks you must display a Trackback URL next to +each one of your weblog entries. This will be the URL that people will +use to send you Trackbacks (we will refer to this as your “Ping URL”).

        +

        Your Ping URL must point to a controller function where your Trackback +receiving code is located, and the URL must contain the ID number for +each particular entry, so that when the Trackback is received you’ll be +able to associate it with a particular entry.

        +

        For example, if your controller class is called Trackback, and the +receiving function is called receive, your Ping URLs will look something +like this:

        +
        http://example.com/index.php/trackback/receive/entry_id
        +
        +
        +

        Where entry_id represents the individual ID number for each of your +entries.

        +
        +
        +

        Creating a Trackback Table

        +

        Before you can receive Trackbacks you must create a table in which to +store them. Here is a basic prototype for such a table:

        +
        CREATE TABLE trackbacks (
        +        tb_id int(10) unsigned NOT NULL auto_increment,
        +        entry_id int(10) unsigned NOT NULL default 0,
        +        url varchar(200) NOT NULL,
        +        title varchar(100) NOT NULL,
        +        excerpt text NOT NULL,
        +        blog_name varchar(100) NOT NULL,
        +        tb_date int(10) NOT NULL,
        +        ip_address varchar(45) NOT NULL,
        +        PRIMARY KEY `tb_id` (`tb_id`),
        +        KEY `entry_id` (`entry_id`)
        +);
        +
        +
        +

        The Trackback specification only requires four pieces of information to +be sent in a Trackback (url, title, excerpt, blog_name), but to make +the data more useful we’ve added a few more fields in the above table +schema (date, IP address, etc.).

        +
        +
        +

        Processing a Trackback

        +

        Here is an example showing how you will receive and process a Trackback. +The following code is intended for use within the controller function +where you expect to receive Trackbacks.:

        +
        $this->load->library('trackback');
        +$this->load->database();
        +
        +if ($this->uri->segment(3) == FALSE)
        +{
        +        $this->trackback->send_error('Unable to determine the entry ID');
        +}
        +
        +if ( ! $this->trackback->receive())
        +{
        +        $this->trackback->send_error('The Trackback did not contain valid data');
        +}
        +
        +$data = array(
        +        'tb_id'      => '',
        +        'entry_id'   => $this->uri->segment(3),
        +        'url'        => $this->trackback->data('url'),
        +        'title'      => $this->trackback->data('title'),
        +        'excerpt'    => $this->trackback->data('excerpt'),
        +        'blog_name'  => $this->trackback->data('blog_name'),
        +        'tb_date'    => time(),
        +        'ip_address' => $this->input->ip_address()
        +);
        +
        +$sql = $this->db->insert_string('trackbacks', $data);
        +$this->db->query($sql);
        +
        +$this->trackback->send_success();
        +
        +
        +
        +

        Notes:

        +

        The entry ID number is expected in the third segment of your URL. This +is based on the URI example we gave earlier:

        +
        http://example.com/index.php/trackback/receive/entry_id
        +
        +
        +

        Notice the entry_id is in the third URI segment, which you can retrieve +using:

        +
        $this->uri->segment(3);
        +
        +
        +

        In our Trackback receiving code above, if the third segment is missing, +we will issue an error. Without a valid entry ID, there’s no reason to +continue.

        +

        The $this->trackback->receive() function is simply a validation function +that looks at the incoming data and makes sure it contains the four +pieces of data that are required (url, title, excerpt, blog_name). It +returns TRUE on success and FALSE on failure. If it fails you will issue +an error message.

        +

        The incoming Trackback data can be retrieved using this function:

        +
        $this->trackback->data('item')
        +
        +
        +

        Where item represents one of these four pieces of info: url, title, +excerpt, or blog_name

        +

        If the Trackback data is successfully received, you will issue a success +message using:

        +
        $this->trackback->send_success();
        +
        +
        +
        +

        Note

        +

        The above code contains no data validation, which you are +encouraged to add.

        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Trackback
        +
        +
        +$data = array('url' => '', 'title' => '', 'excerpt' => '', 'blog_name' => '', 'charset' => '')
        +

        Trackback data array.

        +
        + +
        +
        +$convert_ascii = TRUE
        +

        Whether to convert high ASCII and MS Word characters to HTML entities.

        +
        + +
        +
        +send($tb_data)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $tb_data (array) – Trackback data
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Send trackback.

        +
        + +
        +
        +receive()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        This method simply validates the incoming TB data, returning TRUE on success and FALSE on failure. +If the data is valid it is set to the $this->data array so that it can be inserted into a database.

        +
        + +
        +
        +send_error([$message = 'Incomplete information'])
        +
        +++ + + + + + +
        Parameters:
          +
        • $message (string) – Error message
        • +
        +
        Return type:

        void

        +
        +

        Responses to a trackback request with an error message.

        +
        +

        Note

        +

        This method will terminate script execution.

        +
        +
        + +
        +
        +send_success()
        +
        +++ + + + +
        Return type:void
        +

        Responses to a trackback request with a success message.

        +
        +

        Note

        +

        This method will terminate script execution.

        +
        +
        + +
        +
        +data($item)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $item (string) – Data key
        • +
        +
        Returns:

        Data value or empty string if not found

        +
        Return type:

        string

        +
        +

        Returns a single item from the response data array.

        +
        + +
        +
        +process($url, $data)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $url (string) – Target url
        • +
        • $data (string) – Raw POST data
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Opens a socket connection and passes the data to the server, returning TRUE on success and FALSE on failure.

        +
        + +
        +
        +extract_urls($urls)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $urls (string) – Comma-separated URL list
        • +
        +
        Returns:

        Array of URLs

        +
        Return type:

        array

        +
        +

        This method lets multiple trackbacks to be sent. It takes a string of URLs (separated by comma or space) and puts each URL into an array.

        +
        + +
        +
        +validate_url(&$url)
        +
        +++ + + + + + +
        Parameters:
          +
        • $url (string) – Trackback URL
        • +
        +
        Return type:

        void

        +
        +

        Simply adds the http:// prefix it it’s not already present in the URL.

        +
        + +
        +
        +get_id($url)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $url (string) – Trackback URL
        • +
        +
        Returns:

        URL ID or FALSE on failure

        +
        Return type:

        string

        +
        +

        Find and return a trackback URL’s ID or FALSE on failure.

        +
        + +
        +
        +convert_xml($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        Converted string

        +
        Return type:

        string

        +
        +

        Converts reserved XML characters to entities.

        +
        + +
        +
        +limit_characters($str[, $n = 500[, $end_char = '&#8230;']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $n (int) – Max characters number
        • +
        • $end_char (string) – Character to put at end of string
        • +
        +
        Returns:

        Shortened string

        +
        Return type:

        string

        +
        +

        Limits the string based on the character count. Will preserve complete words.

        +
        + +
        +
        +convert_ascii($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        Converted string

        +
        Return type:

        string

        +
        +

        Converts high ASCII text and MS Word special characterss to HTML entities.

        +
        + +
        +
        +set_error($msg)
        +
        +++ + + + + + +
        Parameters:
          +
        • $msg (string) – Error message
        • +
        +
        Return type:

        void

        +
        +

        Set an log an error message.

        +
        + +
        +
        +display_errors([$open = '<p>'[, $close = '</p>']])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $open (string) – Open tag
        • +
        • $close (string) – Close tag
        • +
        +
        Returns:

        HTML formatted error messages

        +
        Return type:

        string

        +
        +

        Returns error messages formatted in HTML or an empty string if there are no errors.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/typography.html b/sna/user_guide/libraries/typography.html new file mode 100644 index 0000000..5ca065d --- /dev/null +++ b/sna/user_guide/libraries/typography.html @@ -0,0 +1,658 @@ + + + + + + + + + + Typography Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Typography Class

        +

        The Typography Class provides methods that help you format text.

        + +
        +

        Using the Typography Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Typography class is +initialized in your controller using the $this->load->library() method:

        +
        $this->load->library('typography');
        +
        +
        +

        Once loaded, the Typography library object will be available using:

        +
        $this->typography
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Typography
        +
        +
        +$protect_braced_quotes = FALSE
        +

        When using the Typography library in conjunction with the Template Parser library +it can often be desirable to protect single and double quotes within curly braces. +To enable this, set the protect_braced_quotes class property to TRUE.

        +

        Usage example:

        +
        $this->load->library('typography');
        +$this->typography->protect_braced_quotes = TRUE;
        +
        +
        +
        + +
        +
        +auto_typography($str[, $reduce_linebreaks = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        • $reduce_linebreaks (bool) – Whether to reduce consequitive linebreaks
        • +
        +
        Returns:

        HTML typography-safe string

        +
        Return type:

        string

        +
        +

        Formats text so that it is semantically and typographically correct HTML. +Takes a string as input and returns it with the following formatting:

        +
        +
          +
        • Surrounds paragraphs within <p></p> (looks for double line breaks to identify paragraphs).
        • +
        • Single line breaks are converted to <br />, except those that appear within <pre> tags.
        • +
        • Block level elements, like <div> tags, are not wrapped within paragraphs, but their contained text is if it contains paragraphs.
        • +
        • Quotes are converted to correctly facing curly quote entities, except those that appear within tags.
        • +
        • Apostrophes are converted to curly apostrophe entities.
        • +
        • Double dashes (either like – this or like–this) are converted to em—dashes.
        • +
        • Three consecutive periods either preceding or following a word are converted to ellipsis (…).
        • +
        • Double spaces following sentences are converted to non-breaking spaces to mimic double spacing.
        • +
        +
        +

        Usage example:

        +
        $string = $this->typography->auto_typography($string);
        +
        +
        +

        There is one optional parameter that determines whether the parser should reduce more than two consecutive line breaks down to two. +Pass boolean TRUE to enable reducing line breaks:

        +
        $string = $this->typography->auto_typography($string, TRUE);
        +
        +
        +
        +

        Note

        +

        Typographic formatting can be processor intensive, particularly if you have a lot of content being formatted. +If you choose to use this method you may want to consider caching your pages.

        +
        +
        + +
        +
        +format_characters($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        Formatted string

        +
        Return type:

        string

        +
        +

        This method is similar to auto_typography() above, except that it only does character conversion:

        +
        +
          +
        • Quotes are converted to correctly facing curly quote entities, except those that appear within tags.
        • +
        • Apostrophes are converted to curly apostrophe entities.
        • +
        • Double dashes (either like – this or like–this) are converted to em—dashes.
        • +
        • Three consecutive periods either preceding or following a word are converted to ellipsis (…).
        • +
        • Double spaces following sentences are converted to non-breaking spaces to mimic double spacing.
        • +
        +
        +

        Usage example:

        +
        $string = $this->typography->format_characters($string);
        +
        +
        +
        + +
        +
        +nl2br_except_pre($str)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $str (string) – Input string
        • +
        +
        Returns:

        Formatted string

        +
        Return type:

        string

        +
        +

        Converts newlines to <br /> tags unless they appear within <pre> tags. +This method is identical to the native PHP nl2br() function, except that it ignores <pre> tags.

        +

        Usage example:

        +
        $string = $this->typography->nl2br_except_pre($string);
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/unit_testing.html b/sna/user_guide/libraries/unit_testing.html new file mode 100644 index 0000000..5e11ef2 --- /dev/null +++ b/sna/user_guide/libraries/unit_testing.html @@ -0,0 +1,847 @@ + + + + + + + + + + Unit Testing Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • Unit Testing Class
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Unit Testing Class

        +

        Unit testing is an approach to software development in which tests are +written for each function in your application. If you are not familiar +with the concept you might do a little googling on the subject.

        +

        CodeIgniter’s Unit Test class is quite simple, consisting of an +evaluation function and two result functions. It’s not intended to be a +full-blown test suite but rather a simple mechanism to evaluate your +code to determine if it is producing the correct data type and result.

        + +
        +

        Using the Unit Testing Library

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Unit Test class is +initialized in your controller using the $this->load->library function:

        +
        $this->load->library('unit_test');
        +
        +
        +

        Once loaded, the Unit Test object will be available using $this->unit

        +
        +
        +

        Running Tests

        +

        Running a test involves supplying a test and an expected result in the +following way:

        +
        +
        $this->unit->run(‘test’, ‘expected result’, ‘test name’, ‘notes’);
        +

        Where test is the result of the code you wish to test, expected result +is the data type you expect, test name is an optional name you can give +your test, and notes are optional notes. Example:

        +
        $test = 1 + 1;
        +
        +$expected_result = 2;
        +
        +$test_name = 'Adds one plus one';
        +
        +$this->unit->run($test, $expected_result, $test_name);
        +
        +
        +

        The expected result you supply can either be a literal match, or a data +type match. Here’s an example of a literal:

        +
        $this->unit->run('Foo', 'Foo');
        +
        +
        +

        Here is an example of a data type match:

        +
        $this->unit->run('Foo', 'is_string');
        +
        +
        +

        Notice the use of “is_string” in the second parameter? This tells the +function to evaluate whether your test is producing a string as the +result. Here is a list of allowed comparison types:

        +
          +
        • is_object
        • +
        • is_string
        • +
        • is_bool
        • +
        • is_true
        • +
        • is_false
        • +
        • is_int
        • +
        • is_numeric
        • +
        • is_float
        • +
        • is_double
        • +
        • is_array
        • +
        • is_null
        • +
        • is_resource
        • +
        +
        +
        +

        Generating Reports

        +

        You can either display results after each test, or your can run several +tests and generate a report at the end. To show a report directly simply +echo or return the run function:

        +
        echo $this->unit->run($test, $expected_result);
        +
        +
        +

        To run a full report of all tests, use this:

        +
        echo $this->unit->report();
        +
        +
        +

        The report will be formatted in an HTML table for viewing. If you prefer +the raw data you can retrieve an array using:

        +
        echo $this->unit->result();
        +
        +
        +
        +
        +

        Strict Mode

        +

        By default the unit test class evaluates literal matches loosely. +Consider this example:

        +
        $this->unit->run(1, TRUE);
        +
        +
        +

        The test is evaluating an integer, but the expected result is a boolean. +PHP, however, due to it’s loose data-typing will evaluate the above code +as TRUE using a normal equality test:

        +
        if (1 == TRUE) echo 'This evaluates as true';
        +
        +
        +

        If you prefer, you can put the unit test class in to strict mode, which +will compare the data type as well as the value:

        +
        if (1 === TRUE) echo 'This evaluates as FALSE';
        +
        +
        +

        To enable strict mode use this:

        +
        $this->unit->use_strict(TRUE);
        +
        +
        +
        +
        +

        Enabling/Disabling Unit Testing

        +

        If you would like to leave some testing in place in your scripts, but +not have it run unless you need it, you can disable unit testing using:

        +
        $this->unit->active(FALSE);
        +
        +
        +
        +
        +

        Unit Test Display

        +

        When your unit test results display, the following items show by +default:

        +
          +
        • Test Name (test_name)
        • +
        • Test Datatype (test_datatype)
        • +
        • Expected Datatype (res_datatype)
        • +
        • Result (result)
        • +
        • File Name (file)
        • +
        • Line Number (line)
        • +
        • Any notes you entered for the test (notes)
        • +
        +

        You can customize which of these items get displayed by using +$this->unit->set_test_items(). For example, if you only wanted the test name +and the result displayed:

        +
        +

        Customizing displayed tests

        +
        $this->unit->set_test_items(array('test_name', 'result'));
        +
        +
        +
        +
        +

        Creating a Template

        +

        If you would like your test results formatted differently then the +default you can set your own template. Here is an example of a simple +template. Note the required pseudo-variables:

        +
        $str = '
        +<table border="0" cellpadding="4" cellspacing="1">
        +{rows}
        +        <tr>
        +                <td>{item}</td>
        +                <td>{result}</td>
        +        </tr>
        +{/rows}
        +</table>';
        +
        +$this->unit->set_template($str);
        +
        +
        +
        +

        Note

        +

        Your template must be declared before running the unit +test process.

        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Unit_test
        +
        +
        +set_test_items($items)
        +
        +++ + + + + + +
        Parameters:
          +
        • $items (array) – List of visible test items
        • +
        +
        Returns:

        void

        +
        +

        Sets a list of items that should be visible in tests. +Valid options are:

        +
        +
          +
        • test_name
        • +
        • test_datatype
        • +
        • res_datatype
        • +
        • result
        • +
        • file
        • +
        • line
        • +
        • notes
        • +
        +
        +
        + +
        +
        +run($test[, $expected = TRUE[, $test_name = 'undefined'[, $notes = '']]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $test (mixed) – Test data
        • +
        • $expected (mixed) – Expected result
        • +
        • $test_name (string) – Test name
        • +
        • $notes (string) – Any notes to be attached to the test
        • +
        +
        Returns:

        Test report

        +
        Return type:

        string

        +
        +

        Runs unit tests.

        +
        + +
        +
        +report([$result = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $result (array) – Array containing tests results
        • +
        +
        Returns:

        Test report

        +
        Return type:

        string

        +
        +

        Generates a report about already complete tests.

        +
        + +
        +
        +use_strict([$state = TRUE])
        +
        +++ + + + + + +
        Parameters:
          +
        • $state (bool) – Strict state flag
        • +
        +
        Return type:

        void

        +
        +

        Enables/disables strict type comparison in tests.

        +
        + +
        +
        +active([$state = TRUE])
        +
        +++ + + + + + +
        Parameters:
          +
        • $state (bool) – Whether to enable testing
        • +
        +
        Return type:

        void

        +
        +

        Enables/disables unit testing.

        +
        + +
        +
        +result([$results = array()])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $results (array) – Tests results list
        • +
        +
        Returns:

        Array of raw result data

        +
        Return type:

        array

        +
        +

        Returns raw tests results data.

        +
        + +
        +
        +set_template($template)
        +
        +++ + + + + + +
        Parameters:
          +
        • $template (string) – Test result template
        • +
        +
        Return type:

        void

        +
        +

        Sets the template for displaying tests results.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/uri.html b/sna/user_guide/libraries/uri.html new file mode 100644 index 0000000..a2db803 --- /dev/null +++ b/sna/user_guide/libraries/uri.html @@ -0,0 +1,891 @@ + + + + + + + + + + URI Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        URI Class

        +

        The URI Class provides methods that help you retrieve information from +your URI strings. If you use URI routing, you can also retrieve +information about the re-routed segments.

        +
        +

        Note

        +

        This class is initialized automatically by the system so there +is no need to do it manually.

        +
        + +
        +

        Class Reference

        +
        +
        +class CI_URI
        +
        +
        +segment($n[, $no_result = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Segment index number
        • +
        • $no_result (mixed) – What to return if the searched segment is not found
        • +
        +
        Returns:

        Segment value or $no_result value if not found

        +
        Return type:

        mixed

        +
        +

        Permits you to retrieve a specific segment. Where n is the segment +number you wish to retrieve. Segments are numbered from left to right. +For example, if your full URL is this:

        +
        http://example.com/index.php/news/local/metro/crime_is_up
        +
        +
        +

        The segment numbers would be this:

        +
          +
        1. news
        2. +
        3. local
        4. +
        5. metro
        6. +
        7. crime_is_up
        8. +
        +

        The optional second parameter defaults to NULL and allows you to set the return value +of this method when the requested URI segment is missing. +For example, this would tell the method to return the number zero in the event of failure:

        +
        $product_id = $this->uri->segment(3, 0);
        +
        +
        +

        It helps avoid having to write code like this:

        +
        if ($this->uri->segment(3) === FALSE)
        +{
        +        $product_id = 0;
        +}
        +else
        +{
        +        $product_id = $this->uri->segment(3);
        +}
        +
        +
        +
        + +
        +
        +rsegment($n[, $no_result = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Segment index number
        • +
        • $no_result (mixed) – What to return if the searched segment is not found
        • +
        +
        Returns:

        Routed segment value or $no_result value if not found

        +
        Return type:

        mixed

        +
        +

        This method is identical to segment(), except that it lets you retrieve +a specific segment from your re-routed URI in the event you are +using CodeIgniter’s URI Routing feature.

        +
        + +
        +
        +slash_segment($n[, $where = 'trailing'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Segment index number
        • +
        • $where (string) – Where to add the slash (‘trailing’ or ‘leading’)
        • +
        +
        Returns:

        Segment value, prepended/suffixed with a forward slash, or a slash if not found

        +
        Return type:

        string

        +
        +

        This method is almost identical to segment(), except it +adds a trailing and/or leading slash based on the second parameter. +If the parameter is not used, a trailing slash added. Examples:

        +
        $this->uri->slash_segment(3);
        +$this->uri->slash_segment(3, 'leading');
        +$this->uri->slash_segment(3, 'both');
        +
        +
        +

        Returns:

        +
          +
        1. segment/
        2. +
        3. /segment
        4. +
        5. /segment/
        6. +
        +
        + +
        +
        +slash_rsegment($n[, $where = 'trailing'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Segment index number
        • +
        • $where (string) – Where to add the slash (‘trailing’ or ‘leading’)
        • +
        +
        Returns:

        Routed segment value, prepended/suffixed with a forward slash, or a slash if not found

        +
        Return type:

        string

        +
        +

        This method is identical to slash_segment(), except that it lets you +add slashes a specific segment from your re-routed URI in the event you +are using CodeIgniter’s URI Routing +feature.

        +
        + +
        +
        +uri_to_assoc([$n = 3[, $default = array()]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Segment index number
        • +
        • $default (array) – Default values
        • +
        +
        Returns:

        Associative URI segments array

        +
        Return type:

        array

        +
        +

        This method lets you turn URI segments into an associative array of +key/value pairs. Consider this URI:

        +
        index.php/user/search/name/joe/location/UK/gender/male
        +
        +
        +

        Using this method you can turn the URI into an associative array with +this prototype:

        +
        [array]
        +(
        +        'name'          => 'joe'
        +        'location'      => 'UK'
        +        'gender'        => 'male'
        +)
        +
        +
        +

        The first parameter lets you set an offset, which defaults to 3 since your +URI will normally contain a controller/method pair in the first and second segments. +Example:

        +
        $array = $this->uri->uri_to_assoc(3);
        +echo $array['name'];
        +
        +
        +

        The second parameter lets you set default key names, so that the array +returned will always contain expected indexes, even if missing from the URI. +Example:

        +
        $default = array('name', 'gender', 'location', 'type', 'sort');
        +$array = $this->uri->uri_to_assoc(3, $default);
        +
        +
        +

        If the URI does not contain a value in your default, an array index will +be set to that name, with a value of NULL.

        +

        Lastly, if a corresponding value is not found for a given key (if there +is an odd number of URI segments) the value will be set to NULL.

        +
        + +
        +
        +ruri_to_assoc([$n = 3[, $default = array()]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $n (int) – Segment index number
        • +
        • $default (array) – Default values
        • +
        +
        Returns:

        Associative routed URI segments array

        +
        Return type:

        array

        +
        +

        This method is identical to uri_to_assoc(), except that it creates +an associative array using the re-routed URI in the event you are using +CodeIgniter’s URI Routing feature.

        +
        + +
        +
        +assoc_to_uri($array)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $array (array) – Input array of key/value pairs
        • +
        +
        Returns:

        URI string

        +
        Return type:

        string

        +
        +

        Takes an associative array as input and generates a URI string from it. +The array keys will be included in the string. Example:

        +
        $array = array('product' => 'shoes', 'size' => 'large', 'color' => 'red');
        +$str = $this->uri->assoc_to_uri($array);
        +
        +// Produces: product/shoes/size/large/color/red
        +
        +
        +
        + +
        +
        +uri_string()
        +
        +++ + + + + + +
        Returns:URI string
        Return type:string
        +

        Returns a string with the complete URI. For example, if this is your full URL:

        +
        http://example.com/index.php/news/local/345
        +
        +
        +

        The method would return this:

        +
        news/local/345
        +
        +
        +
        + +
        +
        +ruri_string()
        +
        +++ + + + + + +
        Returns:Routed URI string
        Return type:string
        +

        This method is identical to uri_string(), except that it returns +the re-routed URI in the event you are using CodeIgniter’s URI +Routing feature.

        +
        + +
        +
        +total_segments()
        +
        +++ + + + + + +
        Returns:Count of URI segments
        Return type:int
        +

        Returns the total number of segments.

        +
        + +
        +
        +total_rsegments()
        +
        +++ + + + + + +
        Returns:Count of routed URI segments
        Return type:int
        +

        This method is identical to total_segments(), except that it returns +the total number of segments in your re-routed URI in the event you are +using CodeIgniter’s URI Routing feature.

        +
        + +
        +
        +segment_array()
        +
        +++ + + + + + +
        Returns:URI segments array
        Return type:array
        +

        Returns an array containing the URI segments. For example:

        +
        $segs = $this->uri->segment_array();
        +
        +foreach ($segs as $segment)
        +{
        +        echo $segment;
        +        echo '<br />';
        +}
        +
        +
        +
        + +
        +
        +rsegment_array()
        +
        +++ + + + + + +
        Returns:Routed URI segments array
        Return type:array
        +

        This method is identical to segment_array(), except that it returns +the array of segments in your re-routed URI in the event you are using +CodeIgniter’s URI Routing feature.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/user_agent.html b/sna/user_guide/libraries/user_agent.html new file mode 100644 index 0000000..3ac14be --- /dev/null +++ b/sna/user_guide/libraries/user_agent.html @@ -0,0 +1,932 @@ + + + + + + + + + + User Agent Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        User Agent Class

        +

        The User Agent Class provides functions that help identify information +about the browser, mobile device, or robot visiting your site. In +addition you can get referrer information as well as language and +supported character-set information.

        + +
        +

        Using the User Agent Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the User Agent class is +initialized in your controller using the $this->load->library function:

        +
        $this->load->library('user_agent');
        +
        +
        +

        Once loaded, the object will be available using: $this->agent

        +
        +
        +

        User Agent Definitions

        +

        The user agent name definitions are located in a config file located at: +application/config/user_agents.php. You may add items to the various +user agent arrays if needed.

        +
        +
        +

        Example

        +

        When the User Agent class is initialized it will attempt to determine +whether the user agent browsing your site is a web browser, a mobile +device, or a robot. It will also gather the platform information if it +is available.

        +
        $this->load->library('user_agent');
        +
        +if ($this->agent->is_browser())
        +{
        +        $agent = $this->agent->browser().' '.$this->agent->version();
        +}
        +elseif ($this->agent->is_robot())
        +{
        +        $agent = $this->agent->robot();
        +}
        +elseif ($this->agent->is_mobile())
        +{
        +        $agent = $this->agent->mobile();
        +}
        +else
        +{
        +        $agent = 'Unidentified User Agent';
        +}
        +
        +echo $agent;
        +
        +echo $this->agent->platform(); // Platform info (Windows, Linux, Mac, etc.)
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_User_agent
        +
        +
        +is_browser([$key = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Optional browser name
        • +
        +
        Returns:

        TRUE if the user agent is a (specified) browser, FALSE if not

        +
        Return type:

        bool

        +
        +

        Returns TRUE/FALSE (boolean) if the user agent is a known web browser.

        +
        if ($this->agent->is_browser('Safari'))
        +{
        +        echo 'You are using Safari.';
        +}
        +elseif ($this->agent->is_browser())
        +{
        +        echo 'You are using a browser.';
        +}
        +
        +
        +
        +

        Note

        +

        The string “Safari” in this example is an array key in the list of browser definitions. +You can find this list in application/config/user_agents.php if you want to add new +browsers or change the stings.

        +
        +
        + +
        +
        +is_mobile([$key = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Optional mobile device name
        • +
        +
        Returns:

        TRUE if the user agent is a (specified) mobile device, FALSE if not

        +
        Return type:

        bool

        +
        +

        Returns TRUE/FALSE (boolean) if the user agent is a known mobile device.

        +
        if ($this->agent->is_mobile('iphone'))
        +{
        +        $this->load->view('iphone/home');
        +}
        +elseif ($this->agent->is_mobile())
        +{
        +        $this->load->view('mobile/home');
        +}
        +else
        +{
        +        $this->load->view('web/home');
        +}
        +
        +
        +
        + +
        +
        +is_robot([$key = NULL])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $key (string) – Optional robot name
        • +
        +
        Returns:

        TRUE if the user agent is a (specified) robot, FALSE if not

        +
        Return type:

        bool

        +
        +

        Returns TRUE/FALSE (boolean) if the user agent is a known robot.

        +
        +

        Note

        +

        The user agent library only contains the most common robot definitions. It is not a complete list of bots. +There are hundreds of them so searching for each one would not be very efficient. If you find that some bots +that commonly visit your site are missing from the list you can add them to your +application/config/user_agents.php file.

        +
        +
        + +
        +
        +is_referral()
        +
        +++ + + + + + +
        Returns:TRUE if the user agent is a referral, FALSE if not
        Return type:bool
        +

        Returns TRUE/FALSE (boolean) if the user agent was referred from another site.

        +
        + +
        +
        +browser()
        +
        +++ + + + + + +
        Returns:Detected browser or an empty string
        Return type:string
        +

        Returns a string containing the name of the web browser viewing your site.

        +
        + +
        +
        +version()
        +
        +++ + + + + + +
        Returns:Detected browser version or an empty string
        Return type:string
        +

        Returns a string containing the version number of the web browser viewing your site.

        +
        + +
        +
        +mobile()
        +
        +++ + + + + + +
        Returns:Detected mobile device brand or an empty string
        Return type:string
        +

        Returns a string containing the name of the mobile device viewing your site.

        +
        + +
        +
        +robot()
        +
        +++ + + + + + +
        Returns:Detected robot name or an empty string
        Return type:string
        +

        Returns a string containing the name of the robot viewing your site.

        +
        + +
        +
        +platform()
        +
        +++ + + + + + +
        Returns:Detected operating system or an empty string
        Return type:string
        +

        Returns a string containing the platform viewing your site (Linux, Windows, OS X, etc.).

        +
        + +
        +
        +referrer()
        +
        +++ + + + + + +
        Returns:Detected referrer or an empty string
        Return type:string
        +

        The referrer, if the user agent was referred from another site. Typically you’ll test for this as follows:

        +
        if ($this->agent->is_referral())
        +{
        +        echo $this->agent->referrer();
        +}
        +
        +
        +
        + +
        +
        +agent_string()
        +
        +++ + + + + + +
        Returns:Full user agent string or an empty string
        Return type:string
        +

        Returns a string containing the full user agent string. Typically it will be something like this:

        +
        Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2
        +
        +
        +
        + +
        +
        +accept_lang([$lang = 'en'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $lang (string) – Language key
        • +
        +
        Returns:

        TRUE if provided language is accepted, FALSE if not

        +
        Return type:

        bool

        +
        +

        Lets you determine if the user agent accepts a particular language. Example:

        +
        if ($this->agent->accept_lang('en'))
        +{
        +        echo 'You accept English!';
        +}
        +
        +
        +
        +

        Note

        +

        This method is not typically very reliable since some browsers do not provide language info, +and even among those that do, it is not always accurate.

        +
        +
        + +
        +
        +languages()
        +
        +++ + + + + + +
        Returns:An array list of accepted languages
        Return type:array
        +

        Returns an array of languages supported by the user agent.

        +
        + +
        +
        +accept_charset([$charset = 'utf-8'])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $charset (string) – Character set
        • +
        +
        Returns:

        TRUE if the character set is accepted, FALSE if not

        +
        Return type:

        bool

        +
        +

        Lets you determine if the user agent accepts a particular character set. Example:

        +
        if ($this->agent->accept_charset('utf-8'))
        +{
        +        echo 'You browser supports UTF-8!';
        +}
        +
        +
        +
        +

        Note

        +

        This method is not typically very reliable since some browsers do not provide character-set info, +and even among those that do, it is not always accurate.

        +
        +
        + +
        +
        +charsets()
        +
        +++ + + + + + +
        Returns:An array list of accepted character sets
        Return type:array
        +

        Returns an array of character sets accepted by the user agent.

        +
        + +
        +
        +parse($string)
        +
        +++ + + + + + +
        Parameters:
          +
        • $string (string) – A custom user-agent string
        • +
        +
        Return type:

        void

        +
        +

        Parses a custom user-agent string, different from the one reported by the current visitor.

        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/xmlrpc.html b/sna/user_guide/libraries/xmlrpc.html new file mode 100644 index 0000000..63095e7 --- /dev/null +++ b/sna/user_guide/libraries/xmlrpc.html @@ -0,0 +1,1152 @@ + + + + + + + + + + XML-RPC and XML-RPC Server Classes — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • XML-RPC and XML-RPC Server Classes
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        XML-RPC and XML-RPC Server Classes

        +

        CodeIgniter’s XML-RPC classes permit you to send requests to another +server, or set up your own XML-RPC server to receive requests.

        + +
        +

        What is XML-RPC?

        +

        Quite simply it is a way for two computers to communicate over the +internet using XML. One computer, which we will call the client, sends +an XML-RPC request to another computer, which we will call the +server. Once the server receives and processes the request it will send +back a response to the client.

        +

        For example, using the MetaWeblog API, an XML-RPC Client (usually a +desktop publishing tool) will send a request to an XML-RPC Server +running on your site. This request might be a new weblog entry being +sent for publication, or it could be a request for an existing entry for +editing. When the XML-RPC Server receives this request it will examine +it to determine which class/method should be called to process the +request. Once processed, the server will then send back a response +message.

        +

        For detailed specifications, you can visit the XML-RPC site.

        +
        +
        +

        Using the XML-RPC Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the XML-RPC and XML-RPCS classes +are initialized in your controller using the $this->load->library +function:

        +

        To load the XML-RPC class you will use:

        +
        $this->load->library('xmlrpc');
        +
        +
        +

        Once loaded, the xml-rpc library object will be available using: +$this->xmlrpc

        +

        To load the XML-RPC Server class you will use:

        +
        $this->load->library('xmlrpc');
        +$this->load->library('xmlrpcs');
        +
        +
        +

        Once loaded, the xml-rpcs library object will be available using: +$this->xmlrpcs

        +
        +

        Note

        +

        When using the XML-RPC Server class you must load BOTH the +XML-RPC class and the XML-RPC Server class.

        +
        +
        +
        +

        Sending XML-RPC Requests

        +

        To send a request to an XML-RPC server you must specify the following +information:

        +
          +
        • The URL of the server
        • +
        • The method on the server you wish to call
        • +
        • The request data (explained below).
        • +
        +

        Here is a basic example that sends a simple Weblogs.com ping to the +Ping-o-Matic

        +
        $this->load->library('xmlrpc');
        +
        +$this->xmlrpc->server('http://rpc.pingomatic.com/', 80);
        +$this->xmlrpc->method('weblogUpdates.ping');
        +
        +$request = array('My Photoblog', 'http://www.my-site.com/photoblog/');
        +$this->xmlrpc->request($request);
        +
        +if ( ! $this->xmlrpc->send_request())
        +{
        +        echo $this->xmlrpc->display_error();
        +}
        +
        +
        +
        +

        Explanation

        +

        The above code initializes the XML-RPC class, sets the server URL and +method to be called (weblogUpdates.ping). The request (in this case, the +title and URL of your site) is placed into an array for transportation, +and compiled using the request() function. Lastly, the full request is +sent. If the send_request() method returns false we will display the +error message sent back from the XML-RPC Server.

        +
        +
        +
        +

        Anatomy of a Request

        +

        An XML-RPC request is simply the data you are sending to the XML-RPC +server. Each piece of data in a request is referred to as a request +parameter. The above example has two parameters: The URL and title of +your site. When the XML-RPC server receives your request, it will look +for parameters it requires.

        +

        Request parameters must be placed into an array for transportation, and +each parameter can be one of seven data types (strings, numbers, dates, +etc.). If your parameters are something other than strings you will have +to include the data type in the request array.

        +

        Here is an example of a simple array with three parameters:

        +
        $request = array('John', 'Doe', 'www.some-site.com');
        +$this->xmlrpc->request($request);
        +
        +
        +

        If you use data types other than strings, or if you have several +different data types, you will place each parameter into its own array, +with the data type in the second position:

        +
        $request = array(
        +        array('John', 'string'),
        +        array('Doe', 'string'),
        +        array(FALSE, 'boolean'),
        +        array(12345, 'int')
        +);
        +$this->xmlrpc->request($request);
        +
        +
        +

        The Data Types section below has a full list of data +types.

        +
        +
        +

        Creating an XML-RPC Server

        +

        An XML-RPC Server acts as a traffic cop of sorts, waiting for incoming +requests and redirecting them to the appropriate functions for +processing.

        +

        To create your own XML-RPC server involves initializing the XML-RPC +Server class in your controller where you expect the incoming request to +appear, then setting up an array with mapping instructions so that +incoming requests can be sent to the appropriate class and method for +processing.

        +

        Here is an example to illustrate:

        +
        $this->load->library('xmlrpc');
        +$this->load->library('xmlrpcs');
        +
        +$config['functions']['new_post'] = array('function' => 'My_blog.new_entry');
        +$config['functions']['update_post'] = array('function' => 'My_blog.update_entry');
        +$config['object'] = $this;
        +
        +$this->xmlrpcs->initialize($config);
        +$this->xmlrpcs->serve();
        +
        +
        +

        The above example contains an array specifying two method requests that +the Server allows. The allowed methods are on the left side of the +array. When either of those are received, they will be mapped to the +class and method on the right.

        +

        The ‘object’ key is a special key that you pass an instantiated class +object with, which is necessary when the method you are mapping to is +not part of the CodeIgniter super object.

        +

        In other words, if an XML-RPC Client sends a request for the new_post +method, your server will load the My_blog class and call the new_entry +function. If the request is for the update_post method, your server +will load the My_blog class and call the update_entry() method.

        +

        The function names in the above example are arbitrary. You’ll decide +what they should be called on your server, or if you are using +standardized APIs, like the Blogger or MetaWeblog API, you’ll use their +function names.

        +

        There are two additional configuration keys you may make use of when +initializing the server class: debug can be set to TRUE in order to +enable debugging, and xss_clean may be set to FALSE to prevent sending +data through the Security library’s xss_clean() method.

        +
        +
        +

        Processing Server Requests

        +

        When the XML-RPC Server receives a request and loads the class/method +for processing, it will pass an object to that method containing the +data sent by the client.

        +

        Using the above example, if the new_post method is requested, the +server will expect a class to exist with this prototype:

        +
        class My_blog extends CI_Controller {
        +
        +        public function new_post($request)
        +        {
        +
        +        }
        +}
        +
        +
        +

        The $request variable is an object compiled by the Server, which +contains the data sent by the XML-RPC Client. Using this object you will +have access to the request parameters enabling you to process the +request. When you are done you will send a Response back to the Client.

        +

        Below is a real-world example, using the Blogger API. One of the methods +in the Blogger API is getUserInfo(). Using this method, an XML-RPC +Client can send the Server a username and password, in return the Server +sends back information about that particular user (nickname, user ID, +email address, etc.). Here is how the processing function might look:

        +
        class My_blog extends CI_Controller {
        +
        +        public function getUserInfo($request)
        +        {
        +                $username = 'smitty';
        +                $password = 'secretsmittypass';
        +
        +                $this->load->library('xmlrpc');
        +
        +                $parameters = $request->output_parameters();
        +
        +                if ($parameters[1] != $username && $parameters[2] != $password)
        +                {
        +                        return $this->xmlrpc->send_error_message('100', 'Invalid Access');
        +                }
        +
        +                $response = array(
        +                        array(
        +                                'nickname'  => array('Smitty', 'string'),
        +                                'userid'    => array('99', 'string'),
        +                                'url'       => array('http://yoursite.com', 'string'),
        +                                'email'     => array('jsmith@yoursite.com', 'string'),
        +                                'lastname'  => array('Smith', 'string'),
        +                                'firstname' => array('John', 'string')
        +                        ),
        +                         'struct'
        +                );
        +
        +                return $this->xmlrpc->send_response($response);
        +        }
        +}
        +
        +
        +
        +

        Notes:

        +

        The output_parameters() method retrieves an indexed array +corresponding to the request parameters sent by the client. In the above +example, the output parameters will be the username and password.

        +

        If the username and password sent by the client were not valid, and +error message is returned using send_error_message().

        +

        If the operation was successful, the client will be sent back a response +array containing the user’s info.

        +
        +
        +
        +

        Formatting a Response

        +

        Similar to Requests, Responses must be formatted as an array. +However, unlike requests, a response is an array that contains a +single item. This item can be an array with several additional arrays, +but there can be only one primary array index. In other words, the basic +prototype is this:

        +
        $response = array('Response data', 'array');
        +
        +
        +

        Responses, however, usually contain multiple pieces of information. In +order to accomplish this we must put the response into its own array so +that the primary array continues to contain a single piece of data. +Here’s an example showing how this might be accomplished:

        +
        $response = array(
        +        array(
        +                'first_name' => array('John', 'string'),
        +                'last_name' => array('Doe', 'string'),
        +                'member_id' => array(123435, 'int'),
        +                'todo_list' => array(array('clean house', 'call mom', 'water plants'), 'array'),
        +        ),
        +        'struct'
        +);
        +
        +
        +

        Notice that the above array is formatted as a struct. This is the most +common data type for responses.

        +

        As with Requests, a response can be one of the seven data types listed +in the Data Types section.

        +
        +
        +

        Sending an Error Response

        +

        If you need to send the client an error response you will use the +following:

        +
        return $this->xmlrpc->send_error_message('123', 'Requested data not available');
        +
        +
        +

        The first parameter is the error number while the second parameter is +the error message.

        +
        +
        +

        Creating Your Own Client and Server

        +

        To help you understand everything we’ve covered thus far, let’s create a +couple controllers that act as XML-RPC Client and Server. You’ll use the +Client to send a request to the Server and receive a response.

        +
        +

        The Client

        +

        Using a text editor, create a controller called Xmlrpc_client.php. In +it, place this code and save it to your application/controllers/ +folder:

        +
        <?php
        +
        +class Xmlrpc_client extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $this->load->helper('url');
        +                $server_url = site_url('xmlrpc_server');
        +
        +                $this->load->library('xmlrpc');
        +
        +                $this->xmlrpc->server($server_url, 80);
        +                $this->xmlrpc->method('Greetings');
        +
        +                $request = array('How is it going?');
        +                $this->xmlrpc->request($request);
        +
        +                if ( ! $this->xmlrpc->send_request())
        +                {
        +                        echo $this->xmlrpc->display_error();
        +                }
        +                else
        +                {
        +                        echo '<pre>';
        +                        print_r($this->xmlrpc->display_response());
        +                        echo '</pre>';
        +                }
        +        }
        +}
        +?>
        +
        +
        +
        +

        Note

        +

        In the above code we are using a “url helper”. You can find more +information in the Helpers Functions page.

        +
        +
        +
        +

        The Server

        +

        Using a text editor, create a controller called Xmlrpc_server.php. In +it, place this code and save it to your application/controllers/ +folder:

        +
        <?php
        +
        +class Xmlrpc_server extends CI_Controller {
        +
        +        public function index()
        +        {
        +                $this->load->library('xmlrpc');
        +                $this->load->library('xmlrpcs');
        +
        +                $config['functions']['Greetings'] = array('function' => 'Xmlrpc_server.process');
        +
        +                $this->xmlrpcs->initialize($config);
        +                $this->xmlrpcs->serve();
        +        }
        +
        +
        +        public function process($request)
        +        {
        +                $parameters = $request->output_parameters();
        +
        +                $response = array(
        +                        array(
        +                                'you_said'  => $parameters[0],
        +                                'i_respond' => 'Not bad at all.'
        +                        ),
        +                        'struct'
        +                );
        +
        +                return $this->xmlrpc->send_response($response);
        +        }
        +}
        +
        +
        +
        +
        +

        Try it!

        +

        Now visit the your site using a URL similar to this:

        +
        example.com/index.php/xmlrpc_client/
        +
        +
        +

        You should now see the message you sent to the server, and its response +back to you.

        +

        The client you created sends a message (“How’s is going?”) to the +server, along with a request for the “Greetings” method. The Server +receives the request and maps it to the process() method, where a +response is sent back.

        +
        +
        +
        +

        Using Associative Arrays In a Request Parameter

        +

        If you wish to use an associative array in your method parameters you +will need to use a struct datatype:

        +
        $request = array(
        +        array(
        +                // Param 0
        +                array('name' => 'John'),
        +                'struct'
        +        ),
        +        array(
        +                // Param 1
        +                array(
        +                        'size' => 'large',
        +                        'shape'=>'round'
        +                ),
        +                'struct'
        +        )
        +);
        +
        +$this->xmlrpc->request($request);
        +
        +
        +

        You can retrieve the associative array when processing the request in +the Server.

        +
        $parameters = $request->output_parameters();
        +$name = $parameters[0]['name'];
        +$size = $parameters[1]['size'];
        +$shape = $parameters[1]['shape'];
        +
        +
        +
        +
        +

        Data Types

        +

        According to the XML-RPC spec there are +seven types of values that you can send via XML-RPC:

        +
          +
        • int or i4
        • +
        • boolean
        • +
        • string
        • +
        • double
        • +
        • dateTime.iso8601
        • +
        • base64
        • +
        • struct (contains array of values)
        • +
        • array (contains array of values)
        • +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Xmlrpc
        +
        +
        +initialize([$config = array()])
        +
        +++ + + + + + +
        Parameters:
          +
        • $config (array) – Configuration data
        • +
        +
        Return type:

        void

        +
        +

        Initializes the XML-RPC library. Accepts an associative array containing your settings.

        +
        + +
        +
        +server($url[, $port = 80[, $proxy = FALSE[, $proxy_port = 8080]]])
        +
        +++ + + + + + +
        Parameters:
          +
        • $url (string) – XML-RPC server URL
        • +
        • $port (int) – Server port
        • +
        • $proxy (string) – Optional proxy
        • +
        • $proxy_port (int) – Proxy listening port
        • +
        +
        Return type:

        void

        +
        +

        Sets the URL and port number of the server to which a request is to be sent:

        +
        $this->xmlrpc->server('http://www.sometimes.com/pings.php', 80);
        +
        +
        +

        Basic HTTP authentication is also supported, simply add it to the server URL:

        +
        $this->xmlrpc->server('http://user:pass@localhost/', 80);
        +
        +
        +
        + +
        +
        +timeout($seconds = 5)
        +
        +++ + + + + + +
        Parameters:
          +
        • $seconds (int) – Timeout in seconds
        • +
        +
        Return type:

        void

        +
        +

        Set a time out period (in seconds) after which the request will be canceled:

        +
        $this->xmlrpc->timeout(6);
        +
        +
        +

        This timeout period will be used both for an initial connection to +the remote server, as well as for getting a response from it. +Make sure you set the timeout before calling send_request().

        +
        + +
        +
        +method($function)
        +
        +++ + + + + + +
        Parameters:
          +
        • $function (string) – Method name
        • +
        +
        Return type:

        void

        +
        +

        Sets the method that will be requested from the XML-RPC server:

        +
        $this->xmlrpc->method('method');
        +
        +
        +

        Where method is the name of the method.

        +
        + +
        +
        +request($incoming)
        +
        +++ + + + + + +
        Parameters:
          +
        • $incoming (array) – Request data
        • +
        +
        Return type:

        void

        +
        +

        Takes an array of data and builds request to be sent to XML-RPC server:

        +
        $request = array(array('My Photoblog', 'string'), 'http://www.yoursite.com/photoblog/');
        +$this->xmlrpc->request($request);
        +
        +
        +
        + +
        +
        +send_request()
        +
        +++ + + + + + +
        Returns:TRUE on success, FALSE on failure
        Return type:bool
        +

        The request sending method. Returns boolean TRUE or FALSE based on success for failure, enabling it to be used conditionally.

        +
        + +
        +
        +display_error()
        +
        +++ + + + + + +
        Returns:Error message string
        Return type:string
        +

        Returns an error message as a string if your request failed for some reason.

        +
        echo $this->xmlrpc->display_error();
        +
        +
        +
        + +
        +
        +display_response()
        +
        +++ + + + + + +
        Returns:Response
        Return type:mixed
        +

        Returns the response from the remote server once request is received. The response will typically be an associative array.

        +
        $this->xmlrpc->display_response();
        +
        +
        +
        + +
        +
        +send_error_message($number, $message)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $number (int) – Error number
        • +
        • $message (string) – Error message
        • +
        +
        Returns:

        XML_RPC_Response instance

        +
        Return type:

        XML_RPC_Response

        +
        +

        This method lets you send an error message from your server to the client. +First parameter is the error number while the second parameter is the error message.

        +
        return $this->xmlrpc->send_error_message(123, 'Requested data not available');
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/libraries/zip.html b/sna/user_guide/libraries/zip.html new file mode 100644 index 0000000..8198a06 --- /dev/null +++ b/sna/user_guide/libraries/zip.html @@ -0,0 +1,847 @@ + + + + + + + + + + Zip Encoding Class — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Libraries »
        • + +
        • Zip Encoding Class
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Zip Encoding Class

        +

        CodeIgniter’s Zip Encoding Class permits you to create Zip archives. +Archives can be downloaded to your desktop or saved to a directory.

        + +
        +

        Using the Zip Encoding Class

        +
        +

        Initializing the Class

        +

        Like most other classes in CodeIgniter, the Zip class is initialized in +your controller using the $this->load->library function:

        +
        $this->load->library('zip');
        +
        +
        +

        Once loaded, the Zip library object will be available using:

        +
        $this->zip
        +
        +
        +
        +
        +

        Usage Example

        +

        This example demonstrates how to compress a file, save it to a folder on +your server, and download it to your desktop.

        +
        $name = 'mydata1.txt';
        +$data = 'A Data String!';
        +
        +$this->zip->add_data($name, $data);
        +
        +// Write the zip file to a folder on your server. Name it "my_backup.zip"
        +$this->zip->archive('/path/to/directory/my_backup.zip');
        +
        +// Download the file to your desktop. Name it "my_backup.zip"
        +$this->zip->download('my_backup.zip');
        +
        +
        +
        +
        +
        +

        Class Reference

        +
        +
        +class CI_Zip
        +
        +
        +$compression_level = 2
        +

        The compression level to use.

        +

        It can range from 0 to 9, with 9 being the highest and 0 effectively disabling compression:

        +
        $this->zip->compression_level = 0;
        +
        +
        +
        + +
        +
        +add_data($filepath[, $data = NULL])
        +
        +++ + + + + + +
        Parameters:
          +
        • $filepath (mixed) – A single file path or an array of file => data pairs
        • +
        • $data (array) – File contents (ignored if $filepath is an array)
        • +
        +
        Return type:

        void

        +
        +

        Adds data to the Zip archive. Can work both in single and multiple files mode.

        +

        When adding a single file, the first parameter must contain the name you would +like given to the file and the second must contain the file contents:

        +
        $name = 'mydata1.txt';
        +$data = 'A Data String!';
        +$this->zip->add_data($name, $data);
        +
        +$name = 'mydata2.txt';
        +$data = 'Another Data String!';
        +$this->zip->add_data($name, $data);
        +
        +
        +

        When adding multiple files, the first parameter must contain file => contents pairs +and the second parameter is ignored:

        +
        $data = array(
        +        'mydata1.txt' => 'A Data String!',
        +        'mydata2.txt' => 'Another Data String!'
        +);
        +
        +$this->zip->add_data($data);
        +
        +
        +

        If you would like your compressed data organized into sub-directories, simply include +the path as part of the filename(s):

        +
        $name = 'personal/my_bio.txt';
        +$data = 'I was born in an elevator...';
        +
        +$this->zip->add_data($name, $data);
        +
        +
        +

        The above example will place my_bio.txt inside a folder called personal.

        +
        + +
        +
        +add_dir($directory)
        +
        +++ + + + + + +
        Parameters:
          +
        • $directory (mixed) – Directory name string or an array of multiple directories
        • +
        +
        Return type:

        void

        +
        +

        Permits you to add a directory. Usually this method is unnecessary since you can place +your data into directories when using $this->zip->add_data(), but if you would like +to create an empty directory you can do so:

        +
        $this->zip->add_dir('myfolder'); // Creates a directory called "myfolder"
        +
        +
        +
        + +
        +
        +read_file($path[, $archive_filepath = FALSE])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Path to file
        • +
        • $archive_filepath (mixed) – New file name/path (string) or (boolean) whether to maintain the original filepath
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Permits you to compress a file that already exists somewhere on your server. +Supply a file path and the zip class will read it and add it to the archive:

        +
        $path = '/path/to/photo.jpg';
        +
        +$this->zip->read_file($path);
        +
        +// Download the file to your desktop. Name it "my_backup.zip"
        +$this->zip->download('my_backup.zip');
        +
        +
        +

        If you would like the Zip archive to maintain the directory structure of +the file in it, pass TRUE (boolean) in the second parameter. Example:

        +
        $path = '/path/to/photo.jpg';
        +
        +$this->zip->read_file($path, TRUE);
        +
        +// Download the file to your desktop. Name it "my_backup.zip"
        +$this->zip->download('my_backup.zip');
        +
        +
        +

        In the above example, photo.jpg will be placed into the path/to/ directory.

        +

        You can also specify a new name (path included) for the added file on the fly:

        +
        $path = '/path/to/photo.jpg';
        +$new_path = '/new/path/some_photo.jpg';
        +
        +$this->zip->read_file($path, $new_path);
        +
        +// Download ZIP archive containing /new/path/some_photo.jpg
        +$this->zip->download('my_archive.zip');
        +
        +
        +
        + +
        +
        +read_dir($path[, $preserve_filepath = TRUE[, $root_path = NULL]])
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $path (string) – Path to directory
        • +
        • $preserve_filepath (bool) – Whether to maintain the original path
        • +
        • $root_path (string) – Part of the path to exclude from the archive directory
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Permits you to compress a directory (and its contents) that already exists somewhere on your server. +Supply a path to the directory and the zip class will recursively read and recreate it as a Zip archive. +All files contained within the supplied path will be encoded, as will any sub-directories contained within it. Example:

        +
        $path = '/path/to/your/directory/';
        +
        +$this->zip->read_dir($path);
        +
        +// Download the file to your desktop. Name it "my_backup.zip"
        +$this->zip->download('my_backup.zip');
        +
        +
        +

        By default the Zip archive will place all directories listed in the first parameter +inside the zip. If you want the tree preceding the target directory to be ignored, +you can pass FALSE (boolean) in the second parameter. Example:

        +
        $path = '/path/to/your/directory/';
        +
        +$this->zip->read_dir($path, FALSE);
        +
        +
        +

        This will create a ZIP with a directory named “directory” inside, then all sub-directories +stored correctly inside that, but will not include the /path/to/your part of the path.

        +
        + +
        +
        +archive($filepath)
        +
        +++ + + + + + + + +
        Parameters:
          +
        • $filepath (string) – Path to target zip archive
        • +
        +
        Returns:

        TRUE on success, FALSE on failure

        +
        Return type:

        bool

        +
        +

        Writes the Zip-encoded file to a directory on your server. Submit a valid server path +ending in the file name. Make sure the directory is writable (755 is usually OK). +Example:

        +
        $this->zip->archive('/path/to/folder/myarchive.zip'); // Creates a file named myarchive.zip
        +
        +
        +
        + +
        +
        +download($filename = 'backup.zip')
        +
        +++ + + + + + +
        Parameters:
          +
        • $filename (string) – Archive file name
        • +
        +
        Return type:

        void

        +
        +

        Causes the Zip file to be downloaded from your server. +You must pass the name you would like the zip file called. Example:

        +
        $this->zip->download('latest_stuff.zip'); // File will be named "latest_stuff.zip"
        +
        +
        +
        +

        Note

        +

        Do not display any data in the controller in which you call +this method since it sends various server headers that cause the +download to happen and the file to be treated as binary.

        +
        +
        + +
        +
        +get_zip()
        +
        +++ + + + + + +
        Returns:Zip file content
        Return type:string
        +

        Returns the Zip-compressed file data. Generally you will not need this method unless you +want to do something unique with the data. Example:

        +
        $name = 'my_bio.txt';
        +$data = 'I was born in an elevator...';
        +
        +$this->zip->add_data($name, $data);
        +
        +$zip_file = $this->zip->get_zip();
        +
        +
        +
        + +
        +
        +clear_data()
        +
        +++ + + + +
        Return type:void
        +

        The Zip class caches your zip data so that it doesn’t need to recompile the Zip archive +for each method you use above. If, however, you need to create multiple Zip archives, +each with different data, you can clear the cache between calls. Example:

        +
        $name = 'my_bio.txt';
        +$data = 'I was born in an elevator...';
        +
        +$this->zip->add_data($name, $data);
        +$zip_file = $this->zip->get_zip();
        +
        +$this->zip->clear_data();
        +
        +$name = 'photo.jpg';
        +$this->zip->read_file("/path/to/photo.jpg"); // Read the file's contents
        +
        +$this->zip->download('myphotos.zip');
        +
        +
        +
        + +
        + +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/license.html b/sna/user_guide/license.html new file mode 100644 index 0000000..1cefdc1 --- /dev/null +++ b/sna/user_guide/license.html @@ -0,0 +1,510 @@ + + + + + + + + + + The MIT License (MIT) — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • The MIT License (MIT)
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        The MIT License (MIT)

        +

        Copyright (c) 2014 - 2017, British Columbia Institute of Technology

        +

        Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions:

        +

        The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software.

        +

        THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.

        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/objects.inv b/sna/user_guide/objects.inv new file mode 100644 index 0000000..b222e90 Binary files /dev/null and b/sna/user_guide/objects.inv differ diff --git a/sna/user_guide/overview/appflow.html b/sna/user_guide/overview/appflow.html new file mode 100644 index 0000000..6f930e4 --- /dev/null +++ b/sna/user_guide/overview/appflow.html @@ -0,0 +1,514 @@ + + + + + + + + + + Application Flow Chart — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Application Flow Chart

        +

        The following graphic illustrates how data flows throughout the system:

        +

        CodeIgniter application flow

        +
          +
        1. The index.php serves as the front controller, initializing the base +resources needed to run CodeIgniter.
        2. +
        3. The Router examines the HTTP request to determine what should be done +with it.
        4. +
        5. If a cache file exists, it is sent directly to the browser, bypassing +the normal system execution.
        6. +
        7. Security. Before the application controller is loaded, the HTTP +request and any user submitted data is filtered for security.
        8. +
        9. The Controller loads the model, core libraries, helpers, and any +other resources needed to process the specific request.
        10. +
        11. The finalized View is rendered then sent to the web browser to be +seen. If caching is enabled, the view is cached first so that on +subsequent requests it can be served.
        12. +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/overview/at_a_glance.html b/sna/user_guide/overview/at_a_glance.html new file mode 100644 index 0000000..5cf2cd2 --- /dev/null +++ b/sna/user_guide/overview/at_a_glance.html @@ -0,0 +1,600 @@ + + + + + + + + + + CodeIgniter at a Glance — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        CodeIgniter at a Glance

        +
        +

        CodeIgniter is an Application Framework

        +

        CodeIgniter is a toolkit for people who build web applications using +PHP. Its goal is to enable you to develop projects much faster than you +could if you were writing code from scratch, by providing a rich set of +libraries for commonly needed tasks, as well as a simple interface and +logical structure to access these libraries. CodeIgniter lets you +creatively focus on your project by minimizing the amount of code needed +for a given task.

        +
        +
        +

        CodeIgniter is Free

        +

        CodeIgniter is licensed under the MIT license so you can use it however +you please. For more information please read the +license agreement.

        +
        +
        +

        CodeIgniter is Light Weight

        +

        Truly light weight. The core system requires only a few very small +libraries. This is in stark contrast to many frameworks that require +significantly more resources. Additional libraries are loaded +dynamically upon request, based on your needs for a given process, so +the base system is very lean and quite fast.

        +
        +
        +

        CodeIgniter is Fast

        +

        Really fast. We challenge you to find a framework that has better +performance than CodeIgniter.

        +
        +
        +

        CodeIgniter Uses M-V-C

        +

        CodeIgniter uses the Model-View-Controller approach, which allows great +separation between logic and presentation. This is particularly good for +projects in which designers are working with your template files, as the +code these files contain will be minimized. We describe MVC in more +detail on its own page.

        +
        +
        +

        CodeIgniter Generates Clean URLs

        +

        The URLs generated by CodeIgniter are clean and search-engine friendly. +Rather than using the standard “query string” approach to URLs that is +synonymous with dynamic systems, CodeIgniter uses a segment-based +approach:

        +
        example.com/news/article/345
        +
        +
        +
        +

        Note

        +

        By default the index.php file is included in the URL but it can +be removed using a simple .htaccess file.

        +
        +
        +
        +

        CodeIgniter Packs a Punch

        +

        CodeIgniter comes with full-range of libraries that enable the most +commonly needed web development tasks, like accessing a database, +sending email, validating form data, maintaining sessions, manipulating +images, working with XML-RPC data and much more.

        +
        +
        +

        CodeIgniter is Extensible

        +

        The system can be easily extended through the use of your own libraries, +helpers, or through class extensions or system hooks.

        +
        +
        +

        CodeIgniter Does Not Require a Template Engine

        +

        Although CodeIgniter does come with a simple template parser that can +be optionally used, it does not force you to use one. Template engines +simply can not match the performance of native PHP, and the syntax that +must be learned to use a template engine is usually only marginally +easier than learning the basics of PHP. Consider this block of PHP code:

        +
        <ul>
        +<?php foreach ($addressbook as $name):?>
        +        <li><?=$name?></li>
        +<?php endforeach; ?>
        +</ul>
        +
        +
        +

        Contrast this with the pseudo-code used by a template engine:

        +
        <ul>
        +{foreach from=$addressbook item="name"}
        +        <li>{$name}</li>
        +{/foreach}
        +</ul>
        +
        +
        +

        Yes, the template engine example is a bit cleaner, but it comes at the +price of performance, as the pseudo-code must be converted back into PHP +to run. Since one of our goals is maximum performance, we opted to not +require the use of a template engine.

        +
        +
        +

        CodeIgniter is Thoroughly Documented

        +

        Programmers love to code and hate to write documentation. We’re no +different, of course, but since documentation is as important as the +code itself, we are committed to doing it. Our source code is extremely +clean and well commented as well.

        +
        +
        +

        CodeIgniter has a Friendly Community of Users

        +

        Our growing community of users can be seen actively participating in our +Community Forums.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/overview/features.html b/sna/user_guide/overview/features.html new file mode 100644 index 0000000..149c34f --- /dev/null +++ b/sna/user_guide/overview/features.html @@ -0,0 +1,539 @@ + + + + + + + + + + CodeIgniter Features — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        CodeIgniter Features

        +

        Features in and of themselves are a very poor way to judge an +application since they tell you nothing about the user experience, or +how intuitively or intelligently it is designed. Features don’t reveal +anything about the quality of the code, or the performance, or the +attention to detail, or security practices. The only way to really judge +an app is to try it and get to know the code. +Installing CodeIgniter is child’s play so +we encourage you to do just that. In the mean time here’s a list of +CodeIgniter’s main features.

        +
          +
        • Model-View-Controller Based System
        • +
        • Extremely Light Weight
        • +
        • Full Featured database classes with support for several platforms.
        • +
        • Query Builder Database Support
        • +
        • Form and Data Validation
        • +
        • Security and XSS Filtering
        • +
        • Session Management
        • +
        • Email Sending Class. Supports Attachments, HTML/Text email, multiple +protocols (sendmail, SMTP, and Mail) and more.
        • +
        • Image Manipulation Library (cropping, resizing, rotating, etc.). +Supports GD, ImageMagick, and NetPBM
        • +
        • File Uploading Class
        • +
        • FTP Class
        • +
        • Localization
        • +
        • Pagination
        • +
        • Data Encryption
        • +
        • Benchmarking
        • +
        • Full Page Caching
        • +
        • Error Logging
        • +
        • Application Profiling
        • +
        • Calendaring Class
        • +
        • User Agent Class
        • +
        • Zip Encoding Class
        • +
        • Template Engine Class
        • +
        • Trackback Class
        • +
        • XML-RPC Library
        • +
        • Unit Testing Class
        • +
        • Search-engine Friendly URLs
        • +
        • Flexible URI Routing
        • +
        • Support for Hooks and Class Extensions
        • +
        • Large library of “helper” functions
        • +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/overview/getting_started.html b/sna/user_guide/overview/getting_started.html new file mode 100644 index 0000000..65977f7 --- /dev/null +++ b/sna/user_guide/overview/getting_started.html @@ -0,0 +1,513 @@ + + + + + + + + + + Getting Started With CodeIgniter — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Getting Started With CodeIgniter

        +

        Any software application requires some effort to learn. We’ve done our +best to minimize the learning curve while making the process as +enjoyable as possible.

        +

        The first step is to install +CodeIgniter, then read all the topics in the Introduction section of +the Table of Contents.

        +

        Next, read each of the General Topics pages in order. Each topic +builds on the previous one, and includes code examples that you are +encouraged to try.

        +

        Once you understand the basics you’ll be ready to explore the Class +Reference and Helper Reference pages to learn to utilize the +native libraries and helper files.

        +

        Feel free to take advantage of our Community +Forums if you have questions or +problems, and our Wiki to see code +examples posted by other users.

        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/overview/goals.html b/sna/user_guide/overview/goals.html new file mode 100644 index 0000000..ecd0cfa --- /dev/null +++ b/sna/user_guide/overview/goals.html @@ -0,0 +1,523 @@ + + + + + + + + + + Design and Architectural Goals — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Design and Architectural Goals

        +

        Our goal for CodeIgniter is maximum performance, capability, and +flexibility in the smallest, lightest possible package.

        +

        To meet this goal we are committed to benchmarking, re-factoring, and +simplifying at every step of the development process, rejecting anything +that doesn’t further the stated objective.

        +

        From a technical and architectural standpoint, CodeIgniter was created +with the following objectives:

        +
          +
        • Dynamic Instantiation. In CodeIgniter, components are loaded and +routines executed only when requested, rather than globally. No +assumptions are made by the system regarding what may be needed +beyond the minimal core resources, so the system is very light-weight +by default. The events, as triggered by the HTTP request, and the +controllers and views you design will determine what is invoked.
        • +
        • Loose Coupling. Coupling is the degree to which components of a +system rely on each other. The less components depend on each other +the more reusable and flexible the system becomes. Our goal was a +very loosely coupled system.
        • +
        • Component Singularity. Singularity is the degree to which +components have a narrowly focused purpose. In CodeIgniter, each +class and its functions are highly autonomous in order to allow +maximum usefulness.
        • +
        +

        CodeIgniter is a dynamically instantiated, loosely coupled system with +high component singularity. It strives for simplicity, flexibility, and +high performance in a small footprint package.

        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/overview/index.html b/sna/user_guide/overview/index.html new file mode 100644 index 0000000..c4ed9fe --- /dev/null +++ b/sna/user_guide/overview/index.html @@ -0,0 +1,507 @@ + + + + + + + + + + CodeIgniter Overview — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • CodeIgniter Overview
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        CodeIgniter Overview

        +

        The following pages describe the broad concepts behind CodeIgniter:

        + +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/overview/mvc.html b/sna/user_guide/overview/mvc.html new file mode 100644 index 0000000..4b86e9b --- /dev/null +++ b/sna/user_guide/overview/mvc.html @@ -0,0 +1,520 @@ + + + + + + + + + + Model-View-Controller — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Model-View-Controller

        +

        CodeIgniter is based on the Model-View-Controller development pattern. +MVC is a software approach that separates application logic from +presentation. In practice, it permits your web pages to contain minimal +scripting since the presentation is separate from the PHP scripting.

        +
          +
        • The Model represents your data structures. Typically your model +classes will contain functions that help you retrieve, insert, and +update information in your database.
        • +
        • The View is the information that is being presented to a user. A +View will normally be a web page, but in CodeIgniter, a view can also +be a page fragment like a header or footer. It can also be an RSS +page, or any other type of “page”.
        • +
        • The Controller serves as an intermediary between the Model, the +View, and any other resources needed to process the HTTP request and +generate a web page.
        • +
        +

        CodeIgniter has a fairly loose approach to MVC since Models are not +required. If you don’t need the added separation, or find that +maintaining models requires more complexity than you want, you can +ignore them and build your application minimally using Controllers and +Views. CodeIgniter also enables you to incorporate your own existing +scripts, or even develop core libraries for the system, enabling you to +work in a way that makes the most sense to you.

        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/search.html b/sna/user_guide/search.html new file mode 100644 index 0000000..62ca4ef --- /dev/null +++ b/sna/user_guide/search.html @@ -0,0 +1,500 @@ + + + + + + + + + + Search — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + + + + +
        + +
        + +
        +
        + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/searchindex.js b/sna/user_guide/searchindex.js new file mode 100644 index 0000000..3faddc9 --- /dev/null +++ b/sna/user_guide/searchindex.js @@ -0,0 +1 @@ +Search.setIndex({envversion:42,terms:{linebreak:23,represent:[28,116,82,123],mybackup:78,yellow:[108,130],poorli:95,four:[157,91,56,143,57,133,70,138,132],prefix:[],oldest:138,hate:139,optimize_databas:78,consider:[56,32],whose:32,accur:[0,32,122,159,45,99],aug:95,my_control:[107,118],site_url:[84,102,24,6,32],illustr:[141,102,157],swap:[45,91,100,118,32],up8:95,under:[150,0,100,82,157,9,32,12,103,35,36,50,147,4,30,110,139,69,112,113],up6:95,lord:95,up4:95,up5:95,up2:95,spec:102,myselect:96,up1:95,merchant:80,digit:[],kudo:32,fieldset:96,risk:[110,136,32],"void":[145,91,49,6,94,138,99,102,56,103,58,110,112,113,151,152,120,32,123,84,70,45],internet:[36,102,32],mime_typ:103,del_dir:122,stripslash:[143,32],upstream:32,start_cach:[157,32],applicationconfig:133,set_templ:[151,132],rename_t:[79,32],total_seg:[158,32],ci_db_query_build:157,fopen_write_cr:121,email_attachment_unred:32,preg_match:32,irkutsk:95,encrypt_nam:[136,32],cmd:52,upload:[],previou:[],sri:95,vector:[82,32],red:[150,153,158,138,108,130,8,53,132],wednesdai:132,enjoy:146,forget:[53,110],mysqli_driv:40,zlib:32,abil:[30,32,133,82,137,113],direct:[90,157,32,57,83,84,8,147],str_repeat:[143,108,36,32],enjoi:[66,57],dowload:19,second:[145,0,2,5,104,49,6,96,94,124,95,8,53,10,102,142,143,91,58,144,107,108,110,148,81,151,22,152,114,69,24,115,116,156,4,157,120,154,155,153,26,78,79,32,122,103,36,84,158,85,160,123,113],aggreg:91,mysqli_client_ssl_dont_verify_server_cert:32,kaliningrad:95,eldoc:83,even:[91,133,6,8,96,53,140,11,56,103,59,147,99,149,68,118,154,30,32,82,124,158,159],atlant:95,hide:[],date_rss:95,item2:[110,36],neg:[133,5,110,32],get_extens:32,item1:110,calcul:[56,45,91,32],poison:32,yoursit:102,blur:47,num_tag_open:65,"new":[],net:[32,12,69,4,61,112],ever:[33,96,138,36,147],groupid:133,metadata:[],blog_model:81,med:96,elimin:[123,159,32],msssql:32,behavior:[],get_month_nam:22,form_button:[96,32],never:[0,142,32,33,123,36,133,4,118,110,147],here:[0,1,82,5,133,104,96,136,130,84,52,53,10,102,142,56,103,58,144,156,107,108,110,112,81,65,151,22,149,152,155,24,25,115,71,116,77,147,74,30,153,26,157,32,122,36,83,124,159,70,47,45,113,161,132],met:[28,110,69,82],directory_map:[],smtp_timeout:[26,32],ci_calendar:22,path:[],up45:95,sess_table_nam:[110,36,32],interpret:32,get_smiley_link:116,forum:[139,149,146,7],get_var:[115,32],row_start:132,anymor:32,characterss:70,ci_output:[103,32],precis:[45,160,50,32],datetim:[102,15,58,95,32],"_output":[0,32],niue:95,permit:[0,2,3,48,49,96,136,130,8,53,9,100,72,103,104,108,21,110,112,113,138,68,114,157,156,4,102,120,26,78,79,80,32,82,50,158,85,44,45,132],blog_config:6,heading_title_cel:22,"_cooki":[113,36,147,32],portabl:[],http_x_client_ip:[113,32],dblib:[],myanmar:95,search:[65,5,157,32,143,36,124,158,71,84,28,139,113,74,67,99],get_cooki:[113,94,36,32],another_mark_start:45,releas:[46,112,32],unix:[22,32,133,69,95,110,113],cell_start:132,strai:32,mysqli:[32,100,154,91,36,40,73,81],newspac:32,cont:26,total:[],unit:[],highli:[55,50,112],set_profiler_sect:[86,103],describ:[5,116,133,49,6,136,8,53,139,159,56,57,17,147,149,24,77,119,29,82,26,157,81,32,50,86,132],would:[145,0,57,47,133,6,91,8,136,96,137,84,95,77,52,53,99,159,100,11,56,143,15,104,17,108,21,110,140,111,65,151,22,155,115,31,118,28,120,30,144,26,157,32,103,81,124,158,42,123,45,90,147,132],information_about_someth:133,afghanistan:95,afterward:[136,82,32],get_filenam:[122,32],dnt:32,emailaddress:53,asset:[5,147],typo:[3,32],recommend:[155,26,11,115,32,12,14,67,98,82,7,159,133,136,156,147,149,161,112,73],old_nam:79,protect_braced_quot:23,care:[121,0,156,91,69,82,25,8,110,154,113],type:[],until:[65,103,32,36,50,94,110,53,45,149],uniqid:32,set_tempdata:[110,32],error_php:74,unescap:32,product_id_rul:138,inflect:32,notif:32,error_messag:145,notic:[47,116,133,49,136,130,8,53,102,142,56,103,110,151,22,24,25,157,80,32,123,82,159,70,45,132],unbuffered_row:[58,32],csrf_hash:105,glass:138,start_dai:22,exce:53,wm_opac:56,up7:95,last_tag_clos:65,hold:[82,149,4,32],max_filename_incr:[136,32],must:[145,0,89,2,3,47,133,104,49,82,96,136,130,95,8,53,139,100,102,81,142,12,57,58,86,156,107,60,110,61,21,151,138,22,69,115,161,116,90,4,118,28,157,120,154,121,153,26,78,79,32,122,103,36,83,84,56,42,70,45,149,147],composer_autoload:[48,32],sha256:82,join:[133,110,157,32],sometim:[51,53,78,102],some_t:[51,58,124],buonopan:32,setup:[],work:[],worth:[110,82],warn:[56,110,133,21,32],krasnoyarsk:95,form_open:[32,25,138,97,96,53,148],db_backup:32,undeliv:26,show_other_dai:22,root:[74,0,100,78,149,122,57,104,24,136,110,140,113],newfoundland:95,overrid:[],csv_from_result:[78,32],segment_on:91,create_databas:[79,32],num_row:[119,58,32],give:[30,82,157,79,66,133,32,49,84,116,94,108,110,151,53,119,147,149],send_request:102,greater_than_equal_to:53,smtp:[71,26,32],pg_escape_str:32,indic:[150,47,9,56,104,32,49,6,133,136,95,138,53,111,154],captcha:[],somefil:122,encypt:82,caution:[82,32],unavail:32,want:[145,0,2,47,48,49,6,37,137,96,53,98,99,100,11,142,56,143,144,58,156,104,110,140,148,111,112,81,65,151,149,152,23,68,115,31,4,157,120,82,26,78,79,32,122,123,36,50,84,43,70,130,45,113,87],array_column:[28,32],everi:[65,55,144,22,154,56,48,82,98,7,147,148,137,157,118,110,149,46,113],mysql_:2,unsign:[110,153,90,79,70],bag:133,instanti:[0,55,102,91,130,32,58,137,110,154],read_fil:[],save_queri:[85,86,32],manipul:[],quot:[150,1,78,91,133,143,23,32,124,96],blog_descript:[90,79],up575:95,how:[],hor:56,disappear:47,show_error:[121,83,90,49,32],answer:[143,50],verifi:[100,156,32,153,110,53,19],"_escape_identifi":32,config:[],connect_timeout:32,updat:[],lao:95,recogn:[28,32],tablenam:[157,124],some_field_nam:136,after:[],my_view:32,diagram:130,befor:[],wrong:[110,136,147,84,32],mark_as_temp:[110,32],offlin:[125,12,13,14,15,16,105,106,107,97,59,21,61,62,20,64,128,18,74,75,76,77,127,33,34,35,36,98,38,39,40,41,42,126,63,43,129,162,131,161,19,163],random_str:[],mailpath:26,post_imag:108,dbprefix:[74,100,157,91,81,32,124,154],averag:157,allowed_fil:32,session_write_clos:110,util:[],handl:[],attempt:[0,32,69,84,118,147,113,148,112,99],third:[5,6,96,53,10,142,143,108,110,81,150,22,152,24,25,115,157,155,26,78,32,122,123,36,83,84,85,70],fewer:[100,157,32],username_cal:53,bootstrap:32,greet:102,imposs:[82,4,32],alias:[],maintain:[9,89,155,32,68,123,36,56,135,4,8,110,139,120,149],environ:[],localdomain:32,reloc:[],enter:[150,151,32],exclus:[122,32],expected_result:151,order:[],dblclick:47,wine:130,oper:[],form_submit:[96,138],composit:32,feedback:[110,32],shorten:[133,70],offici:[12,110,135,36,32],failur:[145,91,133,6,136,95,138,53,11,56,58,156,110,148,150,157,69,115,90,28,102,120,26,78,79,32,122,82,83,124,158,70,132],becaus:[0,36,91,6,7,138,84,96,53,11,12,104,60,110,148,112,113,24,4,28,73,121,157,82,124,70],jpeg:[136,103,32],hash_bits_per_charact:32,privileg:78,affect:[47,11,32,133,14,36,104,17,91,85,60,157],highlight_phras:[],japan:95,flexibl:[5,55,77,142,32,36,71],vari:[133,32],myfil:[156,115,142],suffix:[],code_to_run:47,shorter:[53,36],cli:[],img:[26,153,108,32],inflector:[],fwrite:32,add_data:120,not_group_start:157,reduce_multipl:[143,32],inadvert:32,better:[30,32,133,82,137,118,8,139,149],or_group_start:157,persist:[150,100,26,91,32,4,110],comprehens:[53,7],hidden:[47,10,0,133,32,25,138,86,96,148],img_url:153,increment_str:[143,32],them:[0,8,11,12,13,14,15,16,18,19,20,131,24,26,28,30,31,32,33,34,35,36,98,38,39,40,41,42,43,44,48,50,53,56,57,58,59,21,61,62,63,64,65,68,70,74,75,76,77,79,82,86,145,116,91,95,99,100,101,102,104,105,106,107,97,110,113,115,118,121,123,125,126,127,128,129,90,133,136,137,138,144,147,148,149,156,157,161,162,163],row_end:132,thei:[47,1,82,0,133,104,6,50,91,8,96,52,53,155,11,81,142,56,143,57,58,17,105,106,97,60,110,21,22,149,23,24,71,90,28,102,30,144,26,157,79,32,123,36,83,37,84,45,113],fragment:[],safe:[155,82,11,32,12,23,36,37,84,138,110,96,72,148],compress_output:[59,32],"break":[],sqlite3:[36,73,32],db_name:79,get_mim:[121,112,32],jar:32,"_remove_invisible_charact":32,request_uri:[113,67,32],drop_tabl:[],choic:[82,143,36,6,108,53,110],subqueri:32,mytabl:[157,119,78,50,132],f4v:32,my_mark_start:45,longtext:32,odbc:[],bonu:[],timeout:[26,102,91,69,32,154],each:[145,47,144,3,0,133,48,6,91,138,151,137,95,55,96,53,99,10,11,143,57,58,159,146,110,140,150,66,22,100,24,25,115,90,28,102,119,120,154,30,26,157,32,123,82,50,86,70,44,130,45,132],debug:[],went:24,european:95,oblig:6,side:[65,47,144,102,32,133,36,136,157],mean:[47,82,11,4,91,133,130,36,144,25,71,97,59,6,95,138,110,119,149],monolith:87,list:[],wm_vrt_offset:56,saturdai:[22,132],last_nam:102,imageid:153,flock:32,ommit:28,extract:[26,115,113],depress:108,network:32,goe:[135,36,4,82,32],foo_bar:115,newli:[53,4,32],dsn:[100,26,154,32],rewrit:[42,159,32],sprintf:[53,36],got:32,force_download:[78,152,32],forth:155,"_reindex_seg":32,is_:32,linear:4,navig:[52,65,148],written:[65,30,100,36,0,56,32,49,24,25,159,84,151,60,70,135,110,122],smtp_host:26,somesit:134,situat:[100,82,157,50,32],given:[145,138,22,32,56,36,110,115,122,53,70,95,44,28,11,139,158,120,87],quoted_printable_encod:[112,32],standard:[],add_drop:78,element:[88,30,144,78,142,32,123,23,36,24,25,115,96,136,150,47,53,132],"_truncat":32,error_url_miss:145,week_day_cel:22,memory_usag:[45,103,86],md5:[82,72,32,143,36,147],anchor_class:[],angl:56,isp:110,openssl:[36,82],"001_add_blog":90,filter:[],link_tag:[108,32],att:84,mvc:[66,142,81,68,144,139],pagin:[],isn:[145,150,78,79,32,104,82,49,157,53,113],iphon:99,regress:32,codeignit:[],confus:[123,32],bite:47,rand:[157,32],rang:[155,32,56,82,95,139,120],render:[65,0,144,103,32,116,123,36,83,17,25,24,85,86,141,130,60,47,147,148],fetch_directori:[],accent:[155,32],independ:[2,157,91,115,138,11],hellip:155,exit_unknown_method:121,restrict:[80,122,136,112,147,87,21],hook:[],instruct:[],autoinit:32,wrapper:[69,91,58,32],wasn:[24,32],daylight_sav:95,agre:9,primari:[100,102,79,157,91,32,24,6,51,153,70,110],hood:[30,82],form_label:[96,32],nomin:106,easili:[5,103,157,82,24,107,137,4,139],top:[65,47,10,144,32,56,123,57,49,17,53],reverse_nam:58,result_arrai:[157,32,123,58,24,119],downsid:110,cumul:[157,79],master:[56,95,6,149],too:[100,26,32,133,36,147],similarli:[96,110,94,36,145],last_row:58,gilbert:95,john:[102,56,123,96,52,149,132],ci_rout:36,rempath:156,prep_url:[53,84,32],library_src:47,is_doubl:151,namespac:32,tool:[],notice_area:47,albert:150,took:149,user_ag:[],alpha_numeric_spac:[53,32],sha1:[],western:95,somewhat:82,local_tim:22,error_:145,crawl:32,technic:[55,144,83,110,147,53],fileperm:122,target:[47,157,91,56,32,84,70,96,120,149],keyword:[133,108,157,32],consequ:107,provid:[145,47,82,91,133,134,49,6,51,136,130,95,138,53,139,99,9,100,72,12,58,17,106,108,110,148,113,22,23,25,31,4,147,28,30,26,157,79,80,32,123,36,83,84,158,43,70,87,132],previous_url:22,set_error:[70,32],older:[155,32,14,36,4,110],tree:120,told:[0,53],returned_valu:122,project:[9,100,135,52,139,87,149],matter:[110,45,67],solomon:95,entri:[32,102,81,69,36,104,84,108,70],date_rfc1123:95,minut:[110,69,103,60,95],beginn:82,find_migr:90,file_exceeds_limit:32,week_dai:22,ran:[150,25,132],pretend:32,ram:82,mind:[65,150,82,124,4,147,110],auto_clear:26,unidentifi:99,clear_var:[115,32],seed:[82,157,24,32],rar:32,manner:[32,90,82,133,103,36,2,110,149],increment:[22,32,143,69,82,136,4],super_class:133,octob:32,seen:[141,139,36,70],seem:[133,150,3,60,32],incompat:32,encode_php_tag:[53,72],translate_uri_dash:[104,32],result_object:58,is_php:[121,112,32],captal:32,is_nul:151,myusernam:[154,81],latter:[133,25],encode_from_legaci:[107,4,32],thorough:[70,87,32],point1:45,point2:45,contact:[147,84],transmit:32,data1:123,moscow:95,blue:[53,108,130,156,132],set_rul:[53,36,98,25,32],endfor:159,trans_complet:[11,91],though:[47,82,32,56,36,6,133,110],option_nam:138,scripto:47,my_arrai:96,legibl:133,unknowingli:147,next_link:[65,32],mario:150,regular:[],letter:[32,0,144,95,81,133,143,36,145,4],herebi:80,svg10:108,mdate:95,"_set_uri_str":32,choos:[47,82,11,157,32,56,23,37,84,90,4,110,53,154],ctype_alpha:32,prematur:59,yourdomain:94,tradit:[93,30,81],cal_cell_end:22,simplic:[55,157,81],don:[89,82,91,133,6,95,53,103,104,144,110,148,149,150,22,68,69,71,4,147,154,30,26,32,36,50,124,70],mailtyp:[26,115],doc:32,tempdata:[],trans_start:[91,11,32],blog_author:79,max_width:136,doe:[],dummi:[],declar:[0,79,32,122,151,58,98,6,28,133,108,130,118,8,110],probabl:[110,82,50,25],wildcard:[],no_file_select:32,detriment:50,left:[65,0,155,78,157,47,56,123,144,24,158,133,161,102,148],sum:[157,32],dot:32,xampp:32,class_nam:[31,58,111],reactor:[135,32],visitor:[32,36,59,147,113,99],whitelist:[148,32],random:[150,82,157,32,143,36,153,136,4,52,148],"__ci_var":110,endwhil:159,radiu:150,use_page_numb:[65,32],advisori:[110,36],radio:[96,53,32],earth:32,form_error:[96,53],autoload:[],fennec:32,oci:32,absolut:[100,156,32,56,114,82,136,96,110],arcfour:82,layout:[89,78,132],firstnam:[123,102],libari:32,field2:[157,113],menu:[96,53,142,95,32],explain:[66,22,36,110,115,147,136,102,8,53,149],configur:[],apach:[5,136,113,17,32],errantli:32,"_compile_queri":32,wm_pad:56,theme:47,explic:32,rich:[139,87],iconv_en:121,display_respons:102,folder:[],set_new:25,oct:32,changedir:156,set_head:[132,103,26,84,32],crypto_strong:32,csrf_verifi:32,nasti:25,enable_profil:[86,103],stop:[32,26,157,91,103,45],compli:26,consecut:23,log_file_extens:32,font_path:153,report:[],directory_nam:142,bat:[133,83],bar:[65,156,133,104,69,103,83,115,137,60,110,8,53,140],first_url:[65,32],emb:[147,26],ietf:32,baz:133,form_hidden:[96,138,32],patch:[113,104,149,32],twice:[157,32],bad:[32,155,82,102,81,36,98],local_to_gmt:95,septemb:32,get_image_properti:32,"_ci_view_fil":32,mssql_get_last_messag:32,guiana:95,odbc_field_:32,urldecod:53,rollback:[11,32],datatyp:[151,102,79],num:[143,108,104,160],mandatori:82,result:[],respons:[],fail:[11,32,56,69,82,124,91,107,70,102,53,148,149],hash:[],"_call_hook":32,best:[],subject:[151,26,80,32,134,149],brazil:95,awar:[83,32],set_userdata:110,said:[110,36,82],new_path:120,databas:[],wikipedia:52,source_dir:[122,10,32],mug:138,"_error_numb":32,mua:32,invalu:133,drawn:32,awai:56,irc:7,approach:[],attribut:[],inabl:133,accord:[53,102],socket_typ:69,extend:[],var_dump:[133,69],column_to_drop:79,boss:157,"_execut":32,extens:[],sandal:0,html4:108,html5:[155,108,36,32],http_raw_post_data:32,natur:[12,53,157,32],advertis:32,subfold:32,unaffect:32,form_validation_lang:[145,53,32],unfound:32,cop:[102,142],overlay_watermark:32,accident:32,expos:[110,32],trale:32,howev:[0,36,133,104,6,138,136,137,8,53,139,140,102,56,143,103,58,59,110,112,149,65,151,69,4,118,120,157,123,82,124,130,147],against:[90,72,32,82,115,70,157],compile_bind:[91,32],maxlength:[96,138,32],mydirectori:10,boldlist:108,login:[104,84],browser:[0,103,94,130,52,99,141,142,56,57,17,59,60,110,148,113,152,115,25,24,147,155,144,32,123,36,84,45],com:[0,144,5,133,134,96,94,53,52,97,139,102,142,143,116,104,108,110,113,65,22,153,156,74,26,32,36,50,84,158,85,42,70,47,149,136],col:[96,116],rehash:28,tough:149,debugg:32,log_path:32,set_checkbox:[96,53,32],standardize_newlin:[],loader:[],ascii_to_ent:[155,32],wider:56,guid:[],assum:[82,91,6,96,53,140,100,11,116,144,59,21,65,22,77,4,74,75,76,26,157,32,36,50,124,40,42],"_parse_query_str":32,user_data:[36,161,32],duplic:[70,143,103,32],reciev:134,welcome_messag:[118,115,32],light:[],chrome:32,unwant:133,three:[65,26,102,157,32,56,104,23,49,50,25,96,90,124,110,8,53,143,132,147,122],been:[145,47,91,49,130,95,53,72,142,14,103,58,105,106,107,97,110,112,113,24,115,4,74,90,157,79,32,34,36,50,126,127,149,132],legend:[56,96],beep:155,plaintext:26,ar_cach:32,trigger:[32,47,55,5,83,36,49,147,136,130,114,53,148],interest:87,basic:[],clear_attach:26,mytext:152,utf8_general_ci:[100,154,79,131],openssl_random_pseudo_byt:[28,148,32],hesit:133,quickli:83,up65:95,life:148,html_entity_decod:[148,32],eastern:95,suppress:[65,133,6,32],magic_quotes_runtim:[],date_iso8601:[95,32],anywher:[30,45,86,103,60],lift:154,child:[71,31],"catch":[133,104,32],suar:108,blog_control:81,ugli:[133,153],ident:[0,2,133,6,37,8,94,95,96,53,56,58,107,108,113,138,23,118,121,30,31,157,79,32,123,50,84,158,45],quantiti:[96,138,32],cache_set_path:91,mitig:[147,32],properti:[47,89,90,32,56,103,23,36,58,115,105,133,137,8,110,138,113],air:132,aim:[36,82],form_upload:96,weren:32,form_validation_:[36,32],get_compiled_upd:[157,32],publicli:[32,36,82,116,6,110,149],allow_get_arrai:[113,32],aid:32,vagu:149,anchor:[],opt:[110,139,36],template1:123,form_clos:96,printabl:32,set_delimit:123,somelibrari:133,tabl:[],filename1:145,filename2:145,memcach:[],get_metadata:[69,32],marco:32,cond:157,conf:[3,32],march:32,tediou:53,master_dim:[56,32],sever:[66,77,102,79,32,91,58,157,71,151,95,118,138,53,161,140],log_date_format:32,weekdai:22,invalid_dimens:32,harmoni:32,hackeron:149,perform:[],suggest:[30,36,115,32],make:[],db_result:32,camellia:82,complex:[157,68,144,108,70,53,87],strip_quot:[143,32],split:[66,155,104,91],chatroom:7,"__set":[110,58,32],file_ext_tolow:[136,32],complet:[151,26,11,157,32,56,36,49,115,7,91,155,108,158,70,110,119,132,99],elli:135,prev_link:[65,32],evid:104,http_x_forwarded_for:[113,32],database2_nam:154,rail:135,cache_overrid:130,evil:32,hand:[96,0,90,53],fairli:[68,110,136,147],rais:[124,32],upload_lang:32,bia:110,squar:[53,108,32],dhaka:32,charlim:155,kept:[47,36,32,123,116,4,134,138,110,149,148,113],undesir:147,scenario:53,post_dat:95,linkifi:84,flush_cach:[157,32],min:[157,32],taint:147,inherit:[0,89,22,32],stop_cach:[157,32],client:[],shortli:53,thi:[],endif:[138,159],gzip:[78,59,32],programm:[133,139,7],everyth:[150,5,82,102,32,36,25,156,138,110],url_suffix:[65,74,84,32],protocol:[26,3,67,143,32,84,71,156,110,113],just:[150,1,82,91,48,8,96,52,53,11,56,143,14,97,110,148,113,65,24,25,115,71,90,147,157,30,26,78,79,32,36,83,98,84],wm_font_siz:56,photo:[56,120,152],ordin:84,array_replac:32,up55:95,stringenc:133,human:[74,5,32,83,84,95,44,53],mcrypt_mode_cbc:[4,32],yet:[11,24,25,70,53,112],languag:[],previous:[],shoud:[],group_bi:[157,32],xmlhttprequest:32,validation_error:[96,53,25],easi:[65,5,32,82,115,145,107,110,113],interfer:110,declin:149,had:[107,36,32],"_end":45,ci_vers:[121,32],is_float:151,x_axi:56,ak_my_design:155,"0123456789abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz":153,swap_pr:[100,32],els:[0,133,134,49,136,53,99,11,147,112,113,25,102,157,32,33,36,83,124,158,122,159,70],ffffff:56,east:95,hat:135,transit:[107,108,32],gave:[70,32,7],sanit:[72,32,24,25,147,53,148,112],applic:[],csprng:28,get_compiled_select:[157,32],hmac_kei:82,preserv:[56,110,70,148,32],disposit:[26,32],credit:[],lightbox:108,or_where_in:[157,32],rewrite_short_tag:[42,32],background:[110,153,36,155,32],field_nam:[91,32,58,50,51,136,53],cape:95,database_nam:[100,78],apart:137,measur:[56,57,21],"_parse_request_uri":32,handpick:135,"_csrf_set_hash":32,specif:[],"_displai":[103,130,32],insert_id:[85,32],arbitrari:[45,102,100,124,32],manual:[],certificat:100,get_client_info:2,varieti:[83,87,32],multiselect:96,night:108,funcion:32,unnecessari:[147,120],underli:[110,100,83,91],www:[26,102,32,57,84,116,108,70,110,112],right:[65,0,138,144,102,9,80,32,12,123,56,24,158,52,130,47,157,45,155,87,149],old:[65,153,82,32,103,36,98,84,147,156,4,110,53,161,73],deal:[145,30,72,80,32,82,91,53],negat:[69,32],interv:95,excerpt:70,user_model:81,dead:32,fetchabl:124,born:120,intern:[145,82,32,133,36,58,84,106,42,147,138,110],printer:108,elaps:[45,86,95,91],interf:32,successfulli:[156,32,134,36,49,25,136,70,138,53],password_needs_rehash:28,transmiss:82,autocommit:32,thu:[102,32,12,15,104,147,53],txt:[78,152,32,114,148,120,112],ico:108,bottom:[74,47,144,32,56,103,86,95],stronger:82,file_get_cont:[122,103,36,32],subclass:[89,32],trans_off:[11,91],raw_nam:[136,32],pmachin:32,equal:[47,157,151,32,53,112,132],word_length:[153,32],rdfa:108,overcom:104,condit:[32,157,80,91,133,36,124,25,110],foo:[151,1,156,32,133,104,69,103,83,115,96,107,137,60,8,110,140],my_tabl:[85,119,58,157,132],localhost:[47,100,102,81,32,110,154],core:[],plu:[96,151,108,84,6],who:[],cal_cell_start_todai:22,passwordconfirm:53,name_of_last_city_us:133,someclass:[8,142],get_flash_kei:110,pose:17,cellpad:[138,151,22,132],add_dir:120,set_alt_messag:26,scrollabl:32,repositori:[145,83,149],post:[],maintain_ratio:[56,32],"super":[102,32,133,144,115,137,4,8],shuck:155,unsaf:[110,36,32],um4:95,um7:95,first_tag_clos:65,um1:95,um3:95,um2:95,explictli:[],invoice_id:157,um9:95,choke:149,surround:[65,23],reduce_double_slash:[143,32],distinct:[47,157,32],dinner:143,sorri:110,enable_query_str:[65,5,74,32],algo:28,span:[96,155,70,32],commit:[55,149,11,139,32],ci_db_util:[78,115],my_mark_end:45,produc:[65,151,82,11,79,32,36,58,50,124,115,85,107,108,84,95,96,157,119,158,155],match:[0,138,82,157,32,133,144,36,104,115,96,91,28,151,110,8,53,139,81],set_insert_batch:157,file_5:143,email_filed_smtp_login:32,"float":[155,160],encod:[],bound:12,active_group:[100,36,131],down:[90,23,56,58,25,133,31,95,96,147],creativ:[139,87],captcha_id:153,formerli:[157,72,32],wrap:[],make_column:[116,132],set_test_item:[151,32],storag:[],ci_typographi:[37,23],git:[46,149],invalid_filetyp:32,wai:[145,0,82,6,51,136,137,95,52,53,72,142,58,159,60,110,148,112,113,151,68,24,115,71,4,147,102,154,30,90,157,32,122,36,37,86,45,149],"_prep_quoted_print":32,support:[],post_get:[113,36,32],closur:[130,32],transform:[84,124,32],happi:[108,149],avail:[],width:[47,138,153,32,56,84,133,136,108,96],reli:[55,78,79,32,12,36,33,133,110],request_method:[113,32],editor:[0,102,142,133,57,6,136,52,53],db_active_rec:[40,32],add_column:[],wav:32,srednekolymsk:95,get_random_byt:[148,32],fork:149,sess_destroi:[110,32],head:[],medium:[96,132],is_cli:[52,113,36,112,32],form:[],offer:[82,36,98,93,28,53],forc:[100,152,67,122,32,84,136,147,139,87],ucfirst:[133,89,36,144,32],forg:[],fore:37,sess_driv:[110,36,115,32],upload_path:136,renam:[],nonexistent_librari:115,"true":[],something_els:83,table_open:[22,132],reset:[],absent:[45,24],"throw":32,input:[],function_us:[121,112,32],validation_lang:32,new_nam:79,exact_length:[53,32],heading_row_end:[22,132],filename_bad_char:32,maximum:[155,55,26,157,32,56,123,82,51,136,60,4,28,53,139],tell:[145,30,100,90,78,79,157,81,56,115,158,71,151,110],url:[],toggl:[],my_articl:5,field3:157,emit:32,trim:[53,143,36,32],up11:95,e_warn:32,featur:[],p7r:32,delete_cach:[60,32],request:[],"abstract":[11,32,133,24,93,73],mirror:156,myotherclass:130,futur:[110,14,36,82,32],some_data:113,uri:[],cal_row_start:22,exist:[],p7c:32,"_ci_load":32,p7a:32,stanleyxu:32,p7m:32,check:[],assembl:157,site_nam:6,password:[],is_load:[121,115,6,32],"7zip":32,higher:[56,104,82,49,28,110],download_help:[40,32],when:[],refactor:32,active_record:[131,36,32],"_set_head":32,test:[],presum:[108,82],uri_protocol:[3,32],roll:[90,11,91],realiti:150,is_http:[121,112,32],less_than_equal_to:53,relat:[72,79,32,133,143,36,98,25,136,108,110,3],intend:[65,0,26,157,4,32,56,143,66,36,110,91,151,70,57,95,30,138,53,140],phoenix:95,benefici:50,get_output:[103,130],image_properti:108,min_height:[136,32],query_toggle_count:[86,32],insensit:[148,103,104,32],intent:[133,110,36],consid:[0,36,91,48,96,53,139,110,151,22,23,154,157,32,123,82,83,37,124,158,45,132],sql:[],iso8601:[102,32],idenitif:103,shortnam:32,outdat:147,bitbucket:32,receiv:[],known_str:28,longer:[47,36,32,12,15,58,115,82,133,107,60,4,110,53,149],furthermor:[133,36,82],function_nam:112,htdoc:[122,147],pseudo:[151,82,22,32,123,103,45,139],withhold:32,dohash:[107,72,32],tinyint:32,vietnam:95,ignor:[65,1,82,11,157,32,68,123,23,36,37,90,110,78,120],cal_novemb:32,time:[],reply_to:[26,32],backward:[32,47,90,0,134,36,58,116,107,4,138,110,113],stick:[82,149],"_data_seek":32,recipi:[134,26,32],concept:[8,110,24,29,151],session_destroi:110,flac:32,chain:[],whoever:149,skip:[78,79,157,32,122,49,58,98,107,96,110],driver_name_subclass_1:89,focus:55,invent:147,cyril:32,function_trigg:[74,5],"12c":32,unit_test:151,superglob:[110,36,32],set_valu:[96,53,32],archive_filepath:120,prop:56,"_insert_batch":32,insert_entri:81,row:[],hierarch:0,decid:[113,82,102,32],middl:[56,155,32],depend:[],zone:[95,32],decim:[53,45,91,32],readabl:[152,32,122,83,133,95,110,149],post1:83,deject:108,certainli:[36,82],decis:[26,4,32],text:[],get_the_file_properties_from_the_fil:133,oversight:32,query_str:[3,32],update_str:[85,91,32],sourc:[9,10,156,32,56,82,108,28,139,154,149],string:[],unnam:32,wm_font_color:[56,32],unfamiliar:25,revalid:103,lru:69,url_encod:112,cook:95,word:[],brows:[138,30,110,99],key_prefix:[69,32],cool:47,set_messag:[53,32],level:[10,32,56,23,36,49,133,108,110,120],did:[0,157,142,32,56,144,49,25,7,133,70,52,149],die:[133,103],hawaii:95,iter:[133,123,69,143,28,132],item:[],unsupport:32,public_html:156,team:[135,90,32],cooki:[],div:[65,47,22,32,23,83,24,96,53],exit_databas:121,"15t16":95,round:[150,47,108,102],dir:10,prevent:[32,47,82,102,0,133,104,57,49,157,25,153,90,150,84,147,145,148,112,113],slower:110,secrion:82,user_str:28,"_file_mime_typ":32,sign:[],first_link:[65,32],product_name_saf:[138,32],last_activity_idx:106,myarchiv:120,backtrack_limit:32,appear:[74,47,82,22,5,56,23,32,104,37,153,60,95,102,53,155],repli:26,scaffold:[74,75,101,3,32,107,42,21],favour:32,current:[],sinc:[0,15,91,8,96,53,139,99,11,56,103,59,60,110,113,138,68,115,71,4,28,157,120,121,30,78,79,32,123,36,50,84,158],ampersand:1,is_writ:112,screenx:84,domain2:[33,36],domain1:[33,36],boost:50,insecur:[36,6,32],or_not_group_start:157,if_exist:79,burn:150,image_mirror_gd:32,deriv:[28,82,25],dropdown:96,compos:[48,32],gener:[],unauthor:[103,112],french:[145,95],check_exist:114,satisfi:[28,110],add_field:[90,79,32],slow:47,modif:[9,34,36,105,106,42,97,110],address:[],myradio:96,along:[102,32,56,103,83,6,136,53],window_nam:84,userguid:32,latest_stuff:120,wait:102,box:[96,110,82,147],insan:21,error_suffix:[53,32],my_email:[8,36],ini_set:133,shift:[50,32],bot:[84,99],"_version":32,odbc_insert_id:32,a_filter_uri:32,"_trans_depth":32,filename_help:107,overriden:32,valid_url:[53,32],commonli:[145,147,53,139,148,87,99],ourselv:36,some_act:136,semant:[133,32,37,23],regardless:[0,26,32,56,82,124,155,90,113],iana:26,extra:[65,47,82,0,32,24,25,110,96,53],tweak:[98,32],modul:56,prefer:[],ellislab:[135,36,32],instad:32,paramat:32,ftp_unable_to_remam:32,createfromformat:[15,58],visibl:[47,151,32],marker:[56,110,45,32],instal:[],mobil:[99,32],eccentr:32,regex:[53,104,32],newslett:96,serpent:82,memori:[],sake:[24,81],pref:[78,22],init_pagin:32,test_mod:91,perm:[122,156],subvers:32,permitted_uri_char:[36,21,32],live:[110,69,17,124],handler:[110,36,104,152,32],form_reset:[96,32],value2:26,value1:26,criteria:[53,104],msg:[4,70],scope:[49,32],australian:95,checkout:138,prep:[],heading_previous_cel:22,um5:95,capit:[0,144,81,133,36,44,8],mcrypt_mode_ecb:[4,32],minim:[55,157,68,159,146,147,96,53,139,87],incident:36,peopl:[26,104,70,138,139,161,87,154],claus:[],array_item:110,enhanc:32,uniquid:32,elseif:[133,159,99],visual:[56,32],um6:95,list_fil:156,prototyp:[145,100,102,154,81,104,6,158,153,136,130,95,70,8,53,132,131],omsk:95,postgresql:[100,32,14,36,124,85,110,73],effort:[36,46,146,70],easiest:133,is_imag:[148,136,72,32],fly:[26,32,42,159,107,120],orwher:[107,157,32],graphic:[141,108],prepar:[150,136,25],cap:[153,32],cur_pag:32,uniqu:[],image_arrai:116,cat:45,json_pretty_print:103,invalid_select:133,is_count:[44,32],whatev:[32,150,90,91,133,15,115,84,156,124],purpos:[145,55,82,80,32,56,103,36,49,115,84,122,133,95,123,110,113],misc_kei:145,materi:[82,91],object_nam:115,problemat:[36,32],heart:0,validli:134,explor:[66,32,146,36,7],stream:[],"_applic":[69,126],slightli:[133,155,157],backslash:104,agent:[],um8:95,critic:[147,149],abort:[103,49,32],indefinit:9,uruguai:95,unfortun:[147,82,50,112],occur:[32,133,143,83,115,124,17,6],contribut:[],pink:108,alwai:[0,36,47,133,6,96,52,99,10,8,12,104,105,110,113,69,147,28,79,32,33,82,83,124,158,122,45,149],differenti:[147,17,32],multipl:[],keep_flashdata:[110,32],charset:[],ping:[],write:[],set_item:[47,6],purg:104,foreach:[30,26,78,142,133,123,159,58,24,158,51,136,95,138,157,119,139],fourth:[96,155,26,78,95],familiar:[65,151,11,142,82,83,159,70,110],tild:147,xhtml:[26,108,32],ci_except:32,tbodi:132,clean_str:32,map:[10,144,102,116,104,115],remap:[],pg_escape_liter:32,http_refer:32,http_x_requested_with:113,max:[51,70,157,32],sql_mode:32,spot:44,usabl:[36,148,112,82],week_row_end:22,membership:95,socket:[69,70,32],mymethod:130,query_string_seg:65,"_ci_class":32,mai:[88,0,82,47,133,49,6,50,138,137,55,96,53,99,9,10,102,142,12,14,91,104,17,145,107,110,140,148,112,23,24,115,4,147,157,155,144,90,78,79,32,123,36,37,56,70,130],quick_refer:32,underscor:[],data:[],grow:139,man:32,practic:[],conscious:135,menubar:32,stdin:[113,112,32],"_get_ip":32,inform:[],"switch":[],preced:[32,133,23,104,95,120],combin:[0,157,32,133,36,58,108,95,96,147,148,113],block:[32,133,123,23,83,159,86,110,139,149,132],"_clean_input_data":32,callabl:[],tbody_open:132,purifi:36,allowed_domain:[33,36],remove_invisible_charact:[121,112,32],pipe:[53,136,32],search_path:32,orig_data:4,approv:[145,148],show_prev_next:32,upload_form:136,increas:[133,110,143,57,32],nbsp:[132,108,22,36,32],or_where_not_in:[157,32],ttl:[110,69,32],get_magic_quotes_gpc:32,file_permiss:[56,32],still:[100,36,32,33,15,104,24,82,7,133,110,28,53,98,67],pointer:[66,58,32],ttf:[56,153],dynam:[],entiti:[155,1,72,32,143,23,36,37,108,70,53,148],smitti:102,conjunct:23,newprefix_tablenam:124,group:[],thank:[110,32],polici:112,"_backup":32,users_model:53,mybutton:96,platform:[100,2,78,32,91,157,71,85,110,11,112,99],window:[149,32,133,69,98,84,52,113,148,112,99],new_table_nam:79,transpar:[56,103,32],unset_tempdata:[110,32],intl:32,javascript_loc:47,mail:[26,32,134,36,84,71,96,110,149],main:[],countabl:44,getfileproperti:133,explanatori:136,non:[155,103,79,32,133,104,23,36,58,147,107,108,114,28,110,132,112,113],halt:[110,32],jame:157,displai:[],thumb_mark:56,initi:[],disabl:[],alt_path:145,or_not_lik:[157,32],theother:143,safari:[99,32],disappoint:53,ci_cart:138,now:[],discuss:[147,144,31,157,111],nor:[143,36,157,124,82],havingor:32,pastebin:149,term:[65,30,2,82,115,145,8,110],name:[],mysql_get_client_info:2,opera:32,cellspac:[138,151,22,132],drop:[],separ:[],is_really_writ:[121,112,32],breach:32,allman:[133,149],januari:[22,32],hijack:[147,148],pizza:108,compil:[102,91,56,32,124,86,157],failov:[100,32],domain:[32,33,36,83,94,110,113],"_get_mod_tim":32,img_path:153,cal_cell_no_content_todai:22,cookie_httponli:[110,113,32],replac:[],stopped_by_extens:32,continu:[102,142,32,133,14,104,25,4,70,53,45],ensur:[150,100,32,133,69,82,115,4,147],redistribut:9,backport:28,significantli:[139,118],viewpath:[121,32],year:[135,22,95,32],min_width:[136,32],happen:[26,142,32,82,50,36,130,110,45,120,149],set_realpath:[114,32],heading_row_start:[22,132],html_escap:[121,32,36,96,148,112],slide:47,shown:[145,36,136,138,53,12,144,86,65,22,155,153,30,157,32,123,82,84,56,159,45,163],accomplish:[102,79],referenc:[123,95,32],"3rd":32,space:[],old_fil:156,mysql_escape_str:32,data_to_cach:69,"_remap":[52,0],trans_commit:[11,32],profil:[],mess:118,get_file_properti:133,danijelb:32,tb_data:70,is_int:151,correct:[151,156,157,32,133,23,82,37,91,85,136,147,53],image_lib:[40,56,10,32],group_two:154,get_head:[103,32],secretsmittypass:102,migrat:[],ibas:[73,32],xhtml1:108,tmpf:110,cart:[],"_error_messag":32,ajax:[47,113,148,110,32],mime:[],set_update_batch:[157,32],alter_t:32,org:[26,108,32],"byte":[32,133,82,86,160,148],card:[138,82,4],error_str:[53,90],reusabl:55,time_refer:[95,32],suffici:110,global_xss_filt:[],nice_d:[],yup:4,modest:32,british:[135,80],unavoid:107,turn:[65,116,11,142,32,36,50,84,158,85,136,156,157,96,147,112,113],place:[0,103,91,133,6,50,147,136,130,8,53,100,102,56,57,104,17,60,110,149,65,151,22,69,24,115,116,90,118,120,155,26,157,79,32,36,98,86,45,161],cal_days_in_month:[95,32],legacy_mod:4,log_messag:[121,49,11,32],router:[40,141,118,36,32],row_id:138,principl:[8,66],nicknam:102,think:[82,4,149],lambda:130,ci_benchmark:45,loki97:82,directli:[0,91,137,8,9,81,142,143,57,60,147,113,151,141,24,110,157,31,78,79,32,36],ci_lang:[88,145],onc:[145,47,49,138,136,137,8,99,102,81,56,104,60,146,110,111,113,151,22,23,115,24,153,4,147,157,119,120,30,156,78,79,32,123,82,50,70,132],arrai:[],zab:133,housekeep:50,"0x7f":32,tag_open:155,fast:[],oppos:[36,82,32],additionali:[],open:[],ruri_to_assoc:[158,32],"__construct":[0,81,133,32,24,107,137,118,8,110,136],size:[150,153,138,102,32,56,82,158,122,136,108,160,147,96,53,132],truncate_t:32,file_exceeds_form_limit:32,silent:[36,32],convent:[],gif:[56,47,136],w43l:32,associ:[],fmt:95,malform:32,assort:32,max_length:[51,53,155],utliz:157,circl:108,where_in:[157,32],white:[153,32],conveni:[47,90,33,48,36,122,148,113],my_foo:69,user_id:157,get_package_path:115,especi:110,programat:124,copi:[61,127,6,143,149,8,62,101,125,12,13,14,15,16,144,105,106,107,97,59,21,18,19,20,64,128,56,82,74,75,76,77,80,32,33,34,35,36,98,38,39,40,41,42,126,63,43,129,131,161,162,163],"_ci_":32,specifi:[145,0,82,5,104,6,138,136,130,124,95,96,53,99,100,102,142,56,143,91,58,108,150,21,110,112,113,65,22,155,69,115,153,156,4,28,157,120,154,30,26,78,79,81,122,103,32,84,85,132],oci_execut:32,cfb8:82,xhtml11:108,"short":[],enclos:[],pragma:[103,32],full_tag_open:65,necessarili:[110,14],alnum:143,than:[],png:[56,122,136,84,32],imagecr:32,serv:[0,82,102,67,68,103,32,49,50,133,141,113,81],wide:[86,82,113],ciphertext:82,client_nam:136,instanc:[145,91,133,104,50,136,137,8,53,102,143,103,58,107,65,22,115,4,154,155,26,157,79,32,82,37,130,132],form_item_id:88,sha512:[14,82],cascad:[],didn:[150,110,36,32],posix:32,param2:2,param1:2,were:[32,47,82,102,0,148,147,36,91,106,108,59,110,96,97,139,90,61,87,105],posit:[155,102,79,32,56,69,91,58,28],get_csrf_hash:[105,148],zsh:32,typographi:[],seri:[121,47,32],pre:[102,32,23,103,37,138,53,113],lowest:[26,49],sai:[145,0,2,32,56,81,104,50,82,133,84,4,110,138,53,147,140],explode_nam:32,upload_success:136,xml_from_result:[78,32],"_prep_q_encod":32,delim:78,argument:[],month_typ:22,dash:[],db2:154,doctyp:[108,32],suhosin:[112,32],redisexcept:32,ssl_ca:100,num_field:[58,50],restrictor:157,seppo:32,page1:157,"_env":32,caus:[47,26,11,32,133,104,36,49,17,91,96,136,130,114,8,110,120,155],"_create_databas":[107,32],engin:[],techniqu:[147,82,148],advic:147,greek:32,destroi:[],"_pi":32,note:[],altogeth:36,ideal:53,jefferson:150,take:[122,0,1,57,153,91,133,58,127,125,98,130,124,95,8,53,158,62,102,61,12,13,14,15,16,105,84,107,97,59,21,146,104,110,18,19,20,64,150,128,23,129,115,25,131,116,4,106,154,74,75,76,77,79,32,33,34,35,36,50,38,39,40,41,42,70,126,63,43,44,113,161,162,163,132],advis:[110,82,84,124,73],interior:133,green:[53,108,156,132],bcrypt:147,noth:[65,145,26,155,24,98,71,59,110,53],channel:32,getwher:[107,157,32],realpath:32,begin:[66,116,157,32,133,143,57,60,53,46],sure:[],incorpor:[68,145],trace:32,normal:[0,57,47,104,6,8,137,95,52,53,141,56,143,103,58,144,60,113,65,151,68,118,155,26,157,32,158,159],track:[49,90,11,110,32],myutil:78,price:[138,139],group_on:154,use_global_url_suffix:[65,32],clearer:149,default_domain:[33,36],"_assign_to_config":32,abus:32,sublicens:80,pair:[],seeksegmenttim:32,hotfix:149,get_total_dai:[22,32],fetch_class:[],icon:[108,84],exact:[53,36,155],image_res:56,view_fil:32,synonym:[5,139],textarea:[96,116,25,32],view_fold:[57,98,32],later:[15,144,90,157,36,24,25,98,106,110],option_valu:138,mimes_typ:32,escape_like_str:[91,124,32],rotation_angl:56,runtim:133,pattern:[157,32,68,144,104,7,93,147,119],addit:[88,5,82,47,133,104,49,138,96,53,139,99,102,56,57,58,17,145,106,110,150,22,116,26,79,32,103,36,45],mb_strpo:28,axi:56,salt:[28,82,32],sess_expir:[110,36],gracefulli:154,shop:[],shot:[138,113],signoff:149,uncondit:32,show:[],german:145,pconnect:[100,81,154,32],up35:95,crime_is_up:158,concurr:[],shoe:[74,0,158,5],permiss:[156,80,56,136,122,42,60,52,110],hack:[85,130,113,72,32],threshold:[42,49,32],line:[],fifth:138,help:[47,116,133,49,37,51,84,95,53,99,155,102,57,144,107,108,147,148,149,65,23,68,90,121,30,26,78,79,32,83,50,124,158,86,160],xml:[],userdata:[110,36,32],onli:[145,47,82,0,133,104,49,6,91,96,94,137,84,95,55,8,53,139,136,99,10,102,56,143,14,57,58,150,108,59,60,134,110,140,148,112,21,65,151,138,149,23,69,100,24,25,71,116,156,4,147,28,157,73,155,153,26,78,79,154,32,122,103,36,83,50,124,70,123,130,45,113,67,132],explicitli:[65,122,154,84,32],ratio:56,favor:[150,72,87,32],romanian:32,transact:[],ini_get:[133,32],xma:138,next_tag_clos:65,black:153,datestr:95,mydata1:120,filectim:32,mydata2:120,overwritten:[136,36,32],query2:58,over:[47,22,32,56,66,91,104,24,84,133,108,95,96,102,112],mypic:[56,136],nearli:[56,84,138,118,8,87],variou:[30,22,32,136,43,53,120,99],get:[],sst:32,imagecreatetruecolor:32,sss:83,secondari:124,ssl:[26,156,112,32],cannot:[121,30,100,79,32,114,82,124,91,110,46,149],mypic_thumb:56,neither:[56,82],requir:[],truli:139,reveal:[71,47],item_nam:6,output_compress:32,outperform:110,suppli:[2,91,134,49,51,136,96,53,100,12,116,148,112,113,151,22,115,153,28,119,120,156,157,32,122,36,84,56,149],passion:108,borrow:135,email:[],todo_list:[102,142],twelv:132,default_control:[],ini:[155,32,133,114,14,159,136,110],ci_cach:69,ent_compat:148,where:[],summari:[8,47],wiki:[146,7],password_default:28,msdownload:32,a_long_link_that_should_not_be_wrap:26,smiley_j:[116,32],marquesa:95,password_get_info:28,myfold:[156,120],send_email:[134,36,32],smiley_t:116,"_display_cach":[130,32],my_input:118,calendar:[],another_method:31,element_path:47,concern:[138,110,36,148],infinit:32,kmz:32,detect:[82,3,32,33,103,36,84,91,56,136,90,148,99],"_base_class":32,controller_trigg:[74,5],review:36,auto_head:32,ubiquit:110,label:[],db_pconnect:[91,32],behind:[56,29],between:[2,133,8,53,139,100,11,56,143,104,17,60,147,112,68,120,26,157,32,123,44,45],my_app:115,"import":[82,7,159,59,4,147,8,110,139],paramet:[],across:[36,17,82],dir_read_mod:121,assumpt:55,"_clean_input_kei":32,aleutian:95,august:32,parent:[],flowgat:32,sku_567zyx:138,cycl:[143,26,60],latin:[147,32],"_is_ascii":32,reorgan:32,list_field:[51,91,58,32],blog_nam:[79,70],come:[145,47,144,32,48,69,36,17,6,93,147,136,123,110,139,148,113],sess_upd:32,repertoir:47,fit:80,rsa:32,file_read_mod:121,controller_info:86,pertain:50,config_item:[121,36,112,32],groupbi:[107,157,32],contract:80,inconsist:32,open_basedir:122,improv:[],log_threshold:32,create_link:[65,32],cal_cell_end_todai:22,undocu:36,item3:110,frameset:108,color:[150,153,138,155,32,56,36,158,96,108,8,53,132],colspan:[138,22,132],set_content_typ:[103,32],period:[102,32,23,136,95,138,147,113],pop:84,photo2:26,photo3:26,exploit:[148,32],up13:95,colon:[100,32,159,147,138,110],example_t:124,exclud:[120,5,26,103,122],cancel:[157,102],up14:95,curl:52,returned_email:26,damag:[82,80],needlessli:32,save:[],semicolon:[159,148,32],coupl:[55,102,67,32,118,8,53],dynamic_output:56,west:95,rebuild:32,fopen_read:121,up3:95,mark:[32,155,67,36,124,91,106,86,96,110,45,112],locpath:156,individu:[],certifi:[9,149],trig:32,thead:132,ci_sha:32,short_open_tag:133,repons:[],decrypt:[],thousand:32,rubi:135,get_id:70,proven:[147,36,82],"_drop_databas":[107,32],select_sum:[157,32],thing:[103,133,7,52,53,144,17,147,148,149,22,69,115,25,24,110,157,79,32,36,83,84],repres:[65,5,32,56,36,58,24,68,70,28],former:32,those:[145,5,36,133,6,147,138,53,99,102,56,143,103,104,144,105,110,81,65,23,118,79,32,82,50,149,132],sound:149,blowfish:82,mysecretkei:115,amend:32,plugin:[],wm_shadow_color:[56,32],cast:[133,82,32],netpbm:[56,71,32],is_robot:[99,32],base64:[53,82,102,147],outcom:157,send_success:70,bufferedtext:133,margin:[96,139],show_next_prev:22,glanc:[],advantag:[79,133,7,96,4,146,8,110,112,113],henc:36,cache_item_id:69,up9:95,destin:[56,136,156,104],prev_tag_open:65,or_hav:[157,32],list_databas:[78,32],my_dog_spot:44,eras:110,img_width:153,blog_id:[90,79],ascii:[155,156,32,153,70,112],ship:138,subtot:138,par:32,ci_image_lib:[56,32],xml_encod:133,proto:32,obfusc:84,alphabet:53,intermediari:68,same:[],jsmith:102,binari:[156,32,120,82,28,148],html:[],pad:[56,82,32],file_4:143,raw_output:28,pai:32,document:[],form_fieldset:[96,32],status:32,php_sapi_nam:32,function_exist:[112,32],screenshot:149,utf8:[100,131,79,154,118],nest:[157,81,11,115,32],assist:[88,30,1,155,153,32,122,83,49,10,84,143,94,108,150,134,96,147],driver:[],someon:[26,82,153,21,4,138,53],modify_column:[79,32],companion:155,driven:149,capabl:[5,55,32],my_sess:115,mani:[],extern:[133,110,148,32],encrypt:[],protect_identifi:[91,124,32],rewriterul:5,return_object:91,sanitize_filenam:[148,72,32],met_win_open:84,"_ci":32,appropri:[65,9,144,102,32,133,82,49,157,91,85,160,110],new_entri:102,mcrypt_blowfish:4,markup:[],page:[],custom_row_object:58,without:[145,0,2,47,133,49,6,8,136,96,137,84,95,52,53,11,56,103,58,110,61,113,114,69,24,115,153,4,147,30,31,157,79,80,32,82,124,86,70,130,45,149],compression_level:120,titl:[116,136,84,53,102,142,143,144,58,108,148,150,24,25,119,157,32,123,81,83,124,70,132],identif:32,index_kei:28,model:[],get_content_typ:[103,32],dimension:[100,142,32,123,108,130,138,132],insert_batch:[157,32],keyup:47,execut:[],among:[138,110,99,32],rule3:53,rule2:53,rule1:53,allowed_typ:[136,32],rest:[104,100,81,83,7],gd_load:32,"_post":[],"_get_config":32,kill:32,cambodia:95,aspect:[56,22,32],touch:110,monei:150,less_than:[53,32],speed:[47,60,110,32],filter_var:[134,36,32],product_lookup_by_id:104,versu:133,is_cal:[53,32],fh4kdkkkaoe30njgoe92rkdkkobec333:138,pg_version:32,except:[5,133,58,6,8,94,95,96,53,56,143,104,107,110,23,69,118,157,79,32,123,36,37,84,158,40,159,45,87,132],param:[32,0,82,78,47,133,36,83,110,115,130,102,8,53,65,132],desktop:[120,102,78,152],non_existent_fil:114,my_shap:150,blob:[110,36],save_path:[110,32],mb_convert_encod:32,haystack:[28,30],word_censor:[155,32],"_thumb":56,earli:130,last_link:[65,32],hover:47,around:[116,91,133,69,32,124,96,53],blog_id_site_id:79,code:[],read:[144,91,133,7,53,139,81,142,57,107,146,110,111,112,113,66,152,115,25,156,117,147,119,120,30,31,157,32,122,36,50,124,86,45,161],escape_str:[91,124,32],messsag:[],grammat:32,"_convert_text":133,is_allowed_filetyp:32,grid:[153,32],darn:155,mom:[102,142],world:[],js_insert_smilei:[36,32],"_write_cach":0,blackberri:32,whitespac:[],some_funct:[96,2],changelog:[149,32],preg_replace_ev:32,integ:[151,10,157,79,32,56,58,85,133,110,53],server:[],set_status_head:[121,103,112,32],benefit:[31,11,133,157,124,95,96,53],photo1:26,either:[47,82,133,108,136,2,95,96,53,102,56,104,107,97,110,148,81,65,151,23,4,157,154,26,78,32,36,50,84,149],count_al:[85,91,157,32],output:[],tower:149,json_unescaped_slash:103,yyyi:95,what:[],affected_row:[85,119,91,157,32],method_exist:0,juli:32,blog_label:79,http_header:86,authent:[],word_wrap:[155,32],error_db:[74,91],guillermo:32,first_row:58,error_arrai:[53,32],form_help:40,slice:108,caribbean:95,mood:108,confirm:[],deliveri:[132,32],kml:32,definit:[],token:[133,103,148,32],is_ajax_request:[113,32],exit:[90,32,133,103,49,8],inject:[136,32],xtea:82,toolkit:[139,87],"_parse_cli_arg":32,apostroph:23,um95:95,overli:[133,50,32],exp_pre_email_address:133,refer:[],get_last_ten_entri:81,total_item:[138,32],shadow:56,power:[47,144,25],"_remove_url_suffix":32,pdo_sqlit:32,garbag:110,inspect:138,ci_load:[115,32],max_height:136,broken:[147,26,31,32],apantbyigi1bpvxztjgcsag8gzl8pdwwa84:4,fopen_read_write_cr:121,found:[145,0,90,48,49,6,94,130,95,143,103,104,144,110,112,113,69,115,31,147,28,82,26,78,32,36,158,160,70,149,163],mime_content_typ:32,thailand:95,referr:99,isset:[32,133,58,17,110,113],earlier:[157,142,110,144,24,25,70,53],callback_:53,comparison:[133,151,157,32],input_d:15,central:95,greatli:11,discern:[136,32],island:95,previous_row:58,request_filenam:5,exit__auto_max:[121,49],mcrypt_dev_urandom:[28,82,32],is_numer:[147,151,32],degre:[56,123,55],intens:[122,37,50,23],stand:147,act:[144,102,142,32,36,115,94,148,112,113],slash_rseg:158,luck:150,backup:[],processor:[37,23],routin:[30,55,78,32,50,136,147,53],effici:[99,32],max_siz:136,status_cod:49,coupon:138,lastli:[83,158,3,50,102],mari:132,quietli:133,super_class_vers:133,strip:[155,26,72,32,143,25,147,70,53],your:[],clipperton:95,call_user_func_arrai:0,unit_test_lang:40,wm_font_path:56,"_detect_uri":32,area:[56,116,104],validate_url:[70,32],odbc_num_row:32,"_explode_seg":32,overwrit:[136,6,32],xw82g9q3r495893iajdh473990rikw23:138,ci_unit_test:151,start:[],pre_system:130,interfac:[157,32,56,49,52,110,139,87,113],low:[133,155,36,82,32],mbstring:[28,32],ipv6:[53,113,126,32],submiss:[133,153,95,147,53,148],strictli:122,strict:[],filter_uri:32,lang:[88,121,145,32,133,36,115,6,53,99],up10:95,programmat:[30,36,90,32],str_replac:133,bsc:123,enough:[150,53,82,147],conclud:110,bundl:[110,83],regard:[55,22,157,56,49,115,133,147,53,161],"_session":[110,36,32],mb_strlen:[28,32],procedur:[53,30,130,49,32],cryptograph:[36,148,4,82],openxml:32,conclus:[],faster:[123,82,84,59,110,139,87],orlik:[107,157,32],pull:[108,149,142,95,32],mathml:108,possibl:[82,133,137,138,140,55,56,103,104,144,107,21,146,147,149,65,115,24,4,118,157,31,78,32,123,36,50,57,161],"default":[],error_prefix:[53,32],getter:110,delete_fil:[122,156,32],eschew:87,grasp:83,my_calendar:115,embed:[142,32],deadlock:[110,32],remove_spac:136,up12:95,expect:[66,144,78,32,133,123,70,49,151,7,147,136,97,110,8,102,158,148,149],cbc:[82,32],creat:[],multibyt:[],certain:[74,0,100,157,32,48,36,83,50,47,5,28,147,149],tahiti:95,site_id:79,valid_usernam:53,mode:[],strongli:[36,12,15,98,21,73],undergon:32,print_debugg:[26,32],file:[],next_url:22,fill:[53,32],incorrect:[96,133,82,115,32],again:[47,144,115,53,110,149],incorrectli:32,image_typ:136,googl:[151,32],hex:[56,82,72,32],collector:110,display_overrid:130,conn_id:[2,50,32],prepend:[157,32,82,115,124,158,94,53,113],wm_shadow_dist:56,idiom:145,valid:[],collis:[145,32,69,36,115,6,113],rdbm:32,is_unix:95,no_file_typ:32,writabl:[32,122,49,50,153,42,60,136,120,112],eight:132,you:[],mcrypt_create_iv:[28,148,32],exit_user_input:121,poor:71,create_kei:[82,32],sequenc:[100,90,32,82,85,108],symbol:[122,114,32],pear:[87,32],multidimension:[96,53,108],poof:32,dropbox:149,rsegment:[36,158,32],pool:[153,32],typecast:[],reduc:[23,143,69,37,50,147],ci_zip:[120,32],segment_two:91,ci_model:[107,81,24,32],unload:47,directori:[],wm_use_drop_shadow:32,descript:[],session_id:[110,36,32],smtp_user:26,mimic:23,mass:107,potenti:[],up115:95,escap:[],w3c:[108,95,32],dst:95,unset:[110,36,147,32],is_uniqu:[53,32],disp:26,file_upload:10,all:[],db_backup_filenam:78,new_field:36,write_fil:[122,78],filename_pi:107,lack:[110,36],dollar:[104,32],month:[],new_list:132,mp4:32,correl:[130,60],mp3:32,microtim:153,wm_type:56,follow:[0,1,3,5,6,8,10,11,14,15,21,23,24,25,26,28,29,30,31,32,36,37,43,44,45,47,48,49,50,51,52,53,55,56,58,59,60,65,66,69,72,90,74,75,76,77,78,79,80,81,82,83,84,86,88,116,94,95,96,99,100,101,102,103,104,106,107,108,110,111,113,114,115,118,119,121,122,124,70,130,131,133,134,136,137,141,142,143,144,145,147,148,150,151,152,153,154,155,157,160],alt:[26,108,32],disk:[56,69,82],children:32,abid:57,library_path:56,auto_link:[84,32],iconv:[28,32],number:[],get_file_info:[122,32],script_nam:32,sess_regenerate_destroi:110,wmv:32,spirit:32,init:[74,75,76,77,3,32,101,21],program:[82,73],spearhead:135,queri:[],read_dir:[120,32],wma:32,cgi:32,introduc:[66,133,24,7,161,112],abridg:95,"case":[145,0,89,82,5,133,104,8,136,137,96,53,100,11,56,57,58,134,110,148,111,112,113,138,157,155,69,115,25,4,118,102,123,30,156,78,79,32,33,103,36,84,122,44,147,163],liter:[96,147,151,104,32],straightforward:110,ingredi:82,fals:[],passconf:53,keydown:47,get_new:24,verb:[],mechan:[151,82,79,32,36,130,4,110],verd:95,fall:[28,33,69,36,32],veri:[150,133,93,94,130,84,8,53,139,99,55,11,56,144,156,59,110,65,22,115,71,90,157,74,26,78,123,50,124,45],get_clickable_smilei:116,condition:[56,26,102],subsubsubsubsect:83,mysql_set_charset:32,norfolk:95,"_filter_uri":32,my_array_help:30,tag_clos:155,signific:53,e_strict:32,emul:[0,110,32],small:[66,55,26,32,133,82,85,96,139,87,132],require_onc:74,e_notic:32,dimens:56,trans_strict:[11,91],getimages:32,samoa:95,ten:132,"__get":[110,58,32],my_blog:102,product_lookup:104,sync:32,past:[36,95,82],zero:[32,143,82,49,50,158,42,136,110,138,53,87,113],postgr:[85,100,73,32],design:[],pass:[],overlin:83,further:[0,55,32,66,103,50,108,70,28,110,154],nba:53,log_file_permiss:32,directory_depth:10,kdb:32,trick:[110,147,32],server_path:122,sub:[],trans_rollback:[11,32],sun:[22,95],section:[],abl:[47,32,133,104,82,58,7,134,86,70,8,53,112],brief:[136,82],ci_encrypt:[82,4],date_rfc2822:95,delet:[],abbrevi:[56,145,22],last_login:58,primary_kei:51,intersect:32,is_bool:151,some_method:[0,31,78,79,83,8],method:[],contrast:[139,11],millisecond:47,full:[145,47,57,0,133,7,93,136,8,139,99,100,72,56,103,107,108,147,140,112,65,151,157,71,102,119,78,32,122,123,50,84,158,45,132],assoc_to_uri:158,agent_str:99,pacif:95,variat:[58,32],misspel:32,form_textarea:[96,32],vale:148,behaviour:[26,36,32],coco:95,shouldn:[110,36,6],username_check:53,imap_8bit:32,is_allowed_typ:32,is_object:[151,32],ci_pagin:65,strong:[155,82,32,36,138,147,132],modifi:[],preserve_filepath:120,valu:[],leav:[151,26,72,32,56,82,25,84,133,97,130,21,147,53],min_length:53,valid_ip:[53,113,32],ahead:58,newlin:[26,78,32,133,143,23,37,108,53,113],server_info:32,popen:32,observ:32,mac:[52,133,99,32],prior:[77,32,136,90,130,4],amount:[11,56,103,157,86,60,138,53,45,139,87],pick:133,action:[47,138,157,80,0,56,104,32,83,51,96,136,97,130,52,53,148],another_t:50,narrow:147,detectifi:32,exit_unknown_fil:[121,49],via:[],display_error:[],gost:82,intermedi:7,screeni:84,africa:95,example_librari:8,hash_hmac:82,javascript_ajax_img:47,filenam:[145,30,26,72,152,32,56,148,36,133,136,6,122,42,90,130,118,8,78,120],href:[22,32,123,24,84,108],send:[],famili:82,um45:95,demonstr:[155,26,116,25,136,108,120],decrement:[69,22,32],"_start":45,establish:[154,91],not_lik:[157,32],select:[],metaweblog:102,test_nam:151,ci_env:[17,32],hexadecim:[28,82],helper:[],internation:[],faint:56,two:[],page_titl:142,fopen_read_writ:121,call:[],autonom:[55,91],res_datatyp:[151,32],taken:[90,46,32],select_max:[157,32],"_object_to_arrai":32,minor:32,more:[88,0,82,5,133,104,49,7,96,130,95,52,53,139,55,155,11,81,142,56,143,57,58,17,106,107,108,97,134,110,112,50,150,66,138,22,23,68,69,100,25,115,71,161,102,28,72,154,30,144,26,157,32,33,103,36,37,84,42,126,127,70,45,147],emoticon:116,flaw:[147,32],desir:[88,145,90,157,154,32,133,23,58,17,116,136,156,147,140,87,132],create_thumb:56,hundr:[99,32],my_app_index:115,relative_path:148,photoblog:102,flag:[151,157,79,91,32,147,149,113],driver_name_subclass_2:89,driver_name_subclass_3:89,broke:[149,32],particular:[145,91,6,51,130,138,53,140,11,142,143,58,110,99,155,157,102,154,30,78,80,81,50,84,85,70,45],known:[157,32,36,147,118,28,110,99],mathml1:108,mathml2:108,trans_statu:[91,11,32],cach:[],fopen_write_create_strict:121,"_stringify_attribut":121,town:79,none:[26,22,32,56,91,147,136,90,110,28,78],endpoint:148,suitabl:[133,143,36,72,148],hour:[110,95,153],hous:[102,142],list_tabl:[51,91,32],der:32,outlin:4,dev:[82,32,133,36,28,148],detect_mim:136,orderbi:[107,157,32],remain:[153,50,60,25,32],paragraph:[53,1,32,23],nine:132,caveat:110,learn:[11,57,104,115,6,146,110,139,87],group_end:157,male:158,explod:133,typograph:[37,23],subclass_prefix:[8,30,42,118],scan:32,up875:95,challeng:139,server_protocol:113,share:[100,22,32,50,110,3,140],"404_overrid":[],accept:[47,82,91,133,58,95,96,53,99,100,102,143,144,104,97,110,148,108,113,22,153,147,26,157,79,32,123,36,84,112,70,149,132],sphere:108,minimum:[65,53,136,157],unreli:[112,32],set_row:58,sharp:47,ci_upload:[136,32],uncheck:32,cours:[82,36,104,4,110,96,53,139],goal:[],first_nam:[53,102],secur:[],rather:[145,5,91,8,96,53,139,55,11,142,15,104,106,113,151,100,115,154,79,32,123,36,98,124,149],anoth:[0,26,11,79,157,32,36,110,6,115,159,147,136,137,78,102,53,99,120,82],smtp_port:26,golli:155,fame:110,narrowli:55,some_cooki:113,url_titl:[],"_unseri":32,reject:[55,32],iso:[26,95],csv:[],simpl:[0,82,5,49,93,52,96,53,139,100,102,142,108,110,65,151,22,155,90,4,30,26,157,32,123,36,83,84,70,47,87],needl:[28,30],css:[47,36,155,103,84,108,95,147],unabl:[122,70],convert_accented_charact:[155,32],regener:[110,148,32],plant:102,sandwich:95,resourc:[],indian:95,whats_wrong_with_css:84,smiley_view:116,show_404:[121,0,32,49,144,104,24,163],variant:145,invok:[74,5,55,31,130,118,53,45,111,113],reflect:[45,32],catalog:104,okai:133,mutat:32,subdriv:32,unlink:32,lanka:95,circumst:[103,32],github:[],product_typ:104,system_path:[],footer:[68,144,24,25,142],ani:[],onto:103,author:[100,80,32,133,124,138],overnight:132,in_particular:133,callback:[],image_height:136,yyyymmddhhiiss:90,hash_equ:[28,32],media:108,stricton:[100,32],set_hash:32,cal_cell_start_oth:22,judg:71,checkbox:[96,53,149,32],rotat:[56,71,32],no_result:158,migration_vers:90,azerbaijan:95,file_s:136,bhutan:95,through:[0,31,22,32,143,66,36,58,24,115,94,110,96,102,139,132,148,112,113],reconnect:[],hierarchi:[83,142],fff:56,helo:32,password_hash:[28,32],cubrid_affected_row:32,style:[],strict_trans_t:32,date_rang:[95,32],end_char:[155,70],dbname:[100,154,32],resort:110,bypass:141,number_lang:160,argentina:95,might:[145,0,82,5,104,49,7,94,130,53,100,102,142,56,116,58,144,60,110,112,81,151,149,67,24,25,115,153,155,26,78,32,122,36,159,113,161,132],alter:[90,79,32,161,14,36,106,156,126,118,110,148],wouldn:32,ci_db_result:[157,58,91],"return":[],prev_tag_clos:65,elips:108,accept_charset:[99,32],ceo:135,sentenc:23,pollut:32,file_1:143,sess_use_databas:[36,32],ff0:[155,36],ssss:83,framework:[],firebird:[73,78,32],oci8:[73,32],cer:32,compound:[157,32],timezone_menu:[95,32],hmac:[],custom_result_object:58,bigger:153,"_helper":115,redesign:32,table_data:132,set_mod:4,cubrid:[36,73,32],troubleshoot:[],my_cach:69,userid:102,gmt_to_loc:95,refresh:[60,84,32],micro:153,achiev:[0,36,58,60,110],alreadi:[145,47,82,51,53,103,58,110,149,151,115,90,157,120,123,26,78,79,32,34,36,70],innodb:[11,79],sha384:82,is_fals:151,fulli:[10,32,133,57,130,21,60],intervent:[103,4],backtrac:32,errata:32,truncat:[155,157,32],week:[22,95],do_upload:[136,32],weight:[],needless:32,hard:[32,56,82,98,96,110],addressbook:139,prais:7,crontab:32,realli:[82,11,32,36,50,124,71,84,147,110,139,112,149],playstat:32,finish:[138,156,115],next_tag_open:65,connect:[],fist:32,todd:157,attachment_cid:[26,32],http:[],db_forg:32,beyond:[55,157],todo:[159,142],orient:30,some_valu:110,ftp:[],vladivostok:95,safeti:[110,32],miss:[],nepal:95,form_fieldset_clos:[96,32],publish:[102,80],thirdparamet:95,send_error:70,health:49,add_kei:[90,79,32],print:[155,26,157,32,114,84,159,108,44,52],dir_write_mod:[121,32],bui:138,subsubsect:83,occurr:[143,15],w3school:84,file_nam:[53,136,115,142,32],textil:83,asp:84,proxi:[102,32],mylibrari:36,advanc:[133,66,36,32],create_captcha:153,random_byt:32,samara:95,differ:[145,2,133,6,95,138,53,139,99,9,102,56,104,17,110,140,81,65,151,22,24,25,115,156,120,82,26,157,154,32,34,36,84,45,161,132],asc:157,quick:[],reason:[65,0,100,82,102,157,32,133,143,36,50,124,115,138,59,70,52,110,147,149],base:[],believ:110,sku_123abc:138,ask:[149,32],teach:66,phd:123,basi:[60,32],thrown:[69,32],"_blank":84,omit:[78,32,133,36,157,70,110,138,22,113],success:[],caption:[132,32],gmdate:103,get_config:[121,32],csr:32,threat:148,"_error_handl":[121,32],http_host:[33,36],undergo:32,file_writ:32,assign:[145,30,144,26,78,79,142,32,81,58,24,6,115,157,136,137,124,8,110,45,82],feed:[108,124,32],singleton:115,notifi:26,obviou:[52,149],row_arrai:[119,58,24],feel:[123,107,146],articl:[5,22,91,24,84,52,110,139],lastnam:[123,102],ci_db:115,mod_mim:136,placehold:104,footprint:[55,87],cell_end:132,done:[145,0,144,57,102,32,33,103,36,83,24,82,86,141,130,146,30,123,110,149,81],least:[32,12,82,110,53,112],directory_trigg:32,form_open_multipart:[96,136,32],mistakenli:32,init_unit_test:75,file_parti:32,image_width:136,guess:[133,32],php:[],script:[47,91,133,49,8,130,52,53,72,56,103,58,59,110,148,112,113,151,68,147,90,157,32,122,36,84,33,70],column_kei:28,interact:[52,82],gpg:32,yekaterinburg:95,construct:[65,66,32,138,137,8],tradition:11,header2:26,stori:110,underlin:83,order_bi:[157,32],statement:[],cfg:32,dbdriver:[100,154,81],is_arrai:[133,30,151],scheme:[90,144,32],store:[],schema:[70,100,90,24,32],free:[],adher:[133,87],anoym:130,option:[],ctype_digit:[147,32],blindli:32,compens:32,php_sapi:112,johndo:[96,53,110],count_all_result:[157,32],php_error:32,apppath:[],pars:[],logged_in:[110,84],myclass:[65,88,157,133,130,8],grace:32,fred:[143,156,132],king:79,kind:[155,80,32,143,36,49,110],cookie_secur:[110,113,32],aac:32,abr:22,remot:[156,102,32],orhav:[107,32],remov:[],migration_en:90,dtd:108,jqueri:[],twofish:82,str:[1,91,133,96,53,72,143,116,148,112,151,23,70,28,155,26,32,37,84,158,85,44],consumpt:[],stale:107,toward:[56,110],beij:95,builder:[],fixat:110,randomli:[147,153],cleaner:[139,32],comput:[52,157,102],mpeg3:32,deleg:144,strengthen:32,sssss:83,beforehand:32,greenwich:95,favicon:108,packag:[],is_support:[69,32],sport:53,expir:[32,103,50,153,94,60,110,113],mod_rewrit:5,reset_valid:[53,32],"null":[],format_numb:138,query_build:[10,36,100,115],blogview:142,sell:80,mountain:95,reset_data:157,"_prep_filenam":32,relationship:104,equival:[133,155,116,144],remote_addr:110,replyto:26,self:[121,136,32],violat:32,troublesom:32,nozero:143,undeclar:155,steal:110,useless:[85,86,36,98,32],elapsed_tim:[45,103,91],brace:[133,123,159,23],signup:53,vnd:32,file_typ:136,distribut:[100,80,32,115,110,46],exec:[112,32],victim:147,english:[145,155,3,32,40,44,53,99],reach:24,chart:[],font_siz:[153,32],most:[82,3,49,147,136,95,8,53,139,99,155,102,56,58,60,110,154,111,151,22,23,68,69,156,4,118,11,120,73,30,26,32,123,36,124,70,132],plai:71,protect_al:1,whether:[145,47,1,116,91,133,49,6,50,51,138,94,95,96,53,99,9,10,11,56,143,103,17,108,59,110,148,112,113,150,151,22,152,23,114,69,100,25,115,157,156,4,147,28,72,120,154,144,26,78,80,32,122,123,82,83,37,84,70,149,136],plan:149,myisam:11,escapeshellarg:32,selector:47,my_const:133,charg:80,xlarg:96,tonga:95,x11r6:56,clear:[26,32,56,82,50,115,93,36,110,120,87,132],cover:[9,102,7],ci_db_forg:[79,115],roughli:4,"2nd":32,ext:[],part:[145,9,1,26,102,32,56,66,118,104,157,122,133,4,30,28,110,149,120,155,132],clean:[],enctyp:136,latest:[90,149,144,32],awesom:144,s_c_ver:133,mcrypt_mode_cfb:4,carefulli:[82,161,50,4],alphanumer:32,phooei:155,top_level_onli:[122,107],row_object:58,appver:32,session:[],particularli:[144,11,32,23,104,37,115,139,148],worri:[82,49,95,149],exit_error:[121,49],font:[56,153,32],fine:[52,84],find:[145,0,48,49,6,136,139,99,11,104,59,110,81,150,67,68,102,30,32,123,82,50,159,70,149,161],impact:[107,82],access:[],ineffect:36,url_help:[30,24],unattend:110,ruin:32,mypassword:[53,154,81],solut:[82,123,36,134,28,110,87],is_referr:[99,32],aren:[53,34,32],"public":[0,82,133,8,136,137,52,53,9,100,102,142,116,58,144,108,110,81,24,25,118,90,157,32,36,57,149,46],couldn:32,cursor:32,templat:[],factor:[55,36,157,50],"_server":[32,33,36,17,110,113],next_row:[58,32],i_respond:102,charcter:82,unus:[110,32],albeit:150,ssl_verifi:100,amount_paid:157,express:[],ffield_nam:32,blank:[26,78,32,56,130,115,84,133,59,21,53,113],nativ:[],ci_log:32,mainten:32,directory_separ:[98,32],xss_clean:[],liabl:80,post_controller_constructor:[130,32],banner:32,restart:32,set_capt:[132,32],callback_foo:53,repair_t:78,delici:3,date_cooki:95,crt:32,set_dbprefix:[157,124,32],yakutsk:95,hiddenemail:96,rfc:[26,95,82,32],fiji:95,common:[],newest_first:138,userspac:32,empty_t:[157,32],delete_dir:[156,32],uri_to_assoc:[158,32],crl:32,arr:133,set:[],blog_templ:123,php_eol:[52,15,113],backtrack:32,cookie_prefix:[110,94,3,113],vinc:150,utf8_en:[121,32],seg:158,simpler:[130,32],see:[47,82,0,133,104,118,6,50,8,136,5,95,52,53,100,11,142,103,58,17,107,21,146,134,110,61,112,113,22,155,69,24,25,115,153,102,72,119,154,30,144,157,79,32,122,36,83,37,84,42,137,147],sec:83,arg:[143,132],content:[],close:[],horizont:56,flavor:[3,115],legend_text:96,simultan:154,mt_rand:143,expert:82,someth:[0,57,138,136,130,95,8,53,99,100,102,142,14,103,104,17,59,110,113,65,115,153,120,74,156,157,123,83,84,70,149],strtolow:[104,32],particip:139,struct:102,debat:32,imagejpeg:32,inner:[157,130,32],reus:[110,157,24],print_r:[133,78,156,22,102],migration_t:90,source_imag:56,ssl_cipher:100,experi:[71,110],nope:4,compliment:119,altern:[],stored_procedur:32,prefix_singl:91,korea:95,imagemagick:[56,71,32],relev:[100,37],numer:[10,90,22,32,122,143,36,104,157,138,160,95,147,28,53,113],all_userdata:[],this_string_is_entirely_too_long_and_might_break_my_design:155,javascript:[],output_paramet:102,isol:32,call_hook:32,some_par:31,cell_alt_end:132,"_create_t":32,raw_input_stream:[113,32],distinguish:133,slash_item:[36,6],date_lang:95,classnam:[47,42],popul:[],verbos:[133,17],water:102,last:[],delimit:[],is_write_typ:[91,32],hyperlink:84,is_natural_no_zero:53,event:[],pg_exec:124,foreign:[78,32],pdo:[],add_suffix:145,context:[110,82],forgotten:147,mb_enabl:[28,121,32],pdf:[26,83,32],author_id:85,prng:32,whole:[9,36,58,82,32],wm_y_transp:56,load:[],xspf:32,markdown:83,simpli:[145,0,82,47,134,49,6,138,136,137,124,8,53,139,140,11,142,56,143,144,106,110,113,65,151,157,115,156,118,102,120,74,30,26,78,32,123,36,50,84,42,70,130,45,149,132],cast5:82,point:[],tgz:32,schedul:[15,98,36],any_in_arrai:30,arbitrarili:53,header:[],fashion:[66,82],littl:[123,151,161,50,70],shutdown:32,tge:32,mistak:[36,32],db_connect:[91,32],file_exist:144,backend:[69,3,32],expressionengin:[56,135,36],ci_session_dummy_driv:110,hash_pbkdf2:[28,32],java:112,devic:[133,99,32],create_t:[90,79,32],empti:[],implicit:32,whom:80,secret:[147,82,4],wm_hor_align:56,your_lang:[160,95],cell_alt_start:132,devis:32,nonexist:32,invis:47,versa:56,clariti:[133,59,24,95,32],imag:[],array_replace_recurs:32,stdclass:58,sess_save_path:[110,14,36,32],gap:90,phpdocument:32,coordin:56,understand:[9,11,21,146,102,110],file_write_mod:[121,32],func:[53,32],demand:[36,11],other_db:[78,79],process_:0,convers:[32,17,115,23],include_bas:115,georgia:95,ignit:32,look:[],raw:[151,26,78,79,32,56,103,69,82,83,70,110,28,53],mostli:[78,98],localhost2:100,bill:143,histor:[143,36,82],cluster:[50,4],"_has_oper":32,"while":[82,133,104,49,138,53,10,102,12,58,17,146,110,113,100,90,154,155,26,157,32,122,36,83,56,159,46],unifi:32,smart:11,abov:[0,82,5,104,6,96,136,137,84,95,8,53,100,155,102,142,56,143,57,58,159,108,150,60,110,154,81,65,151,138,22,149,23,69,24,25,115,131,116,4,118,157,119,120,73,30,26,78,79,80,32,122,123,36,124,85,86,70,47,130,45,113,132],checksum:32,anonym:[53,32],loos:[30,55,151,68,133,108],loop:[],"_fetch_from_arrai":32,subsect:83,table_nam:[78,79,91,36,58,124,51,85,119],pound:155,uri_str:[86,158,84,32],nl2br_except_pr:[37,23],readi:[32,56,116,115,146,119],member_ag:157,"3g2":32,pakistan:95,gd2:56,jpg:[155,26,152,56,103,153,136,108,120],activ:[5,157,32,36,151,85,107,95,138,110,45,139],itself:[82,157,32,133,49,36,58,98,110,53,139,163,149],rid:107,saferplu:82,recompil:120,row_alt_start:132,form_checkbox:[96,32],"_sanitize_glob":32,grant:80,limit_charact:70,msexcel:32,belong:36,myconst:133,up95:95,port:[100,26,102,32,69,156,110],redisplai:53,decod:[32,82,37,107,4,147,148],safe_mod:32,octal:[56,122,156],date_rfc1036:95,cal_cell_end_oth:22,conflict:[90,6,32],bom:133,parse_templ:22,archiv:[36,120,24,32],imagin:144,optim:[],"3gp":32,heading_cell_end:132,ssl_kei:100,moment:45,strength:107,mousedown:47,user:[],"_exception_handl":[121,32],extrem:[71,107,139],repopul:[53,32],robust:[134,26],wherev:60,transitori:4,cilex:83,recreat:[156,120],subpackag:133,travers:[148,10,72],task:[52,30,139,87,110],unicod:[133,32],discourag:[12,133,36],eleg:31,somet:85,exit__auto_min:[121,49],parenthes:[157,32],honor:32,person:[9,26,80,32,148,115,136,120],tb_id:70,gambier:95,elev:120,traffic:[102,142],table_exist:[51,91],result_id:[2,50],anybodi:110,full_path:136,predetermin:53,add_package_path:115,ci_secur:[148,72,37,32],or_lik:[157,32],repeat_password:96,rule:[],obscur:[56,82],vietnames:32,shape:[150,108,102],unix_to_tim:95,mysql:[],love:[139,108],question:[32,143,14,67,50,124,7,108,146,149],sidebar:142,failsaf:113,cut:[58,32],also:[122,0,82,47,133,104,49,127,98,91,52,94,96,5,84,95,77,8,53,99,159,100,101,11,142,143,57,58,17,145,156,149,148,59,21,144,110,18,19,20,113,65,138,128,157,68,86,69,70,24,115,131,116,31,147,28,102,120,74,75,76,26,78,79,32,33,103,36,83,50,124,158,40,41,42,112,43,129,130,90,46,136,132],restructuredtext:83,theoret:82,m4u:32,mydatabas:[154,81],num_link:[65,32],label_text:96,new_fil:156,xml_rpc_respons:102,unlik:[30,102,133,69,36,49,84,138,113],subsequ:[32,141,47,91,115,60],app:[71,45],myothermethod:130,build:[0,100,57,102,5,56,83,36,49,50,84,68,146,104,157,103,140,148,139,87,122],bin:56,australia:95,varchar:[90,79,153,14,24,106,126,70,110],get_request_head:[113,36,32],profiler_no_memori:32,format:[],"ros\u00e9n":32,codeigniter_profil:32,use_sect:[115,6],get_post:[],intuit:71,corner_styl:47,field_exist:[51,91],nginx:17,game:150,backtick:[124,32],insert:[],is_resourc:[151,32],bit:[32,82,91,36,83,4,110,139,149],characterist:82,array_pop:30,intel:99,table2:[157,78],table3:157,table1:[157,78],examin:[138,141,102,157],do_hash:[],heading_cell_start:132,post_system:130,userfil:136,alpha_numer:53,resolv:[114,149,32],enable_hook:[130,21],collect:[30,24,50],api:[47,102,32,82,17,148],mycustomclass:96,highlight_str:155,password_verifi:28,popular:[110,69,82,11],smtp_crypto:26,word_limit:[155,32],xmlrpc_client:102,encount:[32,36,49,115,159,148,113],often:[100,2,23,133,82,17,7,36,144,110],mcrypt_rijndael_256:4,simplifi:[],fcpath:121,creation:[56,32],some:[145,47,2,0,133,134,49,82,7,51,96,151,5,95,8,53,98,99,9,100,102,142,56,91,104,17,107,59,146,110,130,148,112,113,65,66,152,155,69,24,25,115,116,90,118,28,157,154,121,30,144,26,78,32,122,123,36,83,50,84,137,45,147],back:[65,82,11,32,33,69,36,104,24,25,50,91,90,78,102,28,53,139,148],global:[145,30,55,3,154,32,48,36,49,50,6,115,147,100,130,110,8,53,113,112,81],if_not_exist:79,sampl:[],quotes_to_ent:[143,32],get_zip:120,error_gener:[74,49],redi:[],phpredi:[110,69],scale:87,chocol:115,culprit:32,sku_965qr:138,exect:32,preg_quot:32,per:[],blog_titl:[123,90,79],pem:[100,32],substitut:123,larg:[0,26,78,32,133,36,58,158,71,96,8,102,87,132],slash:[144,32,133,143,36,104,98,6,158,156,130,147],unsanit:124,reproduc:149,newdata:110,machin:90,id_:104,load_class:[121,32],run:[],field_id:116,diamet:150,raspberri:32,sting:99,agreement:[54,139],cal_cell_content_todai:22,step:[],form_dropdown:[96,32],news_item:24,db_driver:32,prep_for_form:[],concoct:4,major:[56,157,83],victoria:95,mssql:[],cautious:4,reduce_linebreak:[37,23],sess_encrypt_cooki:[36,115,32],constraint:[147,90,79,32],reappear:47,extract_url:70,prove:[133,134],highlight_cod:[155,32],manag:[],rowcount:32,idl:[91,154,32],microsecond:[91,32],add_row:132,product_opt:138,mcrypt:[82,32,36,107,4,61],update_entri:[102,81],uncach:157,cookie_path:[110,3],reduct:32,real:[26,102,142,32,83,135,45],upload_data:136,primarili:66,visit:[0,116,102,142,36,144,7,157,136,4,52,53,99],valid_email:[134,53,36,32],within:[],pdostat:32,upgrad:[],product_edit:104,ci_migr:[90,32],jimmi:143,todai:22,last_act:[106,36,110,32],contributor:135,announc:135,total_queri:91,pcre:32,websit:[33,110,36,32],inclus:32,institut:[135,80],bangladesh:95,next_prev_url:[22,32],spam:[84,70],fledg:7,proprietari:32,sock:69,stylesheet:[155,108,84,6],errand:142,custom:[],includ:[5,2,47,133,48,91,138,136,95,8,53,139,9,10,102,142,57,144,156,107,146,110,148,112,81,149,155,24,25,115,36,147,157,120,30,26,78,79,80,32,122,123,82,83,84,158,86,113,161,162,163],flashdata:[],forward:[90,32,36,58,98,6,158,96,148],update_post:102,cur_tag_open:65,files:122,zealand:95,properli:[0,82,157,32,123,36,83,24,124,147,110,163],repeatedli:82,twenti:65,current_url:[84,32],add_insert:78,perman:[133,110,107,4],link:[],translat:[],newer:[28,133,73,149,32],atom:[69,95,32],azor:95,ci_form_valid:53,ci_:[8,30,107,118,32],angri:108,info:[],bevel:47,utf:[26,32,133,103,115,108,43,70,96,97,99],consist:[74,9,155,32,151,145,107,110],cid:26,myfield:96,seven:[102,22,132],mod_mime_fix:[136,32],cal_cell_cont:22,highlight:[155,22,32,133,36,83,132],similar:[],curv:146,insert_str:[85,153,70,91],enlarg:126,constant:[],rowid:138,bind:[],flow:[],parser:[],mouseup:47,doesn:[55,57,157,32,134,36,58,144,82,28,159,96,112,147,8,110,45,120,67],dog:[47,45,44],convert_text:133,incomplet:[70,32],oof:133,guarante:[110,148,46],apache_request_head:113,rewritecond:5,gecko:99,bracket:[],another_mark_end:45,select_min:[157,32],buffer:[133,26,59,32],anyth:[],crypt:28,sequenti:[90,32],session_dummy_driv:110,invalid:[22,102,32,56,133,95,110,53,148],date_rfc822:[36,95],id_123:104,smtp_pass:26,phrase:155,setenv:17,librari:[],trans_begin:[11,32],ellipsi:[155,23],xss_filter:36,nice:[53,25,155],is_mobil:[99,32],ctr:82,draw:153,rijndael:82,drop_column:[79,32],"_update_batch":32,wrongli:32,eval:[159,112,32],curtail:70,cal_cell_no_cont:22,smilei:[],um35:95,index_pag:[108,84,67,32],algorithm:[],vice:56,svg:108,ci_input:[72,32,36,94,118,113],callback_username_check:53,sftp:156,parse_smilei:116,depth:[132,10,82,32],xmlrpc_server:102,get_userdata:[145,110],far:[53,102,110,91],fresh:[157,36,105,106,107,97],script_head:47,http_x_cluster_client_ip:[113,32],scroll:47,set_output:103,oop:[8,145,32],fopen_read_write_create_destruct:121,basic11:108,partial:[132,91,124,32],edg:[56,135,32],scratch:[139,87],mysql_to_unix:95,improperli:32,rewriteengin:5,ip_address:[32,36,153,126,70,110,113],ellips:[155,108,32],last_upd:103,urandom:[28,36,148,82,32],bad_filenam:32,compact:133,ci_session_driv:110,privat:[],current_us:50,get_mime_by_extens:[122,32],elsewher:[138,110],friendli:[],rset:32,code_start:45,lower:[100,32,143,82,104,84,136,8,112,113],notat:[56,122,32],blaze:110,opposit:[47,95],aris:80,exit_success:121,fatal:[133,69,104,32],"_file":32,sent:[0,91,134,49,130,53,141,102,103,59,60,110,149,150,152,115,26,79,32,123,70,45],passiv:156,unzip:57,convert_ascii:70,whichev:157,"_plugin":32,disclos:149,vlc:32,end:[36,133,6,130,95,53,100,143,103,58,59,110,148,151,4,120,155,156,157,32,82,50,159,70,45],plain_text:82,unset_userdata:[110,36,32],ofb8:82,orig_path_info:32,spoof:32,syntax:[],smtp_keepal:[26,32],runnabl:12,tri:[32,67,33,36,6,21,148],db_debug:[100,81,154,32],byte_format:[160,32],magic:[110,32],succeed:91,http_client_ip:[113,32],complic:110,non_existent_directori:114,ci_config:[36,84,6,32],my_model:[131,32],lombardi:150,where_not_in:[157,32],"try":[],rfc5321:32,noninfring:80,mysubmit:96,pleas:[0,3,117,6,8,72,12,13,14,15,16,18,19,20,131,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,45,46,47,98,53,56,57,59,21,61,62,63,64,69,74,75,76,77,81,82,84,86,116,95,96,101,103,105,106,107,97,110,111,113,115,4,118,119,50,122,125,126,127,128,129,138,139,143,147,149,154,155,157,159,161,162,163],malici:[147,148],impli:80,constrain_by_prefix:[91,32],use_t:32,protect:[],myuser:57,yourself:[145,0,91,133,124,138,47,110,149],cfb:82,encourag:[15,146,32,36,104,98,6,71,84,21,4,70,8,147,161,106,82],crop:[56,71,32],date_atom:[36,95],cron:[52,157],video:32,ci_db_driv:[91,32],download:[],odd:158,click:[30,47,133,116,84,96],append:[65,100,26,142,32,143,103,84,136,6,96],compat:[],index:[],phpdoc:149,sapi:113,compar:[],bdb:11,page2:157,slight:36,"_set_overrid":32,cal_cel_oth:22,xor_encod:32,experiment:[47,36],helper3:30,helper2:30,helper1:30,text_watermark:32,this_string_is_:155,avg:[157,32],bird:45,can:[0,2,5,6,7,8,10,11,12,15,17,22,23,24,25,31,30,26,32,33,36,98,42,45,149,47,48,49,37,51,52,53,56,57,58,59,60,65,66,68,69,74,78,79,81,82,83,84,85,86,145,116,91,94,95,96,99,100,102,103,104,106,108,110,111,112,113,115,4,118,119,120,122,123,124,70,130,90,132,133,136,137,138,139,140,141,142,143,144,147,148,50,150,151,152,153,154,155,156,157,158,159],ci_sessions_timestamp:110,sybas:[36,32],imagepng:32,chose:[110,82,4],is_cli_request:[],db_select:[91,154,32],len:143,sqlsrv_cursor_stat:32,bodi:[26,157,142,32,123,116,58,144,136,134,53],hkk:32,logout:110,blog_name_blog_label:79,euro:95,safer:[85,157,124],vertic:56,encryption_kei:[],acquir:[122,110,135],crypt_blowfish:28,great:[139,108,149,32],select_avg:[157,32],pretti:[36,98,113],metro:158,larger:[56,107,49,32],technolog:[135,80],alaska:95,mb_substr:28,migration_typ:[90,32],cert:32,ci_pars:123,another_field:[36,79],defeat:108,"_fetch_uri_str":32,typic:[65,0,10,102,4,142,30,56,104,81,58,50,124,115,68,95,147,138,110,99],set_ciph:4,wm_hor_offset:56,chanc:[150,110,36],subsubsubsect:83,field1:[157,113],firefox:32,danger:[112,32],foreign_key_check:[78,32],appli:[32,149,91,56,36,104,133,94,110,53,132,147,113],approxim:4,base_url:[],bad_dat:95,standpoint:55,"boolean":[36,91,133,82,51,138,136,124,95,96,53,99,10,102,142,56,104,108,21,110,148,112,113,65,151,22,152,23,100,115,156,120,154,74,26,78,81,122,123,32,84,42,70],blog:[0,90,157,142,81,123,116,104,50,84,115,156,70,30],oval:108,apc:[],file_ext:136,day_typ:22,blog_set:6,heading_next_cel:22,tailor:[56,65,26,82],cache_expir:0,zip:[],commun:[],ci_control:[121,0,144,90,102,142,81,116,24,107,137,52,53,136],doubl:[1,78,157,32,133,143,23,104,37,96,102],seamless:4,my_arch:120,next:[],implic:[33,36,118],eleven:[155,132],usr:[56,26],clear_data:120,show_debug_backtrac:121,expiri:[110,149],rick:[135,85,124],sort:[138,110,102,158],batch_siz:[157,32],uri_seg:[65,32],form_valid:[],wincach:[],error_lang:145,mismatch:32,about:[],balanc:157,wm_text:56,prefetch:[58,32],trail:[156,32,143,36,104,6,158,130],from:[],listen:[110,102],actual:[65,47,144,82,152,32,104,36,49,123,145,134,153,114,28,110,112,73],mozilla:99,harvest:[22,84,32],focu:[47,139,83,87,66],bcc_batch_siz:26,"static":[],account:[0,113,95,87,32],retriev:[],hash_funct:14,alia:[103,72,157,32,143,36,58,37,84,115,91,116,94,95,110,96,22,149,112,113],crazi:157,cumbersom:11,annoi:108,smart_escape_str:32,obvious:2,collat:[100,79,32],meet:[133,53,55,82,149],valid_base64:[53,32],save_handl:110,aliv:[],control:[],distrubut:110,sqlite:[],weaker:82,tap:[130,32],pre_control:130,chosen:[57,11,82,69,36,106,110],process:[],lock:[122,110,36,32],onclick:96,tax:50,high:[155,55,32,82,147,4,70,110],tag:[],entry_id:70,tab:[78,32,133,83,84,148],epallerol:32,sought:157,onlin:11,serial:[50,32],new_data:4,everywher:110,surfac:32,friendlier:[94,32],filepath:[130,156,120,115],soon:[36,161],tamper:32,six:132,database_exist:[78,32],xml_convert:1,build_str:133,crlf:[26,32],copyright:[56,80],subdirectori:[31,115,32],instead:[],reestablish:[91,32],zip_fil:120,csrf_exclude_uri:[148,32],phpdomain:83,docblock:[133,32],loui:150,likewis:56,prolif:133,overridden:[0,4,32],hmac_digest:82,interchang:[82,115],fran:32,table_clos:[22,132],reset_queri:[157,32],sundai:[22,95],pasteur:150,my_cached_item:69,server_addr:32,attent:[71,32],discard:[115,32],redund:32,dbutil:[78,115],exit_config:121,trim_slash:[],chown:110,some_var:49,ssl_cert:100,"20121031100537_add_blog":90,is_str:151,seriou:[147,107],m4a:32,robot:[99,108,32],suppress_debug:156,issu:[],webroot:147,days_in_month:[22,95,32],wordwrap:[26,32],allow:[122,0,82,133,104,6,96,136,95,8,53,139,55,11,85,12,143,116,58,159,21,110,148,113,65,151,138,22,157,69,100,115,90,118,102,74,77,78,32,33,123,36,50,84,158,56,42,160,70,147,132],append_output:[103,32],fallback:[133,36,149,32],per_pag:65,furnish:80,json_encod:103,y_axi:56,include_path:[122,32],screensend:91,cryptographi:82,move:[],optgroup:[96,32],product_id:158,notabl:[36,58,32],comma:[26,78,32,110,70,53,149],gender:158,is_dir:156,georg:150,bunch:36,get_csrf_token_nam:[105,148],address_info:96,cubird:79,outer:157,treat:[5,11,91,32,108,120],reilli:143,pecl:110,fopen_read_write_create_strict:121,adjust_d:22,maxlifetim:110,fetch_:36,form_password:96,button:[96,53,32],apache2:114,js_library_driv:47,therefor:[89,32,33,36,50,98,110,138,53],consequit:23,pixel:[56,136],img_height:153,double_encod:32,docx:32,free_result:[58,50,32],python:83,auto:[],remove_package_path:115,foreign_char:[155,107],compress:[120,78,100,59,32],dai:[132,32,22,95,7],auth:[104,32],p10:32,mention:[110,82,32],p12:32,password_bcrypt:28,overkil:[8,30,118],tbody_clos:132,front:[122,141,32],mylist:108,csrf_protect:[148,32],escape_identifi:[91,32],strive:55,models_info:122,another_nam:110,octal_permiss:[122,32],"_remove_evil_attribut":32,clean_file_nam:32,edit:[],unlimit:79,wm_x_transp:56,tran:108,json_unescaped_unicod:103,ping_url:70,scrollbar:84,image_librari:56,mystyl:108,"10px":96,shirt:[96,138,104],mycheck:96,stock:[106,42],register_glob:[],pygment:83,few:[82,22,32,33,36,104,25,7,133,21,70,28,110,139,149,112,113],comment_textarea_alia:116,themselv:[71,133,31],better_d:95,due:[47,82,78,32,12,36,157,151,107,110],intellig:[142,32,84,71,6,154],"_lang":145,einstein:150,product:[74,0,100,57,32,36,104,17,6,158,90,5,147,138,110,82],consum:[45,86,32],sha224:82,meta:[51,108,58,32],usernam:[145,100,26,102,81,58,157,159,156,110,96,53,154],cpanel:32,connor:143,our:[55,82,157,115,12,144,36,24,25,7,147,70,146,110,52,53,139,149],meth:[26,83],full_tag_clos:65,"_after":79,special:[31,102,79,91,32,124,147,70,110,96,53,113],out:[121,150,26,102,80,32,56,57,50,25,7,91,133,159,90,147,96,110,149,112,82],variabl:[],set_flashdata:110,reload:53,influenc:82,parse_str:[123,32],singular:[55,44,32],some_librari:133,identifi:[],categori:[133,30],thoma:150,clockwis:56,rel:[],inaccess:52,inspir:135,rec:108,plural:[44,32],char_set:[100,131,79,154,32],math:108,random_el:[150,30],default_templ:22,ecb:82,insid:[145,31,3,32,12,123,130,36,83,157,25,137,118,110,120,140],watermark:[],frank:157,kilobyt:136,sess_cookie_nam:110,readm:[110,83],greater_than:[53,32],get_wher:[157,24,32],message_kei:145,invas:32,csrf_regener:[148,32],group_id:133,chatham:95,bleed:135,greedi:[133,32],prefix_tablenam:124,marginleft:47,get_day_nam:22,db_conn:115,nowher:114,indent:[],should_do_someth:83,tripled:82,migration_add_blog:90,could:[47,2,133,49,82,52,53,139,140,102,144,59,110,112,149,24,90,79,32,103,36,84,87],lexer:83,put:[0,82,58,98,52,136,96,53,140,11,142,56,116,104,60,110,113,65,151,67,24,153,147,102,26,157,32,36,50,124,70,45,132],email_lang:145,timer:[0,45,103,124],keep:[],transliter:155,profiler_no_memory_usag:32,length:[],enforc:32,wrote:[24,149],outsid:[47,5,82,155,32],retain:[110,4,32],do_xss_clean:[107,32],timezon:[],south:95,softwar:[151,80,68,82,49,146],cache_info:69,delete_cooki:[94,32],blown:[123,151],blogger:102,ci_ftp:156,qualiti:[56,71,149],echo:[],whoop:144,date:[],proxy_ip:[113,32],submit:[145,108,96,94,95,138,53,9,8,56,143,58,97,21,147,149,22,141,25,153,157,120,154,78,32,50,124,85,136,132],pgp:32,lib:32,owner:[110,147],child_on:31,shortcut:108,facil:149,unmark_flash:110,utc:95,prioriti:[26,32,82,49,115,110],forgeri:[],"long":[30,26,22,79,32,133,82,153,28,110,140,113],fair:11,timestamp:[90,22,32,36,153,95,110],newus:110,unknown:[159,36],licens:[],perfectli:0,mkdir:[110,156],system:[],messag:[],avoid:[145,26,32,133,14,36,6,158,136,110,96,53,69,113],attach:[71,151,26,32],attack:[32,82,25,136,147,110,148,113],error_views_path:32,physic:26,termin:[52,70,112,84,32],erron:32,"final":[],ssl_capath:100,ipv4:[53,113],request_head:[113,32],shell:32,lot:[23,58,37,25,118,110,148],big:32,methodolog:130,fetch_method:[],col_arrai:116,hash_algo:72,shall:80,accompani:36,essenti:149,ogg:32,exactli:[157,79,32,56,104,58,123,4,110,8,53,113],haven:[53,82,115,25,110],kamchatka:95,rss:[68,108,95],prune:52,jsref:84,structur:[],charact:[1,36,91,133,124,95,96,53,99,100,56,143,103,104,108,21,110,148,112,113,23,25,4,147,28,155,26,78,79,32,122,82,83,37,84,126,43,70],claim:80,your_str:65,htaccess:[5,32,122,57,17,147,139],session_data:[110,86],sens:[68,30,36,32],becom:[65,5,55,26,22,30,56,82,115,84,133,144,148,132],sensit:[110,89,78,147,32],foobarbaz:69,signifi:153,stricter:148,pgsql:[100,32],accept_lang:[99,32],send_error_messag:102,"function":[],counter:56,codeignitor:32,"_request":147,terribl:[53,95],falsi:96,explicit:[133,32],basepath:[74,121,90,22,32,115,8],auto_incr:[90,79,32,24,153,70],deprec:[],clearli:133,correspond:[145,3,133,48,6,136,53,102,142,56,143,116,104,110,111,22,24,25,117,123,50,158,86],sufix:65,corrupt:32,have:[0,3,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,90,28,31,32,33,34,35,36,98,38,39,40,41,42,43,149,47,49,37,51,53,55,56,58,26,59,60,61,62,63,64,65,70,74,75,76,77,78,79,81,82,83,84,86,116,91,94,95,96,97,100,101,102,103,104,105,106,107,108,110,113,115,4,118,123,124,125,126,127,128,129,130,131,133,136,137,138,140,142,144,146,147,50,150,151,153,154,156,157,158,161,162,163],reserv:[],need:[145,47,2,3,0,133,48,6,7,52,94,96,5,84,95,8,53,139,136,99,141,55,155,11,142,56,91,104,144,105,106,107,97,60,110,130,140,19,81,65,151,138,149,152,67,68,69,100,24,25,115,116,90,157,4,118,102,120,82,30,153,26,78,154,32,33,103,36,83,50,124,158,86,70,126,123,137,45,113,147,87,132],member_nam:91,superobject:[130,32],border:[151,22,32,153,138,132],tb_date:70,migration_auto_latest:90,admin:[36,78],smallest:55,in_arrai:[33,30,36],rout:[],fileproperti:133,accuraci:32,mix:[145,150,91,104,49,6,94,95,96,53,102,143,103,58,108,110,148,112,113,65,151,152,69,24,115,90,28,120,155,26,157,83,136,84,158,160,132],discret:[30,31,32,94,53,132,113],cheatsheet:32,hkdf:82,which:[0,2,3,47,133,104,82,7,96,151,5,84,95,77,8,53,98,139,140,55,11,142,85,12,143,57,58,17,106,60,161,110,148,112,21,65,66,138,22,149,152,155,69,70,100,115,153,26,4,102,28,72,120,154,30,113,31,157,32,33,103,36,50,124,158,144,56,86,43,123,90,147,132],anchor_popup:[84,32],mit:[],singl:[],uppercas:[0,32,133,143,4,113],matching_nam:32,designfellow:32,unless:[36,133,94,138,9,142,56,103,58,21,110,150,151,23,115,4,28,120,157,79,32,82,37,136],ci_cor:32,oracl:[100,73,157,32],galleri:56,textmat:[],row_alt_end:132,header1:26,cipher:[],cache_query_str:32,max_filenam:[136,32],deploi:[90,32],segment:[],"class":[],page_query_str:65,newprefix:124,placement:32,inconveni:[116,36],won:[26,157,82,103,36,58,50,84,86,137,104,110],child_two:31,gather:[51,99],upset:108,set_error_delimit:[53,32],character_limit:[155,32],face:23,inde:[133,32],pure:[33,123,36,58,159,8,45],my_log:36,determin:[],built:[96,136,144,84,113],constrain:32,stark:139,plaintext_str:4,fact:[110,36,142,4,82],my_bio:120,ci_user_ag:99,cal_cell_start:22,extension_load:4,send_respons:102,ci_sess:[],model_nam:[115,81],watch:[49,24],bring:[135,107],post_model:150,new_imag:[56,32],format_charact:[32,23],trivial:[110,149],anywai:[14,36,98,82,32],texb:[56,153],redirect:[5,26,102,32,104,84,137,8],dbcollat:[100,131,79,154,32],textual:22,locat:[145,0,116,47,49,6,130,95,8,53,99,100,56,57,144,110,140,111,81,69,115,74,30,32,36,84,158,70],strip_image_tag:[53,72,32],blog_entri:123,holder:80,illus:150,calendar_lang:3,figur:91,sendmail:[71,26,32],should:[0,3,5,6,7,8,12,13,14,15,16,18,19,20,21,22,23,24,26,28,90,32,33,34,35,36,98,38,39,40,41,42,43,47,48,49,50,52,53,56,57,58,59,60,61,62,63,64,73,74,75,76,77,78,79,82,83,84,145,116,95,96,97,100,102,104,105,106,107,108,110,113,115,4,122,124,125,126,127,128,129,131,132,133,136,130,138,141,142,144,147,149,151,154,155,161,162,163],jan:[22,32],lightest:55,enclosur:78,suppor:32,intrigu:108,wget:52,sess_expire_on_clos:[110,36,32],local:[],hope:7,mb_mime_encodehead:32,meant:[145,110],um10:95,strip_slash:143,invalid_files:32,gettyp:32,server_url:102,stabl:[46,149],convert:[],error_404:[74,104,49,163,32],wordi:133,first:[],made:[47,55,144,157,142,32,34,36,24,25,98,105,106,97,59,46,149],csrf:[],old_encrypted_str:4,db1:154,target_vers:90,in_list:[53,32],form_multiselect:[96,32],cur_tag_clos:65,endless:32,application_config:133,getuserinfo:102,dishearten:108,enabl:[],organ:[],nl2br:[37,23],upper:[56,113],or_wher:[157,32],bounc:47,htmlspecialchar:[53,132,112,32],sha:82,csrf_token_nam:[105,148],image_url:116,integr:[52,155,82],contain:[],menuitem:123,grab:144,view:[],conform:147,legaci:[0,36,110,4,32],input_format:15,cal_cell_blank:22,parse_exec_var:[103,32],frame:108,knowledg:[9,110],exit_unknown_class:121,group_nam:154,qty:[138,32],popup:84,rc2:82,equip:44,file_path:136,form_input:[96,138,32],my_uri:32,sphinxcontrib:83,entitl:6,thead_open:132,unexist:32,statu:[47,103,78,32,163,36,49,157,124,91,85,84,110,112],error:[],segment_arrai:158,adodb:11,correctli:[155,144,32,134,23,82,49,85,120,149],record:[9,157,32,36,24,25,107,110,148],namepro:32,mark_as_flash:110,boundari:32,sess_match_ip:[110,32],last_visit:32,newnam:[26,32],state:[47,55,26,157,0,32,151,60,95,96,110],stacktrac:149,ci_trackback:70,benchmark:[],progress:47,multiplelanguag:145,equiv:108,thumbnail:56,get_compiled_insert:[157,32],perfect:[56,25],core_class:42,sole:113,bed:150,kei:[],vrt:56,weak:147,matic:102,simple_queri:[91,124,32],salli:159,fopen_write_create_destruct:121,job:[52,144],entir:[65,30,156,78,32,133,123,66,57,58,50,17,118,110,8,53,45,69],unmark_temp:110,joe:[156,157,143,104,158,159,96],has_rul:53,less:[155,1,32,133,49,55,84,53],exclam:[124,91],parenthesi:[133,157,32],thumb:56,b99ccdf16028f015540f341130b6d8ec:138,proxy_port:102,date_rfc850:95,quote_identifi:32,rtype:83,wrapchar:26,mediumint:32,mpg:32,lowercas:[32,81,133,36,84,25,4,113],foobaz:133,etc:[47,2,91,133,51,8,137,52,53,99,10,11,142,103,110,148,149,22,155,114,70,100,71,147,102,154,30,26,157,79,32,82,83,50,85,44],cachedir:[42,154,100,32],grain:84,last_queri:[85,86,91,32],tld:[33,36],db_set_charset:[91,32],uncaught:32,set_radio:[96,53,32],messagebodi:53,onchang:96,comment:[],shirts_on_sal:96,unmark:110,sqlsrv_cursor_client_buff:32,ci_db_pdo_driv:32,img_id:[153,32],hyphen:32,heavi:[110,50,154],rfc2616:32,chmod:[110,156,32],walk:58,image_reproport:32,batch:[26,157,32],rpc:[],"0script":112,respect:[100,78,32,143,36,104,96,107,28,53],tuesdai:22,ac3:32,sess_regener:110,input_stream:[113,36,32],mailto:84,quit:[30,102,32,133,83,151,108,60,70,139],foofoo:133,tort:80,addition:[79,32,133,48,36,115,6,108,110,111,113],endforeach:[142,136,24,159,138,139],timespan:[95,32],form_prep:[],blog_head:123,compon:[55,22,32,138,110,149],json:103,iran:95,ruleset:32,date_w3c:95,immedi:[130,60,32],xlsx:32,example_field:124,curli:[32,23],both:[82,93,137,138,53,102,56,57,110,112,149,116,4,157,120,78,79,32,33,36,83,84,158,113],censor:155,slash_seg:158,deliber:4,foobar:[133,150,81],togeth:[65,157,142,144,124,153,53],raw_data:82,user_guid:42,fail_gracefulli:[115,6],mouseov:47,present:[],opac:56,multipart:[96,136,32],replic:110,multi:[100,142,32,123,108,130,138,110,132],cypher:4,"14t16":95,plain:[32,36,72,82,123,103,116,4,28,147],align:[56,138],some_photo:120,harder:150,return_path:[26,32],harden:[112,32],defin:[],filename_secur:32,suport:[],encrypted_str:4,hex2bin:[28,82,32],decept:108,wild:32,get_compiled_delet:[157,32],sess_time_to_upd:[110,131],april:32,mydogspot:44,snack:130,layer:[28,73,24,32],purchas:138,customiz:[65,100],cell:[],reuse_query_str:[65,32],almost:[110,10,82,158],field_data:[51,91,58,50,32],mtime:32,site:[],langfil:145,some_class:[83,118],ruri_str:[158,32],svg11:108,bigint:[110,153,32],substanti:[118,80,32],lightweight:145,shuffl:30,incom:[102,70],unneed:32,symbolic_permiss:[122,32],test_datatyp:151,greater:[1,77,133,95,53,112],uniti:32,human_to_unix:[95,32],let:[],welcom:[],insight:7,ciper:82,parti:[83,24],cross:[],ci_tabl:132,member:[157,91,50,135,53,113],code_end:45,data_seek:[58,32],whenev:[133,36,49,50,32],pingomat:102,android:32,fubar:115,difficult:56,tighten:32,overal:32,columbia:[135,80],hostnam:[32,100,156,81,33,36,91,154],alpha:[32,143,147,138,53,113],keepal:32,logic:[],upon:[9,32,56,91,7,53,139,113],effect:[],coffe:138,camino:99,column_nam:79,retriv:[],raboof:133,having_or:32,sooner:[106,15,98,36],set_:96,alpha_dash:53,expand:[32,25,7],andretti:150,ofb:82,orig_nam:136,set_empti:132,off:[65,0,156,11,9,32,50,85,136,96,147,149],center:[56,144],e_pars:32,epub:83,unl:[],colour:32,well:[145,47,133,95,52,53,139,99,10,102,104,108,110,112,65,151,73,26,157,32,122,36,159,87],captcha_tim:153,object:[],set_cooki:[94,113,32],weblog:[102,70],exampl:[],command:[],filesystem:90,undefin:[151,32],audio:32,loss:110,sibl:31,usual:[5,82,102,47,56,36,115,84,155,94,156,110,53,139,120,136,113],pdo_mysql:32,taller:56,distanc:56,newest:[138,90],camel:44,drop_databas:[79,32],func_overload:32,half:110,obtain:[145,80],tcp:[110,69],detail:[47,82,102,32,56,69,36,49,17,6,115,71,133,94,21,147,8,110,119,107,139],settabl:32,ci_xmlrpc:[102,32],some_cookie2:113,paul:32,glue:144,new_post:102,sku:138,web:[],"50off":138,filter_validate_email:134,fopen:[122,32],field:[],disagre:149,get_dir_file_info:[],arandom:28,smith:[52,102],my_backup:120,myprefix_:113,add:[],wm_vrt_align:56,error_email_miss:145,camin:32,display_pag:65,logger:32,suit:[56,151],warrant:107,old_table_nam:79,gmt:[103,95],exot:113,set_mim:152,vulner:[36,149,32],xmlrpc:[133,102,32],agnost:91,vanuatu:95,piec:[102,69,82,24,4,70,110],foreign_charact:32,camelcas:133,five:[138,143,132],know:[0,82,78,79,36,104,144,25,51,147,149,4,118,52,110,113,71,73],fscommand:32,convert_xml:70,somewher:120,set_select:[96,53,32],height:[150,47,32,56,84,153,136,108],recurs:[10,156,120,107,32],get_item:[138,32],desc:157,func_overrid:[],xss:[],resid:3,like:[0,1,2,3,153,47,133,104,6,51,52,136,96,5,84,95,8,53,139,99,159,100,155,11,142,113,56,14,57,58,17,156,91,107,150,21,110,140,148,112,81,65,151,138,22,23,68,130,70,115,25,161,116,77,4,118,28,102,120,82,74,30,144,26,157,154,32,103,36,83,50,124,158,85,42,123,137,45,90,147,87,132],lost:[110,32],safe_mailto:84,um11:95,up105:95,sessionhandlerinterfac:110,num_tag_clos:65,session_regenerate_id:[110,32],unord:[108,32],necessari:[],active_r:[74,131,32],messi:53,lose:[133,150,82],resiz:[56,47,71,84,32],architectur:[],get_temp_kei:110,xsl:32,path_info:3,cdr:32,exceed:[26,154,91],revers:32,total_rseg:158,"_html_entity_decode_callback":32,migration_path:[90,32],optimize_t:[78,32],linux:[52,110,99],update_batch:[157,32],daylight:95,"export":[],superclass:133,yyyymmdd:32,proper:[32,82,157,91,133,36,49,98,136,53,148],home:[144,99],fileinfo:32,use_strict:151,form_item:53,transport:102,auto_typographi:[32,37,23],week_row_start:22,trust:[100,32],lead:[133,143,158,104,32],broad:[87,29],"_get":[113,36,147,32],lean:[123,139],februari:32,leap:95,log_error:[145,42,49,32],default_method:0,speak:79,myfunct:130,um12:95,congratul:[110,25],liabil:80,acronym:32,journal:104,"enum":32,usag:[],values_pars:32,facilit:32,interbas:[85,73,78,32],disregard:77,host:[100,91,69,32,108,110,87,154],unsuccess:11,nutshel:[52,0],cal_cell_oth:22,although:[65,30,82,32,36,124,60,53,139,87],offset:[65,157,32,56,69,58,158,95,28],product_name_rul:138,parserequest:32,slug:[143,24,25],stage:130,rsegment_arrai:158,sbin:26,error_report:49,rare:[110,107,82,124],interven:103,last_citi:133,column:[],has_userdata:[110,32],sqlsrv:[100,36,73,32],error_username_miss:145,entity_decod:[148,37,32],desired_output_format:15,form_validation_rul:36,member_id:[96,102,50,91],constructor:[],cal_row_end:22,repercuss:21,powerpoint:32,is_tru:151,creating_librari:42,set_data:[53,32],own:[],delete_al:32,payment:157,inlin:[26,116,108,32],"_ci_autoload":32,easy_instal:83,automat:[],first_tag_open:65,warranti:80,guard:[82,4,70],wm_overlay_path:56,awhil:32,col_limit:132,relicens:32,destructor:32,hang:7,mere:[150,149],merg:[157,80,32,115,6,149],is_brows:[99,32],formsuccess:53,myform:[96,53],unix_start:95,val:[157,133,103,115,153,53,132],pictur:[26,108],myforg:79,transfer:[113,82,156,32],howland:95,error_messages_lang:145,db_query_build:[157,32],beer:130,language_kei:[88,145],macintosh:99,standard_d:[],much:[32,90,91,36,98,115,95,28,110,139,87,113],localhost1:100,filemtim:32,"var":[32,133,69,115,110,112],you_said:102,venezuelan:95,chunk:123,application_fold:[57,98,140],regex_match:53,total_row:65,unexpect:110,unwrap:26,bcc_batch_mod:[26,32],brand:99,post_control:130,multical:32,"_util":0,is_natur:53,sess_match_userag:[36,32],image_size_str:136,gain:[106,69,82,50,4],src:[26,153,108,32],dbforg:[115,36,79,90,32],eas:32,highest:[26,120],eat:108,count:[],group_start:157,cleanup:32,temp:123,rc4:82,wish:[145,47,133,49,6,138,130,96,10,102,142,56,57,104,60,110,113,151,22,155,115,4,157,30,156,78,79,82,84,158,45],redud:36,writeabl:122,flip:56,troubl:[36,149],asynchron:148,cookie_domain:[110,3],below:[47,5,49,6,96,136,130,95,8,53,11,142,12,116,58,110,81,138,22,155,24,115,153,118,102,119,154,30,26,157,79,32,82,83,50,56,86,147,163,132],item_valu:6,limit:[],tini:108,fetch:[],view_cascad:115,otherwis:[145,0,82,134,96,94,138,56,104,17,110,112,113,115,147,28,121,26,78,80,32,36,45,149],problem:[155,32,36,49,146,110,53,149],weblogupd:102,reliabl:[155,32,33,36,84,110,99],driver_nam:[89,32],evalu:[133,151,32],get_inst:[],"int":[91,49,94,95,138,10,102,143,103,58,156,108,110,148,112,113,22,69,24,153,90,4,28,155,26,157,79,32,122,82,83,158,160,70,45,132],dure:[145,30,81,32,91,147,86,130,110,28,53],disallow:[155,148,21,32],novemb:32,implement:[145,82,11,32,36,157,91,28,70,110,8,53],some_nam:110,adapt:[69,157,91],userag:26,path_cach:133,mistaken:133,ing:32,up1275:95,httponli:[110,94,113,32],inc:135,spell:32,my_:[8,30,42,69,118],last_tag_open:65,percent:[147,95],front_control:74,virtual:110,other:[],bool:[145,47,1,116,91,134,49,6,138,94,95,96,53,99,10,72,56,143,103,58,108,110,148,112,113,150,151,152,23,114,69,70,115,157,156,28,102,120,26,78,79,122,123,83,37,84,44,136,132],bin2hex:82,rememb:[142,33,36,50,124,115,52,53],unix_to_human:95,php4:0,php5:114,myphoto:120,stat:[0,32],repeat:[],misc_model:36,my_db:79,oci_fetch:32,june:[22,32],ci_email:[8,26,32],"_parse_argv":32,news_model:[24,25],is_ascii:32,unnecessarili:32,mondai:[22,132],has_opt:138,throughout:[32,30,81,48,82,49,145,141,148,154],trackback:[],clean_email:32,malsup:47,third_parti:[],basketbal:53,stai:[138,150],experienc:[56,110,133,82],thead_clos:132,sphinx:83,amp:1,strpo:133,came:147,baker:95,root_path:120,involv:[9,22,151,56,136,102,111],extran:32,bcc:[26,32],form_radio:[96,32],"_protect_identifi":32,portion:[28,157,49,80],emerg:149,perhap:[8,30,118,110,53],ci_uri:[158,32]},objtypes:{"0":"php:method","1":"php:function","2":"php:class"},objnames:{"0":["php","method","PHP method"],"1":["php","function","PHP function"],"2":["php","class","PHP class"]},filenames:["general/controllers","helpers/xml_helper","database/call_function","installation/upgrade_b11","libraries/encrypt","general/urls","libraries/config","tutorial/conclusion","general/creating_libraries","DCO","helpers/directory_helper","database/transactions","installation/upgrade_310","installation/upgrade_311","installation/upgrade_312","installation/upgrade_313","installation/upgrade_314","general/environments","installation/upgrade_163","installation/upgrade_162","installation/upgrade_161","installation/upgrade_140","libraries/calendar","libraries/typography","tutorial/news_section","tutorial/create_news_items","libraries/email","general/index","general/compatibility_functions","overview/index","general/helpers","general/drivers","changelog","installation/upgrade_303","installation/upgrade_302","installation/upgrade_301","installation/upgrade_300","helpers/typography_helper","installation/upgrade_305","installation/upgrade_304","installation/upgrade_152","installation/upgrade_153","installation/upgrade_150","installation/upgrade_154","helpers/inflector_helper","libraries/benchmark","installation/downloads","libraries/javascript","general/autoloader","general/errors","database/caching","database/metadata","general/cli","libraries/form_validation","index","overview/goals","libraries/image_lib","installation/index","database/results","installation/upgrade_141","general/caching","installation/upgrade_220","installation/upgrade_221","installation/upgrade_222","installation/upgrade_223","libraries/pagination","tutorial/index","installation/troubleshooting","overview/mvc","libraries/caching","libraries/trackback","overview/features","helpers/security_helper","general/requirements","installation/upgrade_130","installation/upgrade_131","installation/upgrade_132","installation/upgrade_133","database/utilities","database/forge","license","general/models","libraries/encryption","documentation/index","helpers/url_helper","database/helpers","general/profiling","general/welcome","helpers/language_helper","general/creating_drivers","libraries/migration","database/db_driver_reference","helpers/index","database/index","helpers/cookie_helper","helpers/date_helper","helpers/form_helper","installation/upgrade_201","installation/upgrade_306","libraries/user_agent","database/configuration","installation/upgrade_120","libraries/xmlrpc","libraries/output","general/routing","installation/upgrade_202","installation/upgrade_203","installation/upgrade_200","helpers/html_helper","libraries/index","libraries/sessions","general/libraries","general/common_functions","libraries/input","helpers/path_helper","libraries/loader","helpers/smiley_helper","installation/upgrading","general/core_classes","database/examples","libraries/zip","general/reserved_names","helpers/file_helper","libraries/parser","database/queries","installation/upgrade_214","installation/upgrade_211","installation/upgrade_210","installation/upgrade_213","installation/upgrade_212","general/hooks","installation/upgrade_160","libraries/table","general/styleguide","helpers/email_helper","general/credits","libraries/file_uploading","general/ancillary_classes","libraries/cart","overview/at_a_glance","general/managing_apps","overview/appflow","general/views","helpers/string_helper","tutorial/static_pages","libraries/language","overview/getting_started","general/security","libraries/security","contributing/index","helpers/array_helper","libraries/unit_testing","helpers/download_helper","helpers/captcha_helper","database/connecting","helpers/text_helper","libraries/ftp","database/query_builder","libraries/uri","general/alternative_php","helpers/number_helper","installation/upgrade_170","installation/upgrade_171","installation/upgrade_172"],titles:["Controllers","XML Helper","Custom Function Calls","Upgrading From Beta 1.0 to Beta 1.1","Encrypt Class","CodeIgniter URLs","Config Class","Conclusion","Creating Libraries","Developer’s Certificate of Origin 1.1","Directory Helper","Transactions","Upgrading from 3.0.6 to 3.1.0","Upgrading from 3.1.0 to 3.1.1","Upgrading from 3.1.1 to 3.1.2","Upgrading from 3.1.2 to 3.1.3","Upgrading from 3.1.3 to 3.1.4","Handling Multiple Environments","Upgrading from 1.6.2 to 1.6.3","Upgrading from 1.6.1 to 1.6.2","Upgrading from 1.6.0 to 1.6.1","Upgrading from 1.3.3 to 1.4.0","Calendaring Class","Typography Class","News section","Create news items","Email Class","General Topics","Compatibility Functions","CodeIgniter Overview","Helper Functions","Using CodeIgniter Drivers","Change Log","Upgrading from 3.0.2 to 3.0.3","Upgrading from 3.0.1 to 3.0.2","Upgrading from 3.0.0 to 3.0.1","Upgrading from 2.2.x to 3.0.x","Typography Helper","Upgrading from 3.0.4 to 3.0.5","Upgrading from 3.0.3 to 3.0.4","Upgrading from 1.5.0 to 1.5.2","Upgrading from 1.5.2 to 1.5.3","Upgrading from 1.4.1 to 1.5.0","Upgrading from 1.5.3 to 1.5.4","Inflector Helper","Benchmarking Class","Downloading CodeIgniter","Javascript Class","Auto-loading Resources","Error Handling","Database Caching Class","Database Metadata","Running via the CLI","Form Validation","CodeIgniter User Guide","Design and Architectural Goals","Image Manipulation Class","Installation Instructions","Generating Query Results","Upgrading from 1.4.0 to 1.4.1","Web Page Caching","Upgrading from 2.1.4 to 2.2.x","Upgrading from 2.2.0 to 2.2.1","Upgrading from 2.2.1 to 2.2.2","Upgrading from 2.2.2 to 2.2.3","Pagination Class","Tutorial","Troubleshooting","Model-View-Controller","Caching Driver","Trackback Class","CodeIgniter Features","Security Helper","Server Requirements","Upgrading from 1.2 to 1.3","Upgrading from 1.3 to 1.3.1","Upgrading from 1.3.1 to 1.3.2","Upgrading from 1.3.2 to 1.3.3","Database Utility Class","Database Forge Class","The MIT License (MIT)","Models","Encryption Library","Writing CodeIgniter Documentation","URL Helper","Query Helper Methods","Profiling Your Application","Welcome to CodeIgniter","Language Helper","Creating Drivers","Migrations Class","DB Driver Reference","Helpers","Database Reference","Cookie Helper","Date Helper","Form Helper","Upgrading from 2.0.0 to 2.0.1","Upgrading from 3.0.5 to 3.0.6","User Agent Class","Database Configuration","Upgrading From Beta 1.0 to Final 1.2","XML-RPC and XML-RPC Server Classes","Output Class","URI Routing","Upgrading from 2.0.1 to 2.0.2","Upgrading from 2.0.2 to 2.0.3","Upgrading from 1.7.2 to 2.0.0","HTML Helper","Libraries","Session Library","Using CodeIgniter Libraries","Common Functions","Input Class","Path Helper","Loader Class","Smiley Helper","Upgrading From a Previous Version","Creating Core System Classes","Database Quick Start: Example Code","Zip Encoding Class","Reserved Names","File Helper","Template Parser Class","Queries","Upgrading from 2.1.3 to 2.1.4","Upgrading from 2.1.0 to 2.1.1","Upgrading from 2.0.3 to 2.1.0","Upgrading from 2.1.2 to 2.1.3","Upgrading from 2.1.1 to 2.1.2","Hooks - Extending the Framework Core","Upgrading from 1.5.4 to 1.6.0","HTML Table Class","PHP Style Guide","Email Helper","Credits","File Uploading Class","Creating Ancillary Classes","Shopping Cart Class","CodeIgniter at a Glance","Managing your Applications","Application Flow Chart","Views","String Helper","Static pages","Language Class","Getting Started With CodeIgniter","Security","Security Class","Contributing to CodeIgniter","Array Helper","Unit Testing Class","Download Helper","CAPTCHA Helper","Connecting to your Database","Text Helper","FTP Class","Query Builder Class","URI Class","Alternate PHP Syntax for View Files","Number Helper","Upgrading from 1.6.3 to 1.7.0","Upgrading from 1.7.0 to 1.7.1","Upgrading from 1.7.1 to 1.7.2"],objects:{"":{"CI_DB_driver::platform":[91,0,1,""],"CI_DB_forge::add_field":[79,0,1,""],mysql_to_unix:[95,1,1,""],"CI_DB_query_builder::or_where_in":[157,0,1,""],"CI_DB_driver::simple_query":[91,0,1,""],"CI_Calendar::get_total_days":[22,0,1,""],"CI_URI::segment":[158,0,1,""],"CI_FTP::delete_dir":[156,0,1,""],auto_link:[84,1,1,""],form_textarea:[96,1,1,""],"CI_Unit_test::use_strict":[151,0,1,""],"CI_DB_utility::repair_table":[78,0,1,""],"CI_DB_driver::update_string":[91,0,1,""],get_file_info:[122,1,1,""],base_url:[84,1,1,""],site_url:[84,1,1,""],"CI_Typography::auto_typography":[23,0,1,""],"CI_DB_forge::add_column":[79,0,1,""],"CI_Output::set_output":[103,0,1,""],CI_Security:[148,2,1,""],"CI_DB_result::last_row":[58,0,1,""],form_prep:[96,1,1,""],"CI_DB_query_builder::not_like":[157,0,1,""],"CI_DB_driver::cache_delete_all":[91,0,1,""],"CI_Encrypt::encode":[4,0,1,""],date_range:[95,1,1,""],underscore:[44,1,1,""],"CI_DB_query_builder::get_compiled_delete":[157,0,1,""],"CI_Input::get_request_header":[113,0,1,""],force_download:[152,1,1,""],"CI_Calendar::get_day_names":[22,0,1,""],"CI_Cache::is_supported":[69,0,1,""],byte_format:[160,1,1,""],timezone_menu:[95,1,1,""],"CI_DB_driver::trans_complete":[91,0,1,""],"CI_DB_driver::reconnect":[91,0,1,""],"CI_DB_utility::database_exists":[78,0,1,""],heading:[108,1,1,""],"CI_FTP::mirror":[156,0,1,""],CI_DB_query_builder:[157,2,1,""],CI_Loader:[115,2,1,""],nbs:[108,1,1,""],doctype:[108,1,1,""],word_limiter:[155,1,1,""],write_file:[122,1,1,""],"CI_DB_driver::db_select":[91,0,1,""],"CI_Unit_test::set_test_items":[151,0,1,""],sanitize_filename:[72,1,1,""],"CI_Image_lib::rotate":[56,0,1,""],standard_date:[95,1,1,""],mdate:[95,1,1,""],"CI_DB_query_builder::limit":[157,0,1,""],"CI_Input::server":[113,0,1,""],"CI_Output::_display":[103,0,1,""],"CI_DB_query_builder::where":[157,0,1,""],xss_clean:[72,1,1,""],"CI_Input::get_post":[113,0,1,""],"CI_DB_forge::drop_database":[79,0,1,""],"CI_Form_validation::error_string":[53,0,1,""],"CI_DB_driver::trans_strict":[91,0,1,""],"CI_Trackback::send":[70,0,1,""],camelize:[44,1,1,""],form_button:[96,1,1,""],"CI_User_agent::version":[99,0,1,""],"CI_URI::uri_string":[158,0,1,""],directory_map:[10,1,1,""],strip_image_tags:[72,1,1,""],"CI_Upload::do_upload":[136,0,1,""],gmt_to_local:[95,1,1,""],"CI_DB_query_builder::get":[157,0,1,""],CI_Form_validation:[53,2,1,""],"CI_Lang::line":[145,0,1,""],mb_substr:[28,1,1,""],"CI_Input::input_stream":[113,0,1,""],"CI_Cart::contents":[138,0,1,""],"CI_Xmlrpc::send_error_message":[102,0,1,""],"CI_Trackback::send_error":[70,0,1,""],"CI_DB_result::first_row":[58,0,1,""],"CI_DB_query_builder::or_where":[157,0,1,""],"CI_DB_query_builder::having":[157,0,1,""],"CI_Config::slash_item":[6,0,1,""],"CI_Table::clear":[132,0,1,""],mb_strpos:[28,1,1,""],"CI_Cart::remove":[138,0,1,""],"CI_Upload::data":[136,0,1,""],CI_Benchmark:[45,2,1,""],"CI_Output::cache":[103,0,1,""],"CI_Zip::get_zip":[120,0,1,""],CI_DB_driver:[91,2,1,""],Some_class:[83,2,1,""],form_reset:[96,1,1,""],"CI_DB_query_builder::select_min":[157,0,1,""],"CI_FTP::rename":[156,0,1,""],"CI_Trackback::receive":[70,0,1,""],"CI_Loader::helper":[115,0,1,""],"CI_Form_validation::run":[53,0,1,""],"CI_DB_result::free_result":[58,0,1,""],"CI_DB_driver::affected_rows":[91,0,1,""],"CI_DB_utility::backup":[78,0,1,""],"CI_DB_result::unbuffered_row":[58,0,1,""],"CI_Trackback::convert_ascii":[70,0,1,""],"CI_Security::xss_clean":[148,0,1,""],set_select:[96,1,1,""],quotes_to_entities:[143,1,1,""],form_open:[96,1,1,""],"CI_URI::slash_segment":[158,0,1,""],"Some_class::should_do_something":[83,0,1,""],"CI_FTP::connect":[156,0,1,""],"CI_Loader::view":[115,0,1,""],"CI_Image_lib::display_errors":[56,0,1,""],"CI_DB_driver::trans_status":[91,0,1,""],"CI_Encryption::encrypt":[82,0,1,""],"CI_DB_query_builder::or_not_group_start":[157,0,1,""],"CI_Migration::version":[90,0,1,""],CI_DB_result:[58,2,1,""],"CI_DB_query_builder::replace":[157,0,1,""],"CI_DB_driver::cache_delete":[91,0,1,""],"CI_Trackback::extract_urls":[70,0,1,""],"CI_Form_validation::set_message":[53,0,1,""],array_column:[28,1,1,""],url_title:[84,1,1,""],get_instance:[137,1,1,""],CI_Lang:[145,2,1,""],trim_slashes:[143,1,1,""],xml_convert:[1,1,1,""],"CI_DB_query_builder::or_having":[157,0,1,""],"CI_DB_query_builder::from":[157,0,1,""],show_error:[49,1,1,""],"CI_User_agent::referrer":[99,0,1,""],singular:[44,1,1,""],"CI_DB_result::field_data":[58,0,1,""],show_404:[49,1,1,""],random_element:[150,1,1,""],"CI_Config::load":[6,0,1,""],human_to_unix:[95,1,1,""],"CI_Trackback::validate_url":[70,0,1,""],"CI_User_agent::is_robot":[99,0,1,""],"CI_User_agent::mobile":[99,0,1,""],"CI_FTP::close":[156,0,1,""],"CI_Config::site_url":[6,0,1,""],"CI_Config::item":[6,0,1,""],"CI_DB_driver::db_pconnect":[91,0,1,""],"CI_Cart::destroy":[138,0,1,""],"CI_Input::user_agent":[113,0,1,""],element:[150,1,1,""],"CI_Encryption::create_key":[82,0,1,""],days_in_month:[95,1,1,""],"CI_Session::unset_userdata":[110,0,1,""],"CI_Encrypt::set_mode":[4,0,1,""],"CI_DB_utility::csv_from_result":[78,0,1,""],"CI_Cache::decrement":[69,0,1,""],set_status_header:[112,1,1,""],"CI_Form_validation::error":[53,0,1,""],form_submit:[96,1,1,""],"CI_Trackback::send_success":[70,0,1,""],"CI_Session::unmark_temp":[110,0,1,""],"CI_DB_driver::count_all":[91,0,1,""],"CI_DB_result::num_rows":[58,0,1,""],"CI_DB_driver::field_exists":[91,0,1,""],"CI_Trackback::limit_characters":[70,0,1,""],"CI_Pagination::create_links":[65,0,1,""],CI_Output:[103,2,1,""],password_hash:[28,1,1,""],CI_Encrypt:[4,2,1,""],"CI_Table::set_caption":[132,0,1,""],CI_Image_lib:[56,2,1,""],config_item:[112,1,1,""],"CI_Migration::find_migrations":[90,0,1,""],get_clickable_smileys:[116,1,1,""],form_password:[96,1,1,""],"CI_DB_query_builder::truncate":[157,0,1,""],"CI_Email::from":[26,0,1,""],"CI_FTP::delete_file":[156,0,1,""],ellipsize:[155,1,1,""],"CI_DB_driver::display_error":[91,0,1,""],"CI_Typography::nl2br_except_pre":[23,0,1,""],"CI_Zip::clear_data":[120,0,1,""],"CI_Migration::latest":[90,0,1,""],now:[95,1,1,""],"CI_DB_query_builder::count_all_results":[157,0,1,""],"CI_URI::assoc_to_uri":[158,0,1,""],set_value:[96,1,1,""],strip_slashes:[143,1,1,""],"CI_DB_query_builder::or_where_not_in":[157,0,1,""],"CI_User_agent::accept_lang":[99,0,1,""],"CI_DB_query_builder::where_not_in":[157,0,1,""],highlight_phrase:[155,1,1,""],"CI_Upload::display_errors":[136,0,1,""],"CI_Input::ip_address":[113,0,1,""],smiley_js:[116,1,1,""],"CI_URI::slash_rsegment":[158,0,1,""],"CI_DB_driver::db_set_charset":[91,0,1,""],"CI_Encrypt::set_cipher":[4,0,1,""],"CI_DB_driver::version":[91,0,1,""],"CI_Xmlrpc::timeout":[102,0,1,""],is_really_writable:[112,1,1,""],"CI_DB_driver::elapsed_time":[91,0,1,""],set_realpath:[114,1,1,""],"CI_Benchmark::elapsed_time":[45,0,1,""],nice_date:[95,1,1,""],"CI_DB_query_builder::update":[157,0,1,""],"CI_URI::segment_array":[158,0,1,""],CI_Cache:[69,2,1,""],"CI_DB_query_builder::reset_query":[157,0,1,""],"CI_DB_query_builder::not_group_start":[157,0,1,""],plural:[44,1,1,""],remove_invisible_characters:[112,1,1,""],"CI_DB_driver::call_function":[91,0,1,""],hash_equals:[28,1,1,""],CI_Pagination:[65,2,1,""],is_countable:[44,1,1,""],"CI_Session::all_userdata":[110,0,1,""],"CI_Input::post_get":[113,0,1,""],"CI_Security::get_csrf_hash":[148,0,1,""],"CI_Table::set_template":[132,0,1,""],"CI_Image_lib::resize":[56,0,1,""],"CI_Security::sanitize_filename":[148,0,1,""],"CI_DB_driver::table_exists":[91,0,1,""],link_tag:[108,1,1,""],"CI_Email::message":[26,0,1,""],"CI_DB_query_builder::start_cache":[157,0,1,""],"CI_Email::bcc":[26,0,1,""],"CI_DB_driver::list_fields":[91,0,1,""],"CI_Encrypt::encode_from_legacy":[4,0,1,""],"CI_DB_driver::db_connect":[91,0,1,""],"CI_DB_query_builder::insert":[157,0,1,""],increment_string:[143,1,1,""],form_open_multipart:[96,1,1,""],"CI_Email::reply_to":[26,0,1,""],"CI_Cache::cache_info":[69,0,1,""],"CI_DB_query_builder::select":[157,0,1,""],"CI_DB_query_builder::flush_cache":[157,0,1,""],"CI_Cart::product_options":[138,0,1,""],"CI_Loader::database":[115,0,1,""],"CI_Benchmark::memory_usage":[45,0,1,""],prep_url:[84,1,1,""],"CI_URI::uri_to_assoc":[158,0,1,""],encode_php_tags:[72,1,1,""],"CI_DB_query_builder::empty_table":[157,0,1,""],"CI_DB_query_builder::get_where":[157,0,1,""],"CI_Calendar::initialize":[22,0,1,""],"CI_DB_query_builder::group_end":[157,0,1,""],"CI_Parser::set_delimiters":[123,0,1,""],"CI_DB_query_builder::select_sum":[157,0,1,""],"CI_DB_forge::add_key":[79,0,1,""],create_captcha:[153,1,1,""],"CI_Form_validation::has_rule":[53,0,1,""],"CI_URI::total_segments":[158,0,1,""],"CI_Loader::is_loaded":[115,0,1,""],"CI_Session::__set":[110,0,1,""],"CI_Encryption::initialize":[82,0,1,""],"CI_DB_utility::list_databases":[78,0,1,""],reduce_double_slashes:[143,1,1,""],"CI_Loader::dbforge":[115,0,1,""],"CI_Table::add_row":[132,0,1,""],"CI_Upload::initialize":[136,0,1,""],valid_email:[134,1,1,""],"CI_DB_result::next_row":[58,0,1,""],CI_Unit_test:[151,2,1,""],"CI_Cache::increment":[69,0,1,""],"CI_Session::sess_regenerate":[110,0,1,""],index_page:[84,1,1,""],delete_files:[122,1,1,""],is_php:[112,1,1,""],"CI_Email::set_alt_message":[26,0,1,""],"CI_Output::append_output":[103,0,1,""],"CI_Encryption::decrypt":[82,0,1,""],"CI_Table::set_heading":[132,0,1,""],humanize:[44,1,1,""],"CI_Session::__get":[110,0,1,""],anchor_popup:[84,1,1,""],"CI_DB_query_builder::get_compiled_select":[157,0,1,""],"CI_DB_forge::drop_column":[79,0,1,""],"CI_DB_result::data_seek":[58,0,1,""],"CI_Session::sess_destroy":[110,0,1,""],"CI_Trackback::data":[70,0,1,""],"CI_DB_utility::xml_from_result":[78,0,1,""],"CI_Zip::download":[120,0,1,""],"CI_DB_driver::cache_off":[91,0,1,""],"CI_Config::system_url":[6,0,1,""],"CI_Loader::model":[115,0,1,""],"CI_Unit_test::active":[151,0,1,""],"CI_Session::has_userdata":[110,0,1,""],"CI_Cache::save":[69,0,1,""],"CI_Xmlrpc::server":[102,0,1,""],"CI_DB_query_builder::set_update_batch":[157,0,1,""],"CI_DB_driver::list_tables":[91,0,1,""],"CI_Session::userdata":[110,0,1,""],CI_Email:[26,2,1,""],"CI_DB_query_builder::get_compiled_update":[157,0,1,""],convert_accented_characters:[155,1,1,""],CI_Cart:[138,2,1,""],alternator:[143,1,1,""],"CI_Session::set_tempdata":[110,0,1,""],"CI_Unit_test::run":[151,0,1,""],"CI_User_agent::parse":[99,0,1,""],"CI_Loader::config":[115,0,1,""],"CI_Output::set_status_header":[103,0,1,""],CI_Zip:[120,2,1,""],"CI_URI::rsegment_array":[158,0,1,""],"CI_Loader::driver":[115,0,1,""],"CI_URI::ruri_string":[158,0,1,""],random_string:[143,1,1,""],"CI_Cart::total_items":[138,0,1,""],CI_FTP:[156,2,1,""],"CI_Unit_test::report":[151,0,1,""],"CI_Cart::total":[138,0,1,""],redirect:[84,1,1,""],strip_quotes:[143,1,1,""],"CI_Email::print_debugger":[26,0,1,""],"CI_User_agent::is_mobile":[99,0,1,""],"CI_DB_driver::trans_start":[91,0,1,""],"CI_Security::get_random_bytes":[148,0,1,""],CI_Parser:[123,2,1,""],"CI_DB_result::set_row":[58,0,1,""],"CI_DB_query_builder::stop_cache":[157,0,1,""],"CI_Email::clear":[26,0,1,""],"CI_Encrypt::decode":[4,0,1,""],CI_DB_forge:[79,2,1,""],"CI_Xmlrpc::display_error":[102,0,1,""],"CI_User_agent::agent_string":[99,0,1,""],octal_permissions:[122,1,1,""],form_error:[96,1,1,""],"CI_DB_query_builder::update_batch":[157,0,1,""],form_multiselect:[96,1,1,""],"CI_User_agent::charsets":[99,0,1,""],get_cookie:[94,1,1,""],symbolic_permissions:[122,1,1,""],highlight_code:[155,1,1,""],"CI_Email::cc":[26,0,1,""],"CI_Cart::has_options":[138,0,1,""],"CI_Session::set_flashdata":[110,0,1,""],"CI_Input::post":[113,0,1,""],local_to_gmt:[95,1,1,""],"CI_Image_lib::watermark":[56,0,1,""],"CI_Session::get_flash_keys":[110,0,1,""],"CI_Form_validation::error_array":[53,0,1,""],"CI_Xmlrpc::display_response":[102,0,1,""],timezones:[95,1,1,""],"CI_User_agent::is_referral":[99,0,1,""],password_get_info:[28,1,1,""],"CI_FTP::mkdir":[156,0,1,""],send_email:[134,1,1,""],"CI_DB_driver::close":[91,0,1,""],form_input:[96,1,1,""],"CI_Form_validation::reset_validation":[53,0,1,""],validation_errors:[96,1,1,""],"CI_Table::make_columns":[132,0,1,""],"CI_Loader::get_vars":[115,0,1,""],"CI_Session::mark_as_temp":[110,0,1,""],ul:[108,1,1,""],"CI_Session::unmark_flash":[110,0,1,""],"CI_DB_driver::initialize":[91,0,1,""],nl2br_except_pre:[37,1,1,""],"CI_Xmlrpc::send_request":[102,0,1,""],"CI_Loader::add_package_path":[115,0,1,""],"CI_DB_query_builder::set_insert_batch":[157,0,1,""],"CI_DB_query_builder::delete":[157,0,1,""],"CI_Xmlrpc::request":[102,0,1,""],"CI_Calendar::default_template":[22,0,1,""],"CI_URI::rsegment":[158,0,1,""],"CI_URI::total_rsegments":[158,0,1,""],"CI_Encryption::hkdf":[82,0,1,""],"CI_Output::enable_profiler":[103,0,1,""],"CI_Cache::delete":[69,0,1,""],"CI_DB_query_builder::or_like":[157,0,1,""],"CI_DB_result::row":[58,0,1,""],"CI_Table::set_empty":[132,0,1,""],img:[108,1,1,""],CI_Trackback:[70,2,1,""],"CI_User_agent::browser":[99,0,1,""],CI_Session:[110,2,1,""],"CI_DB_result::custom_result_object":[58,0,1,""],set_radio:[96,1,1,""],"CI_Security::get_csrf_token_name":[148,0,1,""],"CI_DB_forge::create_table":[79,0,1,""],"CI_DB_utility::optimize_database":[78,0,1,""],"CI_FTP::changedir":[156,0,1,""],"CI_Lang::load":[145,0,1,""],"CI_Loader::vars":[115,0,1,""],"CI_Cart::get_item":[138,0,1,""],mailto:[84,1,1,""],hash_pbkdf2:[28,1,1,""],"CI_DB_query_builder::set_dbprefix":[157,0,1,""],set_cookie:[94,1,1,""],reduce_multiples:[143,1,1,""],"CI_Form_validation::set_error_delimiters":[53,0,1,""],"CI_Email::subject":[26,0,1,""],"CI_FTP::upload":[156,0,1,""],delete_cookie:[94,1,1,""],"CI_Zip::add_dir":[120,0,1,""],get_filenames:[122,1,1,""],"CI_Typography::format_characters":[23,0,1,""],unix_to_human:[95,1,1,""],"CI_Input::set_cookie":[113,0,1,""],"CI_Session::set_userdata":[110,0,1,""],"CI_DB_query_builder::distinct":[157,0,1,""],"CI_Session::keep_flashdata":[110,0,1,""],CI_Upload:[136,2,1,""],"CI_DB_driver::trans_off":[91,0,1,""],form_upload:[96,1,1,""],hex2bin:[28,1,1,""],CI_Calendar:[22,2,1,""],parse_smileys:[116,1,1,""],"CI_DB_query_builder::select_avg":[157,0,1,""],anchor:[84,1,1,""],uri_string:[84,1,1,""],"CI_DB_query_builder::insert_batch":[157,0,1,""],form_fieldset_close:[96,1,1,""],"CI_DB_driver::cache_on":[91,0,1,""],"CI_Output::get_output":[103,0,1,""],"CI_DB_driver::escape_str":[91,0,1,""],"CI_DB_query_builder::or_group_start":[157,0,1,""],form_checkbox:[96,1,1,""],get_mime_by_extension:[122,1,1,""],"CI_Output::set_header":[103,0,1,""],"CI_Input::request_headers":[113,0,1,""],"CI_Loader::file":[115,0,1,""],word_censor:[155,1,1,""],"CI_DB_forge::modify_column":[79,0,1,""],CI_Xmlrpc:[102,2,1,""],form_fieldset:[96,1,1,""],"CI_Email::set_header":[26,0,1,""],"CI_Cart::insert":[138,0,1,""],"CI_Loader::remove_package_path":[115,0,1,""],"CI_Security::entity_decode":[148,0,1,""],"CI_Session::get_temp_keys":[110,0,1,""],"CI_DB_driver::escape":[91,0,1,""],"CI_FTP::move":[156,0,1,""],form_label:[96,1,1,""],"CI_DB_driver::protect_identifiers":[91,0,1,""],"CI_Cache::get":[69,0,1,""],"CI_DB_result::previous_row":[58,0,1,""],"CI_DB_query_builder::group_start":[157,0,1,""],"CI_Session::flashdata":[110,0,1,""],"CI_DB_driver::escape_identifiers":[91,0,1,""],"CI_Loader::get_var":[115,0,1,""],"CI_Migration::current":[90,0,1,""],ascii_to_entities:[155,1,1,""],"CI_Cache::clean":[69,0,1,""],html_escape:[112,1,1,""],"CI_DB_result::result_object":[58,0,1,""],form_hidden:[96,1,1,""],log_message:[49,1,1,""],"CI_DB_driver::cache_set_path":[91,0,1,""],"CI_Unit_test::set_template":[151,0,1,""],"CI_DB_driver::field_data":[91,0,1,""],"CI_Form_validation::set_rules":[53,0,1,""],"CI_Loader::language":[115,0,1,""],get_dir_file_info:[122,1,1,""],set_checkbox:[96,1,1,""],"CI_Input::cookie":[113,0,1,""],"CI_Cache::get_metadata":[69,0,1,""],"CI_Config::base_url":[6,0,1,""],"CI_Benchmark::mark":[45,0,1,""],"CI_Cart::update":[138,0,1,""],"CI_Parser::parse":[123,0,1,""],"CI_Output::get_content_type":[103,0,1,""],entity_decode:[37,1,1,""],"CI_FTP::chmod":[156,0,1,""],do_hash:[72,1,1,""],password_verify:[28,1,1,""],safe_mailto:[84,1,1,""],"Some_class::some_method":[83,0,1,""],"CI_Image_lib::clear":[56,0,1,""],character_limiter:[155,1,1,""],"CI_DB_result::result":[58,0,1,""],"CI_DB_query_builder::or_not_like":[157,0,1,""],"CI_FTP::download":[156,0,1,""],"CI_Zip::read_file":[120,0,1,""],"CI_Unit_test::result":[151,0,1,""],"CI_Zip::archive":[120,0,1,""],"CI_DB_driver::is_write_type":[91,0,1,""],"CI_Calendar::generate":[22,0,1,""],"CI_Form_validation::set_data":[53,0,1,""],read_file:[122,1,1,""],word_wrap:[155,1,1,""],"CI_DB_driver::compile_binds":[91,0,1,""],"CI_DB_result::result_array":[58,0,1,""],password_needs_rehash:[28,1,1,""],"CI_DB_result::row_object":[58,0,1,""],"CI_Xmlrpc::initialize":[102,0,1,""],CI_Encryption:[82,2,1,""],auto_typography:[37,1,1,""],CI_Table:[132,2,1,""],CI_Input:[113,2,1,""],"CI_Trackback::set_error":[70,0,1,""],"CI_Image_lib::initialize":[56,0,1,""],"CI_DB_forge::rename_table":[79,0,1,""],"CI_DB_result::custom_row_object":[58,0,1,""],CI_URI:[158,2,1,""],form_dropdown:[96,1,1,""],br:[108,1,1,""],"CI_DB_utility::optimize_table":[78,0,1,""],"CI_Input::valid_ip":[113,0,1,""],"CI_URI::ruri_to_assoc":[158,0,1,""],"CI_DB_query_builder::where_in":[157,0,1,""],ol:[108,1,1,""],"CI_Output::set_content_type":[103,0,1,""],"CI_DB_query_builder::offset":[157,0,1,""],"CI_Input::is_ajax_request":[113,0,1,""],"CI_DB_driver::insert_string":[91,0,1,""],"CI_DB_query_builder::set":[157,0,1,""],"CI_Email::attachment_cid":[26,0,1,""],CI_Config:[6,2,1,""],"CI_DB_query_builder::order_by":[157,0,1,""],"CI_Input::method":[113,0,1,""],"CI_Xmlrpc::method":[102,0,1,""],"CI_Input::is_cli_request":[113,0,1,""],"CI_DB_result::row_array":[58,0,1,""],CI_User_agent:[99,2,1,""],"CI_DB_result::list_fields":[58,0,1,""],"CI_Session::tempdata":[110,0,1,""],"CI_Calendar::adjust_date":[22,0,1,""],"CI_Trackback::convert_xml":[70,0,1,""],"CI_Output::set_profiler_sections":[103,0,1,""],"CI_Pagination::initialize":[65,0,1,""],"CI_Zip::read_dir":[120,0,1,""],"CI_DB_driver::escape_like_str":[91,0,1,""],"CI_Zip::add_data":[120,0,1,""],"CI_Email::send":[26,0,1,""],"CI_Email::attach":[26,0,1,""],repeater:[143,1,1,""],is_cli:[112,1,1,""],"CI_DB_query_builder::select_max":[157,0,1,""],"CI_Output::get_header":[103,0,1,""],current_url:[84,1,1,""],"CI_Trackback::get_id":[70,0,1,""],"CI_Session::mark_as_flash":[110,0,1,""],"CI_User_agent::accept_charset":[99,0,1,""],"CI_DB_query_builder::get_compiled_insert":[157,0,1,""],"CI_DB_driver::last_query":[91,0,1,""],"CI_DB_query_builder::group_by":[157,0,1,""],"CI_DB_driver::primary":[91,0,1,""],is_https:[112,1,1,""],form_close:[96,1,1,""],"CI_Input::get":[113,0,1,""],meta:[108,1,1,""],"CI_DB_forge::create_database":[79,0,1,""],"CI_User_agent::robot":[99,0,1,""],get_mimes:[112,1,1,""],"CI_DB_forge::drop_table":[79,0,1,""],"CI_Migration::error_string":[90,0,1,""],timespan:[95,1,1,""],"CI_Loader::dbutil":[115,0,1,""],"CI_DB_driver::total_queries":[91,0,1,""],"CI_DB_query_builder::dbprefix":[157,0,1,""],"CI_Email::to":[26,0,1,""],"CI_DB_driver::query":[91,0,1,""],"CI_Trackback::display_errors":[70,0,1,""],"CI_DB_result::num_fields":[58,0,1,""],"CI_Loader::get_package_paths":[115,0,1,""],"CI_Table::generate":[132,0,1,""],"CI_Config::set_item":[6,0,1,""],"CI_User_agent::platform":[99,0,1,""],"CI_Calendar::parse_template":[22,0,1,""],"CI_Loader::library":[115,0,1,""],elements:[150,1,1,""],"CI_User_agent::languages":[99,0,1,""],"CI_DB_query_builder::like":[157,0,1,""],CI_Typography:[23,2,1,""],"CI_Image_lib::crop":[56,0,1,""],function_usable:[112,1,1,""],lang:[88,1,1,""],"CI_Trackback::process":[70,0,1,""],mb_strlen:[28,1,1,""],"CI_Loader::clear_vars":[115,0,1,""],CI_DB_utility:[78,2,1,""],"CI_DB_query_builder::join":[157,0,1,""],CI_Migration:[90,2,1,""],form_radio:[96,1,1,""],"CI_FTP::list_files":[156,0,1,""],"CI_User_agent::is_browser":[99,0,1,""],"CI_Calendar::get_month_name":[22,0,1,""],"CI_Parser::parse_string":[123,0,1,""]}},titleterms:{all:[147,50],code:[133,119],chain:157,queri:[5,100,78,12,58,124,85,133,157,119],month:22,prefix:[8,30,124,118],row:[138,58],content:[0,79,81,133,52,53],privat:[133,0],specif:[53,82,157],depend:28,friendli:139,send:[26,102,70],form_prep:36,digit:65,string:[5,79,133,143,36,28],fals:[133,36],util:[8,78],verb:104,my_secur:105,word:26,fadeout:47,list:[51,78,118],upload:136,"try":[52,0,136,102,53],item:[47,36,25,59,6,138],adjust:107,quick:119,sign:149,design:55,cache_on:50,pass:[8,0,22,79],download:[46,152],slidetoggl:47,compat:[28,133,107,149],index:[74,5,3,98,106,42],what:[0,102,81,138,30,52,110],hide:[65,47,147],sub:[8,0,142],compar:133,section:[86,83,24],current:65,delet:[157,60],version:[8,12,119,117,32],xss_clean:36,method:[0,157,56,83,36,58,85,133,53],metadata:[51,110],hash:28,gener:[54,139,58,27,151],is_cli_request:36,punch:139,directory_map:36,let:[52,0],cart:[138,36],address:126,path:[47,114],modifi:79,encryption_kei:82,valu:[33,96,100,36,133],convert:107,memcach:[110,69],bbedit:133,credit:135,chang:[132,53,36,106,32],portabl:82,overrid:[26,36],via:52,display_error:147,prefer:[65,26,22,56,136,90,110,78],base_url:[33,36],deprec:[15,98,36],instal:[54,57,140],redi:[110,69],total:45,select:157,from:[61,3,125,62,101,85,12,13,14,15,16,105,106,107,97,59,21,18,19,20,64,128,117,74,75,76,77,79,127,33,34,35,36,98,38,39,40,41,42,126,63,43,129,131,161,162,163],zip:120,memori:45,internation:145,upgrad:[61,3,62,101,125,12,13,14,15,16,105,106,107,97,59,21,18,19,20,64,128,117,74,75,76,77,127,33,34,35,36,98,38,39,40,41,42,126,63,43,129,131,161,162,163],next:[65,22],call:[0,2,105,107,130,53],type:[56,36,102],prep:53,toggl:47,form_valid:36,claus:36,benchmark:[45,86],agent:99,xss:[147,36,148,113],cach:[69,157,60,50],retriev:[51,110,78],setup:47,work:[156,6,82,50,124,60,110],uniqu:36,fetch:[145,6],aliv:154,control:[121,0,144,68,116,159,136,97,53],sqlite:36,stream:113,process:[56,0,136,102,70],time_to_upd:131,wincach:69,"404_overrid":36,templat:[151,22,123,35,36,139,163],topic:[54,27],captcha:153,tag:[133,159],system_url:36,read_fil:36,multipl:[145,30,142,36,17,130,138,119,154,140],goal:55,secur:[72,36,105,147,149,148,113],charset:43,ping:70,write:83,how:[53,82,60,110,50],url_titl:36,instead:36,csv:78,config:[47,3,6,136,53,56,15,106,107,97,59,21,131,65,74,26,33,34,36,42,126,127,43],updat:[138,125,12,13,14,15,16,105,106,107,97,59,21,61,62,20,64,128,18,74,75,76,77,157,127,33,34,35,36,98,38,39,40,41,42,126,63,43,129,162,131,161,19,163],remap:0,cache_delete_al:50,resourc:[8,48],after:36,global_xss_filt:36,random_str:36,date:[36,95],underscor:36,associ:[53,102],trim_slash:36,"short":[133,159],practic:147,light:139,issu:[36,149],alias:116,"switch":145,environ:[17,6],reloc:[3,140],callabl:53,order:157,origin:9,cache_delet:50,move:[105,107,36],autoload:[106,36,59,43,131],reconnect:154,system_path:163,digest:28,paramet:[8,82,102,154],style:[133,149],group:[53,157],cli:[52,35],fix:32,clickabl:116,main:[106,42],easier:85,good:149,"return":[133,36,142],handl:[145,147,49,17,124],auto:[145,30,81,6,48],initi:[47,8,136,138,99,102,56,110,151,22,23,4,119,120,156,78,79,123,82,86,70,132],"break":133,framework:[139,130,17],now:[30,36],introduct:54,drop_tabl:36,name:[121,0,90,78,133,36,8,53],anyth:53,edit:3,troubleshoot:67,drop:79,odbc:12,authent:82,separ:36,mode:[151,82,11],debug:133,register_glob:147,reset:157,weight:139,replac:[3,36,106,97,126,127,118,8],individu:53,"static":144,connect:[154,81],event:47,variabl:[121,47,133,123],ftp:156,typecast:133,space:133,miss:36,profil:[45,86],rel:65,determin:[51,78],watermark:56,migrat:90,manipul:56,free:139,standard:[28,119],cooki:[94,113],base:69,mime:[97,36,126,19,127],dblib:36,anchor_class:36,indent:133,befor:147,nice_d:15,keep:154,filter:[147,36,148,113],length:[82,4],pagin:[65,36],codeignit:[5,61,163,149,146,8,139,140,54,11,125,12,13,14,15,16,105,106,107,97,59,21,62,18,19,20,64,128,161,71,77,111,29,74,75,76,31,127,33,34,35,36,83,98,38,39,40,41,42,126,63,43,129,131,46,162,87],timezon:95,first:65,oper:133,suffix:5,fetch_directori:36,arrai:[150,53,119,58,102],number:160,system:118,hook:130,instruct:[107,57],open:133,forgeri:148,convent:8,strict:[151,11],data:[22,142,82,157,147,107,102,110,53,113],licens:80,cache_off:50,messag:[28,53,82,4],statement:133,"final":101,slidedown:47,option:98,tool:83,fetch_method:36,user_ag:106,third_parti:106,apppath:106,enclos:65,than:53,remov:[5,36,15,98,105,106,107,110,163],structur:[89,159],jqueri:47,store:[107,50,142],bind:124,consumpt:45,typographi:[37,23],ani:[107,36],dash:36,packag:115,reserv:[121,0,104],"null":[133,36],engin:139,callback:[53,104],ancillari:137,destroi:110,rout:[144,36,104,24,25],note:[65,102,123,70,107,110,78],exampl:[65,145,90,78,69,104,156,157,119,132,120,99],thoroughli:139,mit:80,singl:119,anatomi:[102,6,81],simplifi:124,sure:[33,36],who:87,chart:141,textmat:133,beta:[101,3,32],regular:[104,124],pair:123,segment:[0,5],why:52,fetch_class:36,avail:[88,1,134,94,95,96,10,72,143,116,108,150,152,114,153,154,155,122,37,84,160,44],renam:[59,79,140],url:[5,139,36,84,70],tempdata:110,request:[148,102],uri:[0,5,36,104,158,147],doe:[139,60,50],dummi:69,ext:[106,36],bracket:133,clean:139,pars:123,hmac:82,shop:138,show:[47,22,53],text:[56,133,36,145,155],ci_sess:14,syntax:[159,161],concurr:110,corner:47,xml:[102,1,78],cell:22,transact:11,configur:[47,100,82,17],folder:[107,3],local:133,info:54,contribut:[54,149],get:[146,113],express:104,nativ:8,fadein:47,csrf:[147,148],"new":[24,25],report:[151,17,149],requir:[139,83,73],enabl:[5,151,50,86,130,60],organ:0,common:112,default_control:36,contain:36,where:107,view:[47,142,68,123,115,159],certif:9,set:[65,30,26,22,47,56,36,104,24,6,86,78,4,118,8,53,136,82],tablesort:47,mysql:36,highlight_phras:36,result:[78,119,58,157],respons:102,close:[133,154],calendar:[22,3,47],best:147,kei:[19,4,79],databas:[51,54,100,12,14,106,147,131,153,110,119,154,74,93,78,79,81,36,50,124,85,42],label:145,dynam:142,approach:11,email:[134,26,36],attribut:65,altern:[69,159],call_funct:2,extend:[8,30,130,118],all_userdata:36,javascript:[47,36],extens:[107,36,139],popul:53,protect:[147,124],last:65,delimit:53,plugin:[47,107],pdo:36,tutori:[53,66,116,54],logic:[133,144],improv:50,prep_for_form:[36,98],load:[88,145,1,134,6,8,94,95,96,10,72,142,143,116,105,107,108,48,150,152,155,114,153,30,81,122,37,84,160,44],point:[45,130,86],overview:[53,116,29],standardize_newlin:15,loader:115,header:163,rpc:102,guid:[133,136,54,107,59,21,18,19,20,131,43,74,75,76,77,40,41,42,127,128,129,161,162,163],empti:[33,36],github:46,basic:[54,124],magic_quotes_runtim:147,argument:133,present:51,look:[157,132],defin:[0,130],behavior:[82,17],error:[74,11,133,35,36,49,17,124,102,53,163],anchor:65,loop:142,pack:139,file:[122,5,89,61,3,133,6,98,136,8,53,62,125,12,13,14,15,16,17,145,105,106,107,97,59,21,110,18,19,20,64,65,128,69,56,115,159,131,77,147,74,75,76,26,78,127,33,34,35,36,50,38,39,40,41,42,126,63,43,129,90,161,162,163],helper:[88,1,15,134,92,94,95,96,53,54,10,72,143,116,58,107,108,150,152,155,114,153,30,122,36,37,84,85,160,44],slideup:47,tabl:[78,79,133,14,51,106,126,70,161,132],site:[148,50],inform:85,parent:107,inflector:44,develop:9,welcom:[54,87],get_post:36,perform:50,make:[33,85,36],cross:148,same:130,fragment:123,html:[108,36,132],document:[83,139,78,149],http:104,optim:78,driver:[89,31,82,12,69,36,91,110],effect:[47,17],user:[139,99,54,107,59,21,18,19,20,131,43,74,75,76,77,40,41,42,127,128,129,161,162,163],mani:36,php:[74,5,149,127,12,34,69,36,98,159,106,42,97,59,21,43,126,131,133,113],sha1:36,builder:[12,100,157,119],object:[119,58],anim:47,client:102,command:52,thi:[88,1,2,134,37,94,95,96,10,72,143,116,108,150,152,114,153,155,122,50,84,160,44],model:[77,81,68,24,25,131],explan:[53,100,102],comment:133,identifi:124,execut:[85,45],tip:[110,149],"_post":53,toggleclass:47,languag:[88,145,36,3,43],previous:36,web:60,get_dir_file_info:107,add:[3,43,131],valid:[53,36,161,147],guidelin:149,input:[147,36,113],save:53,applic:[141,34,107,115,86,139,140],format:[133,102],world:[52,0],password:[28,147],insert:[147,119,157],do_hash:36,success:[53,136],whitespac:133,manual:[11,124,6,154],server:[113,102,73],necessari:107,cascad:53,output:[0,103],manag:[11,50,140],subhead:83,parenthet:133,"export":78,bonu:110,apc:69,librari:[47,26,54,82,109,105,151,36,4,8,110,111],confirm:163,definit:99,per:133,unit:151,overlai:56,refer:[145,91,6,93,136,95,138,53,99,54,102,56,103,58,156,106,110,148,113,65,151,22,23,69,115,90,4,28,157,120,26,78,79,123,82,50,158,70,45,132],core:[107,36,130,118],previou:[65,22,117],run:[52,151,11,140],usag:[36,78,12,123,69,15,98,156,90,120],step:[3,62,125,12,13,14,15,16,105,106,107,97,59,21,61,19,20,64,128,18,74,75,76,77,127,33,34,35,36,98,38,39,40,41,42,126,63,43,129,131,161,162,163],post:[97,113],mssql:36,session:[106,36,161,110],about:[85,110],column:79,commun:139,page:[65,0,81,144,83,136,60,52,53],cipher:82,modal:47,constructor:[0,107],backup:78,disabl:[65,151,86,11],repair:78,own:[30,31,102,104,118,8,53,111],within:[8,142],encod:120,automat:[159,154],two:56,wrap:26,storag:8,your:[0,61,3,47,104,127,82,98,51,8,53,140,62,102,85,12,13,14,15,16,86,105,106,107,97,59,21,147,18,19,20,64,22,128,75,70,24,77,111,4,118,154,74,30,76,31,78,81,33,34,35,36,50,38,39,40,41,42,126,63,43,129,162,45,131,161,125,163,132],log:[36,32],support:[159,82,149],fast:139,custom:[65,151,2,82,58,110],standard_d:36,start:[119,146],flashdata:110,add_column:36,"function":[88,1,2,133,134,37,94,95,96,10,72,143,116,108,112,150,152,155,114,153,28,121,30,122,36,50,84,160,44],head:83,form:[145,36,25,136,97,96,53,113],forg:[36,79],link:[65,22],translat:53,line:[52,133,36,145],"true":133,bug:32,conclus:7,count:157,"default":[133,0,82,17,97],bugfix:32,access:[110,113],displai:[138,151,45,22,24],limit:157,sampl:145,similar:157,featur:71,constant:[121,133,34,36,17,106,28,19],creat:[145,151,89,31,22,79,142,118,25,136,90,137,102,8,53,70,111],get_inst:137,multibyt:28,flow:141,parser:123,decrypt:82,exist:[51,78],glanc:139,check:[12,97,36],echo:159,encrypt:[107,36,19,4,82],when:8,field:[51,53,116,79,96],other:53,branch:149,test:[151,11],you:12,imag:56,architectur:55,repeat:36,wildcard:104,"class":[145,0,82,47,133,6,138,136,137,8,53,99,102,56,103,58,156,107,110,148,113,65,151,22,23,69,115,90,4,118,157,119,120,26,78,79,123,36,50,158,86,70,45,132],sql:133,trackback:70,smilei:[116,36],markup:65,receiv:70,algorithm:82,directori:[0,10,3,142,36,89,136,140],descript:78,rule:[53,36,104],potenti:36,time:45,escap:[96,147,124],hello:[52,0]}}) \ No newline at end of file diff --git a/sna/user_guide/tutorial/conclusion.html b/sna/user_guide/tutorial/conclusion.html new file mode 100644 index 0000000..d3135d8 --- /dev/null +++ b/sna/user_guide/tutorial/conclusion.html @@ -0,0 +1,516 @@ + + + + + + + + + + Conclusion — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Conclusion

        +

        This tutorial did not cover all of the things you might expect of a +full-fledged content management system, but it introduced you to the +more important topics of routing, writing controllers, and models. We +hope this tutorial gave you an insight into some of CodeIgniter’s basic +design patterns, which you can expand upon.

        +

        Now that you’ve completed this tutorial, we recommend you check out the +rest of the documentation. CodeIgniter is often praised because of its +comprehensive documentation. Use this to your advantage and read the +“Introduction” and “General Topics” sections thoroughly. You should read +the class and helper references when needed.

        +

        Every intermediate PHP programmer should be able to get the hang of +CodeIgniter within a few days.

        +

        If you still have questions about the framework or your own CodeIgniter +code, you can:

        + +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/tutorial/create_news_items.html b/sna/user_guide/tutorial/create_news_items.html new file mode 100644 index 0000000..ec13380 --- /dev/null +++ b/sna/user_guide/tutorial/create_news_items.html @@ -0,0 +1,630 @@ + + + + + + + + + + Create news items — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Tutorial »
        • + +
        • Create news items
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Create news items

        +

        You now know how you can read data from a database using CodeIgniter, but +you haven’t written any information to the database yet. In this section +you’ll expand your news controller and model created earlier to include +this functionality.

        +
        +

        Create a form

        +

        To input data into the database you need to create a form where you can +input the information to be stored. This means you’ll be needing a form +with two fields, one for the title and one for the text. You’ll derive +the slug from our title in the model. Create the new view at +application/views/news/create.php.

        +
        <h2><?php echo $title; ?></h2>
        +
        +<?php echo validation_errors(); ?>
        +
        +<?php echo form_open('news/create'); ?>
        +
        +    <label for="title">Title</label>
        +    <input type="input" name="title" /><br />
        +
        +    <label for="text">Text</label>
        +    <textarea name="text"></textarea><br />
        +
        +    <input type="submit" name="submit" value="Create news item" />
        +
        +</form>
        +
        +
        +

        There are only two things here that probably look unfamiliar to you: the +form_open() function and the validation_errors() function.

        +

        The first function is provided by the form +helper and renders the form element and +adds extra functionality, like adding a hidden CSRF prevention +field. The latter is used to report +errors related to form validation.

        +

        Go back to your news controller. You’re going to do two things here, +check whether the form was submitted and whether the submitted data +passed the validation rules. You’ll use the form +validation library to do this.

        +
        public function create()
        +{
        +    $this->load->helper('form');
        +    $this->load->library('form_validation');
        +
        +    $data['title'] = 'Create a news item';
        +
        +    $this->form_validation->set_rules('title', 'Title', 'required');
        +    $this->form_validation->set_rules('text', 'Text', 'required');
        +
        +    if ($this->form_validation->run() === FALSE)
        +    {
        +        $this->load->view('templates/header', $data);
        +        $this->load->view('news/create');
        +        $this->load->view('templates/footer');
        +
        +    }
        +    else
        +    {
        +        $this->news_model->set_news();
        +        $this->load->view('news/success');
        +    }
        +}
        +
        +
        +

        The code above adds a lot of functionality. The first few lines load the +form helper and the form validation library. After that, rules for the +form validation are set. The set_rules() method takes three arguments; +the name of the input field, the name to be used in error messages, and +the rule. In this case the title and text fields are required.

        +

        CodeIgniter has a powerful form validation library as demonstrated +above. You can read more about this library +here.

        +

        Continuing down, you can see a condition that checks whether the form +validation ran successfully. If it did not, the form is displayed, if it +was submitted and passed all the rules, the model is called. After +this, a view is loaded to display a success message. Create a view at +application/views/news/success.php and write a success message.

        +
        +
        +

        Model

        +

        The only thing that remains is writing a method that writes the data to +the database. You’ll use the Query Builder class to insert the +information and use the input library to get the posted data. Open up +the model created earlier and add the following:

        +
        public function set_news()
        +{
        +    $this->load->helper('url');
        +
        +    $slug = url_title($this->input->post('title'), 'dash', TRUE);
        +
        +    $data = array(
        +        'title' => $this->input->post('title'),
        +        'slug' => $slug,
        +        'text' => $this->input->post('text')
        +    );
        +
        +    return $this->db->insert('news', $data);
        +}
        +
        +
        +

        This new method takes care of inserting the news item into the database. +The third line contains a new function, url_title(). This function - +provided by the URL helper - strips down +the string you pass it, replacing all spaces by dashes (-) and makes +sure everything is in lowercase characters. This leaves you with a nice +slug, perfect for creating URIs.

        +

        Let’s continue with preparing the record that is going to be inserted +later, inside the $data array. Each element corresponds with a column in +the database table created earlier. You might notice a new method here, +namely the post() method from the input +library. This method makes sure the data is +sanitized, protecting you from nasty attacks from others. The input +library is loaded by default. At last, you insert our $data array into +our database.

        +
        +
        +

        Routing

        +

        Before you can start adding news items into your CodeIgniter application +you have to add an extra rule to config/routes.php file. Make sure your +file contains the following. This makes sure CodeIgniter sees ‘create’ +as a method instead of a news item’s slug.

        +
        $route['news/create'] = 'news/create';
        +$route['news/(:any)'] = 'news/view/$1';
        +$route['news'] = 'news';
        +$route['(:any)'] = 'pages/view/$1';
        +$route['default_controller'] = 'pages/view';
        +
        +
        +

        Now point your browser to your local development environment where you +installed CodeIgniter and add index.php/news/create to the URL. +Congratulations, you just created your first CodeIgniter application! +Add some news and check out the different pages you made.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/tutorial/index.html b/sna/user_guide/tutorial/index.html new file mode 100644 index 0000000..3d62627 --- /dev/null +++ b/sna/user_guide/tutorial/index.html @@ -0,0 +1,526 @@ + + + + + + + + + + Tutorial — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        +
          +
        • Docs »
        • + +
        • Tutorial
        • +
        • + +
        • +
          + classic layout +
          +
        +
        +
        +
        + +
        +

        Tutorial

        +

        This tutorial is intended to introduce you to the CodeIgniter framework +and the basic principles of MVC architecture. It will show you how a +basic CodeIgniter application is constructed in step-by-step fashion.

        +

        In this tutorial, you will be creating a basic news application. You +will begin by writing the code that can load static pages. Next, you +will create a news section that reads news items from a database. +Finally, you’ll add a form to create news items in the database.

        +

        This tutorial will primarily focus on:

        +
          +
        • Model-View-Controller basics
        • +
        • Routing basics
        • +
        • Form validation
        • +
        • Performing basic database queries using “Query Builder”
        • +
        +

        The entire tutorial is split up over several pages, each explaining a +small part of the functionality of the CodeIgniter framework. You’ll go +through the following pages:

        +
          +
        • Introduction, this page, which gives you an overview of what to +expect.
        • +
        • Static pages, which will teach you the basics +of controllers, views and routing.
        • +
        • News section, where you’ll start using models +and will be doing some basic database operations.
        • +
        • Create news items, which will introduce +more advanced database operations and form validation.
        • +
        • Conclusion, which will give you some pointers on +further reading and other resources.
        • +
        +

        Enjoy your exploration of the CodeIgniter framework.

        +
        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/tutorial/news_section.html b/sna/user_guide/tutorial/news_section.html new file mode 100644 index 0000000..90115b3 --- /dev/null +++ b/sna/user_guide/tutorial/news_section.html @@ -0,0 +1,686 @@ + + + + + + + + + + News section — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        News section

        +

        In the last section, we went over some basic concepts of the framework +by writing a class that includes static pages. We cleaned up the URI by +adding custom routing rules. Now it’s time to introduce dynamic content +and start using a database.

        +
        +

        Setting up your model

        +

        Instead of writing database operations right in the controller, queries +should be placed in a model, so they can easily be reused later. Models +are the place where you retrieve, insert, and update information in your +database or other data stores. They represent your data.

        +

        Open up the application/models/ directory and create a new file called +News_model.php and add the following code. Make sure you’ve configured +your database properly as described here.

        +
        <?php
        +class News_model extends CI_Model {
        +
        +        public function __construct()
        +        {
        +                $this->load->database();
        +        }
        +}
        +
        +
        +

        This code looks similar to the controller code that was used earlier. It +creates a new model by extending CI_Model and loads the database +library. This will make the database class available through the +$this->db object.

        +

        Before querying the database, a database schema has to be created. +Connect to your database and run the SQL command below (MySQL). +Also add some seed records.

        +
        CREATE TABLE news (
        +        id int(11) NOT NULL AUTO_INCREMENT,
        +        title varchar(128) NOT NULL,
        +        slug varchar(128) NOT NULL,
        +        text text NOT NULL,
        +        PRIMARY KEY (id),
        +        KEY slug (slug)
        +);
        +
        +
        +

        Now that the database and a model have been set up, you’ll need a method +to get all of our posts from our database. To do this, the database +abstraction layer that is included with CodeIgniter — +Query Builder — is used. This makes it +possible to write your ‘queries’ once and make them work on all +supported database systems. Add the +following code to your model.

        +
        public function get_news($slug = FALSE)
        +{
        +        if ($slug === FALSE)
        +        {
        +                $query = $this->db->get('news');
        +                return $query->result_array();
        +        }
        +
        +        $query = $this->db->get_where('news', array('slug' => $slug));
        +        return $query->row_array();
        +}
        +
        +
        +

        With this code you can perform two different queries. You can get all +news records, or get a news item by its slug. You might have +noticed that the $slug variable wasn’t sanitized before running the +query; Query Builder does this for you.

        +
        +
        +

        Display the news

        +

        Now that the queries are written, the model should be tied to the views +that are going to display the news items to the user. This could be done +in our Pages controller created earlier, but for the sake of clarity, +a new News controller is defined. Create the new controller at +application/controllers/News.php.

        +
        <?php
        +class News extends CI_Controller {
        +
        +        public function __construct()
        +        {
        +                parent::__construct();
        +                $this->load->model('news_model');
        +                $this->load->helper('url_helper');
        +        }
        +
        +        public function index()
        +        {
        +                $data['news'] = $this->news_model->get_news();
        +        }
        +
        +        public function view($slug = NULL)
        +        {
        +                $data['news_item'] = $this->news_model->get_news($slug);
        +        }
        +}
        +
        +
        +

        Looking at the code, you may see some similarity with the files we +created earlier. First, the __construct() method: it calls the +constructor of its parent class (CI_Controller) and loads the model, +so it can be used in all other methods in this controller. +It also loads a collection of URL Helper +functions, because we’ll use one of them in a view later.

        +

        Next, there are two methods to view all news items and one for a specific +news item. You can see that the $slug variable is passed to the model’s +method in the second method. The model is using this slug to identify the +news item to be returned.

        +

        Now the data is retrieved by the controller through our model, but +nothing is displayed yet. The next thing to do is passing this data to +the views.

        +
        public function index()
        +{
        +        $data['news'] = $this->news_model->get_news();
        +        $data['title'] = 'News archive';
        +
        +        $this->load->view('templates/header', $data);
        +        $this->load->view('news/index', $data);
        +        $this->load->view('templates/footer');
        +}
        +
        +
        +

        The code above gets all news records from the model and assigns it to a +variable. The value for the title is also assigned to the $data['title'] +element and all data is passed to the views. You now need to create a +view to render the news items. Create application/views/news/index.php +and add the next piece of code.

        +
        <h2><?php echo $title; ?></h2>
        +
        +<?php foreach ($news as $news_item): ?>
        +
        +        <h3><?php echo $news_item['title']; ?></h3>
        +        <div class="main">
        +                <?php echo $news_item['text']; ?>
        +        </div>
        +        <p><a href="<?php echo site_url('news/'.$news_item['slug']); ?>">View article</a></p>
        +
        +<?php endforeach; ?>
        +
        +
        +

        Here, each news item is looped and displayed to the user. You can see we +wrote our template in PHP mixed with HTML. If you prefer to use a template +language, you can use CodeIgniter’s Template +Parser class or a third party parser.

        +

        The news overview page is now done, but a page to display individual +news items is still absent. The model created earlier is made in such +way that it can easily be used for this functionality. You only need to +add some code to the controller and create a new view. Go back to the +News controller and update view() with the following:

        +
        public function view($slug = NULL)
        +{
        +        $data['news_item'] = $this->news_model->get_news($slug);
        +
        +        if (empty($data['news_item']))
        +        {
        +                show_404();
        +        }
        +
        +        $data['title'] = $data['news_item']['title'];
        +
        +        $this->load->view('templates/header', $data);
        +        $this->load->view('news/view', $data);
        +        $this->load->view('templates/footer');
        +}
        +
        +
        +

        Instead of calling the get_news() method without a parameter, the +$slug variable is passed, so it will return the specific news item. +The only things left to do is create the corresponding view at +application/views/news/view.php. Put the following code in this file.

        +
        <?php
        +echo '<h2>'.$news_item['title'].'</h2>';
        +echo $news_item['text'];
        +
        +
        +
        +
        +

        Routing

        +

        Because of the wildcard routing rule created earlier, you need an extra +route to view the controller that you just made. Modify your routing file +(application/config/routes.php) so it looks as follows. +This makes sure the requests reaches the News controller instead of +going directly to the Pages controller. The first line routes URI’s +with a slug to the view() method in the News controller.

        +
        $route['news/(:any)'] = 'news/view/$1';
        +$route['news'] = 'news';
        +$route['(:any)'] = 'pages/view/$1';
        +$route['default_controller'] = 'pages/view';
        +
        +
        +

        Point your browser to your document root, followed by index.php/news and +watch your news page.

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sna/user_guide/tutorial/static_pages.html b/sna/user_guide/tutorial/static_pages.html new file mode 100644 index 0000000..3f74c60 --- /dev/null +++ b/sna/user_guide/tutorial/static_pages.html @@ -0,0 +1,634 @@ + + + + + + + + + + Static pages — CodeIgniter 3.1.4 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        + + + + +
        + + + + + + +
        +
        +
        + +
        +
        +
        + +
        +

        Static pages

        +

        Note: This tutorial assumes you’ve downloaded CodeIgniter and +installed the framework in your +development environment.

        +

        The first thing you’re going to do is set up a controller to handle +static pages. A controller is simply a class that helps delegate work. +It is the glue of your web application.

        +

        For example, when a call is made to:

        +
        +
        +

        We might imagine that there is a controller named “news”. The method +being called on news would be “latest”. The news method’s job could be to +grab 10 news items, and render them on the page. Very often in MVC, +you’ll see URL patterns that match:

        +
        +
        +

        As URL schemes become more complex, this may change. But for now, this +is all we will need to know.

        +

        Create a file at application/controllers/Pages.php with the following +code.

        +
        <?php
        +class Pages extends CI_Controller {
        +
        +        public function view($page = 'home')
        +        {
        +        }
        +}
        +
        +
        +

        You have created a class named Pages, with a view method that accepts +one argument named $page. The Pages class is extending the +CI_Controller class. This means that the new pages class can access the +methods and variables defined in the CI_Controller class +(system/core/Controller.php).

        +

        The controller is what will become the center of every request to +your web application. In very technical CodeIgniter discussions, it may +be referred to as the super object. Like any php class, you refer to +it within your controllers as $this. Referring to $this is how +you will load libraries, views, and generally command the framework.

        +

        Now you’ve created your first method, it’s time to make some basic page +templates. We will be creating two “views” (page templates) that act as +our page footer and header.

        +

        Create the header at application/views/templates/header.php and add +the following code:

        +
        <html>
        +        <head>
        +                <title>CodeIgniter Tutorial</title>
        +        </head>
        +        <body>
        +
        +                <h1><?php echo $title; ?></h1>
        +
        +
        +

        The header contains the basic HTML code that you’ll want to display +before loading the main view, together with a heading. It will also +output the $title variable, which we’ll define later in the controller. +Now, create a footer at application/views/templates/footer.php that +includes the following code:

        +
                        <em>&copy; 2015</em>
        +        </body>
        +</html>
        +
        +
        +
        +

        Adding logic to the controller

        +

        Earlier you set up a controller with a view() method. The method +accepts one parameter, which is the name of the page to be loaded. The +static page templates will be located in the application/views/pages/ +directory.

        +

        In that directory, create two files named home.php and about.php. +Within those files, type some text − anything you’d like − and save them. +If you like to be particularly un-original, try “Hello World!”.

        +

        In order to load those pages, you’ll have to check whether the requested +page actually exists:

        +
        public function view($page = 'home')
        +{
        +        if ( ! file_exists(APPPATH.'views/pages/'.$page.'.php'))
        +        {
        +                // Whoops, we don't have a page for that!
        +                show_404();
        +        }
        +
        +        $data['title'] = ucfirst($page); // Capitalize the first letter
        +
        +        $this->load->view('templates/header', $data);
        +        $this->load->view('pages/'.$page, $data);
        +        $this->load->view('templates/footer', $data);
        +}
        +
        +
        +

        Now, when the page does exist, it is loaded, including the header and +footer, and displayed to the user. If the page doesn’t exist, a “404 +Page not found” error is shown.

        +

        The first line in this method checks whether the page actually exists. +PHP’s native file_exists() function is used to check whether the file +is where it’s expected to be. show_404() is a built-in CodeIgniter +function that renders the default error page.

        +

        In the header template, the $title variable was used to customize the +page title. The value of title is defined in this method, but instead of +assigning the value to a variable, it is assigned to the title element +in the $data array.

        +

        The last thing that has to be done is loading the views in the order +they should be displayed. The second parameter in the view() method is +used to pass values to the view. Each value in the $data array is +assigned to a variable with the name of its key. So the value of +$data['title'] in the controller is equivalent to $title in the +view.

        +
        +
        +

        Routing

        +

        The controller is now functioning! Point your browser to +[your-site-url]index.php/pages/view to see your page. When you visit +index.php/pages/view/about you’ll see the about page, again including +the header and footer.

        +

        Using custom routing rules, you have the power to map any URI to any +controller and method, and break free from the normal convention: +http://example.com/[controller-class]/[controller-method]/[arguments]

        +

        Let’s do that. Open the routing file located at +application/config/routes.php and add the following two lines. +Remove all other code that sets any element in the $route array.

        +
        $route['default_controller'] = 'pages/view';
        +$route['(:any)'] = 'pages/view/$1';
        +
        +
        +

        CodeIgniter reads its routing rules from top to bottom and routes the +request to the first matching rule. Each rule is a regular expression +(left-side) mapped to a controller and method name separated by slashes +(right-side). When a request comes in, CodeIgniter looks for the first +match, and calls the appropriate controller and method, possibly with +arguments.

        +

        More information about routing can be found in the URI Routing +documentation.

        +

        Here, the second rule in the $routes array matches any request +using the wildcard string (:any). and passes the parameter to the +view() method of the Pages class.

        +

        Now visit index.php/about. Did it get routed correctly to the view() +method in the pages controller? Awesome!

        +
        +
        + + +
        +
        + + + + +
        + +
        +

        + © Copyright 2014 - 2017, British Columbia Institute of Technology. + Last updated on Mar 20, 2017. +

        +
        + + Built with Sphinx using a theme provided by Read the Docs. + +
        +
        +
        + +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file