<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+// vim: set expandtab tabstop=4 shiftwidth=4 binary:
// +--------------------------------------------------------------------+
// | BIFE - Buil It FastEr |
// +--------------------------------------------------------------------+
{
$url = @$attrs['URL'];
unset($attrs['URL']);
- if (isset($attrs['BIFE'])) {
- $attrs['DATA-BIFE'] = $attrs['BIFE'];
- unset($attrs['BIFE']);
- }
$query = array();
foreach($attrs as $name => $value) {
if (substr($name, 0, 5) === 'DATA-') {
}
// -X2C
+ // +X2C Operation 160
+ /**
+ * Gets the relative path of the current BIFE file for web (URL) usage.
+ *
+ * @return string
+ * @access public
+ */
+ function getWebPath() // ~X2C
+ {
+ return (@$_SERVER['PATH_INFO']) ? '../' : './';
+ }
+ // -X2C
+
+ // +X2C Operation 161
+ /**
+ * Gets the relative path of the current BIFE file for filesystem usage.
+ *
+ * @return string
+ * @access public
+ */
+ function getFsPath() // ~X2C
+ {
+ return dirname('.' . @$_SERVER['PATH_INFO']) . '/';
+ }
+ // -X2C
+
// +X2C Operation 157
/**
* Renders the widget.