Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F772174
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
Sat, Feb 1, 5:34 AM
Size
773 B
Mime Type
text/x-php
Expires
Mon, Feb 3, 5:34 AM (3 h, 22 m)
Engine
blob
Format
Raw Data
Handle
555237
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