archive-org.com » ORG » G » GETSPARKS.ORG

Total: 447

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • CodeIgniter Sparks | redbean
    jenssegers Email Log in to view Author Website http www jenssegers be Spark Website http jenssegers be Repository Type git Number of Installs 2 357 Get the Latest 1 0 3 Pushed March 29th 2012 php tools spark install v1 0 3 redbean Or download this version manually Get redbean 1 0 3 zip How To CodeIgniter RedBean RedBean is an object relation mapping ORM tool that allows you to store objects beans in a database without the requirement of a mapping schema RedBean makes your life easier by doing the dull work for you creating databases SQLite creating tables creating columns resizing and adjusting columns adding unique indexes to link tables creating views deploying databases and so on Read more about RedBean on http redbeanphp com Installation Place the files from the repository in their respective folders or use spark RedBean will automatically use the database configuration from the config database php file Documentation You can find the original RedBean documentation at http www redbeanphp com manual All calls made to this library will be passed on to the RedBean class so all the original functions are still available Example Load the library or use spark this load library

    Original URL path: http://getsparks.org/packages/redbean/versions/HEAD/show (2016-02-09)
    Open archived version from archive


  • CodeIgniter Sparks | sendgrid-newsletter
    CodeIgniter wrapper library for SendGrid s Newsletter API Tweet Contributor gstjohn Email Log in to view Author Website http garrettstjohn com Spark Website https github com gstjohn codeigniter sendgrid newsletter Repository Type git Number of Installs 2 119 Get the Latest 0 1 1 Pushed April 14th 2012 php tools spark install v0 1 1 sendgrid newsletter Or download this version manually Get sendgrid newsletter 0 1 1 zip How To CodeIgniter SendGrid Newsletter CodeIgniter SendGrid Newsletter is a CodeIgniter wrapper for the SendGrid Newsletter API Requirements PHP 5 1 CodeIgniter 2 0 0 cURL CodeIgniter REST Client Library http getsparks org packages restclient show Included Methods Initialization initialize Set up the library with API credentials and settings Newsletter add newsletter Create a newsletter edit newsletter Edit a newsletter get newsletter Get the contents of an existing newsletter list newsletters Retrieve a list of all newsletters delete newsletter Delete a newsletter Lists add list Create a recipient list edit list Rename a list get lists Retrieve all recipient lists or check if a particular list exists delete list Delete a list List Emails add list emails Add one or more emails to a list get list emails Retrieve the email addresses and associated fields for a particular list delete list emails Remove one or more emails from a list Newsletter Lists add recipients Add a recipient to a newsletter get recipients Retrieve the lists assigned to a particular newsletter delete recipients Remove a list from a newsletter Scheduling add schedule Schedule a delivery time for an existing newsletter get schedule Retrieve the scheduled delivery time for a particular newsletter delete schedule Cancel a scheduled send for a newsletter Identities add identity Create a new identity edit identity Edit an identity get identity Retrieve a particular identity list identities Retrieve a

    Original URL path: http://getsparks.org/packages/sendgrid-newsletter/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | oauth
    install v0 3 1 oauth Usage Example This example will need the user to go to a certain URL which will support multiple providers I like to set a controller to handle it and either have one single session method or have another method for callbacks if you want to separate out the code even more Here you ll see we have the provider passed in as a URI segment of twitter which can be used to find config in a database or in a config multi dimensional array If you want to hard code it all then that is just fine too Send your user to http example com auth oauth twitter where Auth is the name of the controller This will also be the address of the Callback URL which will be required by many OAuth providers php class Auth extends CI Controller public function oauth provider this load helper url this load spark oauth 0 3 1 Create an consumer from the config consumer this oauth consumer array key config key secret config secret Load the provider provider this oauth provider provider Create the URL to return the user to callback site url account services callback provider name if this input get post oauth token Add the callback URL to the consumer consumer callback callback Get a request token for the consumer token provider request token consumer Store the token this session set userdata oauth token base64 encode serialize token Get the URL to the twitter login page url provider authorize token array oauth callback callback Send the user off to login redirect url else if this session userdata oauth token Get the token from storage token unserialize base64 decode this session userdata oauth token if empty token AND token access token this input get post oauth

    Original URL path: http://getsparks.org/packages/oauth/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | my-model
    MY Model You are advised to fill in the following attributes class Book model extends MY Model protected table books protected primary key id protected fields array id author title published created at table the name of the database table if not set it will try to guess the table from the model s name Book model books primary key the name of the primary key of your database set to id by default fields you table s fields if not set 1 extra query will be performed to get these automatically These are used to filter arrays before inserting and updating Methods get id get the record matching this id or other primary key get key value get the record matching these where parameters get all get all records get many key value get the records matching these where parameters count all results key value count all records matching these where parameters insert data insert a new record update id data update a record matching this id or other primary key delete id delete the record matching this id or other primary key dropdown key value creates a dropdown friendly array based on the key value skip validation TRUE skip validation Some active record methods are also available these can be used without the database table parameter count all count all records list fields returns an array containing all database table fields All other active records are also available these are immediately passed to the database class This allows you to use chaining books this book model order by author desc limit 50 0 get many Callbacks Callbacks are functions that are activated on specific occasions that allows you to hook custom logic into the CRUD process This is a list of the available callback points before create after

    Original URL path: http://getsparks.org/packages/my-model/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | login-cookie
    Pushed February 13th 2012 php tools spark install v0 0 3 login cookie Or download this version manually Get login cookie 0 0 3 zip How To CodeIgniter Login Cookie Author Andrew Smiley Requirements PHP 5 1 CodeIgniter 2 0 Usage First be sure to setup the table listed at the bottom of the readme Setting a login cookie looks like this this login cookie set this user user id This should really only be done directly after a successful login Then you ll need to do a check often times in an overridden MY Controller php that protects certain controllers when a user is NOT logged in to see if they have a valid cookie and thus should be automaticalily logged in Here is the method user id this login cookie authenticate returns whatever was used to set the cookie At this point user id is either false which means that the user doesn t have a valid login cookie or is set to the user id that the user should be logged into as The following is a more complete example of potential usage user not logged in if this session userdata user user id this login cookie authenticate if user id this user this user m get user user id this cookie login TRUE this session set userdata user this user It is wise to not let users that have been auto logged in via a cookie to access certain portions of the site like a password changing form since the cookie could potentially be stolen though unlikely In the example above the variable cookie login can be used to make such a distinction The details of the security implications of this method can be found within the articles mentioned in the credits Finally you need to

    Original URL path: http://getsparks.org/packages/login-cookie/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | simple-assets
    Like 0 Hate 2 253 Installs Basic Information simple assets The smallest asset helper you have ever seen Tweet Contributor jenssegers Email Log in to view Author Website http www jenssegers be Spark Website http jenssegers be Repository Type git Number of Installs 2 253 Get the Latest 1 1 0 Pushed February 27th 2012 php tools spark install v1 1 0 simple assets Or download this version manually Get simple assets 1 1 0 zip How To CodeIgniter Simple Assets This will be the most simple asset helper you have ever seen It is a wrapper around CodeIgniter s base url function with the addition of an asset group parameter Installation Copy the files to the corresponding folder in your application folder or use spark Structure In your root create a folder called assets with this structure assets css img js If you would rather work with asset groups you can use the following structure assets fancy css img js mobile css img js Usage This helper is loaded using the following code this load helper assets Or autoload it by adding assets to the autoload helper array in the autoload php file To get the url to your

    Original URL path: http://getsparks.org/packages/simple-assets/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | messages
    next page Tweet Contributor jenssegers Email Log in to view Author Website http www jenssegers be Spark Website http jenssegers be Repository Type git Number of Installs 2 278 Get the Latest 1 0 3 Pushed March 28th 2012 php tools spark install v1 0 3 messages Or download this version manually Get messages 1 0 3 zip How To CodeIgniter Message Library You can use this library to store and retrieve your error or information messages whenever you want The messages are cleared when you retrieve them so they remain available even after a redirect Usage To install the library place it inside your libraries folder and load it using this load library messages Or use the spark Adding messages To add messages for later display you can add them to a specific message group using this messages add An error has occurred error this messages add Thank you for registering success this messages add Please not this message message Displaying messages The added messages stays available until you retrieve them So if you would add them in a specific controller and then redirect the messages would still be available This is especially handy for displaying error messages when an action has failed messages this messages get This will return an array to be used like this all this messages get foreach all as type messages foreach messages as message echo type message br If you only want one specific type of message you can use messages this messages get error So that you can display them using errors this messages get error foreach errors as error echo error error br If at any point you want to know how many messages are stored you can use errors this messages count error all this messages count The stored messages

    Original URL path: http://getsparks.org/packages/messages/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | secure-auth
    is included containing the required database structure Configuration Edit the auth php configuration file to fit your specific environment Authentication configuration The basic settings for the auth library cookie name the name you want for the cookie cookie encrypt encrypt cookie with encryption key autologin expire time for cookie to expire in seconds renews when used autologin table the name of the autologin table see sql file hash algorithm the hashing algorithm used for generating keys config cookie name autologin config cookie encrypt TRUE config autologin table autologin config autologin expire 5184000 60 days config hash algorithm sha256 If you prefer you can autoload the library by adjusting your autoload php file and add auth to the autoload libraries array Usage A simple implementation example of this library is included so be sure to check out the demo folder These are the available methods this auth login id remember TRUE Mark the user with this id as logged in provide an optional remember boolean if you want to create an autologin cookie this auth logout Logout function this removes the autologin cookie and the active key this auth loggedin Returns whether the user is logged in or not TRUE FALSE this auth userid Returns the current user s id Details Security This library was inspired by the following articles http www shinytype com php persistent login protocol http jaspan com improved persistent login cookie best practice When a user logs in with remember me checked a login cookie is created containing the user s identification and a personal key Actually 2 keys are created one for the user s cookie and one to store into the database A user can only log in if both key pairs are present When that user visits the site again it presents the login cookie The database version of the key is compared with the key stored in the cookie If the relation between both keys is correct the user is logged in the used key pair will be removed and a new key pair is generated for future use If on the other hand the key pair is invalid a possible cookie key theft assumed The user s active key will then immediately be removed for safety reasons Controller example In the demo folder you can find a fully working example of this library It also includes a basic user model and an extra sql script to create the users database table Here is an example how you could use the library on your login page form submitted if this input post username this input post password remember this input post remember TRUE FALSE get user from database this load model user model user this user model get username this input post username if user compare passwords if this user model check password this input post password user password mark user as logged in this auth login user id remember redirect admin else error Wrong password else error User does not exist Older

    Original URL path: http://getsparks.org/packages/secure-auth/versions/HEAD/show (2016-02-09)
    Open archived version from archive



  •