thomascube
2008-06-20 c719f3c1e06c00fa4723f2f1298b3c94a1bec7e7
program/include/main.inc
@@ -475,7 +475,7 @@
 */
function asciiwords($str)
{
  return preg_replace('/[^a-z0-9.-_]/i', '', $str);
  return preg_replace('/[^a-z0-9._-]/i', '', $str);
}
/**
@@ -500,22 +500,6 @@
{
  return preg_replace('/[\r\n]/', '', $str);
}
/**
 * Check if a specific template exists
 *
 * @param string Template name
 * @return boolean True if template exists
 */
function template_exists($name)
  {
  global $CONFIG;
  $skin_path = $CONFIG['skin_path'];
  // check template file
  return is_file("$skin_path/templates/$name.html");
  }
/**