From 97c4afc2ebc8d60f10e1a5108846cb5ed2536fdf Mon Sep 17 00:00:00 2001 From: 8chan Date: Sun, 18 May 2014 19:37:22 +0000 Subject: [PATCH] https change for $config[embedding] --- inc/instance-config.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/inc/instance-config.php b/inc/instance-config.php index 1babe92c..932a593b 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -327,3 +327,29 @@ EOT; mod_page(_('Board configuration'), 'mod/settings.html', array('board'=>$board, 'rules'=>prettify_textarea($rules), 'css'=>prettify_textarea($css), 'token'=>make_secure_link_token('settings/'.$board['uri']), 'languages'=>$possible_languages)); }; + $config['embedding'] = array( + array( + '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', + '' + ), + array( + '/^https?:\/\/(\w+\.)?vimeo\.com\/(\d{2,10})(\?.+)?$/i', + '' + ), + array( + '/^https?:\/\/(\w+\.)?dailymotion\.com\/video\/([a-zA-Z0-9]{2,10})(_.+)?$/i', + '' + ), + array( + '/^https?:\/\/(\w+\.)?metacafe\.com\/watch\/(\d+)\/([a-zA-Z0-9_\-.]+)\/(\?.+)?$/i', + '
' + ), + array( + '/^https?:\/\/video\.google\.com\/videoplay\?docid=(\d+)([&#](.+)?)?$/i', + '' + ), + array( + '/^https?:\/\/(\w+\.)?vocaroo\.com\/i\/([a-zA-Z0-9]{2,15})$/i', + '' + ) + );