Roxen.git / server / config_interface / sites / add_module.pike

version» Context lines:

Roxen.git/server/config_interface/sites/add_module.pike:1: - // $Id: add_module.pike,v 1.86 2006/07/25 11:15:27 anders Exp $ + // $Id: add_module.pike,v 1.87 2008/04/08 15:32:19 grubba Exp $      #include <config_interface.h>   #include <module.h>   #include <module_constants.h>   #include <roxen.h>      int no_reload()   {    if( sizeof( already_added ) )    return 1; // Reloading this script now would destroy state.
Roxen.git/server/config_interface/sites/add_module.pike:375:    array q = m->get_name();    sort( q, m );    foreach(m, object q)    {    if( q->get_description() == "Undocumented" &&    q->type == 0 )    continue;    if (search_modules && !search_modules[q])    continue;    object b = module_nomore(q->sname, q, conf); -  if( !b && q->locked && (!license_key || !q->unlocked(license_key)) ) +  if( !b && q->locked && +  (!license_key || !q->unlocked(license_key, conf)) )    {    locked_modules += ({ q });    continue;    }    res += describe_module( q, b );    }    } else {    if (!search_modules)    res += r[1];    }
Roxen.git/server/config_interface/sites/add_module.pike:725:    if( (r = class_visible_compact( LOCALE(200,"Add Modules"),    LOCALE(273,"Select one or several modules to add."),    sizeof(mods), id )) && r[0] ) {    res += r[1];    foreach(mods, object q) {    if( (!q->get_description() ||    (q->get_description() == "Undocumented")) &&    q->type == 0 )    continue;    object b = module_nomore(q->sname, q, conf); -  if( !b && q->locked && (!license_key || !q->unlocked(license_key)) ) +  if( !b && q->locked && +  (!license_key || !q->unlocked(license_key, conf)) )    {    locked_modules += ({ q });    continue;    }    res += describe_module_compact( q, b );    }    } else {    res += r[1];    }