Beispiel #1
0
def check_plain(text):
    """
   Encode special characters in a plain-text string for display as HTML.
  
   Uses drupal_validate_utf8 to prevent cross site scripting attacks on
   Internet Explorer 6.
  """
    return php.htmlspecialchars(text, php.ENT_QUOTES) if drupal_validate_utf8(text) else ""
Beispiel #2
0
def check_plain(text):
    """
   Encode special characters in a plain-text string for display as HTML.
  
   Uses drupal_validate_utf8 to prevent cross site scripting attacks on
   Internet Explorer 6.
  """
    return (php.htmlspecialchars(text, php.ENT_QUOTES) if \
      drupal_validate_utf8(text) else '')
Beispiel #3
0
  (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}', \
                  '********************************', out_vars)
out_vars = php.htmlspecialchars(out_vars)

out_mods = php.print_r(DrupyImport.modules(), True)
Beispiel #4
0
    (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}', \
                  '********************************', out_vars)
out_vars = php.htmlspecialchars(out_vars)

out_mods = php.print_r(DrupyImport.modules(), True)