* Kurzbeschreibung : Funktionen fuer die Installationsroutine *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
($value == getUrl())
|| (
// Starts with http:// or https:// ?
- ((substr($value, 0, 7) == 'http://') || (substr($value, 0, 8) == 'https://'))
+ (isFullQualifiedUrl($value))
&&
// Has no trailing slash?
(substr($value, -1, 1) != '/')
return $isValid;
}
+// Call-back function to check validity of 'database_extension'
+function isInstallerDatabaseExtensionValid ($value) {
+ // This value must be 'mysql' or 'mysqli'
+ $isValid = in_array($value, array('mysql', 'mysqli'));
+
+ // Return it
+ return $isValid;
+}
+
// Call-back function to check validity of 'mysql_dbase'
function isInstallerMysqlDbaseValid ($value) {
// This value must not be empty