/system/libraries/Cart.php

.htaccess
LICENSE
PHPMailer
    .gitignore
    .scrutinizer.yml
    .travis.yml
    LICENSE
    PHPMailerAutoload.php
    README.md
    VERSION
    changelog.md
    class.phpmailer.php
    class.pop3.php
    class.smtp.php
    composer.json
    docs
        Callback_function_notes.txt
        DomainKeys_notes.txt
        Note_for_SMTP_debugging.txt
        extending.html
        faq.html
        generatedocs.sh
        pop3_article.txt
    examples
        code_generator.phps
        contents.html
        contentsutf8.html
        exceptions.phps
        gmail.phps
        images
            phpmailer.png
            phpmailer_mini.png
        index.html
        mail.phps
        mailing_list.phps
        pop_before_smtp.phps
        scripts
            XRegExp.js
            shAutoloader.js
            shBrushPhp.js
            shCore.js
            shLegacy.js
        send_file_upload.phps
        sendmail.phps
        smtp.phps
        smtp_check.phps
        smtp_no_auth.phps
        ssl_options.phps
        styles
            shCore.css
            shCoreDefault.css
            shCoreDjango.css
            shCoreEclipse.css
            shCoreEmacs.css
            shCoreFadeToGrey.css
            shCoreMDUltra.css
            shCoreMidnight.css
            shCoreRDark.css
            shThemeAppleScript.css
            shThemeDefault.css
            shThemeDjango.css
            shThemeEclipse.css
            shThemeEmacs.css
            shThemeFadeToGrey.css
            shThemeMDUltra.css
            shThemeMidnight.css
            shThemeRDark.css
            shThemeVisualStudio.css
            wrapping.png
    extras
        EasyPeasyICS.php
        README.md
        htmlfilter.php
        ntlm_sasl_client.php
    language
        phpmailer.lang-am.php
        phpmailer.lang-ar.php
        phpmailer.lang-az.php
        phpmailer.lang-be.php
        phpmailer.lang-bg.php
        phpmailer.lang-br.php
        phpmailer.lang-ca.php
        phpmailer.lang-ch.php
        phpmailer.lang-cz.php
        phpmailer.lang-de.php
        phpmailer.lang-dk.php
        phpmailer.lang-el.php
        phpmailer.lang-eo.php
        phpmailer.lang-es.php
        phpmailer.lang-et.php
        phpmailer.lang-fa.php
        phpmailer.lang-fi.php
        phpmailer.lang-fo.php
        phpmailer.lang-fr.php
        phpmailer.lang-gl.php
        phpmailer.lang-he.php
        phpmailer.lang-hr.php
        phpmailer.lang-hu.php
        phpmailer.lang-id.php
        phpmailer.lang-it.php
        phpmailer.lang-ja.php
        phpmailer.lang-ka.php
        phpmailer.lang-ko.php
        phpmailer.lang-lt.php
        phpmailer.lang-lv.php
        phpmailer.lang-ms.php
        phpmailer.lang-nl.php
        phpmailer.lang-no.php
        phpmailer.lang-pl.php
        phpmailer.lang-pt.php
        phpmailer.lang-ro.php
        phpmailer.lang-ru.php
        phpmailer.lang-se.php
        phpmailer.lang-sk.php
        phpmailer.lang-sl.php
        phpmailer.lang-sr.php
        phpmailer.lang-tr.php
        phpmailer.lang-uk.php
        phpmailer.lang-vi.php
        phpmailer.lang-zh.php
        phpmailer.lang-zh_cn.php
    test
        bootstrap.php
        fakepopserver.sh
        fakesendmail.sh
        phpmailerLangTest.php
        phpmailerTest.php
        runfakepopserver.sh
        test_callback.php
        testbootstrap-dist.php
    travis.phpunit.xml.dist
application
    .htaccess
    cache
        .htaccess
        index.html
    config
        autoload.php
        config.php
        constants.php
        database.php
        doctypes.php
        foreign_chars.php
        hooks.php
        index.html
        memcached.php
        migration.php
        mimes.php
        profiler.php
        routes.php
        smileys.php
        user_agents.php
    controllers
        Ioattachment.php
        Ioexport.php
        Iogroups.php
        Ioimport.php
        Iomessages.php
        Iosendmanager.php
        Iosends.php
        Iosignatures.php
        Iotimetable.php
        Mailing.php
        Welcome.php
        index.html
    core
        index.html
    helpers
        index.html
    hooks
        index.html
    index.html
    language
        arabic
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        azerbaijani
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        bulgarian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        catalan
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        czech
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        dutch
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        english
            index.html
            mailerattach_lang.php
            mailerexport_lang.php
            mailergroup_lang.php
            mailerimport_lang.php
            mailermailing_lang.php
            mailermain_lang.php
            mailermsg_lang.php
            mailersendmanager_lang.php
            mailersends_lang.php
            mailersignatures_lang.php
            mailertimetable_lang.php
        filipino
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        french
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        german
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        gujarati
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        hindi
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        hungarian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        index.html
        indonesian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        italian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        japanese
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        khmer
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        korean
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        latvian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        norwegian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        persian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        polish
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            mailerattach_lang.php
            mailerexport_lang.php
            mailergroup_lang.php
            mailerimport_lang.php
            mailerinstall_lang.php
            mailermailing_lang.php
            mailermain_lang.php
            mailermsg_lang.php
            mailersendmanager_lang.php
            mailersends_lang.php
            mailersignatures_lang.php
            mailertimetable_lang.php
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        portuguese
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        portuguese-brazilian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        romanian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        russian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        simplified-chinese
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        slovak
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        spanish
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        swedish
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        tamil
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        thai
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        traditional-chinese
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        turkish
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        ukrainian
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        urdu
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        vietnamese
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
    libraries
        index.html
    logs
        index.html
    models
        Attachment_model.php
        Export_model.php
        Groups_model.php
        Import_model.php
        Mailing_model.php
        Messages_model.php
        Sendmanager_model.php
        Sends_model.php
        Signatures_model.php
        System_model.php
        Timetable_model.php
        Track_model.php
        User_model.php
        index.html
    third_party
        index.html
    views
        about.php
        aboutrights.php
        addnewuser.php
        attachment
            attachment.php
        changepassword.php
        changeprofiledata.php
        errors
            cli
                error_404.php
                error_db.php
                error_exception.php
                error_general.php
                error_php.php
                index.html
            html
                error_404.php
                error_db.php
                error_exception.php
                error_general.php
                error_php.php
                index.html
            index.html
        export
            group.php
        foot.php
        footpop.php
        generatenewpassword.php
        generatepassword.php
        groups
            addemail.php
            edit.php
            editemail.php
            excaddemail.php
            exclusion.php
            export.php
            import.php
            index.php
            viewgroup.php
        head.php
        headpop.php
        import
            group.php
            groupimport.php
        index.html
        licensefail.php
        login.php
        logindenied.php
        logs.php
        mainpage.php
        messages
            editmessage.php
            empty.php
            index.php
            reportmessage.php
            statmessage.php
        norights.php
        options.php
        sendmanager
            sender.php
        sends
            edit.php
            index.php
        signatures
            edit.php
            index.php
        team.php
        timetable
            edit.php
            index.php
        welcome_message.php
arial.ttf
attachment
captcha
    sys.txt
favicon.ico
import
index.php
install.php
library
    add.png
    ckeditor
        CHANGES.md
        LICENSE.md
        README.md
        adapters
            jquery.js
        build-config.js
        ckeditor.js
        config.js
        contents.css
        lang
            af.js
            ar.js
            bg.js
            bn.js
            bs.js
            ca.js
            cs.js
            cy.js
            da.js
            de.js
            el.js
            en-au.js
            en-ca.js
            en-gb.js
            en.js
            eo.js
            es.js
            et.js
            eu.js
            fa.js
            fi.js
            fo.js
            fr-ca.js
            fr.js
            gl.js
            gu.js
            he.js
            hi.js
            hr.js
            hu.js
            id.js
            is.js
            it.js
            ja.js
            ka.js
            km.js
            ko.js
            ku.js
            lt.js
            lv.js
            mk.js
            mn.js
            ms.js
            nb.js
            nl.js
            no.js
            pl.js
            pt-br.js
            pt.js
            ro.js
            ru.js
            si.js
            sk.js
            sl.js
            sq.js
            sr-latn.js
            sr.js
            sv.js
            th.js
            tr.js
            tt.js
            ug.js
            uk.js
            vi.js
            zh-cn.js
            zh.js
        plugins
            a11yhelp
                dialogs
                    a11yhelp.js
                    lang
                        _translationstatus.txt
                        af.js
                        ar.js
                        bg.js
                        ca.js
                        cs.js
                        cy.js
                        da.js
                        de.js
                        el.js
                        en-gb.js
                        en.js
                        eo.js
                        es.js
                        et.js
                        fa.js
                        fi.js
                        fo.js
                        fr-ca.js
                        fr.js
                        gl.js
                        gu.js
                        he.js
                        hi.js
                        hr.js
                        hu.js
                        id.js
                        it.js
                        ja.js
                        km.js
                        ko.js
                        ku.js
                        lt.js
                        lv.js
                        mk.js
                        mn.js
                        nb.js
                        nl.js
                        no.js
                        pl.js
                        pt-br.js
                        pt.js
                        ro.js
                        ru.js
                        si.js
                        sk.js
                        sl.js
                        sq.js
                        sr-latn.js
                        sr.js
                        sv.js
                        th.js
                        tr.js
                        tt.js
                        ug.js
                        uk.js
                        vi.js
                        zh-cn.js
                        zh.js
            about
                dialogs
                    about.js
                    hidpi
                        logo_ckeditor.png
                    logo_ckeditor.png
            clipboard
                dialogs
                    paste.js
            colordialog
                dialogs
                    colordialog.js
            dialog
                dialogDefinition.js
            div
                dialogs
                    div.js
            find
                dialogs
                    find.js
            flash
                dialogs
                    flash.js
                images
                    placeholder.png
            forms
                dialogs
                    button.js
                    checkbox.js
                    form.js
                    hiddenfield.js
                    radio.js
                    select.js
                    textarea.js
                    textfield.js
                images
                    hiddenfield.gif
            icons.png
            icons_hidpi.png
            iframe
                dialogs
                    iframe.js
                images
                    placeholder.png
            image
                dialogs
                    image.js
                images
                    noimage.png
            link
                dialogs
                    anchor.js
                    link.js
                images
                    anchor.png
                    hidpi
                        anchor.png
            liststyle
                dialogs
                    liststyle.js
            magicline
                images
                    hidpi
                        icon-rtl.png
                        icon.png
                    icon-rtl.png
                    icon.png
            pagebreak
                images
                    pagebreak.gif
            pastefromword
                filter
                    default.js
            preview
                preview.html
            scayt
                LICENSE.md
                README.md
                dialogs
                    options.js
                    toolbar.css
            showblocks
                images
                    block_address.png
                    block_blockquote.png
                    block_div.png
                    block_h1.png
                    block_h2.png
                    block_h3.png
                    block_h4.png
                    block_h5.png
                    block_h6.png
                    block_p.png
                    block_pre.png
            smiley
                dialogs
                    smiley.js
                images
                    angel_smile.gif
                    angel_smile.png
                    angry_smile.gif
                    angry_smile.png
                    broken_heart.gif
                    broken_heart.png
                    confused_smile.gif
                    confused_smile.png
                    cry_smile.gif
                    cry_smile.png
                    devil_smile.gif
                    devil_smile.png
                    embaressed_smile.gif
                    embarrassed_smile.gif
                    embarrassed_smile.png
                    envelope.gif
                    envelope.png
                    heart.gif
                    heart.png
                    kiss.gif
                    kiss.png
                    lightbulb.gif
                    lightbulb.png
                    omg_smile.gif
                    omg_smile.png
                    regular_smile.gif
                    regular_smile.png
                    sad_smile.gif
                    sad_smile.png
                    shades_smile.gif
                    shades_smile.png
                    teeth_smile.gif
                    teeth_smile.png
                    thumbs_down.gif
                    thumbs_down.png
                    thumbs_up.gif
                    thumbs_up.png
                    tongue_smile.gif
                    tongue_smile.png
                    tounge_smile.gif
                    whatchutalkingabout_smile.gif
                    whatchutalkingabout_smile.png
                    wink_smile.gif
                    wink_smile.png
            specialchar
                dialogs
                    lang
                        _translationstatus.txt
                        af.js
                        ar.js
                        bg.js
                        ca.js
                        cs.js
                        cy.js
                        da.js
                        de.js
                        el.js
                        en-gb.js
                        en.js
                        eo.js
                        es.js
                        et.js
                        fa.js
                        fi.js
                        fr-ca.js
                        fr.js
                        gl.js
                        he.js
                        hr.js
                        hu.js
                        id.js
                        it.js
                        ja.js
                        km.js
                        ko.js
                        ku.js
                        lt.js
                        lv.js
                        nb.js
                        nl.js
                        no.js
                        pl.js
                        pt-br.js
                        pt.js
                        ru.js
                        si.js
                        sk.js
                        sl.js
                        sq.js
                        sv.js
                        th.js
                        tr.js
                        tt.js
                        ug.js
                        uk.js
                        vi.js
                        zh-cn.js
                        zh.js
                    specialchar.js
            strinsert
                plugin.js
            table
                dialogs
                    table.js
            tabletools
                dialogs
                    tableCell.js
            templates
                dialogs
                    templates.css
                    templates.js
                templates
                    default.js
                    images
                        template1.gif
                        template2.gif
                        template3.gif
            wsc
                LICENSE.md
                README.md
                dialogs
                    ciframe.html
                    tmpFrameset.html
                    wsc.css
                    wsc.js
                    wsc_ie.js
        samples
            css
                samples.css
            img
                github-top.png
                header-bg.png
                header-separator.png
                logo.png
                navigation-tip.png
            index.html
            js
                sample.js
                sf.js
            old
                ajax.html
                api.html
                appendto.html
                assets
                    inlineall
                        logo.png
                    outputxhtml
                        outputxhtml.css
                    posteddata.php
                    sample.jpg
                    uilanguages
                        languages.js
                datafiltering.html
                dialog
                    assets
                        my_dialog.js
                    dialog.html
                divreplace.html
                enterkey
                    enterkey.html
                htmlwriter
                    assets
                        outputforflash
                            outputforflash.fla
                            outputforflash.swf
                            swfobject.js
                    outputforflash.html
                    outputhtml.html
                index.html
                inlineall.html
                inlinebycode.html
                inlinetextarea.html
                jquery.html
                magicline
                    magicline.html
                readonly.html
                replacebyclass.html
                replacebycode.html
                sample.css
                sample.js
                sample_posteddata.php
                tabindex.html
                toolbar
                    toolbar.html
                uicolor.html
                uilanguages.html
                wysiwygarea
                    fullpage.html
                xhtmlstyle.html
            toolbarconfigurator
                css
                    fontello.css
                font
                    LICENSE.txt
                    config.json
                    fontello.eot
                    fontello.svg
                    fontello.ttf
                    fontello.woff
                index.html
                js
                    abstracttoolbarmodifier.js
                    fulltoolbareditor.js
                    toolbarmodifier.js
                    toolbartextmodifier.js
                lib
                    codemirror
                        LICENSE
                        codemirror.css
                        codemirror.js
                        javascript.js
                        neo.css
                        show-hint.css
                        show-hint.js
        skins
            moono
                dialog.css
                dialog_ie.css
                dialog_ie7.css
                dialog_ie8.css
                dialog_iequirks.css
                editor.css
                editor_gecko.css
                editor_ie.css
                editor_ie7.css
                editor_ie8.css
                editor_iequirks.css
                icons.png
                icons_hidpi.png
                images
                    arrow.png
                    close.png
                    hidpi
                        close.png
                        lock-open.png
                        lock.png
                        refresh.png
                    lock-open.png
                    lock.png
                    refresh.png
                    spinner.gif
                readme.md
            office2013
                dialog.css
                editor.css
                icons.png
                icons_hidpi.png
                images
                    arrow.png
                    close.png
                    hidpi
                        close.png
                        lock-open.png
                        lock.png
                        refresh.png
                    lock-open.png
                    lock.png
                    refresh.png
                skin.js
        styles.js
    crop
        Canvas.php
        Coordinate.php
        Exception.php
        Font
            GDF.php
            PS.php
            TTF.php
        Image.php
        Mapper
            BMP.php
            GD.php
            GD2.php
            GIF.php
            JPEG.php
            PNG.php
            TGA.php
        MapperFactory.php
        Operation
            AddNoise.php
            ApplyConvolution.php
            ApplyFilter.php
            ApplyMask.php
            AsGrayscale.php
            AsNegative.php
            AutoCrop.php
            CopyChannelsPalette.php
            CopyChannelsTrueColor.php
            CorrectGamma.php
            Crop.php
            Flip.php
            GetMask.php
            Merge.php
            Mirror.php
            Resize.php
            ResizeCanvas.php
            Rotate.php
            RoundCorners.php
            Unsharp.php
        OperationFactory.php
        PaletteImage.php
        README
        TrueColorImage.php
        VERSION
        WideImage.php
        gpl.txt
        lgpl.txt
        vendor
            de77
                BMP.php
                TGA.php
    datetimepicker-master
        .gitignore
        MIT-LICENSE.txt
        README.md
        bower.json
        datetimepicker.jquery.json
        index.html
        jquery.datetimepicker.css
        jquery.datetimepicker.js
        jquery.js
        package.json
        screen
            1.png
            2.png
            3.1.png
            3.png
            4.png
            5.png
            6.png
    delete.png
    edit.png
    emailadd.png
    emailedit.png
    export.png
    filemanager
        LICENSE.TXT
        README.md
        changelog.txt
        filemanager
            ajax_calls.php
            config
                .htaccess
                config.php
            css
                style.css
            dialog.php
            execute.php
            force_download.php
            img
                clipboard_apply.png
                clipboard_clear.png
                copy.png
                cut.png
                date.png
                dimension.png
                down.png
                download.png
                duplicate.png
                edit_img.png
                file_edit.png
                glyphicons-halflings-white.png
                glyphicons-halflings.png
                ico
                    ac3.jpg
                    accdb.jpg
                    ade.jpg
                    adp.jpg
                    ai.jpg
                    aiff.jpg
                    avi.jpg
                    bmp.jpg
                    css.jpg
                    csv.jpg
                    default.jpg
                    dmg.jpg
                    doc.jpg
                    docx.jpg
                    favicon.ico
                    fla.jpg
                    flv.jpg
                    folder.png
                    folder_back.png
                    gif.jpg
                    gz.jpg
                    html.jpg
                    iso.jpg
                    jpeg.jpg
                    jpg.jpg
                    log.jpg
                    m4a.jpg
                    mdb.jpg
                    mid.jpg
                    mov.jpg
                    mp3.jpg
                    mp4.jpg
                    mpeg.jpg
                    mpg.jpg
                    odb.jpg
                    odf.jpg
                    odg.jpg
                    odp.jpg
                    ods.jpg
                    odt.jpg
                    ogg.jpg
                    otg.jpg
                    otp.jpg
                    ots.jpg
                    ott.jpg
                    pdf.jpg
                    png.jpg
                    ppt.jpg
                    pptx.jpg
                    psd.jpg
                    rar.jpg
                    rtf.jpg
                    sql.jpg
                    svg.jpg
                    tar.jpg
                    tiff.jpg
                    txt.jpg
                    wav.jpg
                    webm.jpg
                    wma.jpg
                    xhtml.jpg
                    xls.jpg
                    xlsx.jpg
                    xml.jpg
                    zip.jpg
                ico_dark
                    ac3.jpg
                    accdb.jpg
                    ade.jpg
                    adp.jpg
                    ai.jpg
                    aiff.jpg
                    avi.jpg
                    bmp.jpg
                    css.jpg
                    csv.jpg
                    default.jpg
                    dmg.jpg
                    doc.jpg
                    docx.jpg
                    favicon.ico
                    fla.jpg
                    flv.jpg
                    folder.png
                    folder_back.png
                    gif.jpg
                    gz.jpg
                    html.jpg
                    iso.jpg
                    jpeg.jpg
                    jpg.jpg
                    log.jpg
                    m4a.jpg
                    mdb.jpg
                    mid.jpg
                    mov.jpg
                    mp3.jpg
                    mp4.jpg
                    mpeg.jpg
                    mpg.jpg
                    odb.jpg
                    odf.jpg
                    odg.jpg
                    odp.jpg
                    ods.jpg
                    odt.jpg
                    ogg.jpg
                    otg.jpg
                    otp.jpg
                    ots.jpg
                    ott.jpg
                    pdf.jpg
                    png.jpg
                    ppt.jpg
                    pptx.jpg
                    psd.jpg
                    rar.jpg
                    rtf.jpg
                    sql.jpg
                    svg.jpg
                    tar.jpg
                    tiff.jpg
                    txt.jpg
                    wav.jpg
                    webm.jpg
                    wma.jpg
                    xhtml.jpg
                    xls.jpg
                    xlsx.jpg
                    xml.jpg
                    zip.jpg
                info.png
                key.png
                label.png
                loading.gif
                logo.png
                preview.png
                processing.gif
                rename.png
                size.png
                sort.png
                storing_animation.gif
                up.png
                upload.png
                url.png
                zip.png
            include
                Response.php
                mime_type_lib.php
                php_image_magician.php
                utils.php
            js
                ViewerJS
                    AGPL-3.0.txt
                    ODFViewerPlugin.css
                    ODFViewerPlugin.js
                    PDFViewerPlugin.css
                    PDFViewerPlugin.js
                    PluginLoader.js
                    compatibility.js
                    example.local.css
                    images
                        kogmbh.png
                        nlnet.png
                        texture.png
                        toolbarButton-download.png
                        toolbarButton-fullscreen.png
                        toolbarButton-menuArrows.png
                        toolbarButton-pageDown.png
                        toolbarButton-pageUp.png
                        toolbarButton-presentation.png
                        toolbarButton-zoomIn.png
                        toolbarButton-zoomOut.png
                    index.html
                    local.css
                    pdf.js
                    pdf.worker.js
                    pdfjsversion.js
                    text_layer_builder.js
                    ui_utils.js
                    viewer.css
                    viewer.js
                    webodf.js
                ZeroClipboard.swf
                include.js
                jPlayer
                    MIT-LICENSE.txt
                    README.md
                    actionscript
                        Jplayer.as
                        Jplayer.fla
                        happyworm
                            jPlayer
                                ConnectManager.as
                                JplayerEvent.as
                                JplayerMp3.as
                                JplayerMp4.as
                                JplayerRtmp.as
                                JplayerStatus.as
                                TraceOut.as
                    add-on
                        jplayer.playlist.js
                        jquery.jplayer.inspector.js
                    jplayer.jquery.json
                    jquery.jplayer
                        Jplayer.swf
                        jquery.jplayer.js
                    package.json
                    popcorn
                        player
                            popcorn.jplayer.js
                    skin
                        blue.monday
                            jplayer.blue.monday.css
                            jplayer.blue.monday.jpg
                            jplayer.blue.monday.seeking.gif
                            jplayer.blue.monday.video.play.png
                            skin.handlebars
                        pink.flag
                            jplayer.pink.flag.css
                            jplayer.pink.flag.jpg
                            jplayer.pink.flag.seeking.gif
                            jplayer.pink.flag.video.play.png
                modernizr.custom.js
                plugins.js
            lang
                az_AZ.php
                bg_BG.php
                ca.php
                cs.php
                da.php
                de.php
                el_GR.php
                en_EN.php
                es.php
                fa.php
                fr_FR.php
                he_IL.php
                hr.php
                hu_HU.php
                id.php
                it.php
                ja.php
                languages.php
                lt.php
                mn_MN.php
                nb_NO.php
                nl.php
                pl.php
                pt_BR.php
                pt_PT.php
                ru.php
                sk.php
                sl.php
                sv_SE.php
                tr_TR.php
                uk_UA.php
                vi.php
                zh_CN.php
            plugin.min.js
            upload.php
            uploader
                index.php
                jupload.php
                success.jpg
                success.php
                wjhk.jupload.jar
        source
            Chrysanthemum.jpg
            source.txt
        thumbs
            Chrysanthemum.jpg
            thumbs.txt
        tinymce
            plugins
                responsivefilemanager
                    img
                        insertfile.gif
                    plugin.min.js
    habout.png
    haccount.png
    haccountedit.png
    hcopyright.png
    hdraft.png
    heditmessage.png
    hedittime.png
    hemailadd.png
    hemailedit.png
    hexclusion.png
    hexport.png
    hgroup.png
    hgroupedit.png
    himport.png
    hlogin.png
    hlogs.png
    hmainpage.png
    hmessage.png
    hnewmessage.png
    hoptions.png
    hpassword.png
    hprofile.png
    hreport.png
    hsend.png
    hsign.png
    hsignedit.png
    hstats.png
    htime.png
    huseradd.png
    husers.png
    hviewgroup.png
    import.png
    index.html
    jqsimplemenu
        css
            jqsimplemenu.css
        images
            darrow.png
            rarrow.png
        index.html
        js
            jqsimplemenu.js
            jquery-1.4.4.min.js
    jquery-autocomplete
        changelog.txt
        demo
            bg.gif
            emails.php
            emails.phps
            images
                Amsterdam Van-Gogh Museum.jpg
                Amsterdam.jpg
                Antwerpen Rubenshaus.jpg
                Antwerpen.jpg
                Appenzell.jpg
                Arnhem Historisches Museum.jpg
                Bled.jpg
                Bled_Die Burg von Bled.jpg
                Bogojina_Die Pfarrkirche.jpg
                BolognaBasilicadiSanPetronio.jpg
                BolognaFontanadelNettuno.jpg
                BolognaPiazzaMaggiore.jpg
                Bolsward Martinikerk.jpg
                Bolsward Stadhuis.jpg
                Bolsward.jpg
                BordeauxND.jpg
                BordeauxPlaceB.jpg
                BotanischerGartenZuerich.jpg
                Bouillon.jpg
                Gent Hotel de Ville2.jpg
                Gent.jpg
                GenuaStrand.jpg
                GenuabeiNacht.jpg
                Giessbachfaelle Brienz.jpg
                Giethoorn.jpg
                Gnesen.jpg
                Gornij Grad_KATHEDRALE.jpg
                Gossensass.jpg
                Grad_Burg Grad2.jpg
                GrandDixence.jpg
                GrenoblePanorama.jpg
                Groningen.jpg
                GrottenvonReclere.jpg
                Guebwiller.jpg
                Kamnik_Die Franziskaner Bibliothek.jpg
                Karlsbad Muehlbrunnkolonnade.jpg
                Kazimierz.jpg
                KirchbergAltesRathaus1.jpg
                KlagenfurtDom.jpg
                KleineMeerjungfreu.jpg
                LazienkiparkWarschau.jpg
                LeHavreHafen.jpg
                LeMans.jpg
                Lednice.jpg
                Leeuwarden Fries Museum.jpg
                Leeuwarden.jpg
                Lelystad.jpg
                Lemmer.jpg
                Leper Halles aux draps.jpg
                Leuven Museum fuer Kirchenkunst.jpg
                Leuven.jpg
                Luxemburg.jpg
                LuzernAltstadt.jpg
                LuzernPicassoMuseum.jpg
                Lyon.jpg
                Maastricht Onze Lieve Vrou...jpg
                Maastricht St Servaasbasiliek.jpg
                Maastricht Walmuur.jpg
                Maastricht.jpg
                MagiatalMaggia.jpg
                Mailand3.jpg
                Metlika_Bela Krajina Museum.jpg
                MilanoCastelloSforzesco.jpg
                MilanoDom.jpg
                MilazzoBurg.jpg
                Novo Mesto_Das Museum.jpg
                ObervellachBurgFalkenstein.jpg
                OdenseeAndersen.jpg
                Olimje_Kirche und Apotheke in Olimje.jpg
                Olomouc.jpg
                OlympischesMuseumLausanne.jpg
                OrleansMaisonJeannedArc.jpg
                OrleansParcFloraldelaSource.jpg
                OstiaAntica.jpg
                Ostrow Tumski.jpg
                PoertschachSchlossLeonstain.jpg
                Portoroz.jpg
                Posen.jpg
                Postojna.jpg
                Prag Altstaedter Ring.jpg
                Prag Waldsteinpalais.jpg
                RouenNotreDame.jpg
                Salzbergwerk Bex.jpg
                SalzbergwerkWieliczka.jpg
                SalzburgFestungHohensalzburg.jpg
                SalzburgResidenz.jpg
                WienMuseumsQuartier.jpg
                WienMusikverein.jpg
                WienRiesenrad.jpg
                WienRingstrasse.jpg
            images.php
            index.html
            indicator.gif
            json.html
            localdata.js
            main.css
            search.php
            search.phps
        jquery.autocomplete.css
        jquery.autocomplete.js
        jquery.autocomplete.min.js
        jquery.autocomplete.pack.js
        lib
            jquery.ajaxQueue.js
            jquery.bgiframe.min.js
            jquery.js
            thickbox-compressed.js
            thickbox.css
        todo
    jquery-ui
        external
            jquery
                jquery.js
        images
            ui-bg_diagonals-thick_18_b81900_40x40.png
            ui-bg_diagonals-thick_20_666666_40x40.png
            ui-bg_flat_0_aaaaaa_40x100.png
            ui-bg_flat_10_000000_40x100.png
            ui-bg_flat_55_fbec88_40x100.png
            ui-bg_flat_75_ffffff_40x100.png
            ui-bg_glass_100_f6f6f6_1x400.png
            ui-bg_glass_100_fdf5ce_1x400.png
            ui-bg_glass_55_fbf9ee_1x400.png
            ui-bg_glass_65_ffffff_1x400.png
            ui-bg_glass_75_d0e5f5_1x400.png
            ui-bg_glass_75_dadada_1x400.png
            ui-bg_glass_75_e6e6e6_1x400.png
            ui-bg_glass_85_dfeffc_1x400.png
            ui-bg_glass_95_fef1ec_1x400.png
            ui-bg_gloss-wave_35_f6a828_500x100.png
            ui-bg_gloss-wave_55_5c9ccc_500x100.png
            ui-bg_highlight-soft_100_eeeeee_1x100.png
            ui-bg_highlight-soft_75_cccccc_1x100.png
            ui-bg_highlight-soft_75_ffe45c_1x100.png
            ui-bg_inset-hard_100_f5f8f9_1x100.png
            ui-bg_inset-hard_100_fcfdfd_1x100.png
            ui-icons_217bc0_256x240.png
            ui-icons_222222_256x240.png
            ui-icons_228ef1_256x240.png
            ui-icons_2e83ff_256x240.png
            ui-icons_454545_256x240.png
            ui-icons_469bdd_256x240.png
            ui-icons_6da8d5_256x240.png
            ui-icons_888888_256x240.png
            ui-icons_cd0a0a_256x240.png
            ui-icons_d8e7f3_256x240.png
            ui-icons_ef8c08_256x240.png
            ui-icons_f9bd01_256x240.png
            ui-icons_ffd27a_256x240.png
            ui-icons_ffffff_256x240.png
        index.html
        jquery-ui.css
        jquery-ui.js
        jquery-ui.min.css
        jquery-ui.min.js
        jquery-ui.structure.css
        jquery-ui.structure.min.css
        jquery-ui.theme.css
        jquery-ui.theme.min.css
    jquery-ui-sliderAccess.js
    jquery-ui-timepicker-addon.css
    jquery-ui-timepicker-addon.js
    jquery-ui.css
    jquery-ui.min.js
    jquery.min.js
    jscolor
        arrow.gif
        cross.gif
        demo.html
        hs.png
        hv.png
        jscolor.js
    mailIcon.ico
    mailIcon.png
    nodelete.png
    notlogin.png
    report.png
    stats.png
    style.css
    time.png
    user.png
    useradd.png
    view
        bg.png
        bgtop.png
        top1.png
        top2.png
        top3.png
    viewgroup.png
smtpcheck.php
system
    .htaccess
    core
        Benchmark.php
        CodeIgniter.php
        Common.php
        Config.php
        Controller.php
        Exceptions.php
        Hooks.php
        Input.php
        Lang.php
        Loader.php
        Log.php
        Model.php
        Output.php
        Router.php
        Security.php
        URI.php
        Utf8.php
        compat
            hash.php
            index.html
            mbstring.php
            password.php
            standard.php
        index.html
    database
        DB.php
        DB_cache.php
        DB_driver.php
        DB_forge.php
        DB_query_builder.php
        DB_result.php
        DB_utility.php
        drivers
            cubrid
                cubrid_driver.php
                cubrid_forge.php
                cubrid_result.php
                cubrid_utility.php
                index.html
            ibase
                ibase_driver.php
                ibase_forge.php
                ibase_result.php
                ibase_utility.php
                index.html
            index.html
            mssql
                index.html
                mssql_driver.php
                mssql_forge.php
                mssql_result.php
                mssql_utility.php
            mysql
                index.html
                mysql_driver.php
                mysql_forge.php
                mysql_result.php
                mysql_utility.php
            mysqli
                index.html
                mysqli_driver.php
                mysqli_forge.php
                mysqli_result.php
                mysqli_utility.php
            oci8
                index.html
                oci8_driver.php
                oci8_forge.php
                oci8_result.php
                oci8_utility.php
            odbc
                index.html
                odbc_driver.php
                odbc_forge.php
                odbc_result.php
                odbc_utility.php
            pdo
                index.html
                pdo_driver.php
                pdo_forge.php
                pdo_result.php
                pdo_utility.php
                subdrivers
                    index.html
                    pdo_4d_driver.php
                    pdo_4d_forge.php
                    pdo_cubrid_driver.php
                    pdo_cubrid_forge.php
                    pdo_dblib_driver.php
                    pdo_dblib_forge.php
                    pdo_firebird_driver.php
                    pdo_firebird_forge.php
                    pdo_ibm_driver.php
                    pdo_ibm_forge.php
                    pdo_informix_driver.php
                    pdo_informix_forge.php
                    pdo_mysql_driver.php
                    pdo_mysql_forge.php
                    pdo_oci_driver.php
                    pdo_oci_forge.php
                    pdo_odbc_driver.php
                    pdo_odbc_forge.php
                    pdo_pgsql_driver.php
                    pdo_pgsql_forge.php
                    pdo_sqlite_driver.php
                    pdo_sqlite_forge.php
                    pdo_sqlsrv_driver.php
                    pdo_sqlsrv_forge.php
            postgre
                index.html
                postgre_driver.php
                postgre_forge.php
                postgre_result.php
                postgre_utility.php
            sqlite
                index.html
                sqlite_driver.php
                sqlite_forge.php
                sqlite_result.php
                sqlite_utility.php
            sqlite3
                index.html
                sqlite3_driver.php
                sqlite3_forge.php
                sqlite3_result.php
                sqlite3_utility.php
            sqlsrv
                index.html
                sqlsrv_driver.php
                sqlsrv_forge.php
                sqlsrv_result.php
                sqlsrv_utility.php
        index.html
    fonts
        index.html
        texb.ttf
    helpers
        array_helper.php
        captcha_helper.php
        cookie_helper.php
        date_helper.php
        directory_helper.php
        download_helper.php
        email_helper.php
        file_helper.php
        form_helper.php
        html_helper.php
        index.html
        inflector_helper.php
        language_helper.php
        number_helper.php
        path_helper.php
        security_helper.php
        smiley_helper.php
        string_helper.php
        text_helper.php
        typography_helper.php
        url_helper.php
        xml_helper.php
    index.html
    language
        english
            calendar_lang.php
            date_lang.php
            db_lang.php
            email_lang.php
            form_validation_lang.php
            ftp_lang.php
            imglib_lang.php
            index.html
            migration_lang.php
            number_lang.php
            pagination_lang.php
            profiler_lang.php
            unit_test_lang.php
            upload_lang.php
        index.html
    libraries
        Cache
            Cache.php
            drivers
                Cache_apc.php
                Cache_dummy.php
                Cache_file.php
                Cache_memcached.php
                Cache_redis.php
                Cache_wincache.php
                index.html
            index.html
        Calendar.php
        Cart.php
        Driver.php
        Email.php
        Encrypt.php
        Encryption.php
        Form_validation.php
        Ftp.php
        Image_lib.php
        Javascript
            Jquery.php
            index.html
        Javascript.php
        Migration.php
        Pagination.php
        Parser.php
        Profiler.php
        Session
            Session.php
            SessionHandlerInterface.php
            Session_driver.php
            drivers
                Session_database_driver.php
                Session_files_driver.php
                Session_memcached_driver.php
                Session_redis_driver.php
                index.html
            index.html
        Table.php
        Trackback.php
        Typography.php
        Unit_test.php
        Upload.php
        User_agent.php
        Xmlrpc.php
        Xmlrpcs.php
        Zip.php
        index.html
thumbs
    sys.txt
uploads
    sys.txt
<?php
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP
 *
 * This content is released under the MIT License (MIT)
 *
 * Copyright (c) 2014 - 2015, 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.
 *
 * @package	CodeIgniter
 * @author	EllisLab Dev Team
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
 * @copyright	Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
 * @license	http://opensource.org/licenses/MIT	MIT License
 * @link	http://codeigniter.com
 * @since	Version 1.0.0
 * @filesource
 */
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Shopping Cart Class
 *
 * @package		CodeIgniter
 * @subpackage	Libraries
 * @category	Shopping Cart
 * @author		EllisLab Dev Team
 * @link		http://codeigniter.com/user_guide/libraries/cart.html
 * @deprecated	3.0.0	This class is too specific for CI.
 */
class CI_Cart {

	/**
	 * These are the regular expression rules that we use to validate the product ID and product name
	 * alpha-numeric, dashes, underscores, or periods
	 *
	 * @var string
	 */
	public $product_id_rules = '\.a-z0-9_-';

	/**
	 * These are the regular expression rules that we use to validate the product ID and product name
	 * alpha-numeric, dashes, underscores, colons or periods
	 *
	 * @var string
	 */
	public $product_name_rules = '\w \-\.\:';

	/**
	 * only allow safe product names
	 *
	 * @var bool
	 */
	public $product_name_safe = TRUE;

	// --------------------------------------------------------------------------

	/**
	 * Reference to CodeIgniter instance
	 *
	 * @var object
	 */
	protected $CI;

	/**
	 * Contents of the cart
	 *
	 * @var array
	 */
	protected $_cart_contents = array();

	/**
	 * Shopping Class Constructor
	 *
	 * The constructor loads the Session class, used to store the shopping cart contents.
	 *
	 * @param	array
	 * @return	void
	 */
	public function __construct($params = array())
	{
		// Set the super object to a local variable for use later
		$this->CI =& get_instance();

		// Are any config settings being passed manually?  If so, set them
		$config = is_array($params) ? $params : array();

		// Load the Sessions class
		$this->CI->load->driver('session', $config);

		// Grab the shopping cart array from the session table
		$this->_cart_contents = $this->CI->session->userdata('cart_contents');
		if ($this->_cart_contents === NULL)
		{
			// No cart exists so we'll set some base values
			$this->_cart_contents = array('cart_total' => 0, 'total_items' => 0);
		}

		log_message('info', 'Cart Class Initialized');
	}

	// --------------------------------------------------------------------

	/**
	 * Insert items into the cart and save it to the session table
	 *
	 * @param	array
	 * @return	bool
	 */
	public function insert($items = array())
	{
		// Was any cart data passed? No? Bah...
		if ( ! is_array($items) OR count($items) === 0)
		{
			log_message('error', 'The insert method must be passed an array containing data.');
			return FALSE;
		}

		// You can either insert a single product using a one-dimensional array,
		// or multiple products using a multi-dimensional one. The way we
		// determine the array type is by looking for a required array key named "id"
		// at the top level. If it's not found, we will assume it's a multi-dimensional array.

		$save_cart = FALSE;
		if (isset($items['id']))
		{
			if (($rowid = $this->_insert($items)))
			{
				$save_cart = TRUE;
			}
		}
		else
		{
			foreach ($items as $val)
			{
				if (is_array($val) && isset($val['id']))
				{
					if ($this->_insert($val))
					{
						$save_cart = TRUE;
					}
				}
			}
		}

		// Save the cart data if the insert was successful
		if ($save_cart === TRUE)
		{
			$this->_save_cart();
			return isset($rowid) ? $rowid : TRUE;
		}

		return FALSE;
	}

	// --------------------------------------------------------------------

	/**
	 * Insert
	 *
	 * @param	array
	 * @return	bool
	 */
	protected function _insert($items = array())
	{
		// Was any cart data passed? No? Bah...
		if ( ! is_array($items) OR count($items) === 0)
		{
			log_message('error', 'The insert method must be passed an array containing data.');
			return FALSE;
		}

		// --------------------------------------------------------------------

		// Does the $items array contain an id, quantity, price, and name?  These are required
		if ( ! isset($items['id'], $items['qty'], $items['price'], $items['name']))
		{
			log_message('error', 'The cart array must contain a product ID, quantity, price, and name.');
			return FALSE;
		}

		// --------------------------------------------------------------------

		// Prep the quantity. It can only be a number.  Duh... also trim any leading zeros
		$items['qty'] = (float) $items['qty'];

		// If the quantity is zero or blank there's nothing for us to do
		if ($items['qty'] == 0)
		{
			return FALSE;
		}

		// --------------------------------------------------------------------

		// Validate the product ID. It can only be alpha-numeric, dashes, underscores or periods
		// Not totally sure we should impose this rule, but it seems prudent to standardize IDs.
		// Note: These can be user-specified by setting the $this->product_id_rules variable.
		if ( ! preg_match('/^['.$this->product_id_rules.']+$/i', $items['id']))
		{
			log_message('error', 'Invalid product ID.  The product ID can only contain alpha-numeric characters, dashes, and underscores');
			return FALSE;
		}

		// --------------------------------------------------------------------

		// Validate the product name. It can only be alpha-numeric, dashes, underscores, colons or periods.
		// Note: These can be user-specified by setting the $this->product_name_rules variable.
		if ($this->product_name_safe && ! preg_match('/^['.$this->product_name_rules.']+$/i'.(UTF8_ENABLED ? 'u' : ''), $items['name']))
		{
			log_message('error', 'An invalid name was submitted as the product name: '.$items['name'].' The name can only contain alpha-numeric characters, dashes, underscores, colons, and spaces');
			return FALSE;
		}

		// --------------------------------------------------------------------

		// Prep the price. Remove leading zeros and anything that isn't a number or decimal point.
		$items['price'] = (float) $items['price'];

		// We now need to create a unique identifier for the item being inserted into the cart.
		// Every time something is added to the cart it is stored in the master cart array.
		// Each row in the cart array, however, must have a unique index that identifies not only
		// a particular product, but makes it possible to store identical products with different options.
		// For example, what if someone buys two identical t-shirts (same product ID), but in
		// different sizes?  The product ID (and other attributes, like the name) will be identical for
		// both sizes because it's the same shirt. The only difference will be the size.
		// Internally, we need to treat identical submissions, but with different options, as a unique product.
		// Our solution is to convert the options array to a string and MD5 it along with the product ID.
		// This becomes the unique "row ID"
		if (isset($items['options']) && count($items['options']) > 0)
		{
			$rowid = md5($items['id'].serialize($items['options']));
		}
		else
		{
			// No options were submitted so we simply MD5 the product ID.
			// Technically, we don't need to MD5 the ID in this case, but it makes
			// sense to standardize the format of array indexes for both conditions
			$rowid = md5($items['id']);
		}

		// --------------------------------------------------------------------

		// Now that we have our unique "row ID", we'll add our cart items to the master array
		// grab quantity if it's already there and add it on
		$old_quantity = isset($this->_cart_contents[$rowid]['qty']) ? (int) $this->_cart_contents[$rowid]['qty'] : 0;

		// Re-create the entry, just to make sure our index contains only the data from this submission
		$items['rowid'] = $rowid;
		$items['qty'] += $old_quantity;
		$this->_cart_contents[$rowid] = $items;

		return $rowid;
	}

	// --------------------------------------------------------------------

	/**
	 * Update the cart
	 *
	 * This function permits the quantity of a given item to be changed.
	 * Typically it is called from the "view cart" page if a user makes
	 * changes to the quantity before checkout. That array must contain the
	 * product ID and quantity for each item.
	 *
	 * @param	array
	 * @return	bool
	 */
	public function update($items = array())
	{
		// Was any cart data passed?
		if ( ! is_array($items) OR count($items) === 0)
		{
			return FALSE;
		}

		// You can either update a single product using a one-dimensional array,
		// or multiple products using a multi-dimensional one.  The way we
		// determine the array type is by looking for a required array key named "rowid".
		// If it's not found we assume it's a multi-dimensional array
		$save_cart = FALSE;
		if (isset($items['rowid']))
		{
			if ($this->_update($items) === TRUE)
			{
				$save_cart = TRUE;
			}
		}
		else
		{
			foreach ($items as $val)
			{
				if (is_array($val) && isset($val['rowid']))
				{
					if ($this->_update($val) === TRUE)
					{
						$save_cart = TRUE;
					}
				}
			}
		}

		// Save the cart data if the insert was successful
		if ($save_cart === TRUE)
		{
			$this->_save_cart();
			return TRUE;
		}

		return FALSE;
	}

	// --------------------------------------------------------------------

	/**
	 * Update the cart
	 *
	 * This function permits changing item properties.
	 * 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 and quantity for each item.
	 *
	 * @param	array
	 * @return	bool
	 */
	protected function _update($items = array())
	{
		// Without these array indexes there is nothing we can do
		if ( ! isset($items['rowid'], $this->_cart_contents[$items['rowid']]))
		{
			return FALSE;
		}

		// Prep the quantity
		if (isset($items['qty']))
		{
			$items['qty'] = (float) $items['qty'];
			// Is the quantity zero?  If so we will remove the item from the cart.
			// If the quantity is greater than zero we are updating
			if ($items['qty'] == 0)
			{
				unset($this->_cart_contents[$items['rowid']]);
				return TRUE;
			}
		}

		// find updatable keys
		$keys = array_intersect(array_keys($this->_cart_contents[$items['rowid']]), array_keys($items));
		// if a price was passed, make sure it contains valid data
		if (isset($items['price']))
		{
			$items['price'] = (float) $items['price'];
		}

		// product id & name shouldn't be changed
		foreach (array_diff($keys, array('id', 'name')) as $key)
		{
			$this->_cart_contents[$items['rowid']][$key] = $items[$key];
		}

		return TRUE;
	}

	// --------------------------------------------------------------------

	/**
	 * Save the cart array to the session DB
	 *
	 * @return	bool
	 */
	protected function _save_cart()
	{
		// Let's add up the individual prices and set the cart sub-total
		$this->_cart_contents['total_items'] = $this->_cart_contents['cart_total'] = 0;
		foreach ($this->_cart_contents as $key => $val)
		{
			// We make sure the array contains the proper indexes
			if ( ! is_array($val) OR ! isset($val['price'], $val['qty']))
			{
				continue;
			}

			$this->_cart_contents['cart_total'] += ($val['price'] * $val['qty']);
			$this->_cart_contents['total_items'] += $val['qty'];
			$this->_cart_contents[$key]['subtotal'] = ($this->_cart_contents[$key]['price'] * $this->_cart_contents[$key]['qty']);
		}

		// Is our cart empty? If so we delete it from the session
		if (count($this->_cart_contents) <= 2)
		{
			$this->CI->session->unset_userdata('cart_contents');

			// Nothing more to do... coffee time!
			return FALSE;
		}

		// If we made it this far it means that our cart has data.
		// Let's pass it to the Session class so it can be stored
		$this->CI->session->set_userdata(array('cart_contents' => $this->_cart_contents));

		// Woot!
		return TRUE;
	}

	// --------------------------------------------------------------------

	/**
	 * Cart Total
	 *
	 * @return	int
	 */
	public function total()
	{
		return $this->_cart_contents['cart_total'];
	}

	// --------------------------------------------------------------------

	/**
	 * Remove Item
	 *
	 * Removes an item from the cart
	 *
	 * @param	int
	 * @return	bool
	 */
	 public function remove($rowid)
	 {
		// unset & save
		unset($this->_cart_contents[$rowid]);
		$this->_save_cart();
		return TRUE;
	 }

	// --------------------------------------------------------------------

	/**
	 * Total Items
	 *
	 * Returns the total item count
	 *
	 * @return	int
	 */
	public function total_items()
	{
		return $this->_cart_contents['total_items'];
	}

	// --------------------------------------------------------------------

	/**
	 * Cart Contents
	 *
	 * Returns the entire cart array
	 *
	 * @param	bool
	 * @return	array
	 */
	public function contents($newest_first = FALSE)
	{
		// do we want the newest first?
		$cart = ($newest_first) ? array_reverse($this->_cart_contents) : $this->_cart_contents;

		// Remove these so they don't create a problem when showing the cart table
		unset($cart['total_items']);
		unset($cart['cart_total']);

		return $cart;
	}

	// --------------------------------------------------------------------

	/**
	 * Get cart item
	 *
	 * Returns the details of a specific item in the cart
	 *
	 * @param	string	$row_id
	 * @return	array
	 */
	public function get_item($row_id)
	{
		return (in_array($row_id, array('total_items', 'cart_total'), TRUE) OR ! isset($this->_cart_contents[$row_id]))
			? FALSE
			: $this->_cart_contents[$row_id];
	}

	// --------------------------------------------------------------------

	/**
	 * Has options
	 *
	 * Returns TRUE if the rowid passed to this function correlates to an item
	 * that has options associated with it.
	 *
	 * @param	string	$row_id = ''
	 * @return	bool
	 */
	public function has_options($row_id = '')
	{
		return (isset($this->_cart_contents[$row_id]['options']) && count($this->_cart_contents[$row_id]['options']) !== 0);
	}

	// --------------------------------------------------------------------

	/**
	 * Product options
	 *
	 * Returns the an array of options, for a particular product row ID
	 *
	 * @param	string	$row_id = ''
	 * @return	array
	 */
	public function product_options($row_id = '')
	{
		return isset($this->_cart_contents[$row_id]['options']) ? $this->_cart_contents[$row_id]['options'] : array();
	}

	// --------------------------------------------------------------------

	/**
	 * Format Number
	 *
	 * Returns the supplied number with commas and a decimal point.
	 *
	 * @param	float
	 * @return	string
	 */
	public function format_number($n = '')
	{
		return ($n === '') ? '' : number_format( (float) $n, 2, '.', ',');
	}

	// --------------------------------------------------------------------

	/**
	 * Destroy the cart
	 *
	 * Empties the cart and kills the session
	 *
	 * @return	void
	 */
	public function destroy()
	{
		$this->_cart_contents = array('cart_total' => 0, 'total_items' => 0);
		$this->CI->session->unset_userdata('cart_contents');
	}

}




Copyright © 2015-2019 - by Lucas SOS | About the Author | Tags | Blog | Links | Login