Page 1 of 1
Anyway to remove attachments file permission test from insta
Posted: Wed Apr 15, 2009 4:43 pm
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?
Posted: Wed Apr 15, 2009 5:08 pm
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
it still says attachments directory exist not writable
Posted: Wed Apr 15, 2009 5:39 pm
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.

attachments bypass
Posted: Wed Apr 15, 2009 6:32 pm
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)