Redpost.php Script Parameters

From RedPost/Kit/Documentation

Jump to: navigation, search

RedPost clients retrieve the latest software and lists of images via remote HTTP procedure calls to redpost.php on the server. This script takes the following parameters:

  • cid - (Required.) A number uniquely identifying the client.
  • cmd - [ load | embed | list ] (Default: load). Specifies which command to run.
    • load - Returns the client Javascript for a standalone RedPost box.
    • embed - Returns the client Javascript for a RedPost embedded into an iframe.
    • list - Returns the latest list of images. The first line contains a timestamp of when the client page was last modified on the server, so that the client can reload itself if necessary. All following lines contain two fields separated by a space: the URL of the image, and the URL that should be linked to.
  • delay - How long to display each image, in milliseconds. (Default: 12000.)
  • size - [ full | small ] (Default: full). Passed automatically by the website-embedded client when requesting the image list, so that the server knows to provide the last-modified time of the embedded client rather than the standalone one. You shouldn't need to touch this.
Personal tools