Anyway to remove attachments file permission test from insta

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
asilveri
Posts: 10
Joined: Mon Mar 09, 2009 5:58 pm

Anyway to remove attachments file permission test from insta

Post by asilveri »

Script URL:
Version of script:Hesk 2.0
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello everyone. I wanted to know if there if a way of removing the attachments folder file permission test from the installation. Anyway to bypass this test?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In install.php and update.php chage

Code: Select all

<tr>
<td class="admin_white"><b>File uploads</b><br />To use file attachments <i>file_uploads</i> must be enabled in PHP</td>
<td class="admin_white" valign="middle">
<?php
$mypassed=1;
$can_use_attachments=1;
if (ini_get('file_uploads'))
{
    echo '<b><font color="#008000">Enabled</font></b>';
}
else
{
    $mypassed=0;
    $can_use_attachments=0;
    echo '<b><font color="#FFA500">Disabled</font></b>';
}
?>
</td>
<td class="admin_white" valign="middle">
<?php
if ($mypassed==1)
{
    echo '<font color="#008000"><b>Passed</b></font>';
}
else
{
    echo '<font color="#FFA500"><b>Unavailable*</b></font>';
}
?>
</td>
</tr>
to

Code: Select all

<?php
$can_use_attachments=1;
?>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
asilveri
Posts: 10
Joined: Mon Mar 09, 2009 5:58 pm

it still says attachments directory exist not writable

Post by asilveri »

thank you for the fast reply Klemen. I replace the code you gave me and the install test still shows attachments directory is not writable.

Image
asilveri
Posts: 10
Joined: Mon Mar 09, 2009 5:58 pm

attachments bypass

Post by asilveri »

I managed to bypass the test by commenting out the following lines

$f = @fopen($path, 'a');
if ($f===false)
return false;
fclose($f);
if (!$rm)
Post Reply