]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/imdaemon.php
Make attachment fit better in notice: drop text and link
[quix0rs-gnu-social.git] / scripts / imdaemon.php
index 0ce74667c5d0178e2aeea7daa7b5f86d0cec3121..96b4e0dfeb2911b9cdace739c9e596762e2658cd 100755 (executable)
@@ -18,7 +18,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
+define('INSTALLDIR', dirname(__DIR__));
+define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
 
 $shortoptions = 'fi::a';
 $longoptions = array('id::', 'foreground', 'all');
@@ -94,14 +95,6 @@ class ImMaster extends IoMaster
     }
 }
 
-if (version_compare(PHP_VERSION, '5.2.6', '<')) {
-    $arch = php_uname('m');
-    if ($arch == 'x86_64' || $arch == 'amd64') {
-        print "Aborting daemon - 64-bit PHP prior to 5.2.6 has known bugs in stream_select; you are running " . PHP_VERSION . " on $arch.\n";
-        exit(1);
-    }
-}
-
 if (have_option('i', 'id')) {
     $id = get_option_value('i', 'id');
 } else if (count($args) > 0) {