Mercurial > hg > fapweb
comparison createdb.php @ 94:6edd7d623eab
Start adding votekey modes code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 18 Oct 2013 20:28:58 +0300 |
parents | 6fdde6aca7ba |
children | 3939cb04bdce |
comparison
equal
deleted
inserted
replaced
93:f36ebd03afd6 | 94:6edd7d623eab |
---|---|
318 "\n"; | 318 "\n"; |
319 exit; | 319 exit; |
320 } | 320 } |
321 | 321 |
322 | 322 |
323 if (!isset($siteSettings["voteKeyMode"]) || $siteSettings["voteKeyMode"] < 0) | |
324 { | |
325 echo "FATAL ERROR! VoteKeyMode not set in site settings! This setting " | |
326 "MUST be defined and should not be changed after database creation.\n"; | |
327 exit; | |
328 } | |
329 | |
323 // Check if database spec provided, if not use default | 330 // Check if database spec provided, if not use default |
324 if (($spec = stCArg(2)) === FALSE) | 331 if (($spec = stCArg(2)) === FALSE) |
325 $spec = $siteSettings["sqlDB"]; | 332 $spec = $siteSettings["sqlDB"]; |
326 | 333 |
327 | 334 |