Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1102198
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
Mon, Aug 18, 5:27 AM
Size
775 B
Mime Type
text/x-php
Expires
Wed, Aug 20, 5:27 AM (1 d, 1 h)
Engine
blob
Format
Raw Data
Handle
713991
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->systemConfig->get('WriteablePath', 'Misc');
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