Version 1 vs 3
Version 1 vs 3
Edits
Edits
- Edit by dereckson, Version 3
- Jun 7 2023 22:28
- ·Fix MOVE url
- Edit by dereckson, Version 1
- Mar 23 2015 11:12
Edit Older Version 1... | Edit Current Version 3... |
Content Changes
Content Changes
We use a standard distribution of HotGlue, with auth and aliases edited.
**Auth**
A good solution should be implemented, currently, we let it opento all.
**Custom aliases**
In common.inc.php,add to resolve_aliases function the following aliases:
```
//Zed local moves
$s = str_replace('%NORTH', ZED_URL . '/do.php/local_move/north?redirectTo=/', $s);
$s = str_replace('%EAST', ZED_URL . '/do.php/local_move/east?redirectTo=/', $s);
$s = str_replace('%SOUTH', ZED_URL . '/do.php/local_move/south?redirectTo=/', $s);
$s = str_replace('%WEST', ZED_URL . '/do.php/local_move/west?redirectTo=/', $s);
$s = str_replace('%UP', ZED_URL . '/do.php/local_move/up?redirectTo=/', $s);
$s = str_replace('%DOWN', ZED_URL . '/do.php/local_move/down?redirectTo=/', $s);
$s = preg_replace('/%MOVE (.*)/', ZED_URL . '/do.php/local_move/?redirectTo=$1?redirectTo=/', $s);
```
We use a standard distribution of HotGlue, with auth and aliases edited.
**Auth**
A good solution should be implemented, currently, we let it open to all.
**Custom aliases**
In common.inc.php,add to resolve_aliases function the following aliases:
```
//Zed local moves
$s = str_replace('%NORTH', ZED_URL . '/do.php/local_move/north?redirectTo=/', $s);
$s = str_replace('%EAST', ZED_URL . '/do.php/local_move/east?redirectTo=/', $s);
$s = str_replace('%SOUTH', ZED_URL . '/do.php/local_move/south?redirectTo=/', $s);
$s = str_replace('%WEST', ZED_URL . '/do.php/local_move/west?redirectTo=/', $s);
$s = str_replace('%UP', ZED_URL . '/do.php/local_move/up?redirectTo=/', $s);
$s = str_replace('%DOWN', ZED_URL . '/do.php/local_move/down?redirectTo=/', $s);
$s = preg_replace('/%MOVE (.*)/', ZED_URL . '/do.php/local_move/($1)?redirectTo=/', $s);
```
We use a standard distribution of HotGlue, with auth and aliases edited.
**Auth**
A good solution should be implemented, currently, we let it open to all.
**Custom aliases**
In common.inc.php,add to resolve_aliases function the following aliases:
```
//Zed local moves
$s = str_replace('%NORTH', ZED_URL . '/do.php/local_move/north?redirectTo=/', $s);
$s = str_replace('%EAST', ZED_URL . '/do.php/local_move/east?redirectTo=/', $s);
$s = str_replace('%SOUTH', ZED_URL . '/do.php/local_move/south?redirectTo=/', $s);
$s = str_replace('%WEST', ZED_URL . '/do.php/local_move/west?redirectTo=/', $s);
$s = str_replace('%UP', ZED_URL . '/do.php/local_move/up?redirectTo=/', $s);
$s = str_replace('%DOWN', ZED_URL . '/do.php/local_move/down?redirectTo=/', $s);
$s = preg_replace('/%MOVE (.*)/', ZED_URL . '/do.php/local_move/?redirectTo=$1($1)?redirectTo=/', $s);
```