Roxen.git / server / modules / security / auth_httpcookie.pike

version» Context lines:

Roxen.git/server/modules/security/auth_httpcookie.pike:140: Inside #if constant(WS_REPLICATE)
  #if constant(WS_REPLICATE)    set_my_db( "replicate" );   #endif       table =    get_my_table("",    ({    "cookie varchar(40) PRIMARY KEY NOT NULL",    "password varchar(255) NOT NULL",    "name varchar(255) NOT NULL", -  "timeout int NOT NULL", +  "timeout bigint NOT NULL",    }),    "Used to store the information nessesary to "    "authenticate roxen users" );       Sql.Sql sql = get_my_sql();    if (!sizeof(sql->query("DESCRIBE " + table + " timeout"))) {    sql->query("ALTER TABLE " + table +    " CHANGE password password varchar(255) NOT NULL");    sql->query("ALTER TABLE " + table +    " CHANGE name name varchar(255) NOT NULL");    sql->query("ALTER TABLE " + table + -  " ADD timeout int NOT NULL"); +  " ADD timeout bigint NOT NULL");    }    sql->query("DELETE FROM " + table + " WHERE timeout < %d",    time());   }      protected void create()   {    defvar( "user_form", Variable.Text(   #"   <title>Authentication required for REALM</title>   <body alink=\"#000000\" bgcolor=\"#ffffff\" text=\"#000000\">    <form method='POST'>    Username: UNINPUT<br />    Password: PWINPUT<br />    <input type=submit value=' Ok ' />   </form></body>",0,    _(3,"User form"),_(4,"The user/password request form shown to the user")));   }