Modify vBulletin php source code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idis
    New Member
    • Mar 2017
    • 12
    • 5.2.x

    [Server Config] Modify vBulletin php source code

    I have some multi-byte character problems with php5

    e.g) first multi-byte character is disappeared when uploading file. -> this is php5 basename() problem

    so I go to /core/includes/function_upload.php

    and write

    function getbasename($path)
    {
    code for correct basename with multi-byte
    ..
    ..
    }

    and change

    $this->upload['filename'] = basename($upload);
    to
    $this->upload['filename'] = getbasename($upload);

    but when I watching packet, there is no change..

    so I test
    $this->upload['filename'] = basename('/var/www/test.txt');

    but result is equal to original source code. ($this->upload['filename'] = basename($upload))

    I have to do something for working vbulletin with modified source code
    or
    uploading attachment source is not in the /core/includes/function_upload.php?

    p.s
    I want to also modify download attachment source.
    this source is in the /core/includes/function_file.php?
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24288
    • 6.0.X

    #2
    We don't support code modifications.

    For help with this, you can try asking on www.vbulletin.org, the modification and customisation site.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...