Skip to content
Snippets Groups Projects
Commit fffe5dab authored by Antonin's avatar Antonin
Browse files

Removing some unused functions

parent 6a277eed
No related branches found
No related tags found
No related merge requests found
......@@ -33,19 +33,6 @@ class Utils {
return $scheme . '://' . preg_replace('#//+#', '/', $server_name);
}
public static function is_error($cerr) {
global $err;
if ($err == 0) {
return false;
}
return ($err & $cerr) != 0;
}
public static function is_user() {
return (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER'])) || isset($_SESSION['nom']);
}
/**
* @param string $title
* @deprecated
......@@ -85,17 +72,6 @@ class Utils {
<div class="container ombre">';
}
/**
* Check if an email address is valid using PHP filters
*
* @param string $email Email address to check
* @return bool True if valid. False if not valid.
* @deprecated
*/
public static function isValidEmail($email) {
return filter_var($email, FILTER_VALIDATE_EMAIL);
}
/**
* Function allowing to generate poll's url
* @param string $id The poll's id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment