+ Reply to Thread
Results 1 to 2 of 2

Thread: Set up/Installation Issues

  1. #1
    rutledgealex is offline Roundcube Newcomer
    Join Date
    Apr 2010
    Posts
    1
    Downloads
    0
    Uploads
    0

    Question Set up/Installation Issues

    Hello,

    I am fairly new to using roundcube and was referred by a friend who loves it.

    After loading the files to my server, i am unable to make it past the 2nd page of install.

    I am greeted with a :
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/42/d316696852/htdocs/nts/program/include/main.inc on line 74.

    To rephrase that, the error occurs after the "start installation" on : www.notthestandard.com/installer

    I'm pretty sure everything else is setup right?... I am fairly new to MySQL...
    Any help, or a link to the Dummie's Guide for this would be great! I was able to understand the install guide, but encountered this error....
    The Code is Listed Below...
    Thanks!

    AR

    <?php

    /*
    +-----------------------------------------------------------------------+
    | program/include/main.inc |
    | |
    | This file is part of the RoundCube Webmail client |
    | Copyright (C) 2005-2009, RoundCube Dev, - Switzerland |
    | Licensed under the GNU GPL |
    | |
    | PURPOSE: |
    | Provide basic functions for the webmail package |
    | |
    +-----------------------------------------------------------------------+
    | Author: Thomas Bruederli <roundcube@gmail.com> |
    +-----------------------------------------------------------------------+

    $Id: main.inc 3063 2009-10-27 09:43:39Z alec $

    */

    /**
    * RoundCube Webmail common functions
    *
    * @package Core
    * @author Thomas Bruederli <roundcube@gmail.com>
    */

    require_once('lib/utf7.inc');
    require_once('include/rcube_shared.inc');

    // fallback if not PHP modules are available
    @include_once('lib/des.inc');
    @include_once('lib/utf8.class.php');

    // define constannts for input reading
    define('RCUBE_INPUT_GET', 0x0101);
    define('RCUBE_INPUT_POST', 0x0102);
    define('RCUBE_INPUT_GPC', 0x0103);



    /**
    * Return correct name for a specific database table
    *
    * @param string Table name
    * @return string Translated table name
    */
    function get_table_name($table)
    {
    global $CONFIG;

    // return table name if configured
    $config_key = 'db_table_'.$table;

    if (strlen($CONFIG[$config_key]))
    return $CONFIG[$config_key];

    return $table;
    }


    /**
    * Return correct name for a specific database sequence
    * (used for Postgres only)
    *
    * @param string Secuence name
    * @return string Translated sequence name
    */
    function get_sequence_name($sequence)
    {
    // return table name if configured
    $config_key = 'db_sequence_'.$sequence;
    $opt = rcmail::get_instance()->config->get($config_key);

    if (!empty($opt))
    return $opt;

    return $sequence;
    }


    /**
    * Get localized text in the desired language
    * It's a global wrapper for rcmail::gettext()
    *
    * @param mixed Named parameters array or label name
    * @return string Localized text
    * @see rcmail::gettext()
    */
    function rcube_label($p, $domain=null)
    {
    return rcmail::get_instance()->gettext($p, $domain);
    }


    /**
    * Overwrite action variable
    *
    * @param string New action value
    */
    function rcmail_overwrite_action($action)
    {
    $app = rcmail::get_instance();
    $app->action = $action;
    $app->output->set_env('action', $action);
    }


    /**
    * Compose an URL for a specific action
    *
    * @param string Request action
    * @param array More URL parameters
    * @param string Request task (omit if the same)
    * @return The application URL
    */
    function rcmail_url($action, $p=array(), $task=null)
    {
    $app = rcmail::get_instance();
    return $app->url((array)$p + array('_action' => $action, 'task' => $task));
    }


    /**
    * Garbage collector function for temp files.
    * Remove temp files older than two days
    */
    function rcmail_temp_gc()
    {
    $rcmail = rcmail::get_instance();

    $tmp = unslashify($rcmail->config->get('temp_dir'));
    $expire = mktime() - 172800; // expire in 48 hours

    if ($dir = opendir($tmp))
    {
    while (($fname = readdir($dir)) !== false)
    {
    if ($fname{0} == '.')
    continue;

    if (filemtime($tmp.'/'.$fname) < $expire)
    @unlink($tmp.'/'.$fname);
    }

    closedir($dir);
    }
    }
    Last edited by rutledgealex; 04-25-2010 at 10:29 AM.

  2. #2
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    Default

    you need PHP5 to run roundcube.
    Roundcube Patches: Sieverules, SpamAssassin Prefs, and more…

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts