Git Product home page Git Product logo

tools-coreinclude's Introduction

tools-coreinclude

Repository that contains shared files that could be useful to both the private LCATools system and a, yet to be created, public tools repository.

Files

  • countrySelect.php - seperate file with list of countries that can be used to easily create a select box to choose country with 2 letter ISO code as select value.
  • OAuth.php - OAuth related classes a libary from Mediawiki Extension:OAuth and elsewhere (MIT Andy Smith)
  • JWT.php - JSON Web Token implementantion originally a library from Mediawiki Extension:OAuth and elsewhere (http://opensource.org/licenses/BSD-3-Clause 3-clause BSD Anant Narayanan [email protected] and Neuman Vong [email protected])
  • MWOAuthSignatureMethod.php - extension of OAuth RSA signature method (always load OAuth.php first) for mediawiki specifically. From Mediawiki Extension:OAuth GNU General Public License 2.0
  • sugar.class.php - Class for interacting with a SugarCRM installation.
  • multiuseFunctions.php - file with functions used (or which could be used) in multiple different forms. Currently contains:
    • setupdataurl() - takes a file and converts into a well formed dataurl.
      • Accepts: input file
      • Returns: array (kind of file, file_name, data url) Kind of file currently hardcoded to original
    • curlAPIpost() - takes post data and headers and sends to a designated API.
      • Accepts: url to post to, data, headers (optional)
      • Returns: response
    • lcalog() - Logs data to the central log for lcatools
      • Accepts: user, log type, log title, test marker
      • Returns: log id
    • libxml_display_error() and libxml_display_errors() - functions from PHP documentation comments that assist in better formatting for XML verification errors (mostly used for verifying submission against xsd)
      • Accepts: Error
      • Returns: error information
    • NCMECsimpleauthdcurlPost() - function for simple authenticated posts to NCMEC containing only basic form field data such as a file or report id. Used for all file submissions, to close a report and to retract a report.
      • Accepts: username, password, post url, post data
      • Returns: response
    • curlauthdAPIpost() - function for more complex authenticated posts to NCMEC containing XML data, used to open reports and to submit file details after submitting a file.
      • Accepts: username, password, post url, post data, post headers (optional)
      • Returns: response
    • noheaderstringget() - send a simple url get (using query string)
      • Accepts: request (as full url)
      • Returns: response
    • mwOAuthAPIcall() - regular api call to MW Oauth
      • Accepts: url, api parameters, oauth signed request (for headers)
      • Returns: response
    • validateJWT() - function from Chris Steipp to validate mediawiki Json Web Token
      • Accepts: identity (web token), consumer key, nonce, server (where you got the JWT from)
      • Response: boolean response
        getUserData() - function to grab specific data for user from lcatools user table
      • Accepts: User
      • Response: Array of data from user table

tools-coreinclude's People

Contributors

jamesryanalexander avatar

Watchers

 avatar

Forkers

davidbarratt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.