Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tid($bruger_id) {
- GLOBAL $iws_db;
- $hentettidVar = $iws_db->query("SELECT tid FROM iws_customers WHERE id = '".$bruger_id."'");
- $unixTid = strtotime($hentettidVar); //er krævet for at kunne sammenligne tiden med en anden tid.
- $unixTidNow = strtotime(date("Y-m-d")); //igen, er krævet for at kunne sammenligne.
- if(($hentettidVar == "0000-00-00") || ($unixTid < $unixTidNow)) {
- $iws_db->query("UPDATE iws_customers SET premium=0 WHERE id = '".$bruger_id."'");
- }
- else {
- die;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement