Roxen.git / server / modules / tags / insert_cached_href.pike

version» Context lines:

Roxen.git/server/modules/tags/insert_cached_href.pike:1:   // This is a roxen module. Copyright © 2000 - 2004, Roxen IS.   //      #include <module.h>   inherit "module";      //<locale-token project="mod_insert_cached_href">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_insert_cached_href",X,Y)    - constant cvs_version = "$Id: insert_cached_href.pike,v 1.21 2008/03/31 14:29:22 liin Exp $"; + constant cvs_version = "$Id: insert_cached_href.pike,v 1.22 2008/08/15 12:33:55 mast Exp $";      constant thread_safe = 1;   constant module_type = MODULE_TAG;   LocaleString module_name = LOCALE(1, "Tags: Insert cached href");   LocaleString module_doc = LOCALE(2, "This module contains the RXML tag \"insert "    "cached-href\". Useful when implementing e.g."    " RSS syndication.");      #if DEBUG_INSERT_CACHED_HREF   #define DWRITE(x) report_debug("INSERT_CACHED_HREF: " + x + "\n")
Roxen.git/server/modules/tags/insert_cached_href.pike:115: Inside #if defined(THREADS)
   }       mutex_key = 0;    initiated = 0;    mutex = 0;   #endif       href_database = 0;   }    - static int get_time_in_seconds(string input) { + protected int get_time_in_seconds(string input) {    input = lower_case((string)input);    input = String.trim_whites(input);       int pos = 0;    int number;    string the_rest;       for (int i = 0; i < sizeof(input) && is_number(input[i]); i++) {    pos++;    }
Roxen.git/server/modules/tags/insert_cached_href.pike:147:    return number * 3600;    case 'm':    return number * 60;    case 's':    return number;    }       return number;   }    - static int(0..1) is_number(int char) { + protected int(0..1) is_number(int char) {    return (char >= 48 && char <= 57) ? 1 : 0;   }      #ifdef THREADS   public int(0..1) already_initiated(string url) {    foreach(initiated, HTTPClient client) {    if (url == (string)client->url)    return 1;    }