mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc
* edited example in README.md to be more clear * fixed a typo in RedButton template. * fixed a typo in comment ajax. Can now use sticky again. * fixed a logic error in comment reply js. do not line break image sources.
This commit is contained in:
@@ -80,8 +80,9 @@ Calculate.Gameoject.Zone.Area.Data = 1
|
|||||||
6. reencode the audio files. WAV-files need to be reencoded as `ogg/vorbis` and some MP3s may identify themselves as `application/octet-stream` instead of `audio/mpeg`.
|
6. reencode the audio files. WAV-files need to be reencoded as `ogg/vorbis` and some MP3s may identify themselves as `application/octet-stream` instead of `audio/mpeg`.
|
||||||
example for ffmpeg
|
example for ffmpeg
|
||||||
```
|
```
|
||||||
find path/to/extracted/files/<localeCode> -name "*.wav" -exec ffmpeg -hide_banner -y -i {} -acodec libvorbis {}.ogg \; # file.wav -> file.wav.ogg
|
cd path/to/mpqdata/<localeCode>
|
||||||
find path/to/extracted/files/<localeCode> -name "*.mp3" -exec ffmpeg -hide_banner -y -i {} -f mp3 -acodec libmp3lame {}.mp3 \; # file.mp3 -> file.mp3.mp3
|
find -name "*.wav" -exec ffmpeg -hide_banner -y -i {} -acodec libvorbis {}.ogg \; # file.wav -> file.wav.ogg
|
||||||
|
find -name "*.mp3" -exec ffmpeg -hide_banner -y -i {} -f mp3 -acodec libmp3lame {}.mp3 \; # file.mp3 -> file.mp3.mp3
|
||||||
```
|
```
|
||||||
|
|
||||||
7. run the initial setup from the CLI `php aowow --firstrun`. It should guide you through with minimal input required from your end.
|
7. run the initial setup from the CLI `php aowow --firstrun`. It should guide you through with minimal input required from your end.
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ class AjaxComment extends AjaxHandler
|
|||||||
'remove' => [FILTER_SANITIZE_NUMBER_INT, null],
|
'remove' => [FILTER_SANITIZE_NUMBER_INT, null],
|
||||||
'commentId' => [FILTER_SANITIZE_NUMBER_INT, null],
|
'commentId' => [FILTER_SANITIZE_NUMBER_INT, null],
|
||||||
'replyId' => [FILTER_SANITIZE_NUMBER_INT, null],
|
'replyId' => [FILTER_SANITIZE_NUMBER_INT, null],
|
||||||
|
'sticky' => [FILTER_SANITIZE_NUMBER_INT, null],
|
||||||
// 'username' => [FILTER_SANITIZE_STRING, 0xC] // FILTER_FLAG_STRIP_LOW | *_HIGH
|
// 'username' => [FILTER_SANITIZE_STRING, 0xC] // FILTER_FLAG_STRIP_LOW | *_HIGH
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -13021,7 +13021,7 @@ Listview.templates = {
|
|||||||
var replyHtml = Markup.toHtml(reply.body, {allow: Markup.CLASS_USER, mode: Markup.MODE_REPLY, roles: 0, locale: comment.locale});
|
var replyHtml = Markup.toHtml(reply.body, {allow: Markup.CLASS_USER, mode: Markup.MODE_REPLY, roles: 0, locale: comment.locale});
|
||||||
|
|
||||||
replyHtml = replyHtml.replace(/[^\s<>]{81,}/, function(text) {
|
replyHtml = replyHtml.replace(/[^\s<>]{81,}/, function(text) {
|
||||||
if(text.substring(0, 5) == 'href')
|
if(text.substring(0, 4) == 'href' || text.substring(0, 3) == 'src')
|
||||||
return text;
|
return text;
|
||||||
|
|
||||||
var ret = '';
|
var ret = '';
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ endif;
|
|||||||
// ingame-links/markdown/ect
|
// ingame-links/markdown/ect
|
||||||
if (isset($this->redButtons[BUTTON_LINKS])):
|
if (isset($this->redButtons[BUTTON_LINKS])):
|
||||||
if ($b = $this->redButtons[BUTTON_LINKS]):
|
if ($b = $this->redButtons[BUTTON_LINKS]):
|
||||||
echo '<a href="javascript:;" id="open-links-button" class="button-red" onclick="this.blur(); Links.show('.strtr(Util::toJSON($b, JSON_NUMERIC_CHECK | JSON_UNSECAPED_UNICODE | JSON_HEX_APOS), ['"' => "'"]).');"><em><b><i>'.Lang::main('links').'</i></b><span>'.Lang::main('links').'</span></em></a>';
|
echo '<a href="javascript:;" id="open-links-button" class="button-red" onclick="this.blur(); Links.show('.strtr(Util::toJSON($b, JSON_NUMERIC_CHECK | JSON_UNESCAPED_UNICODE | JSON_HEX_APOS), ['"' => "'"]).');"><em><b><i>'.Lang::main('links').'</i></b><span>'.Lang::main('links').'</span></em></a>';
|
||||||
else:
|
else:
|
||||||
echo '<a href="javascript:;" id="open-links-button" class="button-red button-red-disabled"><em><b><i>'.Lang::main('links').'</i></b><span>'.Lang::main('links').'</span></em></a>';
|
echo '<a href="javascript:;" id="open-links-button" class="button-red button-red-disabled"><em><b><i>'.Lang::main('links').'</i></b><span>'.Lang::main('links').'</span></em></a>';
|
||||||
endif;
|
endif;
|
||||||
@@ -25,7 +25,7 @@ endif;
|
|||||||
// view in 3D
|
// view in 3D
|
||||||
if (isset($this->redButtons[BUTTON_VIEW3D])):
|
if (isset($this->redButtons[BUTTON_VIEW3D])):
|
||||||
if ($b = $this->redButtons[BUTTON_VIEW3D]): // json_encode puts property names in brackets wich is not cool with inline javascript
|
if ($b = $this->redButtons[BUTTON_VIEW3D]): // json_encode puts property names in brackets wich is not cool with inline javascript
|
||||||
echo '<a href="javascript:;" id="view3D-button" class="button-red" onclick="this.blur(); ModelViewer.show('.strtr(Util::toJSON($b, JSON_NUMERIC_CHECK | JSON_UNSECAPED_UNICODE | JSON_HEX_APOS), ['"' => "'"]).')"><em><b><i>'.Lang::main('view3D').'</i></b><span>'.Lang::main('view3D').'</span></em></a>';
|
echo '<a href="javascript:;" id="view3D-button" class="button-red" onclick="this.blur(); ModelViewer.show('.strtr(Util::toJSON($b, JSON_NUMERIC_CHECK | JSON_UNESCAPED_UNICODE | JSON_HEX_APOS), ['"' => "'"]).')"><em><b><i>'.Lang::main('view3D').'</i></b><span>'.Lang::main('view3D').'</span></em></a>';
|
||||||
else:
|
else:
|
||||||
echo '<a href="javascript:;" id="view3D-button" class="button-red button-red-disabled"><em><b><i>'.Lang::main('view3D').'</i></b><span>'.Lang::main('view3D').'</span></em></a>';
|
echo '<a href="javascript:;" id="view3D-button" class="button-red button-red-disabled"><em><b><i>'.Lang::main('view3D').'</i></b><span>'.Lang::main('view3D').'</span></em></a>';
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
Reference in New Issue
Block a user