Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Oct 2006
    Location
    Northampton
    Posts
    694
    Tokens
    142

    Default

    You need to define the variables (which are most likely in the scripts config' file).
    Good-bye signature, I love <NOT ALLOWED NAME AT ALL> despite the infraction his last name got me.

    Free speech? Not anymore, you gotta' love this forum.

  2. #12
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    thers two
    PHP Code:
    <?
    session_start
    ();
    $config = array();
    $config['BASE_DIR']     =  '/home/yoursite/public_html/video';
    $config['BASE_URL']     =  'http://www.yoursite.com/video';
    $config['CONF_FILE']    =  $config[BASE_DIR].'/include/conf.ini';
    $config['IMG_DIR']      =  $config[BASE_DIR].'/images';
    $config['IMG_URL']      =  $config[BASE_URL].'/images';
    $config['VDO_DIR']      =  $config[BASE_DIR].'/video';
    $config['VDO_URL']      =  $config[BASE_URL].'/video';
    $config['FLVDO_DIR']      =  $config[BASE_DIR].'/flvideo';
    $config['FLVDO_URL']      =  $config[BASE_URL].'/flvideo';
    $config['TMB_DIR']      =  $config[BASE_DIR].'/thumb';
    $config['TMB_URL']      =  $config[BASE_URL].'/thumb';
    $config['baseurl']      =  $config['BASE_URL'];
    $config['basedir']      =  $config['BASE_DIR'];
    $config['vdodir']       =  $config['VDO_DIR'];
    $config['vdourl']       =  $config['VDO_URL'];
    $config['flvdodir']       =  $config['FLVDO_DIR'];
    $config['flvdourl']       =  $config['FLVDO_URL'];
    $config['imgurl']       =  $config['IMG_URL'];
    $config['imgpath']      =  $config['IMG_DIR'];
    $config['tmbdir']       =  $config['TMB_DIR'];
    $config['tmburl']       =  $config['TMB_URL'];
    $config['ffmpeg']       =  "/usr/local/bin/ffmpeg";

    require_once(
    $config[BASE_DIR].'/smarty/libs/Smarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/mysmarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/SConfig.php');
    require_once(
    $config[BASE_DIR].'/classes/SError.php');
    require_once(
    $config[BASE_DIR].'/include/adodb/adodb.inc.php');
    require_once(
    $config[BASE_DIR].'/classes/SEmail.php');

    $DBTYPE 'mysql';
    $DBHOST SConfig::get("Database""localhost");
    $DBUSER SConfig::get("Database""ed_vu");
    $DBPASSWORD SConfig::get("Database""vu");
    $DBNAME SConfig::get("Database""ed_vu");

    $conn = &ADONewConnection($DBTYPE);
    $conn->PConnect($DBHOST$DBUSER$DBPASSWORD$DBNAME);

    $sql "SELECT * from sconfig";
    $rsc $conn->Execute($sql);

    if(
    $rsc){while(!$rsc->EOF)
    {
    $field $rsc->fields['soption'];
    $config[$field] = $rsc->fields['svalue'];
    STemplate::assign($field$config[$field]);
    @
    $rsc->MoveNext();
    }}

    STemplate::assign('BASE_URL',       $config['BASE_URL']);
    STemplate::assign('BASE_DIR',       $config['BASE_DIR']);
    STemplate::assign('IMG_URL',        $config['IMG_URL']);
    STemplate::assign('baseurl',       $config['BASE_URL']);
    STemplate::assign('basedir',       $config['BASE_DIR']);
    STemplate::assign('imgurl',        $config['IMG_URL']);
    STemplate::assign('vdourl',        $config['VDO_URL']);
    STemplate::assign('flvdourl',       $config['FLVDO_URL']);
    STemplate::assign('tmburl',        $config['TMB_URL']);
    STemplate::assign('site_name',     $config['site_name']);
    STemplate::setCompileDir($config['basedir']."/templates_c");
    STemplate::setTplDir($config['basedir']."/templates");
    ?>
    and

    PHP Code:
    <?
    session_start
    ();
    $config = array();

    $config['BASE_DIR']     =  '/home/ed/public_html/videoupload';
    $config['BASE_URL']     =  'http://ed.duosystems.net/videoupload';

    $config['tmpimgpath']     =   '/home/ed/public_html/videoupload/tmp';
    $config['tmpimgpath2']     =   '/home/ed/public_html/videoupload/tmp';

    $config['ffmpeg']       =  "/usr/local/bin/ffmpeg";
    $config['mplayer']        =   '/usr/local/bin/mplayer';
    $config['mencoder']       =   '/usr/local/bin/mencoder';
    $config['metainject']     =   '/usr/local/bin/flvtool2';

    //Guest allowed traffic per day
    $config['guest_limite'] = 65535;


    // =============== DO NOT EDIT UNDER THIS LINE =========================================================================


    $config['CONF_FILE']    =  $config[BASE_DIR].'/include/conf.ini';
    $config['IMG_DIR']      =  $config[BASE_DIR].'/images';
    $config['IMG_URL']      =  $config[BASE_URL].'/images';
    $config['VDO_DIR']      =  $config[BASE_DIR].'/video';
    $config['VDO_URL']      =  $config[BASE_URL].'/video';
    $config['ADO_DIR']      =  $config[BASE_DIR].'/audio';
    $config['ADO_URL']      =  $config[BASE_URL].'/audio';
    $config['FLVDO_DIR']      =  $config[BASE_DIR].'/flvideo';
    $config['FLVDO_URL']      =  $config[BASE_URL].'/flvideo';
    $config['TMB_DIR']      =  $config[BASE_DIR].'/thumb';
    $config['TMB_URL']      =  $config[BASE_URL].'/thumb';
    $config['baseurl']      =  $config['BASE_URL'];
    $config['basedir']      =  $config['BASE_DIR'];
    $config['vdodir']       =  $config['VDO_DIR'];
    $config['vdourl']       =  $config['VDO_URL'];
    $config['audiodir']       =  $config['ADO_DIR'];
    $config['audiourl']       =  $config['ADO_URL'];
    $config['flvdodir']       =  $config['FLVDO_DIR'];
    $config['flvdourl']       =  $config['FLVDO_URL'];
    $config['imgurl']       =  $config['IMG_URL'];
    $config['imgpath']      =  $config['IMG_DIR'];
    $config['tmbdir']       =  $config['TMB_DIR'];
    $config['tmburl']       =  $config['TMB_URL'];

    require_once(
    $config[BASE_DIR].'/smarty/libs/Smarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/mysmarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/SConfig.php');
    require_once(
    $config[BASE_DIR].'/classes/SError.php');
    require_once(
    $config[BASE_DIR].'/include/adodb/adodb.inc.php');
    require_once(
    $config[BASE_DIR].'/include/phpmailer/class.phpmailer.php');
    require_once(
    $config[BASE_DIR].'/classes/SEmail.php');

    $DBTYPE 'mysql';
    $DBHOST SConfig::get("Database""localhost");
    $DBUSER SConfig::get("Database""ed_vu");
    $DBPASSWORD SConfig::get("Database""vu");
    $DBNAME SConfig::get("Database""ed_vu");

    $conn = &ADONewConnection($DBTYPE);
    $conn->PConnect($DBHOST$DBUSER$DBPASSWORD$DBNAME);

    $sql "SELECT * from sconfig";
    $rsc $conn->Execute($sql);

    if(
    $rsc){while(!$rsc->EOF)
    {
    $field $rsc->fields['soption'];
    $config[$field] = $rsc->fields['svalue'];
    STemplate::assign($field$config[$field]);
    @
    $rsc->MoveNext();
    }}

    STemplate::assign('bgcolor','#E8E8E8');
    STemplate::assign('BASE_URL',       $config['BASE_URL']);
    STemplate::assign('BASE_DIR',       $config['BASE_DIR']);
    STemplate::assign('IMG_URL',        $config['IMG_URL']);
    STemplate::assign('baseurl',       $config['BASE_URL']);
    STemplate::assign('basedir',       $config['BASE_DIR']);
    STemplate::assign('imgurl',        $config['IMG_URL']);
    STemplate::assign('vdourl',        $config['VDO_URL']);
    STemplate::assign('adourl',        $config['ADO_URL']);
    STemplate::assign('flvdourl',       $config['FLVDO_URL']);
    STemplate::assign('tmburl',        $config['TMB_URL']);
    STemplate::assign('site_name',     $config['site_name']);
    STemplate::setCompileDir($config['basedir']."/templates_c");
    STemplate::setTplDir($config['basedir']."/templates");
    ?>
    EDTALKING


  3. #13
    Join Date
    Oct 2006
    Location
    Northampton
    Posts
    694
    Tokens
    142

    Default

    Try this...

    PHP Code:
     <?
    session_start
    ();
    $config = array();
    $config['BASE_DIR']     =  '/home/yoursite/public_html/video';
    $config['BASE_URL']     =  'http://www.yoursite.com/video';
    $config['CONF_FILE']    =  $config[BASE_DIR].'/include/conf.ini';
    $config['IMG_DIR']      =  $config[BASE_DIR].'/images';
    $config['IMG_URL']      =  $config[BASE_URL].'/images';
    $config['VDO_DIR']      =  $config[BASE_DIR].'/video';
    $config['VDO_URL']      =  $config[BASE_URL].'/video';
    $config['FLVDO_DIR']      =  $config[BASE_DIR].'/flvideo';
    $config['FLVDO_URL']      =  $config[BASE_URL].'/flvideo';
    $config['TMB_DIR']      =  $config[BASE_DIR].'/thumb';
    $config['TMB_URL']      =  $config[BASE_URL].'/thumb';
    $config['baseurl']      =  $config['BASE_URL'];
    $config['basedir']      =  $config['BASE_DIR'];
    $config['vdodir']       =  $config['VDO_DIR'];
    $config['vdourl']       =  $config['VDO_URL'];
    $config['flvdodir']       =  $config['FLVDO_DIR'];
    $config['flvdourl']       =  $config['FLVDO_URL'];
    $config['imgurl']       =  $config['IMG_URL'];
    $config['imgpath']      =  $config['IMG_DIR'];
    $config['tmbdir']       =  $config['TMB_DIR'];
    $config['tmburl']       =  $config['TMB_URL'];
    $config['ffmpeg']       =  "/usr/local/bin/ffmpeg";

    require_once(
    $config[BASE_DIR].'/smarty/libs/Smarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/mysmarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/SConfig.php');
    require_once(
    $config[BASE_DIR].'/classes/SError.php');
    require_once(
    $config[BASE_DIR].'/include/adodb/adodb.inc.php');
    require_once(
    $config[BASE_DIR].'/classes/SEmail.php');

    $DBTYPE 'mysql';
    $DBHOST SConfig::get("localhost");
    $DBUSER SConfig::get("ed_vu");
    $DBPASSWORD SConfig::get("vu");
    $DBNAME SConfig::get("ed_vu");

    $conn = &ADONewConnection($DBTYPE);
    $conn->PConnect($DBHOST$DBUSER$DBPASSWORD$DBNAME);

    $sql "SELECT * from sconfig";
    $rsc $conn->Execute($sql);

    if(
    $rsc){while(!$rsc->EOF)
    {
    $field $rsc->fields['soption'];
    $config[$field] = $rsc->fields['svalue'];
    STemplate::assign($field$config[$field]);
    @
    $rsc->MoveNext();
    }}

    STemplate::assign('BASE_URL',       $config['BASE_URL']);
    STemplate::assign('BASE_DIR',       $config['BASE_DIR']);
    STemplate::assign('IMG_URL',        $config['IMG_URL']);
    STemplate::assign('baseurl',       $config['BASE_URL']);
    STemplate::assign('basedir',       $config['BASE_DIR']);
    STemplate::assign('imgurl',        $config['IMG_URL']);
    STemplate::assign('vdourl',        $config['VDO_URL']);
    STemplate::assign('flvdourl',       $config['FLVDO_URL']);
    STemplate::assign('tmburl',        $config['TMB_URL']);
    STemplate::assign('site_name',     $config['site_name']);
    STemplate::setCompileDir($config['basedir']."/templates_c");
    STemplate::setTplDir($config['basedir']."/templates");
    ?>
    Good-bye signature, I love <NOT ALLOWED NAME AT ALL> despite the infraction his last name got me.

    Free speech? Not anymore, you gotta' love this forum.

  4. #14
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by JamesRouale View Post
    Try this...

    PHP Code:
     <?
    session_start
    ();
    $config = array();
    $config['BASE_DIR']     =  '/home/yoursite/public_html/video';
    $config['BASE_URL']     =  'http://www.yoursite.com/video';
    $config['CONF_FILE']    =  $config[BASE_DIR].'/include/conf.ini';
    $config['IMG_DIR']      =  $config[BASE_DIR].'/images';
    $config['IMG_URL']      =  $config[BASE_URL].'/images';
    $config['VDO_DIR']      =  $config[BASE_DIR].'/video';
    $config['VDO_URL']      =  $config[BASE_URL].'/video';
    $config['FLVDO_DIR']      =  $config[BASE_DIR].'/flvideo';
    $config['FLVDO_URL']      =  $config[BASE_URL].'/flvideo';
    $config['TMB_DIR']      =  $config[BASE_DIR].'/thumb';
    $config['TMB_URL']      =  $config[BASE_URL].'/thumb';
    $config['baseurl']      =  $config['BASE_URL'];
    $config['basedir']      =  $config['BASE_DIR'];
    $config['vdodir']       =  $config['VDO_DIR'];
    $config['vdourl']       =  $config['VDO_URL'];
    $config['flvdodir']       =  $config['FLVDO_DIR'];
    $config['flvdourl']       =  $config['FLVDO_URL'];
    $config['imgurl']       =  $config['IMG_URL'];
    $config['imgpath']      =  $config['IMG_DIR'];
    $config['tmbdir']       =  $config['TMB_DIR'];
    $config['tmburl']       =  $config['TMB_URL'];
    $config['ffmpeg']       =  "/usr/local/bin/ffmpeg";

    require_once(
    $config[BASE_DIR].'/smarty/libs/Smarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/mysmarty.class.php');
    require_once(
    $config[BASE_DIR].'/classes/SConfig.php');
    require_once(
    $config[BASE_DIR].'/classes/SError.php');
    require_once(
    $config[BASE_DIR].'/include/adodb/adodb.inc.php');
    require_once(
    $config[BASE_DIR].'/classes/SEmail.php');

    $DBTYPE 'mysql';
    $DBHOST SConfig::get("localhost");
    $DBUSER SConfig::get("ed_vu");
    $DBPASSWORD SConfig::get("vu");
    $DBNAME SConfig::get("ed_vu");

    $conn = &ADONewConnection($DBTYPE);
    $conn->PConnect($DBHOST$DBUSER$DBPASSWORD$DBNAME);

    $sql "SELECT * from sconfig";
    $rsc $conn->Execute($sql);

    if(
    $rsc){while(!$rsc->EOF)
    {
    $field $rsc->fields['soption'];
    $config[$field] = $rsc->fields['svalue'];
    STemplate::assign($field$config[$field]);
    @
    $rsc->MoveNext();
    }}

    STemplate::assign('BASE_URL',       $config['BASE_URL']);
    STemplate::assign('BASE_DIR',       $config['BASE_DIR']);
    STemplate::assign('IMG_URL',        $config['IMG_URL']);
    STemplate::assign('baseurl',       $config['BASE_URL']);
    STemplate::assign('basedir',       $config['BASE_DIR']);
    STemplate::assign('imgurl',        $config['IMG_URL']);
    STemplate::assign('vdourl',        $config['VDO_URL']);
    STemplate::assign('flvdourl',       $config['FLVDO_URL']);
    STemplate::assign('tmburl',        $config['TMB_URL']);
    STemplate::assign('site_name',     $config['site_name']);
    STemplate::setCompileDir($config['basedir']."/templates_c");
    STemplate::setTplDir($config['basedir']."/templates");
    ?>
    No Luck

    +REPPED ALL EXEPT SI, Gta Spread
    Last edited by :Edzy; 09-06-2007 at 08:23 PM.
    EDTALKING


  5. #15
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    read the readme files they tell you what to do
    Looking for a good desiner to design a social networking template.

    PM me.

Page 2 of 2 FirstFirst 12

Posting Permissions

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