editing header.php ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bazmanblue
    New Member
    • Nov 2006
    • 2

    editing header.php ?

    im trying to edit my header file but am not able to upload it as it says

    "Started: 07/11/2006 14:46

    sklinks\headers .php - error occurred - An FTP error occurred - cannot put headers.php. Access Denied. The file may not exist, or there could be a permission problem.

    File activity incomplete. 1 file(s) or folder(s) were not completed.

    Files with errors: 1
    sklinks\headers .php"

    my scripts is
    [php]
    <?php


    //Section for script configuraion - START
    //For info, refer to the Manual.

    $_url_main_site = 'http://www.freeaddsgal ore.me.uk/'; //http://www.mysite.com/dir/
    $_url_root = 'http://freeaddsgalore. me.uk/sklinks/'; //http://www.mysite.com/
    $_dir_root = '/something/ If you are unsure about the correct path to the home directory of your site in the server file system, please contact your web-hosting support for assistance.

    $_site_title = 'Freeaddsgalore Free Directory';
    $_site_full_nam e = 'The ultimate free ads and small business resource';
    $_site_brand = 'freeaddsgalore ';
    $_site_descript ion = 'Its here. Freeaddsgalore now offers your its own free directory for all your websites!';

    $_mysql_usernam e = 'fsomething';
    $_mysql_userpwd = 'something';
    $_mysql_host = 'localhost';
    $_mysql_dbname = 'something;

    //Section for script configuraion - END


    $_skalinks_url['root'] = $_url_root;
    $_skalinks_url['dir'] = $_skalinks_url['root'];
    $_skalinks_url['templates'] = $_skalinks_url['root'].'templates/';
    $_skalinks_url['admin'] = $_skalinks_url['root'].'admin/';
    $_skalinks_url['main_site'] = $_url_main_site ;
    $_skalinks_url['rm_news'] = 'http://www.skalinks.co m/news/news.rss';

    $_skalinks_dir['root'] = $_dir_root;
    $_skalinks_dir['dir'] = $_skalinks_dir['root'];
    $_skalinks_dir['admin'] = $_skalinks_dir['root'].'admin/';
    $_skalinks_dir['db_backup'] = $_skalinks_dir['admin'].'db_backup/';

    $_skalinks_dir['smarty'] = $_skalinks_dir['root'].'smarty/';
    $_skalinks_dir['template_dir'] = $_skalinks_dir['root'].'templates/';
    $_skalinks_dir['compile_dir'] = $_skalinks_dir['root'].'compile/';
    $_skalinks_dir['config_dir'] = $_skalinks_dir['root'].'config/';
    $_skalinks_dir['cache_dir'] = $_skalinks_dir['root'].'cache/';

    $_skalinks_mysq l['username'] = $_mysql_usernam e;
    $_skalinks_mysq l['userpwd'] = $_mysql_userpwd ;
    $_skalinks_mysq l['host'] = $_mysql_host;
    $_skalinks_mysq l['dbname'] = $_mysql_dbname;
    $_skalinks_mysq l['tbl_prefix'] = 'dir_';

    $_skalinks_page = array
    (
    'title' => $_site_title,
    'title_add_cat' => 'Add Category',
    'title_add_url' => 'Add Link',
    'title_search' => 'Find your Link',
    'title_search_r esult' => 'Search Result',
    'title_edit_cat ' => 'Edit Category',
    'title_edit_url ' => 'Edit Link',
    'title_admin' => 'Admin index page',
    'title_link_lis t' => 'Links list',
    'title_cat_list ' => 'Categories list',
    'title_dirtree' => 'Tree of categories',
    );

    $_skalinks_site = array
    (
    'site_descripti on' => $_site_descript ion,
    'site_full' => $_site_full_nam e,
    'brand' => $_site_brand,
    'mail_theme' => 'Message',
    );


    require_once( 'SkaLinks_inclu de/English_lang.ph p' );
    require_once( 'SkaLinks_inclu de/component.php' );
    require_once( 'SkaLinks_inclu de/SkaLinks.class. php' );
    require_once( $_skalinks_dir['smarty'].'Smarty.class. php' );
    require_once( 'SkaLinks_inclu de/design.php' );
    $SkaLinks = new SkaLinks( $_skalinks_mysq l );
    $SkaLinks->SetRootURL( $_skalinks_url['root'] );
    $SkaLinks->SetPrefix( $_skalinks_mysq l['tbl_prefix'] );
    $color_theme = $SkaLinks->GetParam( 'color_theme' );
    $_skalinks_url['color_theme'] = $_skalinks_url['templates'].$color_theme.'/';

    // Get some settings
    $_output['register_users '] = $SkaLinks->GetParam( 'register_users ' );

    ?>[/php]

    If anyone can help i will be very thankful
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    If you want anyone to look at that bunch of lines, you'd better think twice! You don't really expect anyone to read that from a screen, do you?

    Before you post anything like that, have a mandatory look at the Posting Guidelines at the top of this forum. Better, have a good look at the part of it that describes the use of code, php or html tags around code that is shown.

    Ronald :cool:

    Comment

    • bazmanblue
      New Member
      • Nov 2006
      • 2

      #3
      I did try to but every time i pasted the code it only pasted one line?

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        It does not with me! Do it better next time.

        Ronald :cool:

        Comment

        Working...