示例#1
0
  (lib_bootstrap.DRUPAL_BOOTSTRAP_ACCESS, \
   'DRUPAL_BOOTSTRAP_ACCESS'),
  (lib_bootstrap.DRUPAL_BOOTSTRAP_SESSION, \
   'DRUPAL_BOOTSTRAP_SESSION'),
  (lib_bootstrap.DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE, \
   'DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE'),
  (lib_bootstrap.DRUPAL_BOOTSTRAP_LANGUAGE, \
   'DRUPAL_BOOTSTRAP_LANGUAGE'),
  (lib_bootstrap.DRUPAL_BOOTSTRAP_PATH, \
   'DRUPAL_BOOTSTRAP_PATH'),
  (lib_bootstrap.DRUPAL_BOOTSTRAP_FULL, \
   'DRUPAL_BOOTSTRAP_FULL')
);

which_phase = phases[8];
lib_bootstrap.drupal_bootstrap(which_phase[0]);
stamp, revised = time.strftime("%c GMT||%m/%d/%Y", time.gmtime()).split('||')

out_plugins = php.print_r(lib_plugin.plugins, True)
out_plugins_html = php.htmlspecialchars(out_plugins)

out_themes = php.print_r(lib_theme.processors, True)
out_themes_html = php.htmlspecialchars(out_themes)

out_users = php.print_r(lib_database.query(\
  'SELECT * FROM users WHERE users.uid > 0'), True)
out_users_html = php.htmlspecialchars(out_users)

out_vars = php.print_r(vars(), True)
out_vars = re.sub('[a-zA-Z0-9_\.-]+@.+?\.[a-zA-Z]+', '********', out_vars)
out_vars = re.sub('[a-zA-Z0-9]{32}', \
示例#2
0
    (lib_bootstrap.DRUPAL_BOOTSTRAP_ACCESS, \
   'DRUPAL_BOOTSTRAP_ACCESS'),
    (lib_bootstrap.DRUPAL_BOOTSTRAP_SESSION, \
   'DRUPAL_BOOTSTRAP_SESSION'),
    (lib_bootstrap.DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE, \
   'DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE'),
    (lib_bootstrap.DRUPAL_BOOTSTRAP_LANGUAGE, \
   'DRUPAL_BOOTSTRAP_LANGUAGE'),
    (lib_bootstrap.DRUPAL_BOOTSTRAP_PATH, \
   'DRUPAL_BOOTSTRAP_PATH'),
    (lib_bootstrap.DRUPAL_BOOTSTRAP_FULL, \
   'DRUPAL_BOOTSTRAP_FULL')
)

which_phase = phases[8]
lib_bootstrap.drupal_bootstrap(which_phase[0])
stamp, revised = time.strftime("%c GMT||%m/%d/%Y", time.gmtime()).split('||')

out_plugins = php.print_r(lib_plugin.plugins, True)
out_plugins_html = php.htmlspecialchars(out_plugins)

out_themes = php.print_r(lib_theme.processors, True)
out_themes_html = php.htmlspecialchars(out_themes)

out_users = php.print_r(lib_database.query(\
  'SELECT * FROM users WHERE users.uid > 0'), True)
out_users_html = php.htmlspecialchars(out_users)

out_vars = php.print_r(vars(), True)
out_vars = re.sub('[a-zA-Z0-9_\.-]+@.+?\.[a-zA-Z]+', '********', out_vars)
out_vars = re.sub('[a-zA-Z0-9]{32}', \
示例#3
0
import pickle
import copy
from lib.drupy.DrupyPHP import *

#
# List of tables
#
tables = (
  {
    'select' : "SELECT system.info, system.name FROM system WHERE system.type = 'theme'",
    'update' : "UPDATE system SET system.info = '%(info)s' WHERE system.name = '%(name)s'",
    'key' : 'info'
  },
)

inc_bootstrap.drupal_bootstrap(inc_bootstrap.DRUPAL_BOOTSTRAP_DATABASE)
u = PHPUnserialize.PHPUnserialize()
i = 0

for t in tables:
  s_res = inc_database.db_query(t['select'])
  while True:
    s_row = inc_database.db_fetch_assoc(s_res)
    if not s_row:
      break
    try:
      udata = u.unserialize(s_row[t['key']])
    except PHPUnserialize.InvalidObject:
      continue
    out = copy.deepcopy(s_row)
    for ok,ov in out.items():
示例#4
0
import pickle
import copy
from lib.drupy.DrupyPHP import *

#
# List of tables
#
tables = ({
    'select':
    "SELECT system.info, system.name FROM system WHERE system.type = 'theme'",
    'update':
    "UPDATE system SET system.info = '%(info)s' WHERE system.name = '%(name)s'",
    'key': 'info'
}, )

inc_bootstrap.drupal_bootstrap(inc_bootstrap.DRUPAL_BOOTSTRAP_DATABASE)
u = PHPUnserialize.PHPUnserialize()
i = 0

for t in tables:
    s_res = inc_database.db_query(t['select'])
    while True:
        s_row = inc_database.db_fetch_assoc(s_res)
        if not s_row:
            break
        try:
            udata = u.unserialize(s_row[t['key']])
        except PHPUnserialize.InvalidObject:
            continue
        out = copy.deepcopy(s_row)
        for ok, ov in out.items():