Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F2111403
check_paths.tpl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 18, 11:49 AM
Size
773 B
Mime Type
text/x-php
Expires
Fri, Nov 20, 11:49 AM (35 m, 33 s)
Engine
blob
Format
Raw Data
Handle
993094
Attached To
rINP In-Portal
check_paths.tpl
View Options
<?php
ob_start();
?>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
%s
</
b
></
td
>
<
td
width
=
"30"
align
=
"center"
>
%s
</
td
>
</
tr
>
<?php
$
folder_tpl = ob_get_clean();
$
writeable_base =
$
this->toolkit->getSystemConfig('Misc', 'WriteablePath');
foreach (
$
this->writeableFolders as
$
folder_path) {
$
fi
le_path = str_replace('
$
1',
$
writeable_base,
$
folder_path);
if (file_exists(FULL_PATH .
$
fi
le_path)) {
if (!is_writable(FULL_PATH .
$
fi
le_path)) {
$
folder_status = '[<span class="error">FAILED</span>]';
$
error_message = ' (<span class="error">777 required</span>)';
}
else {
$
folder_status = '[<span style="color:green;">OK</span>]';
$
error_message = '';
}
echo sprintf(
$
folder_tpl,
$
fi
le_path .
$
error_message,
$
folder_status);
}
}
?>
Event Timeline
Log In to Comment