diff --git a/public_html/boxsizing.htc b/public_html/boxsizing.htc deleted file mode 100755 index 6687895..0000000 --- a/public_html/boxsizing.htc +++ /dev/null @@ -1,169 +0,0 @@ - - - - - \ No newline at end of file diff --git a/public_html/external.php b/public_html/external.php deleted file mode 100755 index f417178..0000000 --- a/public_html/external.php +++ /dev/null @@ -1,197 +0,0 @@ - - - -
", - "href,src,alt,class,style,align,valign,color,face,size,width,height,shape,coords,target,border,cellpadding,cellspacing,colspan,rowspan"); -} - -function filter_basic($input) -{ - return strip_tags_attributes($input, - "", - "href,src,alt,class,style,align,valign,color,face,size,width,height,border,cellpadding,cellspacing,colspan,rowspan"); -} - -/*function parse_youtube($input) -{ - return preg_replace("/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i", - " - ",$input); -}*/ - -function youtubify($input) -{ - $video_width = 900; - $video_height = 506; - - $input = preg_replace("/]+href=[\"']https?:\/\/([a-z\-0-9]+\.)youtube\.com\/watch\?[^'\" ]*v=([a-z0-9\-_]+)[^'\" ]*['\"][^>]*>[^<]*<\/a>/i", - "", $input); - - $input = preg_replace("/https?:\/\/([a-z\-0-9]+\.)youtube\.com\/watch\?[^'\" ]*v=([a-z0-9\-_]+)[^<)\]! ]*/i", - "", $input); - - return $input; -} -?> diff --git a/public_html/include/include.ip.php b/public_html/include/include.ip.php deleted file mode 100755 index afc85e2..0000000 --- a/public_html/include/include.ip.php +++ /dev/null @@ -1,138 +0,0 @@ -= $low && $check <= $high) - { - return true; - } - else - { - return false; - } -} - -function is_reverse_proxied() -{ - $reverseProxied = false; - // TODO multiple ips! - if(!empty($_SERVER['HTTP_X_FORWARDED_FOR']) || !empty($_SERVER['HTTP_FORWARDED_FOR']) || !empty($_SERVER['HTTP_CLIENT_IP']) || !empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) - { - $ip = $_SERVER['REMOTE_ADDR']; - // First check for requests that originate from localhost - $reverseProxied = $reverseProxied || ip_in_range($ip, "10.0.0.0/8"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "127.0.0.1/8"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "172.16.0.0/12"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "192.168.0.0/16"); - - // Then check for CloudFlare - $reverseProxied = $reverseProxied || ip_in_range($ip, "204.93.240.0/24"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "204.93.177.0/24"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "199.27.128.0/21"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "173.245.48.0/20"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "103.22.200.0/22"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "141.101.64.0/18"); - - if(!empty($proxy_ranges)) - { - foreach($proxy_ranges as $proxy_range) - { - $reverseProxied = $reverseProxied || ip_in_range($ip, $proxy_range); - } - } - } - - return $reverseProxied; -} - -function get_ip() -{ - if(is_reverse_proxied()) - { - if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) - { - $result = $_SERVER['HTTP_X_FORWARDED_FOR']; - } - elseif(!empty($_SERVER['HTTP_FORWARDED_FOR'])) - { - $result = $_SERVER['HTTP_FORWARDED_FOR']; - } - elseif(!empty($_SERVER['HTTP_CLIENT_IP'])) - { - $result = $_SERVER['HTTP_CLIENT_IP']; - } - elseif(!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) - { - $result = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP']; - } - else - { - $result = $_SERVER['REMOTE_ADDR']; - } - } - else - { - $result = $_SERVER['REMOTE_ADDR']; - } - - return $result; -} - -function check_banlist() -{ - global $bannedIps; - $ipList = explode(",", get_ip()); - foreach($ipList as $ip) - { - if(isset($bannedIps[trim($ip)])) - { - return true; // Banned. - } - } - return false; // Not banned. -} - -function check_blacklisted($ip = null) -{ - /* Thanks to Rene Moser (http://www.renemoser.net/) */ - if($ip == null) - { - $ip = get_ip(); - } - - $dns_black_lists = file('dnsbl/dnsbl.txt', FILE_IGNORE_NEW_LINES); - $rev_ip = implode(array_reverse(explode('.', $ip)), '.'); - $response = array(); - foreach ($dns_black_lists as $dns_black_list) - { - $response = (gethostbynamel($rev_ip . '.' . $dns_black_list)); - if (!empty($response)) - { - return true; - } - } - return false; -} - -function ip_hash($ip) -{ - $ip = str_replace("::ffff:", "", $ip); - list($a, $b, $c, $d) = explode(".", $ip); - $e = ($d < 128) ? 0 : 128; - return sha1("{$a}.{$b}.{$c}.{$e}"); -} -?> diff --git a/public_html/include/include.memcache.php b/public_html/include/include.memcache.php deleted file mode 100755 index 4d77b39..0000000 --- a/public_html/include/include.memcache.php +++ /dev/null @@ -1,141 +0,0 @@ -connect($memcache_server, $memcache_port); - - if($memcache_established !== false) - { - $memcache_connected = true; - } - else - { - $memcache_connected = false; - } -} - -function mc_get($key) -{ - global $memcache_enabled, $memcache_connected, $memcache; - - if($memcache_enabled === false || $memcache_connected === false) - { - return false; - } - else - { - $get_result = $memcache->get($key); - if($get_result !== false) - { - return $get_result; - } - else - { - return false; - } - } -} - -function mc_set($key, $value, $expiry) -{ - global $memcache_enabled, $memcache_connected, $memcache_compressed, $memcache; - - if($memcache_enabled === false || $memcache_connected === false) - { - return false; - } - else - { - if($memcache_compressed === true) - { - $flag = MEMCACHE_COMPRESSED; - } - else - { - $flag = false; - } - - $set_result = $memcache->set($key, $value, $flag, $expiry); - return $set_result; - } -} - -function mc_delete($key) -{ - global $memcache_enabled, $memcache_connected, $memcache; - - if($memcache_enabled === false || $memcache_connected === false) - { - return false; - } - else - { - return $memcache->delete($key); - } -} - -function mysql_query_cached($query, $expiry = 60) -{ - if($res = mc_get(md5($query) . md5($query . "x"))) - { - $return_object->source = "memcache"; - $return_object->data = $res; - return $return_object; - } - else - { - if($res = mysql_query($query)) - { - $found = false; - - while($row = mysql_fetch_assoc($res)) - { - $return_object->data[] = $row; - $found = true; - } - - if($found === true) - { - $return_object->source = "database"; - mc_set(md5($query) . md5($query . "x"), $return_object->data, $expiry); - return $return_object; - } - else - { - return false; - } - } - else - { - return false; - } - } -} - -function file_get_contents_cached($path, $expiry = 3600) -{ - if($res = mc_get(md5($path) . md5($path . "x"))) - { - $return_object->source = "memcache"; - $return_object->data = $res; - return $return_object; - } - else - { - if($result = file_get_contents($path)) - { - $return_object->source = "disk"; - $return_object->data = $result; - mc_set(md5($path) . md5($path . "x"), $return_object->data, $expiry); - return $return_object; - } - else - { - return false; - } - } -} -?> diff --git a/public_html/include/include.recaptcha.php b/public_html/include/include.recaptcha.php deleted file mode 100755 index 32c4f4d..0000000 --- a/public_html/include/include.recaptcha.php +++ /dev/null @@ -1,277 +0,0 @@ - $value ) - $req .= $key . '=' . urlencode( stripslashes($value) ) . '&'; - - // Cut the last '&' - $req=substr($req,0,strlen($req)-1); - return $req; -} - - - -/** - * Submits an HTTP POST to a reCAPTCHA server - * @param string $host - * @param string $path - * @param array $data - * @param int port - * @return array response - */ -function _recaptcha_http_post($host, $path, $data, $port = 80) { - - $req = _recaptcha_qsencode ($data); - - $http_request = "POST $path HTTP/1.0\r\n"; - $http_request .= "Host: $host\r\n"; - $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; - $http_request .= "Content-Length: " . strlen($req) . "\r\n"; - $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; - $http_request .= "\r\n"; - $http_request .= $req; - - $response = ''; - if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) { - die ('Could not open socket'); - } - - fwrite($fs, $http_request); - - while ( !feof($fs) ) - $response .= fgets($fs, 1160); // One TCP-IP packet - fclose($fs); - $response = explode("\r\n\r\n", $response, 2); - - return $response; -} - - - -/** - * Gets the challenge HTML (javascript and non-javascript version). - * This is called from the browser, and the resulting reCAPTCHA HTML widget - * is embedded within the HTML form it was called from. - * @param string $pubkey A public key for reCAPTCHA - * @param string $error The error given by reCAPTCHA (optional, default is null) - * @param boolean $use_ssl Should the request be made over ssl? (optional, default is false) - - * @return string - The HTML to be embedded in the user's form. - */ -function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false) -{ - if ($pubkey == null || $pubkey == '') { - die ("To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create"); - } - - if ($use_ssl) { - $server = RECAPTCHA_API_SECURE_SERVER; - } else { - $server = RECAPTCHA_API_SERVER; - } - - $errorpart = ""; - if ($error) { - $errorpart = "&error=" . $error; - } - return ' - - - - - - '; -} - - - - -/** - * A ReCaptchaResponse is returned from recaptcha_check_answer() - */ -class ReCaptchaResponse { - var $is_valid; - var $error; -} - - -/** - * Calls an HTTP POST function to verify if the user's guess was correct - * @param string $privkey - * @param string $remoteip - * @param string $challenge - * @param string $response - * @param array $extra_params an array of extra variables to post to the server - * @return ReCaptchaResponse - */ -function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array()) -{ - if ($privkey == null || $privkey == '') { - die ("To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create"); - } - - if ($remoteip == null || $remoteip == '') { - die ("For security reasons, you must pass the remote ip to reCAPTCHA"); - } - - - - //discard spam submissions - if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) { - $recaptcha_response = new ReCaptchaResponse(); - $recaptcha_response->is_valid = false; - $recaptcha_response->error = 'incorrect-captcha-sol'; - return $recaptcha_response; - } - - $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify", - array ( - 'privatekey' => $privkey, - 'remoteip' => $remoteip, - 'challenge' => $challenge, - 'response' => $response - ) + $extra_params - ); - - $answers = explode ("\n", $response [1]); - $recaptcha_response = new ReCaptchaResponse(); - - if (trim ($answers [0]) == 'true') { - $recaptcha_response->is_valid = true; - } - else { - $recaptcha_response->is_valid = false; - $recaptcha_response->error = $answers [1]; - } - return $recaptcha_response; - -} - -/** - * gets a URL where the user can sign up for reCAPTCHA. If your application - * has a configuration page where you enter a key, you should provide a link - * using this function. - * @param string $domain The domain where the page is hosted - * @param string $appname The name of your application - */ -function recaptcha_get_signup_url ($domain = null, $appname = null) { - return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname)); -} - -function _recaptcha_aes_pad($val) { - $block_size = 16; - $numpad = $block_size - (strlen ($val) % $block_size); - return str_pad($val, strlen ($val) + $numpad, chr($numpad)); -} - -/* Mailhide related code */ - -function _recaptcha_aes_encrypt($val,$ky) { - if (! function_exists ("mcrypt_encrypt")) { - die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); - } - $mode=MCRYPT_MODE_CBC; - $enc=MCRYPT_RIJNDAEL_128; - $val=_recaptcha_aes_pad($val); - return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); -} - - -function _recaptcha_mailhide_urlbase64 ($x) { - return strtr(base64_encode ($x), '+/', '-_'); -} - -/* gets the reCAPTCHA Mailhide url for a given email, public key and private key */ -function recaptcha_mailhide_url($pubkey, $privkey, $email) { - if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) { - die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " . - "you can do so at http://www.google.com/recaptcha/mailhide/apikey"); - } - - - $ky = pack('H*', $privkey); - $cryptmail = _recaptcha_aes_encrypt ($email, $ky); - - return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail); -} - -/** - * gets the parts of the email to expose to the user. - * eg, given johndoe@example,com return ["john", "example.com"]. - * the email is then displayed as john...@example.com - */ -function _recaptcha_mailhide_email_parts ($email) { - $arr = preg_split("/@/", $email ); - - if (strlen ($arr[0]) <= 4) { - $arr[0] = substr ($arr[0], 0, 1); - } else if (strlen ($arr[0]) <= 6) { - $arr[0] = substr ($arr[0], 0, 3); - } else { - $arr[0] = substr ($arr[0], 0, 4); - } - return $arr; -} - -/** - * Gets html to display an email address given a public an private key. - * to get a key, go to: - * - * http://www.google.com/recaptcha/mailhide/apikey - */ -function recaptcha_mailhide_html($pubkey, $privkey, $email) { - $emailparts = _recaptcha_mailhide_email_parts ($email); - $url = recaptcha_mailhide_url ($pubkey, $privkey, $email); - - return htmlentities($emailparts[0]) . "...@" . htmlentities ($emailparts [1]); - -} - - -?> diff --git a/public_html/include/include.render.php b/public_html/include/include.render.php deleted file mode 100755 index 5d3e548..0000000 --- a/public_html/include/include.render.php +++ /dev/null @@ -1,187 +0,0 @@ - 0) - { - $output = ""; - $res = mysql_query("SELECT * FROM comments WHERE `ItemId` = '{$id}' AND `Section` = '{$table}' AND `Visible` = '1' ORDER BY `Posted` ASC"); - - if(mysql_num_rows($res) > 0) - { - while($row = mysql_fetch_array($res)) - { - $obj->id = $row['Id']; - $obj->itemid = $row['ItemId']; - $obj->name = $row['Name']; - $obj->body = $row['Body']; - $obj->parentid = $row['ParentId']; - $obj->postdate = $row['Posted']; - $obj->linecount = $row['LineCount']; - $obj->children = array(); - $dataset[$obj->id] = clone $obj; - } - - foreach($dataset as $element) - { - if($element->parentid == 0) - { - $top[] = $element; - } - else - { - if(isset($dataset[$element->parentid])) - { - $dataset[$element->parentid]->children[] = $element; - } - } - } - - foreach($top as $comment) - { - $output .= print_comment($comment, $table); - $output .= ""; - } - } - else - { - $output = "No comments have been posted on this entry yet."; - } - - $output .= " - - - - Post a new comment - - - - - - Post comment - - - - "; - - $path = "{$render_dir}/c-{$table}-{$id}.render"; - - file_put_contents($path, $output); - - mc_delete(md5($path) . md5($path . "x")); - - return $output; - } - else - { - return false; - } - -} - -function print_comment($comment, $table) -{ - $output = ""; - - if($table == "ext") - { - $sect = "external-news"; - } - elseif($table == "sites") - { - $sect = "related-sites"; - } - else - { - $sect = "press"; - } - - $c_name = utf8entities(stripslashes($comment->name)); - $c_date = utf8entities($comment->postdate); - $c_body = nl2br(utf8entities(stripslashes($comment->body)), false); - if($comment->linecount == 1) - { - $output .= " - - - id}\"> - - itemid}/comments/post/{$comment->id}/\" onclick=\"return replyToComment(this);\">Reply - itemid}/comments/#c-{$comment->id}\">Perma - - - {$c_name} - {$c_body} - - - - "; - } - else - { - $output .= " - - - id}\"> - - {$c_name} - {$c_date} - - - - - itemid}/comments/post/{$comment->id}/\" onclick=\"return replyToComment(this);\">Reply - itemid}/comments/#c-{$comment->id}\">Perma - - - {$c_body} - - - "; - } - - $output .= " - - {$comment->id} - - - - "; - - foreach($comment->children as $child) - { - $output .= print_comment($child, $table); - } - $output .= ""; - - return $output; -} - -?> diff --git a/public_html/include/include.string.php b/public_html/include/include.string.php deleted file mode 100755 index ee921ad..0000000 --- a/public_html/include/include.string.php +++ /dev/null @@ -1,151 +0,0 @@ - $maxlen) - { - $maxlen = $len; - $highest = $i; - } - } - return trim($parts[$highest]); - } - else - { - return $title; - } -} - -function split_lines($input) -{ - return explode("\n", str_replace("\r", "", $input)); -} - -function utf8_entities_if_needed($input) -{ - if(strpos($input, ">") !== false || strpos($input, "<") !== false) - { - return utf8entities($input); - } - else - { - return $input; - } -} - -function arraytolower($array) -{ - //return unserialize(strtolower(serialize($array))); - return $array; -} - -function clean_tag($tag) -{ - return preg_replace("/[^a-zA-Z0-9']/", "", normalize_chars($tag)); -} - -/* Thanks to highstrike at gmail dot com (http://www.php.net/manual/en/function.substr.php#80247) */ -function cut_text($value, $length) -{ - if(is_array($value)) list($string, $match_to) = $value; - else { $string = $value; $match_to = $value{0}; } - - $match_start = stristr($string, $match_to); - $match_compute = strlen($string) - strlen($match_start); - - if (strlen($string) > $length) - { - if ($match_compute < ($length - strlen($match_to))) - { - $pre_string = substr($string, 0, $length); - $pos_end = strrpos($pre_string, " "); - if($pos_end === false) $string = $pre_string."..."; - else $string = substr($pre_string, 0, $pos_end)."..."; - } - else if ($match_compute > (strlen($string) - ($length - strlen($match_to)))) - { - $pre_string = substr($string, (strlen($string) - ($length - strlen($match_to)))); - $pos_start = strpos($pre_string, " "); - $string = "...".substr($pre_string, $pos_start); - if($pos_start === false) $string = "...".$pre_string; - else $string = "...".substr($pre_string, $pos_start); - } - else - { - $pre_string = substr($string, ($match_compute - round(($length / 3))), $length); - $pos_start = strpos($pre_string, " "); $pos_end = strrpos($pre_string, " "); - $string = "...".substr($pre_string, $pos_start, $pos_end)."..."; - if($pos_start === false && $pos_end === false) $string = "...".$pre_string."..."; - else $string = "...".substr($pre_string, $pos_start, $pos_end)."..."; - } - - $match_start = stristr($string, $match_to); - $match_compute = strlen($string) - strlen($match_start); - } - - return $string; -} - -function normalize_chars($str) -{ - $charmap = array( - 'Š'=>'S', 'š'=>'s', 'Ð'=>'Dj','Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', - 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', - 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', - 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss','à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', - 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', - 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', - 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y', 'ƒ'=>'f', 'č'=>'c' - ); - - return strtr($str, $charmap); -} - -function random_string($length) -{ - $output = ""; - for ($i = 0; $i < $length; $i++) - { - $output .= substr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", mt_rand(0, 61), 1); - } - return $output; -} -?> diff --git a/public_html/include/include.tahoe.php b/public_html/include/include.tahoe.php deleted file mode 100755 index 20241d7..0000000 --- a/public_html/include/include.tahoe.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/public_html/include/include.template.php b/public_html/include/include.template.php deleted file mode 100755 index 40f5efb..0000000 --- a/public_html/include/include.template.php +++ /dev/null @@ -1,100 +0,0 @@ - - {$title} - "; - - if($section == "external-news") - { - $output .= " - - - + - - {$rank}"; - } - - $output .= " - {$comments} - {$lang[35]} - "; - - if($section == "press") - { - $output .= "+{$upvotes}"; - } - - $output .= " - - "; - - return $output; -} - -function template_post($post) -{ - $first = ($post['ParentId'] == 0) ? " forum-post-first" : ""; - - $user = utf8entities(stripslashes($post['Name'])); - $body = nl2br(utf8entities(stripslashes($post['Body']))); - $date = date("F j, Y H:i:s", strtotime($post['Posted'])); - - $output = " - - - - - {$user} - - - {$date} - - - - {$body} - - - - "; - - return $output; -} - -function template_captcha() -{ - global $recaptcha_pubkey; - return " - - - - > - - - - - Get another Captcha - Get Audio Captcha - Get Text Captcha - Help - Captcha by reCAPTCHA. - - - - - - - " . recaptcha_get_html($recaptcha_pubkey); -} - -?> diff --git a/public_html/include/include.utf8.php b/public_html/include/include.utf8.php deleted file mode 100755 index afed74f..0000000 --- a/public_html/include/include.utf8.php +++ /dev/null @@ -1,53 +0,0 @@ - diff --git a/public_html/index.php b/public_html/index.php deleted file mode 100755 index 1884128..0000000 --- a/public_html/index.php +++ /dev/null @@ -1,140 +0,0 @@ - diff --git a/public_html/internal.php b/public_html/internal.php deleted file mode 100755 index 1266418..0000000 --- a/public_html/internal.php +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - AnonNews.org : - - - - - - - - - - - - - - - - - AnonNews 2.0 is finally there! Press release submission - is open again, as are comments - and we now have forums! - Other interface languages and language/tag filtering coming soon, as well - as RSS feeds. - - - AnonNews - - - FAQ - IRC - Forum - - - - - - - - - - - - - - - - - AnonNews is an independent and uncensored (but moderated) news platform for Anonymous. Anyone is welcome to post a submission, and can do so by clicking the "Add" button for a category. - If you need help or have questions regarding AnonNews, please join our IRC channel. - - 0) - { - echo("There are $total unmoderated item(s)! Click here to start moderating."); - } - } - ?> - - - - - - - - - ฿ - Donate using Bitcoin! - - - - 1PPVupRRz7tHvfvJWEDBnDr7bFVFFYLu6G - - - - - - - All content on this website is automatically licensed under a Creative Commons Attribution license. You are free to redistribute and/or remix it, but you have to credit the author, or, if the author is unknown ("Anonymous"), place a backlink to the corresponding page on AnonNews and attribute it to "Anonymous". - - - - - Download the AnonNews 2.0 source code / Moderation panel - - - - - -"); -?> diff --git a/public_html/jquery.js b/public_html/jquery.js deleted file mode 100755 index 087e164..0000000 --- a/public_html/jquery.js +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * jQuery JavaScript Library v1.5.2 - * http://jquery.com/ - * - * Copyright 2011, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2011, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Thu Mar 31 15:28:23 2011 -0400 - */ -(function(a,b){function ci(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cf(a){if(!b_[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";b_[a]=c}return b_[a]}function ce(a,b){var c={};d.each(cd.concat.apply([],cd.slice(0,b)),function(){c[this]=a});return c}function b$(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bZ(){try{return new a.XMLHttpRequest}catch(b){}}function bY(){d(a).unload(function(){for(var a in bW)bW[a](0,1)})}function bS(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function P(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function H(a,b){return(a&&a!=="*"?a+".":"")+b.replace(t,"`").replace(u,"&")}function G(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,p=[],q=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function E(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function y(){return!0}function x(){return!1}function i(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function h(a,c,e){if(e===b&&a.nodeType===1){e=a.getAttribute("data-"+c);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:d.isNaN(e)?g.test(e)?d.parseJSON(e):e:parseFloat(e)}catch(f){}d.data(a,c,e)}else e=b}return e}var c=a.document,d=function(){function G(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(G,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x,y,z=Object.prototype.toString,A=Object.prototype.hasOwnProperty,B=Array.prototype.push,C=Array.prototype.slice,D=String.prototype.trim,E=Array.prototype.indexOf,F={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return C.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?B.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),x.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(C.apply(this,arguments),"slice",C.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;x.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=d._Deferred();if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",y,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",y),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&G()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):F[z.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!A.call(a,"constructor")&&!A.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||A.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1?f.call(arguments,0):c,--g||h.resolveWith(h,f.call(b,0))}}var b=arguments,c=0,e=b.length,g=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;ca";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e)}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="t";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(a.style.width="1px",a.style.marginRight="0",d.support.reliableMarginRight=(parseInt(c.defaultView.getComputedStyle(a,null).marginRight,10)||0)===0),b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function");return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}}();var g=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!i(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,g=b.nodeType,h=g?d.cache:b,j=g?b[d.expando]:d.expando;if(!h[j])return;if(c){var k=e?h[j][f]:h[j];if(k){delete k[c];if(!i(k))return}}if(e){delete h[j][f];if(!i(h[j]))return}var l=h[j][f];d.support.deleteExpando||h!=a?delete h[j]:h[j]=null,l?(h[j]={},g||(h[j].toJSON=d.noop),h[j][f]=l):g&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var f=this[0].attributes,g;for(var i=0,j=f.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var j=i?f:0,k=i?f+1:h.length;j=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=m.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&n.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var k=a.getAttributeNode("tabIndex");return k&&k.specified?k.value:o.test(a.nodeName)||p.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var l=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return l===null?b:l}h&&(a[c]=e);return a[c]}});var r=/\.(.*)$/,s=/^(?:textarea|input|select)$/i,t=/\./g,u=/ /g,v=/[^\w\s.|`]/g,w=function(a){return a.replace(v,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=x;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(a){return typeof d!=="undefined"&&d.event.triggered!==a.type?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=x);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),w).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(r,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=a.type,l[m]())}catch(p){}k&&(l["on"+m]=k),d.event.triggered=b}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},D=function D(a){var c=a.target,e,f;if(s.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=C(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:D,beforedeactivate:D,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&D.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&D.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",C(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in B)d.event.add(this,c+".specialChange",B[c]);return s.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return s.test(this.nodeName)}},B=d.event.special.change.filters,B.focus=B.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(a){var c=d.event.fix(a);c.type=b,c.originalEvent={},d.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var e=0;d.event.special[b]={setup:function(){e++===0&&c.addEventListener(a,f,!0)},teardown:function(){--e===0&&c.removeEventListener(a,f,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"text"===c&&(b===c||b===null)},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=N.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(P(c[0])||P(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=M.call(arguments);I.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!O[a]?d.unique(f):f,(this.length>1||K.test(e))&&J.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var R=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,U=/<([\w:]+)/,V=/",""],legend:[1,"",""],thead:[1,"",""],tr:[2,"",""],td:[3,"",""],col:[2,"",""],area:[1,"",""],_default:[0,"",""]};Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td,d.support.htmlSerialize||(Z._default=[1,"div",""]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(R,""):null;if(typeof a!=="string"||X.test(a)||!d.support.leadingWhitespace&&S.test(a)||Z[(U.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(T,"<$1>$2>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){ba(a,e),f=bb(a),g=bb(e);for(h=0;f[h];++h)ba(f[h],g[h])}if(b){_(a,e);if(c){f=bb(a),g=bb(e);for(h=0;f[h];++h)_(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||W.test(i)){if(typeof i==="string"){i=i.replace(T,"<$1>$2>");var j=(U.exec(i)||["",""])[1].toLowerCase(),k=Z[j]||Z._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=V.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&S.test(i)&&m.insertBefore(b.createTextNode(S.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bd=/alpha\([^)]*\)/i,be=/opacity=([^)]*)/,bf=/-([a-z])/ig,bg=/([A-Z]|^ms)/g,bh=/^-?\d+(?:px)?$/i,bi=/^-?\d/,bj={position:"absolute",visibility:"hidden",display:"block"},bk=["Left","Right"],bl=["Top","Bottom"],bm,bn,bo,bp=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bm(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bm)return bm(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bf,bp)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bq(a,b,e):d.swap(a,bj,function(){f=bq(a,b,e)});if(f<=0){f=bm(a,b,b),f==="0px"&&bo&&(f=bo(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bh.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return be.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bd.test(f)?f.replace(bd,e):c.filter+" "+e}}),d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){b?c=bm(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bn=function(a,c,e){var f,g,h;e=e.replace(bg,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bo=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bh.test(d)&&bi.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bm=bn||bo,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var br=/%20/g,bs=/\[\]$/,bt=/\r?\n/g,bu=/#.*$/,bv=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bw=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bx=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,by=/^(?:GET|HEAD)$/,bz=/^\/\//,bA=/\?/,bB=/ - - - Submit URL >> - - - - Scanning URL... (this may take a while!) - - - "); - // Stage 2: Verifying that the URL is indeed valid. If it is valid, suggest a title and allow the user to enter more details - if(spam_score($_POST['url'], "", false) < 10) - { - $request = curl_head($_POST['url']); - - if($request->code == 999) - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - elseif($request->code == 200) - { - $request = curl_get($_POST['url']); - if(!preg_match("/?(.*?)<\/title>/i", $request->result, $matches)) - { - $title = ""; - $title_desc = "No article title could be suggested. Please enter one yourself."; - } - else - { - $title = $matches[1]; - - $title_desc = "The below suggestion was made based on the full page title ($title). Make sure it's correct before submitting."; - - $title_suggestion = utf8_entities_if_needed(suggest_title($title)); - - $raw_suggestion = html_entity_decode($title_suggestion, ENT_QUOTES, "UTF-8"); - - // Load noise dictionary, for tag generation - $noise = split_lines(file_get_contents_cached("english.dic")->data); - $noise = arraytolower($noise); - - foreach(explode(" ", $raw_suggestion) as $tag) - { - $tag = trim(clean_tag($tag)); - if(strlen(trim($tag)) > 1 && in_array(strtolower(trim($tag)), $noise) === false) - { - $tag_list[] = strtolower($tag); - } - } - - $tag_list = array_unique($tag_list); - - $tags_suggestion = utf8_entities_if_needed(implode(", ", $tag_list)); - } - - if($detect_language) - { - require_once("Text/LanguageDetect.php"); - $detector = new Text_LanguageDetect; - $detected_language = $detector->detectSimple(strip_tags($request->result)); - } - else - { - $detected_language = "English"; - } - - ?> - Submit an external news article - - - - - - Article Title - - - - - - Tags (optional) - - Enter comma-separated tags here, that indicate what the press release is about. This will make it easier to find on the site. - - - - Article Language - - $lang) - { - $sel = (strtolower($lang) == strtolower($detected_language)) ? " selected" : ""; - echo("{$lang}"); - } - ?> - - - Detected language: - - - Complete the CAPTCHA - - - - Submit external news item >> - - - - Submitting external news item... (this may take a while!) - - - - code} -->"); - $var_code = ANONNEWS_ERROR_NONEXISTENT_URL; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_URL_BLACKLISTED; - require("module.error.php"); - } - } - elseif($var_id == "submit") - { - // Stage 3: Processing the submission. - $recaptcha = recaptcha_check_answer ($privatekey, - $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); - - if($recaptcha->is_valid) - { - if(!empty($_POST['title'])) - { - if(!empty($_POST['url'])) - { - // It will have to be approved before it appears on the front page. - $spam_score = spam_score($_POST['url'], $_POST['title'], true); - - if($spam_score < 10) - { - $request = curl_head($_POST['url']); - if($request->code == 200) - { - if($spam_score < 5) - { - $visible = true; - $approval_status = "Your submission is now visible on the frontpage."; - } - else - { - $visible = false; - $approval_status = "Your submission was however flagged as potential spam, and will be manually reviewed before appearing on the frontpage."; - } - - $language = mysql_real_escape_string($_POST['language']); - $title = mysql_real_escape_string($_POST['title']); - $url = mysql_real_escape_string($_POST['url']); - - $query = "INSERT INTO ext (`Name`, `Url`, `CommentCount`, `Deleted`, `Approved`, `Visible`, `Rank`, `Mod`, `Language`, `Posted`) - VALUES ('$title', '$url', '0', '0', '0', '{$visible}', '0', '', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('ext', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your external news item was successfully submitted. {$approval_status} - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - else - { - echo(""); - $var_code = ANONNEWS_ERROR_NONEXISTENT_URL; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_SPAM; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_URL; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.ext.list.php b/public_html/module.ext.list.php deleted file mode 100755 index ae41ac4..0000000 --- a/public_html/module.ext.list.php +++ /dev/null @@ -1,131 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_last) && is_numeric($var_last) && $var_last > 0) - { - $var_page = mysql_real_escape_string($var_last - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_sort = ($var_sort == "date") ? "Posted" : "Rank"; - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount, Rank FROM ext WHERE `Visible` = '1' AND `Deleted` = '0' ORDER BY `{$query_sort}` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sort == "date" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sort == "date" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - $style[2] = ($var_sort == "rank" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[3] = ($var_sort == "rank" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - Highest ranked first - Lowest ranked first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - - echo(" - {$page_list} - "); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.ext.php b/public_html/module.ext.php deleted file mode 100755 index 82dbc24..0000000 --- a/public_html/module.ext.php +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/public_html/module.forum.category.php b/public_html/module.forum.category.php deleted file mode 100755 index 15db2da..0000000 --- a/public_html/module.forum.category.php +++ /dev/null @@ -1,62 +0,0 @@ -data[0]; - $catname = utf8entities(stripslashes($category['Name'])); - $catid = $category['Id']; - $catthreads = (is_numeric($category['Name'])) ? $category['Name'] : 0; - echo("Forum > {$catname}"); - ?> - - - - Create new thread - - - - - - Thread Title - Replies - - data as $post) - { - $teaser = cut_text(utf8entities(stripslashes($post['Body'])), 90); - $topic = utf8entities(stripslashes($post['Topic'])); - - echo(" - - - {$topic} - {$teaser} - - - {$post['Replies']} - "); - } - } - else - { - echo(" - There are no threads in this category yet. - "); - } - ?> - - - diff --git a/public_html/module.forum.overview.php b/public_html/module.forum.overview.php deleted file mode 100755 index 05f91a7..0000000 --- a/public_html/module.forum.overview.php +++ /dev/null @@ -1,46 +0,0 @@ - - -Forum - - - Be sure to read the Forum Rules! All posting is anonymous, no registration is necessary and no IPs are kept. - - - - - Category - Threads - Posts - - data as $category) - { - if($category['Posts'] > 0) - { - $posttime = date("F j, Y H:i:s", strtotime($category['LastPostTime'])); - $lasttopic = utf8entities($category['LastPostTopic']); - $lastpost = "Last post: {$lasttopic} @ {$posttime}"; - } - else - { - $lastpost = "There are no posts in this category yet."; - } - - echo(" - - - {$category['Name']} - {$lastpost} - - - {$category['Threads']} - {$category['Posts']} - "); - } - ?> - diff --git a/public_html/module.forum.php b/public_html/module.forum.php deleted file mode 100755 index a1284b4..0000000 --- a/public_html/module.forum.php +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/public_html/module.forum.post.php b/public_html/module.forum.post.php deleted file mode 100755 index c18991e..0000000 --- a/public_html/module.forum.post.php +++ /dev/null @@ -1,160 +0,0 @@ -data[0]; - - if(!isset($_POST['submit'])) - { - $catname = utf8entities($var_id); - $catrealname = utf8entities(stripslashes($category['Name'])); - - echo(""); - echo(" - Forum > {$catrealname} > New Thread - - - Name - - - Topic Title - - - Contents - - - Create thread >> - Complete the captcha - " . template_captcha() . " - - - - "); - } - else - { - $recaptcha = recaptcha_check_answer ($privatekey, - $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); - - if($recaptcha->is_valid) - { - $name = (!empty($_POST['name'])) ? mysql_real_escape_string($_POST['name']) : "Anonymous"; - $body = mysql_real_escape_string($_POST['body']); - $topic = mysql_real_escape_string($_POST['topic']); - $catname = mysql_real_escape_string($var_id); - - $result = mysql_query_cached("SELECT Id FROM forum_categories WHERE `UrlName`='{$catname}'"); - $catid = $result->data[0]['Id']; - - if(!empty($body)) - { - if(!empty($topic)) - { - $parent = $result->data[0]; - - $query = "INSERT INTO forum_posts (`CategoryId`, `ParentId`, `Name`, `Topic`, `Posted`, `Body`, `Replies`, `LastReplyUser`, `LastReplyTime`) - VALUES ('{$catid}', '0', '{$name}', '{$topic}', CURRENT_TIMESTAMP, '{$body}', '0', '', CURRENT_TIMESTAMP)"; - if(mysql_query($query)) - { - $insid = mysql_insert_id(); - mysql_query("UPDATE forum_categories SET `Posts`=`Posts`+1 , `Threads`=`Threads`+1 , `LastPostTime`=CURRENT_TIMESTAMP , `LastPostTopic`='{$topic}' WHERE `Id`='{$catid}'"); - echo("Your post was successful! It may take a few seconds to appear. - << go to thread"); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_POST_TOPIC; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_POST_BODY; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - } -} -elseif($var_mode == "reply") -{ - // Post a reply to an existing thread. - - $recaptcha = recaptcha_check_answer ($privatekey, - $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); - - if($recaptcha->is_valid) - { - $post_id = (is_numeric($var_id)) ? $var_id : 0; - $name = (!empty($_POST['name'])) ? mysql_real_escape_string($_POST['name']) : "Anonymous"; - $body = mysql_real_escape_string($_POST['body']); - - if(!empty($body)) - { - if($result = mysql_query_cached("SELECT * FROM forum_posts WHERE `Id`='{$post_id}'")) - { - $parent = $result->data[0]; - - $query = "INSERT INTO forum_posts (`CategoryId`, `ParentId`, `Name`, `Topic`, `Posted`, `Body`, `Replies`, `LastReplyUser`, `LastReplyTime`) - VALUES ('{$parent['CategoryId']}', '{$post_id}', '{$name}', '', CURRENT_TIMESTAMP, '{$body}', '0', '', CURRENT_TIMESTAMP)"; - if(mysql_query($query)) - { - $insid = mysql_insert_id(); - $topic = mysql_real_escape_string(stripslashes($parent['Topic'])); - - mysql_query("UPDATE forum_categories SET `Posts`=`Posts`+1 , `LastPostTime`=CURRENT_TIMESTAMP , `LastPostTopic`='{$topic}' WHERE `Id`='{$parent['CategoryId']}'"); - mysql_query("UPDATE forum_posts SET `Replies`=`Replies`+1 , `LastReplyUser`='{$name}' , `LastReplyTime`=CURRENT_TIMESTAMP WHERE `Id`='{$post_id}'"); - echo("Your post was successful! It may take a few seconds to appear. - << back to thread"); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_POST_BODY; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); -} -?> diff --git a/public_html/module.forum.view.php b/public_html/module.forum.view.php deleted file mode 100755 index 872399e..0000000 --- a/public_html/module.forum.view.php +++ /dev/null @@ -1,54 +0,0 @@ -data[0]; - - $query = "SELECT * FROM forum_categories WHERE `Id`='{$post['CategoryId']}'"; - if($category = mysql_query_cached($query)->data[0]) - { - $topic = utf8entities(stripslashes($post['Topic'])); - - $caturlname = utf8entities(stripslashes($category['UrlName'])); - $catname = utf8entities(stripslashes($category['Name'])); - - echo("Forum > {$catname} > {$topic}"); - - echo(template_post($post)); - - $query = "SELECT * FROM forum_posts WHERE `ParentId`='{$post['Id']}'"; - if($children = mysql_query_cached($query, 5)) - { - foreach($children->data as $child) - { - echo(template_post($child)); - } - } - - echo(" - Post a reply - - - - - Post reply >> - " . template_captcha() . " - - - "); - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); -} -?> diff --git a/public_html/module.home.php b/public_html/module.home.php deleted file mode 100755 index 6c31e4a..0000000 --- a/public_html/module.home.php +++ /dev/null @@ -1,196 +0,0 @@ -data[0]['COUNT(*)']; - -$result = mysql_query_cached("SELECT COUNT(*) FROM ext WHERE `Deleted`='0' AND `Visible`='1'", 600); -$total_ext = $result->data[0]['COUNT(*)']; - -$result = mysql_query_cached("SELECT COUNT(*) FROM sites WHERE `Deleted`='0' AND `Approved`='1'", 600); -$total_sites = $result->data[0]['COUNT(*)']; - -if($site_messages_enabled === true) -{ - $sitemsg_id = floor(rand(0, count($site_messages)-1)); - - $i = 0; - $sitemsg_url = ""; - $sitemsg_message = ""; - foreach($site_messages as $key => $message) - { - if($i == $sitemsg_id) - { - $sitemsg_url = $key; - $sitemsg_message = $message; - } - $i += 1; - } - - echo(" - $sitemsg_message - - "); -} -?> - - - - - Overview - Highest rated - Most recent - - - - = DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Upvotes` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, true, $upvotes, 0)); - } - } - - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - } - ?> - - - More () >> - + Add - - - - - - - - - - - data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - } - ?> - More () >> - + Add - - - - - - - - Last days - Forever - - - - = DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` DESC LIMIT 4"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - } - ?> - - - More () >> - + Add - - - - - - - - Last days - Forever - - - - = DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY) ORDER BY `Rank` ASC LIMIT 4"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - } - ?> - - - More () >> - + Add - - - - - - - - - - data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - - echo(template_item($name, "related-sites", $id, $comments, false, 0, 0)); - } - } - ?> - More () >> - + Add - - - diff --git a/public_html/module.moderation.approve.php b/public_html/module.moderation.approve.php deleted file mode 100644 index 1ac600a..0000000 --- a/public_html/module.moderation.approve.php +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/public_html/module.moderation.login.php b/public_html/module.moderation.login.php deleted file mode 100644 index 70e5c0e..0000000 --- a/public_html/module.moderation.login.php +++ /dev/null @@ -1,34 +0,0 @@ -data[0]['Id']; - $_SESSION['accesslevel'] = $result->data[0]['AccessLevel']; - echo("Successfully logged in! Continue..."); - } - else - { - echo("The login details you entered are incorrect."); - } -} -else -{ - // Show login form - echo(" - - Log in to access the moderator panel. - Username: - Password: - Log in - - "); -} -?> diff --git a/public_html/module.moderation.overview.php b/public_html/module.moderation.overview.php deleted file mode 100644 index bbaa477..0000000 --- a/public_html/module.moderation.overview.php +++ /dev/null @@ -1,74 +0,0 @@ -Moderation panel"); - -echo("Press releases"); -if($result = mysql_query_cached("SELECT * FROM press WHERE `Approved` = '0' AND `Deleted` = '0' ORDER BY `Posted` ASC LIMIT 30", 2)) -{ - foreach($result->data as $item) - { - $sTitle = utf8entities(stripslashes($item['Name'])); - $sId = $item['Id']; // PRIMARY KEY, safe to assign - - echo(" - {$sTitle} - Approve - Reject - "); - } -} -else -{ - echo("No unmoderated press releases."); -} - - -echo("External news sources"); -if($result = mysql_query_cached("SELECT * FROM ext WHERE `Deleted` = '0' AND `Approved` = '0' ORDER BY `Visible` DESC LIMIT 100", 2)) -{ - foreach($result->data as $item) - { - $sUrl = htmlspecialchars(stripslashes($item['Url'])); - $sTitle = utf8entities(stripslashes($item['Name'])); - $sId = $item['Id']; // PRIMARY KEY, safe to assign - - echo(" - {$sTitle} - Approve - Reject - {$sUrl} - "); - } -} -else -{ - echo("No unmoderated external news sources."); -} - - - -echo("Related sites"); -if($result = mysql_query_cached("SELECT * FROM sites WHERE `Deleted` = '0' AND `Approved` = '0' ORDER BY `Id` ASC LIMIT 100", 2)) -{ - foreach($result->data as $item) - { - $sUrl = htmlspecialchars(stripslashes($item['Url'])); - $sTitle = utf8entities(stripslashes($item['Name'])); - $sId = $item['Id']; // PRIMARY KEY, safe to assign - - echo(" - {$sTitle} - Approve - Reject - {$sUrl} - "); - } -} -else -{ - echo("No unmoderated related sites."); -} - -//$result = mysql_query_cached("SELECT * FROM sites WHERE `Approved` = '0'", 2); -?> diff --git a/public_html/module.moderation.php b/public_html/module.moderation.php deleted file mode 100755 index 281c849..0000000 --- a/public_html/module.moderation.php +++ /dev/null @@ -1,66 +0,0 @@ - 5) - { - if(empty($var_id)) - { - require("module.forum.blacklist.overview.php"); - } - elseif($var_id == "add") - { - require("module.forum.blacklist.add.php"); - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } - else - { - echo("You do not have sufficient rights to view this page."); - } - } -} -else -{ - if($var_page == "login") - { - require("module.moderation.login.php"); - } - else - { - echo("You are not logged in. Please log in to start moderating."); - } -} -?> diff --git a/public_html/module.moderation.process.php b/public_html/module.moderation.process.php deleted file mode 100644 index 6b68eba..0000000 --- a/public_html/module.moderation.process.php +++ /dev/null @@ -1,42 +0,0 @@ - diff --git a/public_html/module.press.add.php b/public_html/module.press.add.php deleted file mode 100755 index b4c679d..0000000 --- a/public_html/module.press.add.php +++ /dev/null @@ -1,252 +0,0 @@ - - Read these guidelines. Not reading them may get you banned. - While no censorship based on opinion, views, etc. takes place on AnonNews, there are several guidelines in place to keep content on the site relevant. - Read these guidelines completely before submitting a press release. Not reading them may get you banned. - This is not a forum. Opinion posts, questions to anons, and other similar things do not belong here. Use the forum. - AnonNews is about Anonymous. While you may think your local political party, a phone tapping scandal, or anything else is important, this is not the place for personal army requests. - If you wish to discuss a topic that may be of interest to other anons, you can do so on the forum. If it's not a press release or manifesto from Anonymous, it doesn't belong here - period. - Format your press releases properly. Press releases and manifestos are expected to be readable and in proper formatting. While we certainly don't expect perfect grammar, a press - release that uses an abbreviation every other word or contains excessive 'leetspeak' is not going to be accepted. If your press release is in bright pink with images of red flowers on the side, it will - probably not be accepted either. - No copypasting. This section is intended for those that wish to submit a press release about an operation they are involved with (not necessarily being part of staff). Don't copypaste - news articles or press releases from others that you have nothing to do with. Submitting it for someone else who is involved with an operation, is of course not an issue at all. - You are not the leader of Anonymous. Noone is. Don't try to imply that all of Anonymous agrees with something or condemns it - your press release will be rejected. Unless you - have talked through your press release with literally every single anon out there, you cannot speak for all of them. Making a generic 'from Anonymous' statement is fine, as long as you don't try to say that - 'person X and operation Y were not Anonymous' or try to impose alleged 'universal values or ideologies' onto Anonymous - they simply do not exist. - On the IP retention policy: we normally do not store IP addresses of anyone submitting content to AnonNews (feel free to use TOR or a proxy to be completely sure). If you hit a spam filter, - however (there is almost zero chance for a false positive), your IP may be recorded and banned. If an IP is incorrectly recorded (a false positive) it will be reviewed and removed from the log within 24 hours, without exception. - - If you have read the guidelines, click here to submit your press release. - - - Submit a press release - - - - Press release title - - Press release text - - To make use of the WYSIWYG editor, Javascript is required. If Javascript is turned off, you can make use of HTML instead - line breaks will automatically be inserted. - - - - - - - Upload an image (optional) - - Allowed: PNG, GIF, JPG. Maximum filesize: 20MB. If possible, please use PNG instead of JPG for better image quality. - - - - - Tags (optional) - - Enter comma-separated tags here, that indicate what the article is about. This will make it easier to find on the site. - - - - Press Release Language - - $lang) - { - echo("{$lang}"); - } - ?> - - - Complete the CAPTCHA - - - - Submit press release >> - - - - Submitting press release... (this may take a while!) - - - is_valid) - { - $error = false; - if(isset($_FILES['file']) && $_FILES['file']['error'] == 0) - { - $file_uploaded = true; - if(ends_with($_FILES['file']['name'], ".jpg") || ends_with($_FILES['file']['name'], ".jpeg") || ends_with($_FILES['file']['name'], ".png") || ends_with($_FILES['file']['name'], ".gif")) - { - if($_FILES['file']['size'] <= 20000000) - { - $upload_result = curl_put("{$tahoe_server}/uri", $_FILES['file']['tmp_name']); - if($upload_result !== false) - { - $upload_b64 = urlsafe_b64encode($upload_result); - $upload_url = "/download/$upload_b64/{$_FILES['file']['name']}"; - } - } - else - { - $error = true; - $var_code = ANONNEWS_ERROR_TOO_LARGE; // Upload filesize error - require("module.error.php"); - } - } - else - { - $error = true; - $var_code = ANONNEWS_ERROR_INCORRECT_FORMAT; // Upload file format error - require("module.error.php"); - } - } - elseif(isset($_FILES['file']) && $_FILES['file']['error'] == 4) - { - // No file was uploaded. - $file_uploaded = false; - } - else - { - $error = true; - $var_code = ANONNEWS_ERROR_UPLOAD_ERR; // Generic upload error - require("module.error.php"); - } - - if($error === false) - { - // Either no file was uploaded or the file was successfully uploaded, continue... - if(!empty($_POST['title'])) - { - if(!empty($_POST['body'])) - { - if($file_uploaded === false) - { - $upload_url = ""; - } - - $body = $_POST['body']; - - if($_POST['js_enabled'] === "false") - { - $body = nl2br($body, false); - } - - $body = mysql_real_escape_string(str_replace("javascript:", "",strip_tags_attributes($body, - "", - "href,src,alt,class,style,align,valign,color,face,size,width,height,shape,coords,target,border,cellpadding,cellspacing,colspan,rowspan"))); - $title = mysql_real_escape_string($_POST['title']); - - $language = mysql_real_escape_string($_POST['language']); - - $query = "INSERT INTO press (`Name`, `Body`, `CommentCount`, `Deleted`, `Approved`, `Attachment`, `Upvotes`, `Mod`, `ExternalAttachment`, `Language`, `Posted`) - VALUES ('{$title}', '{$body}', '0', '0', '0', '{$upload_url}', '0', '', '1', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('press', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your press release was successfully submitted. It will have to be approved before it appears on the front page. - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_BODY; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.press.item.php b/public_html/module.press.item.php deleted file mode 100755 index 61b1ff4..0000000 --- a/public_html/module.press.item.php +++ /dev/null @@ -1,67 +0,0 @@ -data[0]['Name'])); - $body = youtubify(filter_extended(stripslashes($result->data[0]['Body']))); - $externalattachment = $result->data[0]['ExternalAttachment']; - $attachment = utf8entities(stripslashes($result->data[0]['Attachment'])); - $commentcount = $result->data[0]['CommentCount']; - - echo(" - Join the conversation! {$commentcount} comment(s) already posted - click to post one yourself, anonymously of course. - $title"); - - if(!empty($attachment)) - { - if($externalattachment == 1) - { - $image = $tahoe_gateway . $attachment; - } - else - { - $image = "/" . $attachment; - } - - echo(" - - "); - } - - echo("$body - Join the conversation! {$commentcount} comment(s) already posted - click to post one yourself, anonymously of course. - - "); - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); -} -?> diff --git a/public_html/module.press.list.php b/public_html/module.press.list.php deleted file mode 100755 index a3118bc..0000000 --- a/public_html/module.press.list.php +++ /dev/null @@ -1,127 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_last) && is_numeric($var_last) && $var_last > 0) - { - $var_page = mysql_real_escape_string($var_last - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_sort = ($var_sort == "date") ? "Posted" : "Upvotes"; - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount, Upvotes FROM press WHERE `Approved` = '1' AND `Deleted` = '0' ORDER BY `{$query_sort}` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sort == "date" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sort == "date" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - $style[2] = ($var_sort == "upvotes" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[3] = ($var_sort == "upvotes" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - Highest ranked first - Lowest ranked first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - - echo(" - {$page_list} - "); - - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.press.php b/public_html/module.press.php deleted file mode 100755 index 87fb67f..0000000 --- a/public_html/module.press.php +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/public_html/module.sites.add.php b/public_html/module.sites.add.php deleted file mode 100755 index 03cbb2f..0000000 --- a/public_html/module.sites.add.php +++ /dev/null @@ -1,303 +0,0 @@ - - Read these guidelines. Not reading them may get you banned. - While no censorship based on opinion, views, etc. takes place on AnonNews, there are several guidelines in place to keep content on the site relevant. - Read these guidelines completely before submitting a related site. Not reading them may get you banned. - This section is solely for Anonymous-related websites. The site must represent a group or 'part' of Anonymous. Examples are IRC networks, Anonymous event planners, specific - Anonymous-related news sites or blogs, and so on. - Related sites have to be notable. This essentially means that your blog with 20 visitors a day and 3 total posts is not going to be accepted. An (almost) empty website is not going - to be accepted either. For networks/groups/'cells', there must be an established userbase already. Websites run by one person will only be accepted if they offer considerable value (your blog - with weekly opinion posts will probably not get accepted, whereas a blog with frequent news about various Anonymous groups will be accepted). - This is not Craigslist. This is not a place to advertise your new site - this section is intended to help people find useful Anonymous-related resources that already exist. - If you are looking to start something new, and you're looking for people to join, the forums would be a better place. - Only very few entries will be accepted. The intention is to keep this section as small as possible, offering a brief overview of related resources for people that want to - learn more about Anonymous or get actively involved with it. Only the most notable and useful submissions will be accepted. - Keep the submission title to the point. The title must be the name of the site, or, if it doesn't have a name, a brief description of what the site is. No slogans, no URLs, - no explanations - keep that for the site itself. - - If you have read the guidelines, click here to submit your related site. - - - Submit a related site - - - First of all, enter a URL. After the URL has been checked and found to be valid, you will be able to enter the rest. - - Article URL - - - - - - Submit URL >> - - - - Scanning URL... (this may take a while!) - - - code == 999) - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - elseif($request->code == 200) - { - $request = curl_get($_POST['url']); - if(!preg_match("/?(.*?)<\/title>/i", $request->result, $matches)) - { - $title = ""; - $title_desc = "No website title could be suggested. Please enter one yourself."; - } - else - { - $title = $matches[1]; - - $title_desc = "The below suggestion was made based on the full page title ($title). Make sure it's correct before submitting."; - - $title_suggestion = utf8_entities_if_needed(suggest_title($title)); - - $raw_suggestion = html_entity_decode($title_suggestion, ENT_QUOTES, "UTF-8"); - - // Load noise dictionary, for tag generation - $noise = split_lines(file_get_contents_cached("english.dic")->data); - $noise = arraytolower($noise); - - foreach(explode(" ", $raw_suggestion) as $tag) - { - $tag = trim(clean_tag($tag)); - if(strlen(trim($tag)) > 1 && in_array(strtolower(trim($tag)), $noise) === false) - { - $tag_list[] = strtolower($tag); - } - } - - $tag_list = array_unique($tag_list); - - $tags_suggestion = utf8_entities_if_needed(implode(", ", $tag_list)); - } - - if($detect_language) - { - require_once("Text/LanguageDetect.php"); - $detector = new Text_LanguageDetect; - $detected_language = $detector->detectSimple(strip_tags($request->result)); - } - else - { - $detected_language = "English"; - } - - ?> - Submit a related site - - - - - - Website Title - - - - - - Tags (optional) - - Enter comma-separated tags here, that indicate what the website is about. This will make it easier to find on the site. - - - - Website Language - - $lang) - { - $sel = (strtolower($lang) == strtolower($detected_language)) ? " selected" : ""; - echo("{$lang}"); - } - ?> - - - Detected language: - - - Complete the CAPTCHA - - - - Submit related site >> - - - - Submitting related site... (this may take a while!) - - - - is_valid) - { - if(!empty($_POST['title'])) - { - if(!empty($_POST['url'])) - { - // It will have to be approved before it appears on the front page. - $spam_score = spam_score($_POST['url'], $_POST['title'], false); - - if($spam_score < 10) - { - $request = curl_head($_POST['url']); - if($request->code == 200) - { - $language = mysql_real_escape_string($_POST['language']); - $title = mysql_real_escape_string($_POST['title']); - $url = mysql_real_escape_string($_POST['url']); - - $query = "INSERT INTO sites (`Name`, `Url`, `CommentCount`, `Deleted`, `Approved`, `Mod`, `Language`, `Posted`) - VALUES ('$title', '$url', '0', '0', '0', '', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('sites', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your related site was successfully submitted. It will have to be approved before it appears on the front page. - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - else - { - $var_code = ANONNEWS_ERROR_NONEXISTENT_URL; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_SPAM; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_URL; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.sites.list.php b/public_html/module.sites.list.php deleted file mode 100755 index 43dc1fc..0000000 --- a/public_html/module.sites.list.php +++ /dev/null @@ -1,115 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_subpage) && is_numeric($var_subpage) && $var_subpage > 0) - { - $var_page = mysql_real_escape_string($var_subpage - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount FROM sites WHERE `Approved` = '1' AND `Deleted` = '0' ORDER BY `Posted` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - - echo(template_item($name, "related-sites", $id, $comments, false, 0, 0)); - } - - echo(" - {$page_list} - "); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.sites.php b/public_html/module.sites.php deleted file mode 100755 index a763574..0000000 --- a/public_html/module.sites.php +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/public_html/process.frontpage.php b/public_html/process.frontpage.php deleted file mode 100755 index acd8d2f..0000000 --- a/public_html/process.frontpage.php +++ /dev/null @@ -1,210 +0,0 @@ -= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Upvotes` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, true, $upvotes, 0)); - } - } - - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - } - } - else - { - // Process all other queries here. - - if($_GET['q'] == "press_top") - { - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Upvotes` DESC LIMIT 6"; - $section = "press"; - } - elseif($_GET['q'] == "press_latest") - { - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 6"; - $section = "press"; - } - elseif($_GET['q'] == "ext_top_7days") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` DESC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_top_all") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' ORDER BY `Rank` DESC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_bottom_7days") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` ASC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_bottom_all") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' ORDER BY `Rank` ASC LIMIT 4"; - $section = "external-news"; - } - - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = ($section == "external-news") ? $item['Rank'] : 0; - $upvotes = ($section == "press") ? $item['Upvotes'] : 0; - - echo(template_item($name, $section, $id, $comments, false, $upvotes, $rank)); - } - } - - } -} -else -{ - die("Error: No valid query was passed on."); -} -/* -if(!isset($_GET['s']) || !isset($_GET['f']) || !isset($_GET['o']) || !isset($_GET['p'])) -{ - die("An internal error occurred. Not all variables were set."); -} - -if($_GET['s'] == "ext") -{ - $section = "ext"; - $sectionname = "external-news"; - $rules = "WHERE `Deleted`='0'"; -} -elseif($_GET['s'] == "sites") -{ - $section = "sites"; - $sectionname = "related-sites"; - $rules = "WHERE `Deleted`='0' AND `Approved`='1'"; -} -elseif($_GET['s'] == "press") -{ - $section = "press"; - $sectionname = "press"; - $rules = "WHERE `Deleted`='0' AND `Approved`='1'"; -} -else -{ - die("An internal error occurred. 's' was not correctly defined."); -} - -if($_GET['o'] == "a") -{ - $order = "ASC"; -} -elseif($_GET['o'] == "d") -{ - $order = "DESC"; -} -else -{ - die("An internal error occurred. 'o' was not correctly defined."); -} - -if($_GET['f'] == "rank") -{ - if($section == "press") - { - $field = "Upvotes"; - } - elseif($section == "ext") - { - $field = "Rank"; - } - else - { - die("An internal error occurred. 'fS' was not correctly defined."); - } -} -elseif($_GET['f'] == "date") -{ - $field = "Posted"; -} -else -{ - die("An internal error occurred. 'f' was not correctly defined."); -} - -if($_GET['p'] == "all") -{ - $query = $rules; -} -elseif($_GET['p'] == "week") -{ - $query = "{$rules} AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)"; -} -else -{ - die("An internal error occurred. 'p' was not correctly defined."); -} - -if(isset($_GET['l']) && is_numeric($_GET['l'])) -{ - $limit = $_GET['l']; -} -else -{ - $limit = "5"; -} - -$query = "{$query} ORDER BY `{$field}` {$order} LIMIT {$limit}"; - -if(isset($_GET['hl'])) -{ - $highlight = " highlighted"; -} -else -{ - $highlight = ""; -} - -echo("SELECT * FROM {$section} {$query}"); - -//echo("SELECT * FROM {$section} {$query}"); -/* -$result = mysql_query_cached("SELECT * FROM {$section} {$query}"); - -foreach($result->data as $item) -{ - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = ($sectionname == "press") ? $item['Upvotes'] : 0; - $rank = ($sectionname == "ext") ? $item['Rank'] : 0; - - echo(template_item($name, $sectionname, $id, $comments, isset($_GET['hl']), $upvotes, $rank)); -}*/ - -?> diff --git a/public_html/process.vote.php b/public_html/process.vote.php deleted file mode 100755 index 95affe5..0000000 --- a/public_html/process.vote.php +++ /dev/null @@ -1,73 +0,0 @@ -X"); - } - - $nojs = (isset($_GET['nojs'])) ? true : false; - $frame = (isset($_GET['frame'])) ? true : false; - $item_id = (is_numeric($_GET['id'])) ? $_GET['id'] : 0; - $vote = $_GET['vote']; - $ip_hash = ip_hash(get_ip()); - - if(mysql_num_rows(mysql_query("SELECT Rank FROM ext WHERE `Id`='{$item_id}'")) > 0) - { - if(mysql_num_rows(mysql_query("SELECT * FROM votes WHERE `Id`='{$item_id}' AND `Ip`='{$ip_hash}'")) == 0) - { - if($vote == "up") - { - mysql_query("UPDATE ext SET `Rank`=`Rank`+1 WHERE `Id`='{$item_id}'"); - - if(!$nojs) - { - echo("+"); - } - } - elseif($vote == "down") - { - mysql_query("UPDATE ext SET `Rank`=`Rank`-1 WHERE `Id`='{$item_id}'"); - - if(!$nojs) - { - echo("-"); - } - } - else - { - die("X"); - } - - if($nojs && $frame) - { - echo("Your vote was counted."); - } - elseif($nojs) - { - echo("Your vote was counted. Click here to go back to the page you came from."); - } - - mysql_query("INSERT INTO votes (`Id`, `Ip`) VALUES ('{$item_id}', '{$ip_hash}')"); - } - else - { - if($nojs && $frame) - { - echo("You already voted."); - } - elseif($nojs) - { - header("Location: {$referer}"); - } - else - { - die("X"); - } - } - } -} -?> diff --git a/public_html/rewrite.php b/public_html/rewrite.php deleted file mode 100755 index ac36504..0000000 --- a/public_html/rewrite.php +++ /dev/null @@ -1,117 +0,0 @@ - 1) -{ - if($parts[0] == "localize") - { - if(isset($parts[1]) && strlen($parts[1]) > 0) - { - $var_lang = $parts[1]; - $_SESSION['curlang'] = $var_lang; - if(isset($parts[2]) && strlen($parts[2]) > 0) - { - $var_start = 2; - } - else - { - $break = true; - } - } - else - { - $var_section = "error"; - $var_code = 404; - $break = true; - } - } - - if($break === false) - { - $var_section = $parts[$var_start]; - if($var_section == "press" || $var_section == "external-news" || $var_section == "related-sites" || $var_section == "forum" || $var_section == "moderation") - { - // Handle functional pages - if($var_section == "external-news") - { - $var_table = "ext"; - } - elseif($var_section == "related-sites") - { - $var_table = "sites"; - } - else - { - $var_table = "press"; - } - - if(isset($parts[$var_start + 3]) && strlen($parts[$var_start + 3]) > 0) - { - $var_subpage = $parts[$var_start + 3]; - } - - if(isset($parts[$var_start + 4]) && strlen($parts[$var_start + 4]) > 0) - { - $var_last = $parts[$var_start + 4]; - } - - if(isset($parts[$var_start + 1]) && strlen($parts[$var_start + 1]) > 0) - { - $var_page = $parts[$var_start + 1]; - - if(($var_table == "ext" || $var_table == "sites") && $var_page == "item" && $var_subpage != "comments") - { - $var_include = "external.php"; - } - } - - if(isset($parts[$var_start + 2]) && strlen($parts[$var_start + 2]) > 0) - { - $var_id = $parts[$var_start + 2]; - } - } - elseif($var_section != "radio") - { - // Handle static pages - $var_section = "static"; - if(isset($parts[$var_start + 1])) - { - $var_table = $parts[$var_start + 1]; - } - else - { - $var_section = "error"; - $var_code = 404; - } - } - } -} - -$_INCLUDED = true; -require($var_include); - -?> diff --git a/public_html/script2.js b/public_html/script2.js deleted file mode 100755 index 9d30649..0000000 --- a/public_html/script2.js +++ /dev/null @@ -1,83 +0,0 @@ -var debugEl; -var pr_img; - -function vote(c,id) -{ - var obj=newAjaxObject(); - obj.onreadystatechange=function() - { - if(obj.readyState==4) - { - $('vote'+id).innerHTML = obj.responseText; - $('votebuttons'+id).innerHTML = ""; - } - } - obj.open('GET', 'vote.php?c='+c+'&i='+id, true); - obj.send(null); -} - -function switchTab(tabElement) -{ - $(tabElement).siblings('.tab-active').removeClass('tab-active').addClass('tab'); - $(tabElement).addClass('tab-active').removeClass('tab'); -} - -function initialize() -{ - pr_img = $(".pressrelease-image img")[0]; - if(pr_img != null) - { - var real_width; - $("") - .attr("src", $(pr_img).attr("src")) - .load(function() - { - real_width = this.width; - if(real_width < 900) - { - $(pr_img).removeAttr("width"); - } - }); - } -} - -/*function get_filler() -{ - // Dirty hack to avoid the 'press releases' section resizing when switching tabs - return "placeholder placeholder placeholder"; -}*/ - -function replyToComment(element) -{ - var el = $(element).parent().parent().parent().children('.c-reply'); - var itemid = trim(el.text()); - el.html("^Post reply"); - el.css({'display':'block'}); - return false; -} - -function trim(value) -{ - value = value.replace(/^\s+/,''); - value = value.replace(/\s+$/,''); - return value; -} - -function voteUp(id, token) -{ - $('.votebuttons'+id).load("/process.vote.php?id="+id+"&vote=up&token="+token); - $('.votecount'+id).html(parseInt($('.votecount'+id).html()) + 1); - return false; -} - -function voteDown(id, token) -{ - $('.votebuttons'+id).load("/process.vote.php?id="+id+"&vote=down&token="+token); - $('.votecount'+id).html(parseInt($('.votecount'+id).html()) - 1); - return false; -} - -$(function(){ - initialize(); -}); - diff --git a/public_html/static/anon.static.php b/public_html/static/anon.static.php deleted file mode 100644 index ef4b63b..0000000 --- a/public_html/static/anon.static.php +++ /dev/null @@ -1,9 +0,0 @@ - -AnonNews is not just for AnonOps. -AnonNews was made for anything involving Anonymous - that means you do not need to be affiliated or involved with a specific network or group. No matter -who you are affiliated with - or whether you are affiliated with anything or anyone at all! - you're welcome to post on AnonNews, as long as you follow the -same relevancy guidelines as everyone else (everything that does not fit in the main sections, can generally go in the forum). -AnonNews also does not promote any particular group or network over another - this is a 'neutral' site, not taking any sides. -We would also like to remind you that AnonOps does not equal Anonymous, and that no single group or network can be representative of Anonymous as a whole. -If anyone claims to 'represent' Anonymous, he lies - no exceptions. Anonymous is also not a democratic body, which means a majority of anons (if this is -something that can be measured in the first place) can not be considered representative of Anonymous either. diff --git a/public_html/static/donate.static.php b/public_html/static/donate.static.php deleted file mode 100755 index 7899452..0000000 --- a/public_html/static/donate.static.php +++ /dev/null @@ -1,11 +0,0 @@ - - -Donate to AnonNews -AnonNews accepts donations through various methods. If you want to use PayPal or Flattr, use one of the buttons at the top of the page. - -You can also donate using Bitcoin. Bitcoin is an open-source, anonymous, and decentralized P2P currency (that means noone has control over it), that you can use to easily donate to AnonNews. For more information about Bitcoin, visit -WeUseCoins (video) or the Bitcoin website. - -To send a Bitcoin donation to AnonNews, you can send Bitcoins to the following address: 1PPVupRRz7tHvfvJWEDBnDr7bFVFFYLu6G. - -Thanks for supporting AnonNews! diff --git a/public_html/static/faq.static.php b/public_html/static/faq.static.php deleted file mode 100755 index 1ce3c32..0000000 --- a/public_html/static/faq.static.php +++ /dev/null @@ -1,53 +0,0 @@ - - - Frequently Asked Questions - This section will discuss some questions that come up fairly often. If you have any other relevant questions, feel free to join the IRC channel. - - How can I join Anonymous? - This question comes up quite often. Anonymous does not have a membership list, and you can't really 'join' it either. If you identify with or say you are Anonymous, you are Anonymous. - Noone has the authority to say whether you are Anonymous or not, except for yourself. - - How can I talk to Anonymous? - Anons can be found all over the world - and all over the internet. There are no leaders or official spokespersons, and no official websites, IRC networks, or anything else. Basically, if you want - to talk to Anonymous, join a random IRC network or forum and start talking to anons! A starting point may be, for example, the AnonNews IRC channel. - - Isn't AnonNews just for AnonOps? - No, not at all! Any anon is welcome to post on AnonNews, and there is no active affiliation with AnonOps. You can read more about this issue here. - - I don't like this press release! How can I get it removed? - You can't. AnonNews is uncensored (but moderated), and everyone has equal rights to post press releases (or forum posts, or anything else). As long as something - is relevant and fits the guidelines, it will be published, regardless of pressure to take it down. There is one exception to this rule, and that is press releases that pretend to be made by the staff - of a specific network or operation, while actually being made by an outsider. In this case the network/operation staff can request removal of the press release (this only goes for operations and - networks with a defined leadership structure). Other than the aforementioned situation, don't bother trying to get something removed. - - Why was my submission rejected? - If your submission doesn't show up after a while, that means it probably didn't fit the guidelines. If you think a submission was rejected in error, you can contact an administrator in the - IRC channel. Please don't resubmit your submissions. - - How do I upvote a press release? - To upvote a press release, you will have to post a comment that is at least 2 lines long, and at least 100 characters long. This is to prevent pointless '+1' posts just to upvote a press release. - Simply enter a comment, and if your comment is long enough, a checkbox to upvote the press release will appear on the captcha verification page. - - Do you keep IPs? - Short answer: no. - Longer answer: no, with a few exceptions. To prevent double voting, salted hashes of partial IPs are kept - these should be practically useless if someone were to gain access to the database. - The fact that only partial IPs are used for these hashes means that occasionally a vote may not be counted correctly, however this should not happen very often. The other situation is the spamfilter. - If your submission hits a severe spamfilter, your submission will be blocked, and the IP you are submitting from will be saved - the submission will be reviewed in 24 hours, and if it turns out your - submission was legitimate, your IP will be removed from the system. Most 'suspicious' submissions will be held for review, rather than being outright blocked - in this case, your IP is NOT kept. If - you do manage to hit a severe spamfilter and your submission was indeed malicious/spam, your IP may be banned (thus stored in the banlist). - No access logs or other logs with identifying information are kept on the server. You can visit the site and post submissions from TOR, VPNs, or other anonymization networks, however most of the - time your submission will be held for review when using one of these methods. - - How does the spamfilter work? - AnonNews uses a custom spam score system, where a 'score' is assigned, depending on several characteristics of a submission. Several factors that play a role for submissions are banned IPs, blocked - domains, blacklisted keywords, DNSBL-listed IPs, and other things. Depending on your spam score, the submission is either directly visible, held for manual review, or outright blocked. For comments, - several text characteristics are analyzed such as the amount of lines, average length and variation in length of lines, special characters ratio, and amount of URLs. - - Can I use the press releases or forum posts on AnonNews elsewhere? - Yes, all user-submitted content is automatically licensed under a Creative Commons Attribution license. This means that you are free to reuse and remix content, both for commercial and non-commercial - purposes, as long as you give credit to the original author. If no specific author is outlined, you should attribute to 'Anonymous' and place a backlink to the relevant page on AnonNews. - - Can I use the design / source code / etc. of AnonNews? - Yes, AnonNews is licensed under the WTFPL, meaning you can pretty much do with it what you want. No attribution required, no restrictions whatsoever. Be aware that some third-party code is used - that may have separate restrictions - this is detailed in the LICENSE file of the source code package. You can download the source code here. - diff --git a/public_html/static/forumrules.static.php b/public_html/static/forumrules.static.php deleted file mode 100755 index e2e84a3..0000000 --- a/public_html/static/forumrules.static.php +++ /dev/null @@ -1,25 +0,0 @@ - - - Forum Rules - The AnonNews forums are very loosely moderated, in fact very little will be removed - however, there are a few rules. - - No malicious or commercial content - Content that is harmful towards users is not allowed. That means no posting of malware, phishers, etc. Commercial/promotional content is also not allowed - this includes merchandise and 'content farms' - that are obviously designed for turning a profit. Content that carries serious legal liability (such as child porn or fraud) is also not allowed, to protect the AnonNews infrastructure. Discussion about - these subjects is allowed, as long as no practical instructions and/or actual content is provided. - - No organizing of outright illegal operations - Because of legal liability, organizing Anonymous Operations that are based on outright illegal activity - such as LOIC/DDoS operations - should not be organized from these forums. Discussing them - is of course allowed, as long as no actual organization takes place (that means no posting of targets and manuals and such). There are plenty of places to organize these kind of operations, look at the - Related Sites section for some examples. - - Threads have to be relevant - Except for the offtopic forum, all threads should have at least some relevancy to (a part of) Anonymous. Discussing things that are not directly related but may be of interest to Anonymous, is of course - allowed. Please don't post 'how do I hack' topics anywhere, for those kinds of things there are sites like HackForums. - - Users are encouraged to post in the right sections - While there is no real moderation on this, you are encouraged to post topics in the 'appropriate' categories - this will ensure that those interested in the subject will read them. This is not a real - "rule", topics will not be moved when placed in the wrong section. - - - diff --git a/public_html/static/irc.static.php b/public_html/static/irc.static.php deleted file mode 100755 index e1bc448..0000000 --- a/public_html/static/irc.static.php +++ /dev/null @@ -1,18 +0,0 @@ - -IRC -AnonNews has an IRC channel on Cryto IRC, for support, questions, moderator applications, and general chit-chat. TOR users are welcome, however abusing IPs will -receive a temporary ban from the network. If you cannot connect through a TOR node, VPN, or proxy, please try using a different TOR identity / proxy / VPN IP. An I2P tunnel is planned, but not yet operational. -Important: AnonNews is not affiliated with AnonOps or any other Anonymous-related website, network, or infrastructure. If you have complaints about an Anonymous Operation, please directly -contact those responsible for the organization - AnonNews has nothing to do with it, and is just a news platform. - - For webchat users: - Visit http://irc.lc/cryto/anonnews to use our web IRC client. No downloads or plugins are required. - Please do not 'slap' other users, this is considered rude. - - - For users with an IRC client: - Server: irc.cryto.net - Port: 6667 (regular) / 6697 (SSL) - Channel: #anonnews - For those that do not wish to connect to a US-based server, you can connect to nijaxor.cryto.net (NL), haless.cryto.net (DE), or konjassiem.cryto.net (DE). - diff --git a/public_html/static/moderation.static.php b/public_html/static/moderation.static.php deleted file mode 100755 index 86a8057..0000000 --- a/public_html/static/moderation.static.php +++ /dev/null @@ -1,28 +0,0 @@ - -Moderation is not censorship. -A question / criticism that comes up rather often is that AnonNews would be exercising censorship on submissions. This page will explain why this is not the case, and what the difference between -moderation and censorship is. - -What is censorship? -Censorship is, generally speaking, attempting to filter out morally objectionable content - this can be news, images, music or anything else, and what classifies as 'morally objectionable' will differ -for everyone, based on their personal moral standpoints and opinions. The key here is that censorship revolves around specific ideas or information of which the spreading is actively hindered, based on -personal ideals. - -How is this different from moderation? -Moderation, in the case of AnonNews, is the removal of content that is not relevant to 'Anonymous', is intended to cause harm to the machines of visitors, or attempts to exploit visitors. This means -that links to malware, scams, or news that is not about Anonymous (as well as things that are not put in the right category) will be removed. This is not based on any personal ideals, and the actual -message or opinion in said content does not play a role. Potentially 'offensive' content is not moderated, as even controversial ideas should have a voice. - -How does moderation on AnonNews work? -There is a group of moderators, and anyone can apply to become a moderator. As a general rule of thumb, anyone who applies will become a moderator, and no 'screening' is done. The platform is made to -allow rollbacks in case of abuse, so there is very little harm that can be done by a moderator. If a moderator exhibits unsuitable behaviour (such as removing content based on personal morals) he will lose -his moderator status, to ensure that AnonNews only has mods that are capable of objective analysis. -Moderators are encouraged to not read any submissions before approving or rejecting them. The general rule of thumb is to use the browsers search-in-page feature to determine whether -'Anonymous' is mentioned somewhere in the article, and to quickly skim the text to get an idea of whether it's actually news, or something else (like an opinion blogpost). In the case of press releases, -moderators are encouraged to only look at the grammar, spelling, and formatting - and to check whether any part of the press release claims to speak for all of Anonymous. That's it. -TL;DR moderation is generally speaking done without even paying attention to what the article is about. - -About the comments sections and the forums -"Regular" moderators do not have access to moderate comments or forum posts. This is because there is not really a need for a large moderation team - the only rules are that you cannot organize illegal -Anonymous Operations such as DDoS operations (this is in order to protect the AnonNews infrastructure), and that you cannot post malware / scams, or posts that are intended to make the pages unreasonably -long, such as posts that contain entire books (yes, it has been done.) diff --git a/public_html/static/mods.static.php b/public_html/static/mods.static.php deleted file mode 100755 index 49e8216..0000000 --- a/public_html/static/mods.static.php +++ /dev/null @@ -1,14 +0,0 @@ - -AnonNews is looking for moderators! -We are looking for people that have the time (and capability) to moderate incoming submissions. The most important requirements for being a moderator: - - You must be able to moderate submissions solely based on relevancy. You must be able to leave out your own personal morals in moderation. - You must be present in the AnonNews (staff) IRC channel regularly. - You must be tech-savvy enough to distinguish potentially harmful links from genuine links. - You must have read and understood the guidelines for the submission of press releases, external news, and related sites. - You must be able to speak and understand English. - -Being a moderator does not require an e-mail address, real name, or any other personally identifiable information - all that is needed is a username and a password. -Be aware that all moderation decisions are logged, and that intentionally bad moderation or unwillingness to follow the guidelines may result in your moderator account being disabled. -This includes exercising moderation based on personal morals. -To apply for being a moderator, join the IRC channel. diff --git a/public_html/static/noise.dict b/public_html/static/noise.dict deleted file mode 100755 index e041843..0000000 --- a/public_html/static/noise.dict +++ /dev/null @@ -1,494 +0,0 @@ -able -about -above -acid -across -actually -after -again -against -ago -ai -all -almost -alors -already -also -alter -although -always -am -among -an -and -angry -another -any -anyway -appropriate -are -around -as -at -aussi -automatic -autre -autres -available -avant -awake -aware -away -back -bad -basic -be -beautiful -because -been -before -being -bent -better -between -big -bitter -black -blue -boiling -both -bright -broken -brown -but -by -came -can -cause -ceci -cela -central -certain -certainly -ces -ceux-ci -cheap -chemical -chief -clean -clear -clearly -close -cold -come -comme -common -complete -complex -concerned -conscious -could -cruel -current -cut -dans -dark -de -dead -dear -deep -delicate -dependent -depuis -des -did -different -difficult -dirty -do -does -down -dry -du -due -each -early -east -easy -economic -either -elastic -electric -elle -else -enough -equal -especially -est -et -eux -even -ever -every -exactly -false -far -fat -feeble -female -fertile -few -final -finalty -financial -fine -first -fixed -flat -following -foolish -for -foreign -form -former -forward -free -frequent -from -full -further -future -general -generality -get -give -go -good -got -great -green -grey/gray -had -half -hanging -happy -hard -has -have -he -healthy -heavy -help -her -here -high -him -himself -his -hollow -home -how -however -human -ici -if -il -ill -ils -important -in -indeed -individual -industrial -instead -international -into -is -it -its -je -just -keep -kind -la -labor -large -last -late -later -le -least -left -legal -les -less -let -leur -leurs -like -likely -line -little -living -local -long -loose -loud -low -lui -là -ma -main -mais -major -make -male -many -married -material -may -maybe -me -mean -medical -mes -might -military -mixed -modern -moi -moins -mon -more -most -much -must -my -name -narrow -national -natural -near -nearly -necessary -never -new -next -nice -no -nor -normal -north -nos -not -notre -nous -now -obviously -of -off -often -okay -old -on -once -one -only -open -opposite -or -original -other -ou -our -out -over -own -par -parallel -particular -particularly -past -perhaps -personal -physical -please -plus -political -poor -popular -possible -pour -present -previous -prime -private -probable -probably -professional -public -put -que -quick -quickly -quiet -quite -rather -ready -real -really -recent -recently -red -regular -responsible -right -rough -round -royal -sa -sad -safe -said -same -say -second -secret -see -seem -send -separate -serious -ses -several -shall -sharp -short -should -shut -significant -similar -simple -simply -since -single -slow -small -smooth -so -social -soft -solid -some -sometimes -son -soon -sorry -south -special -specific -sticky -stiff -still -straight -strange -strong -successful -such -sudden -suddenly -sure -sweet -ta -take -tall -tel -tes -than -that -the -their -them -then -there -therefore -these -they -thick -thin -think -this -those -though -through -thus -tight -till -tired -to -today -together -toi -tomorrow -ton -too -top -total -tous -tout -true -tu -turn -un -under -une -unless -until -up -use -used -useful -usually -various -very -violent -vos -votre -vous -waiting -warm -was -way -we -well -were -west -wet -what -whatever -when -where -whether -which -while -white -who -whole -whose -why -wide -will -wise -with -would -wrong -yeah -yellow -yes -yesterday -yet -you -young -your -brought -love diff --git a/public_html/static/radio.static.php b/public_html/static/radio.static.php deleted file mode 100755 index 6fdac18..0000000 --- a/public_html/static/radio.static.php +++ /dev/null @@ -1,4 +0,0 @@ - -AnonNews Radio has been discontinued -AnonNews Radio no longer exists. Although this may change in the future, there are no direct plans to set up AnonNews Radio again. -If you are looking for new music, a good place to look would be Jamendo - a website with thousands of freely shareable (Creative Commons-licensed) tracks. diff --git a/public_html/style2.css b/public_html/style2.css deleted file mode 100755 index c6d3ad2..0000000 --- a/public_html/style2.css +++ /dev/null @@ -1,755 +0,0 @@ -.c-actions -{ - bottom: 0; - position: absolute; - right: 0; -} -.c-actions-button -{ - border: 1px solid #CACACA; - display: block; - float: right; - font-size: 14px; - font-weight: 700; - margin: 4px; - padding: 2px 5px; -} -.c-actions-button:hover -{ - background-color: #E9E9E9; - border: 1px solid #000; -} -.c-body -{ - padding-bottom: 25px; - text-align: justify; -} -.c-children -{ - padding-left: 30px; -} -.c-meta -{ - background-color: #E8E8E8; - border-radius: 5px; - margin-bottom: 9px; - moz-border-radius: 5px; - padding: 4px 8px; -} -.c-meta-date -{ - float: right; - font-style: italic; -} -.c-outer -{ - min-height: 95px; - padding: 8px; -} -.c-outer,.c-small -{ - background-color: #DADADA; - border: 1px solid #888; - margin-top: 10px; - position: relative; -} -.c-reply -{ - display: none; - padding-left: 20px; -} -.c-reply button,.c-comment button -{ - font-size: 16px; - margin-top: 6px; -} -.c-reply div.button,.c-comment div.button -{ - text-align: right; -} -.c-reply input,.c-reply textarea,.c-comment input,.c-comment textarea -{ - border: 1px solid #000; -} -.c-reply input,.c-reply textarea,.c-reply div.button,.c-comment input,.c-comment textarea,.c-comment div.button -{ - box-sizing: border-box; - display: block; - padding: 4px; - width: 80%; -} -.c-reply textarea,.c-comment textarea -{ - font-size: 16px; - height: 250px; -} -.c-reply-header -{ - font-size: 19px; - font-weight: 700; - margin-top: 7px; -} -.c-small -{ - color: #505050; - padding: 4px; -} -.c-small .c-actions-button -{ - margin: 2px; -} -.c-small-inner -{ - padding: 3px; -} -.c-spacer -{ - margin-top: 30px; -} -.forum-buttons a -{ - border: 1px solid #C6C6C6; - display: block; - float: right; - margin-bottom: 5px; - padding: 5px; - text-decoration: none; -} -.forum-buttons a:hover -{ - background-color: #DEDEDE; - border: 1px solid gray; -} -.forum-header -{ - font-size: 18px; - font-weight: 700; - margin-bottom: 16px; - margin-top: 12px; - text-align: center; -} -.forum-header-category-threads,.forum-header-category-posts,.forum-header-threads-replies -{ - width: 70px; -} -.forum-item-category-threads,.forum-item-category-posts,.forum-item-threads-replies -{ - font-size: 28px; - font-weight: 700; -} -.forum-post -{ - background-color: #DEDEDE; - border: 1px solid silver; - margin-top: 16px; -} -.forum-post-body -{ - font-size: 15px; - padding: 9px 14px; - text-align: justify; - width: 682px; -} -.forum-post-date -{ - font-size: 13px; - margin-bottom: 9px; - margin-top: 6px; -} -.forum-post-first -{ - border: 1px solid gray; -} -.forum-post-meta -{ - background-color: #D4D4D4; - padding: 9px 6px; - width: 178px; -} -.forum-post-meta,.forum-post-body -{ - float: left; -} -.forum-post-user -{ - font-size: 18px; - font-weight: 700; -} -.forum-table .forum-item-category-name,.forum-table .forum-item-threads-name -{ - padding: 0; -} -.forum-table th -{ - background-color: #D8D8D8; - text-align: left; -} -.forum-table th,.forum-table td -{ - padding: 7px; -} -.forum-table,.forum-buttons,.forum-post,.forum-reply -{ - margin: 0 auto; - width: 900px; -} -.forum-table,.forum-table th,.forum-table td -{ - border: 1px solid #C6C6C6; - border-collapse: collapse; -} -.forum-table-date,.forum-table-teaser -{ - font-size: 13px; -} -.forum-table-link -{ - border: none; - display: block; - padding: 7px; -} -.forum-table-link:hover -{ - background-color: #DCDCDC; - border: none; -} -.forum-table-name -{ - font-size: 19px; - font-weight: 700; -} -@font-face -{ - font-family: 'Muli'; - font-style: normal; - font-weight: 400; - src: local('Muli Light'), local('Muli-Light'), url('http://tahoe-gateway.cryto.net:3719/download/VVJJOkNISzpjcWE1M3FhZTd6NXlsM3JuMmVkcGdzaHRvcTozMm9rbDN4Mmdsd2twM21mcG4yNGJ0M2RmZ2Zqb2NhM2hqaHRleTI3Nmo3cmlsdW92b3BhOjM6NjozMzkyNA==/anonnews.woff') format('woff'); -} -a -{ - border-bottom: 1px dashed; - color: #000; - text-decoration: none; -} -a.comments -{ - display: block; - float: right; - margin-right: 9px; - padding: 3px 4px 6px; - text-decoration: none; -} -a.comments span.count -{ - display: block; - font-size: 20px; - line-height: 17px; - margin-bottom: 0; - margin-left: auto; - margin-right: auto; -} -a.comments span.under -{ - display: block; - font-size: 8px; - line-height: 6px; - margin-left: auto; - margin-right: auto; - margin-top: 0; -} -a.header-button,div.header-button -{ - border: 1px solid #696969; - border-radius: 10px; - color: #202020; - display: block; - float: left; - font-size: 20px; - margin: 5px; - moz-border-radius: 10px; - overflow: hidden; - padding: 8px; - text-decoration: none; -} -a.header-button:hover,a.section-button:hover -{ - background-color: #EFEFEF; - border: 1px solid #000; - color: #242424; - text-decoration: none; -} -a.hidden -{ - display: block; - font-size: 13px; - margin-top: 19px; -} -a.minus -{ - color: red; - padding-left: 8px; - padding-right: 8px; -} -a.name -{ - border-bottom: none; - display: inline; - line-height: 32px; - padding: 6px; - text-decoration: none; -} -a.page-button,div.page-button -{ - border: 1px solid #696969; - border-radius: 10px; - color: #202020; - font-size: 16px; - margin: 1px; - moz-border-radius: 10px; - overflow: hidden; - padding: 8px; - text-decoration: none; -} -a.page-button:hover -{ - background-color: #D8D8D8; - border: 1px solid #000; - color: #242424; - text-decoration: none; -} -a.plus -{ - color: lime; - padding-left: 4px; - padding-right: 4px; -} -a.plus,a.minus,a.comments -{ - border-bottom: none; -} -a.plus,a.minus,div.votestate -{ - display: block; - float: right; - padding-bottom: 3px; - padding-right: 3px; - text-decoration: none; -} -a.plus:hover,a.minus:hover,a.comments:hover -{ - background-color: gray; - color: #FFF; -} -a.readmore -{ - color: #000; - margin-left: 12px; - text-decoration: none; -} -a.readmore:hover,a.name:hover -{ - text-decoration: underline; -} -a.section-button -{ - border: 1px solid #DDD; - border-radius: 10px; - color: #EFEFEF; - display: block; - float: right; - font-size: 14px; - margin: 5px; - moz-border-radius: 10px; - padding: 6px; - text-decoration: none; -} -a.small -{ - display: inline; - margin-left: 8px; -} -a.tab -{ - border-bottom: 1px solid #000; -} -a.tab,a.tab-active -{ - background-color: #DDD; - border: 1px solid #000; - border-top-left-radius: 7px; - border-top-right-radius: 7px; - font-size: 18px; - font-weight: 400; - moz-border-radius-topleft: 7px; - moz-border-radius-topright: 7px; - padding: 5px 5px 4px; - text-decoration: none; -} -a.tab-active,a.tab:hover -{ - background-color: #7D7D7D; - color: #EFEFEF; -} -a:hover -{ - border-bottom: 1px solid; -} -button.hiddenreply -{ - float: right; -} -div.body-main -{ - padding: 3px 13px; -} -div.cc-notice -{ - background-color: #D9D9D9; - border: 1px solid #000; - border-radius: 8px; - font-size: 11px; - margin: 0 auto; - moz-border-radius: 8px; - padding: 4px; - width: 80%; -} -div.cc-notice img -{ - float: left; - margin-right: 6px; -} -div.clear -{ - clear: both; -} -div.comment -{ - background-color: #E0E0E0; - border: 1px solid #000; - font-size: 16px; - margin-bottom: 18px; - padding: 16px; -} -div.form-notice -{ - background-color: #FFEFBE; - background-image: url(http://tahoe-gateway.cryto.net:3719/download/VVJJOkNISzp5anRpYzc1b24zemx3M2k0MnJ0ajN4Y2Z5eTpqcGt1aXJkcXhiYnU3bnUzdjdycngyZWFhejd3cGpqZzY1d3ptbG81NnY3Y21mNGh4aDRhOjM6Njo2NjY=/error.png); - background-position: 6px 3px; - background-repeat: no-repeat; - border: 1px solid #735600; - border-radius: 10px; - box-sizing: border-box; - font-size: 12px; - khtml-box-sizing: border-box; - margin-bottom: 3px; - moz-border-radius: 10px; - moz-box-sizing: border-box; - ms-box-sizing: border-box; - padding: 5px 5px 5px 27px; - webkit-border-radius: 10px; - webkit-box-sizing: border-box; - width: 80%; -} -div.header,.forum-reply -{ - margin-top: 16px; -} -div.hiddenreply -{ - background-color: silver; - border: 1px solid #000; - display: none; - margin-top: 6px; - padding: 4px; - width: 358px; -} -div.highlighted -{ - background-color: #FBEC99; -} -div.item -{ - background-color: #DDD; - border: 1px solid gray; - border-radius: 8px; - font-size: 16px; - margin-top: 3px; - moz-border-radius: 8px; - padding: 0; -} -div.normalcomments -{ - background-color: silver; - border: 1px solid #000; - padding: 4px; - width: 358px; -} -div.note -{ - font-size: 12px; - margin-top: 6px; -} -div.page-list -{ - padding: 0 15px; - text-align: center; -} -div.page-list a -{ - border: none; - line-height: 180%; - margin: 2px 0; - padding: 3px 4px 3px 3px; - text-decoration: none; -} -div.page-list a:hover -{ - outline: 1px dashed #000; -} -div.page-list-bottom -{ - margin-top: 11px; -} -div.page-list-top -{ - margin-bottom: 11px; - margin-top: 11px; -} -div.pagecontent -{ - margin: 12px; -} -div.pressrelease -{ - margin: 0 auto; - text-align: justify; - width: 900px; -} -div.pressrelease p -{ - margin-bottom: 9px; - margin-top: 4px; -} -div.pressrelease-image -{ - margin-bottom: 15px; - padding: 0; - text-align: center; -} -div.pressrelease-image img -{ - margin: 0; -} -div.section -{ - background-color: #7D7D7D; - border: 1px solid #000; - border-radius: 14px; - moz-border-radius: 14px; - padding: 4px; -} -div.section-header -{ - color: #5B5B5B; - font-size: 23px; - font-weight: 700; - margin-bottom: 3px; -} -div.section-wrapper -{ - margin: 0 auto 17px; - width: 98%; -} -div.small -{ - background-color: #E1E1E1; - border-color: gray; - padding: 8px; -} -div.sort-options -{ - float: right; - font-size: 13px; - margin-bottom: 6px; -} -div.sort-options a,input.empty -{ - color: gray; -} -div.sort-options a.active -{ - border-bottom-style: solid; - color: #000; -} -div.sort-options a:hover -{ - border-bottom-style: dashed; - color: #000; -} -div.source-notice -{ - text-align: center; -} -div.submit -{ - margin-top: 15px; - text-align: center; - width: 80%; -} -div.submit button -{ - font-size: 19px; -} -div.submit-loader -{ - display: none; - font-size: 16px; - text-align: center; - width: 80%; -} -div.topbar -{ - background-color: #E0E0E0; - border-bottom: 1px solid gray; - font-size: 18px; - margin-bottom: 15px; - padding: 3px 12px; - text-align: left; -} -div.upvotes -{ - color: green; - float: right; - margin-right: 8px; -} -form h4 -{ - font-size: 22px; - margin-bottom: 2px; - margin-top: 14px; -} -form.forum input,form.forum textarea,form.forum select -{ - font-size: 17px; - padding: 4px; - width: 100%; -} -form.forum textarea -{ - height: 200px; -} -form.submission input,form.submission textarea,form.submission select -{ - font-size: 24px; - padding: 5px; - width: 80%; -} -form.submission input,form.submission textarea,form.submission select,form.forum input,form.forum textarea,form.forum select -{ - background-color: #F1F1F1; - border: 1px solid #000; - box-sizing: border-box; - display: block; - khtml-box-sizing: border-box; - moz-box-sizing: border-box; - ms-box-sizing: border-box; - webkit-box-sizing: border-box; -} -form.submission input.upload,.c-reply input,.c-comment input -{ - font-size: 17px; -} -form.submission textarea -{ - height: 400px; -} -form.submission textarea,form.forum textarea -{ - font-size: 14px; -} -h1 -{ - background-color: #D7D7D7; - border-bottom: 1px solid gray; - font-weight: 400; - margin-bottom: 0; - margin-top: 0; - padding: 10px; -} -h1 img,h1 input -{ - font-size: 2px; -} -h1,h1 a -{ - border-bottom: none; - color: #3B3B3B; -} -h2 -{ - color: #3D3D3D; - display: inline; - padding: 7px; -} -h3 -{ - margin-bottom: 2px; -} -h5 -{ - border-bottom: 1px solid #000; - font-size: 26px; - margin-bottom: 15px; - margin-top: 3px; - padding-bottom: 7px; -} -html,body -{ - background-color: #EBEBEB; - font-family: Muli, Verdana, Arial; - height: 100%; - margin: 0; - padding: 0; -} -img.loader -{ - display: none; - float: left; - margin-left: 5px; - margin-top: 9px; -} -span.smallcomment -{ - color: #242424; -} -span.spacer -{ - font-size: 1px; -} -span.strong,a.tab-active,span.bold,div.page-list a.current,.c-meta-name -{ - font-weight: 700; -} -span.votecount -{ - float: right; - padding-right: 6px; -} -span.votes -{ - float: right; - font-size: 24px; - font-weight: 700; - padding-right: 9px; -} -strong.hidden -{ - display: block; - margin-bottom: 3px; -} -textarea.reply -{ - font-family: arial; - height: 140px; - width: 350px; -} diff --git a/public_html/tiny_mce/langs/en.js b/public_html/tiny_mce/langs/en.js deleted file mode 100755 index ea4a1b0..0000000 --- a/public_html/tiny_mce/langs/en.js +++ /dev/null @@ -1,170 +0,0 @@ -tinyMCE.addI18n({en:{ -common:{ -edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", -apply:"Apply", -insert:"Insert", -update:"Update", -cancel:"Cancel", -close:"Close", -browse:"Browse", -class_name:"Class", -not_set:"-- Not set --", -clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?", -clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.", -popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.", -invalid_data:"Error: Invalid values entered, these are marked in red.", -more_colors:"More colors" -}, -contextmenu:{ -align:"Alignment", -left:"Left", -center:"Center", -right:"Right", -full:"Full" -}, -insertdatetime:{ -date_fmt:"%Y-%m-%d", -time_fmt:"%H:%M:%S", -insertdate_desc:"Insert date", -inserttime_desc:"Insert time", -months_long:"January,February,March,April,May,June,July,August,September,October,November,December", -months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", -day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", -day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun" -}, -print:{ -print_desc:"Print" -}, -preview:{ -preview_desc:"Preview" -}, -directionality:{ -ltr_desc:"Direction left to right", -rtl_desc:"Direction right to left" -}, -layer:{ -insertlayer_desc:"Insert new layer", -forward_desc:"Move forward", -backward_desc:"Move backward", -absolute_desc:"Toggle absolute positioning", -content:"New layer..." -}, -save:{ -save_desc:"Save", -cancel_desc:"Cancel all changes" -}, -nonbreaking:{ -nonbreaking_desc:"Insert non-breaking space character" -}, -iespell:{ -iespell_desc:"Run spell checking", -download:"ieSpell not detected. Do you want to install it now?" -}, -advhr:{ -advhr_desc:"Horizontal rule" -}, -emotions:{ -emotions_desc:"Emotions" -}, -searchreplace:{ -search_desc:"Find", -replace_desc:"Find/Replace" -}, -advimage:{ -image_desc:"Insert/edit image" -}, -advlink:{ -link_desc:"Insert/edit link" -}, -xhtmlxtras:{ -cite_desc:"Citation", -abbr_desc:"Abbreviation", -acronym_desc:"Acronym", -del_desc:"Deletion", -ins_desc:"Insertion", -attribs_desc:"Insert/Edit Attributes" -}, -style:{ -desc:"Edit CSS Style" -}, -paste:{ -paste_text_desc:"Paste as Plain Text", -paste_word_desc:"Paste from Word", -selectall_desc:"Select All", -plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.", -plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode." -}, -paste_dlg:{ -text_title:"Use CTRL+V on your keyboard to paste the text into the window.", -text_linebreaks:"Keep linebreaks", -word_title:"Use CTRL+V on your keyboard to paste the text into the window." -}, -table:{ -desc:"Inserts a new table", -row_before_desc:"Insert row before", -row_after_desc:"Insert row after", -delete_row_desc:"Delete row", -col_before_desc:"Insert column before", -col_after_desc:"Insert column after", -delete_col_desc:"Remove column", -split_cells_desc:"Split merged table cells", -merge_cells_desc:"Merge table cells", -row_desc:"Table row properties", -cell_desc:"Table cell properties", -props_desc:"Table properties", -paste_row_before_desc:"Paste table row before", -paste_row_after_desc:"Paste table row after", -cut_row_desc:"Cut table row", -copy_row_desc:"Copy table row", -del:"Delete table", -row:"Row", -col:"Column", -cell:"Cell" -}, -autosave:{ -unload_msg:"The changes you made will be lost if you navigate away from this page.", -restore_content:"Restore auto-saved content.", -warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?." -}, -fullscreen:{ -desc:"Toggle fullscreen mode" -}, -media:{ -desc:"Insert / edit embedded media", -edit:"Edit embedded media" -}, -fullpage:{ -desc:"Document properties" -}, -template:{ -desc:"Insert predefined template content" -}, -visualchars:{ -desc:"Visual control characters on/off." -}, -spellchecker:{ -desc:"Toggle spellchecker", -menu:"Spellchecker settings", -ignore_word:"Ignore word", -ignore_words:"Ignore all", -langs:"Languages", -wait:"Please wait...", -sug:"Suggestions", -no_sug:"No suggestions", -no_mpell:"No misspellings found." -}, -pagebreak:{ -desc:"Insert page break." -}, -advlist:{ -types:"Types", -def:"Default", -lower_alpha:"Lower alpha", -lower_greek:"Lower greek", -lower_roman:"Lower roman", -upper_alpha:"Upper alpha", -upper_roman:"Upper roman", -circle:"Circle", -disc:"Disc", -square:"Square" -}}}); \ No newline at end of file diff --git a/public_html/tiny_mce/license.txt b/public_html/tiny_mce/license.txt deleted file mode 100755 index 60d6d4c..0000000 --- a/public_html/tiny_mce/license.txt +++ /dev/null @@ -1,504 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - - diff --git a/public_html/tiny_mce/plugins/advhr/css/advhr.css b/public_html/tiny_mce/plugins/advhr/css/advhr.css deleted file mode 100755 index 0e22834..0000000 --- a/public_html/tiny_mce/plugins/advhr/css/advhr.css +++ /dev/null @@ -1,5 +0,0 @@ -input.radio {border:1px none #000; background:transparent; vertical-align:middle;} -.panel_wrapper div.current {height:80px;} -#width {width:50px; vertical-align:middle;} -#width2 {width:50px; vertical-align:middle;} -#size {width:100px;} diff --git a/public_html/tiny_mce/plugins/advhr/editor_plugin.js b/public_html/tiny_mce/plugins/advhr/editor_plugin.js deleted file mode 100755 index 4d3b062..0000000 --- a/public_html/tiny_mce/plugins/advhr/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js b/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js deleted file mode 100755 index 0c652d3..0000000 --- a/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedHRPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceAdvancedHr', function() { - ed.windowManager.open({ - file : url + '/rule.htm', - width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), - height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('advhr', { - title : 'advhr.advhr_desc', - cmd : 'mceAdvancedHr' - }); - - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('advhr', n.nodeName == 'HR'); - }); - - ed.onClick.add(function(ed, e) { - e = e.target; - - if (e.nodeName === 'HR') - ed.selection.select(e); - }); - }, - - getInfo : function() { - return { - longname : 'Advanced HR', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/js/rule.js b/public_html/tiny_mce/plugins/advhr/js/rule.js deleted file mode 100755 index b6cbd66..0000000 --- a/public_html/tiny_mce/plugins/advhr/js/rule.js +++ /dev/null @@ -1,43 +0,0 @@ -var AdvHRDialog = { - init : function(ed) { - var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; - - w = dom.getAttrib(n, 'width'); - f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); - f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; - f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); - selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); - }, - - update : function() { - var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; - - h = ''; - - ed.execCommand("mceInsertContent", false, h); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.requireLangPack(); -tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog); diff --git a/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js b/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js deleted file mode 100755 index 873bfd8..0000000 --- a/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js +++ /dev/null @@ -1,5 +0,0 @@ -tinyMCE.addI18n('en.advhr_dlg',{ -width:"Width", -size:"Height", -noshade:"No shadow" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/rule.htm b/public_html/tiny_mce/plugins/advhr/rule.htm deleted file mode 100755 index fc37b2a..0000000 --- a/public_html/tiny_mce/plugins/advhr/rule.htm +++ /dev/null @@ -1,57 +0,0 @@ - - - - {#advhr.advhr_desc} - - - - - - - - - - - {#advhr.advhr_desc} - - - - - - - - {#advhr_dlg.width} - - - - px - % - - - - - {#advhr_dlg.size} - - Normal - 1 - 2 - 3 - 4 - 5 - - - - {#advhr_dlg.noshade} - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advimage/css/advimage.css b/public_html/tiny_mce/plugins/advimage/css/advimage.css deleted file mode 100755 index 0a6251a..0000000 --- a/public_html/tiny_mce/plugins/advimage/css/advimage.css +++ /dev/null @@ -1,13 +0,0 @@ -#src_list, #over_list, #out_list {width:280px;} -.mceActionPanel {margin-top:7px;} -.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} -.checkbox {border:0;} -.panel_wrapper div.current {height:305px;} -#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} -#align, #classlist {width:150px;} -#width, #height {vertical-align:middle; width:50px; text-align:center;} -#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} -#class_list {width:180px;} -input {width: 280px;} -#constrain, #onmousemovecheck {width:auto;} -#id, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/public_html/tiny_mce/plugins/advimage/editor_plugin.js b/public_html/tiny_mce/plugins/advimage/editor_plugin.js deleted file mode 100755 index 4c7a9c3..0000000 --- a/public_html/tiny_mce/plugins/advimage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js b/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js deleted file mode 100755 index 2625dd2..0000000 --- a/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedImagePlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceAdvImage', function() { - // Internal image object like a flash placeholder - if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) - return; - - ed.windowManager.open({ - file : url + '/image.htm', - width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)), - height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('image', { - title : 'advimage.image_desc', - cmd : 'mceAdvImage' - }); - }, - - getInfo : function() { - return { - longname : 'Advanced image', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advimage/image.htm b/public_html/tiny_mce/plugins/advimage/image.htm deleted file mode 100755 index 79cff3f..0000000 --- a/public_html/tiny_mce/plugins/advimage/image.htm +++ /dev/null @@ -1,232 +0,0 @@ - - - - {#advimage_dlg.dialog_title} - - - - - - - - - - - - - {#advimage_dlg.tab_general} - {#advimage_dlg.tab_appearance} - {#advimage_dlg.tab_advanced} - - - - - - - {#advimage_dlg.general} - - - - {#advimage_dlg.src} - - - - - - - - - {#advimage_dlg.image_list} - - - - {#advimage_dlg.alt} - - - - {#advimage_dlg.title} - - - - - - - {#advimage_dlg.preview} - - - - - - - {#advimage_dlg.tab_appearance} - - - - {#advimage_dlg.align} - - {#not_set} - {#advimage_dlg.align_baseline} - {#advimage_dlg.align_top} - {#advimage_dlg.align_middle} - {#advimage_dlg.align_bottom} - {#advimage_dlg.align_texttop} - {#advimage_dlg.align_textbottom} - {#advimage_dlg.align_left} - {#advimage_dlg.align_right} - - - - - - Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam - nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum - edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam - erat volutpat. - - - - - - {#advimage_dlg.dimensions} - - x - px - - - - - - - - - {#advimage_dlg.constrain_proportions} - - - - - - {#advimage_dlg.vspace} - - - - - - {#advimage_dlg.hspace} - - - - - {#advimage_dlg.border} - - - - - {#class_name} - - - - - {#advimage_dlg.style} - - - - - - - - - - - {#advimage_dlg.swap_image} - - - {#advimage_dlg.alt_image} - - - - {#advimage_dlg.mouseover} - - - - - - - - - {#advimage_dlg.image_list} - - - - {#advimage_dlg.mouseout} - - - - - - - - - {#advimage_dlg.image_list} - - - - - - - {#advimage_dlg.misc} - - - - {#advimage_dlg.id} - - - - - {#advimage_dlg.langdir} - - - {#not_set} - {#advimage_dlg.ltr} - {#advimage_dlg.rtl} - - - - - - {#advimage_dlg.langcode} - - - - - - - {#advimage_dlg.map} - - - - - - - {#advimage_dlg.long_desc} - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advimage/img/sample.gif b/public_html/tiny_mce/plugins/advimage/img/sample.gif deleted file mode 100755 index 53bf689..0000000 Binary files a/public_html/tiny_mce/plugins/advimage/img/sample.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/advimage/js/image.js b/public_html/tiny_mce/plugins/advimage/js/image.js deleted file mode 100755 index 3bda86a..0000000 --- a/public_html/tiny_mce/plugins/advimage/js/image.js +++ /dev/null @@ -1,443 +0,0 @@ -var ImageDialog = { - preInit : function() { - var url; - - tinyMCEPopup.requireLangPack(); - - if (url = tinyMCEPopup.getParam("external_image_list_url")) - document.write(''); - }, - - init : function(ed) { - var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); - - tinyMCEPopup.resizeToInnerSize(); - this.fillClassList('class_list'); - this.fillFileList('src_list', 'tinyMCEImageList'); - this.fillFileList('over_list', 'tinyMCEImageList'); - this.fillFileList('out_list', 'tinyMCEImageList'); - TinyMCE_EditableSelects.init(); - - if (n.nodeName == 'IMG') { - nl.src.value = dom.getAttrib(n, 'src'); - nl.width.value = dom.getAttrib(n, 'width'); - nl.height.value = dom.getAttrib(n, 'height'); - nl.alt.value = dom.getAttrib(n, 'alt'); - nl.title.value = dom.getAttrib(n, 'title'); - nl.vspace.value = this.getAttrib(n, 'vspace'); - nl.hspace.value = this.getAttrib(n, 'hspace'); - nl.border.value = this.getAttrib(n, 'border'); - selectByValue(f, 'align', this.getAttrib(n, 'align')); - selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true); - nl.style.value = dom.getAttrib(n, 'style'); - nl.id.value = dom.getAttrib(n, 'id'); - nl.dir.value = dom.getAttrib(n, 'dir'); - nl.lang.value = dom.getAttrib(n, 'lang'); - nl.usemap.value = dom.getAttrib(n, 'usemap'); - nl.longdesc.value = dom.getAttrib(n, 'longdesc'); - nl.insert.value = ed.getLang('update'); - - if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover'))) - nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); - - if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout'))) - nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); - - if (ed.settings.inline_styles) { - // Move attribs to styles - if (dom.getAttrib(n, 'align')) - this.updateStyle('align'); - - if (dom.getAttrib(n, 'hspace')) - this.updateStyle('hspace'); - - if (dom.getAttrib(n, 'border')) - this.updateStyle('border'); - - if (dom.getAttrib(n, 'vspace')) - this.updateStyle('vspace'); - } - } - - // Setup browse button - document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); - if (isVisible('srcbrowser')) - document.getElementById('src').style.width = '260px'; - - // Setup browse button - document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image'); - if (isVisible('overbrowser')) - document.getElementById('onmouseoversrc').style.width = '260px'; - - // Setup browse button - document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image'); - if (isVisible('outbrowser')) - document.getElementById('onmouseoutsrc').style.width = '260px'; - - // If option enabled default contrain proportions to checked - if (ed.getParam("advimage_constrain_proportions", true)) - f.constrain.checked = true; - - // Check swap image if valid data - if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value) - this.setSwapImage(true); - else - this.setSwapImage(false); - - this.changeAppearance(); - this.showPreviewImage(nl.src.value, 1); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, t = this, f = document.forms[0]; - - if (f.src.value === '') { - if (ed.selection.getNode().nodeName == 'IMG') { - ed.dom.remove(ed.selection.getNode()); - ed.execCommand('mceRepaint'); - } - - tinyMCEPopup.close(); - return; - } - - if (tinyMCEPopup.getParam("accessibility_warnings", 1)) { - if (!f.alt.value) { - tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) { - if (s) - t.insertAndClose(); - }); - - return; - } - } - - t.insertAndClose(); - }, - - insertAndClose : function() { - var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el; - - tinyMCEPopup.restoreSelection(); - - // Fixes crash in Safari - if (tinymce.isWebKit) - ed.getWin().focus(); - - if (!ed.settings.inline_styles) { - args = { - vspace : nl.vspace.value, - hspace : nl.hspace.value, - border : nl.border.value, - align : getSelectValue(f, 'align') - }; - } else { - // Remove deprecated values - args = { - vspace : '', - hspace : '', - border : '', - align : '' - }; - } - - tinymce.extend(args, { - src : nl.src.value, - width : nl.width.value, - height : nl.height.value, - alt : nl.alt.value, - title : nl.title.value, - 'class' : getSelectValue(f, 'class_list'), - style : nl.style.value, - id : nl.id.value, - dir : nl.dir.value, - lang : nl.lang.value, - usemap : nl.usemap.value, - longdesc : nl.longdesc.value - }); - - args.onmouseover = args.onmouseout = ''; - - if (f.onmousemovecheck.checked) { - if (nl.onmouseoversrc.value) - args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';"; - - if (nl.onmouseoutsrc.value) - args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';"; - } - - el = ed.selection.getNode(); - - if (el && el.nodeName == 'IMG') { - ed.dom.setAttribs(el, args); - } else { - ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); - ed.dom.setAttribs('__mce_tmp', args); - ed.dom.setAttrib('__mce_tmp', 'id', ''); - ed.undoManager.add(); - } - - tinyMCEPopup.close(); - }, - - getAttrib : function(e, at) { - var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; - - if (ed.settings.inline_styles) { - switch (at) { - case 'align': - if (v = dom.getStyle(e, 'float')) - return v; - - if (v = dom.getStyle(e, 'vertical-align')) - return v; - - break; - - case 'hspace': - v = dom.getStyle(e, 'margin-left') - v2 = dom.getStyle(e, 'margin-right'); - - if (v && v == v2) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - - case 'vspace': - v = dom.getStyle(e, 'margin-top') - v2 = dom.getStyle(e, 'margin-bottom'); - if (v && v == v2) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - - case 'border': - v = 0; - - tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { - sv = dom.getStyle(e, 'border-' + sv + '-width'); - - // False or not the same as prev - if (!sv || (sv != v && v !== 0)) { - v = 0; - return false; - } - - if (sv) - v = sv; - }); - - if (v) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - } - } - - if (v = dom.getAttrib(e, at)) - return v; - - return ''; - }, - - setSwapImage : function(st) { - var f = document.forms[0]; - - f.onmousemovecheck.checked = st; - setBrowserDisabled('overbrowser', !st); - setBrowserDisabled('outbrowser', !st); - - if (f.over_list) - f.over_list.disabled = !st; - - if (f.out_list) - f.out_list.disabled = !st; - - f.onmouseoversrc.disabled = !st; - f.onmouseoutsrc.disabled = !st; - }, - - fillClassList : function(id) { - var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; - - if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { - cl = []; - - tinymce.each(v.split(';'), function(v) { - var p = v.split('='); - - cl.push({'title' : p[0], 'class' : p[1]}); - }); - } else - cl = tinyMCEPopup.editor.dom.getClasses(); - - if (cl.length > 0) { - lst.options.length = 0; - lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); - - tinymce.each(cl, function(o) { - lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); - }); - } else - dom.remove(dom.getParent(id, 'tr')); - }, - - fillFileList : function(id, l) { - var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; - - l = window[l]; - lst.options.length = 0; - - if (l && l.length > 0) { - lst.options[lst.options.length] = new Option('', ''); - - tinymce.each(l, function(o) { - lst.options[lst.options.length] = new Option(o[0], o[1]); - }); - } else - dom.remove(dom.getParent(id, 'tr')); - }, - - resetImageData : function() { - var f = document.forms[0]; - - f.elements.width.value = f.elements.height.value = ''; - }, - - updateImageData : function(img, st) { - var f = document.forms[0]; - - if (!st) { - f.elements.width.value = img.width; - f.elements.height.value = img.height; - } - - this.preloadImg = img; - }, - - changeAppearance : function() { - var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg'); - - if (img) { - if (ed.getParam('inline_styles')) { - ed.dom.setAttrib(img, 'style', f.style.value); - } else { - img.align = f.align.value; - img.border = f.border.value; - img.hspace = f.hspace.value; - img.vspace = f.vspace.value; - } - } - }, - - changeHeight : function() { - var f = document.forms[0], tp, t = this; - - if (!f.constrain.checked || !t.preloadImg) { - return; - } - - if (f.width.value == "" || f.height.value == "") - return; - - tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height; - f.height.value = tp.toFixed(0); - }, - - changeWidth : function() { - var f = document.forms[0], tp, t = this; - - if (!f.constrain.checked || !t.preloadImg) { - return; - } - - if (f.width.value == "" || f.height.value == "") - return; - - tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width; - f.width.value = tp.toFixed(0); - }, - - updateStyle : function(ty) { - var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value}); - - if (tinyMCEPopup.editor.settings.inline_styles) { - // Handle align - if (ty == 'align') { - dom.setStyle(img, 'float', ''); - dom.setStyle(img, 'vertical-align', ''); - - v = getSelectValue(f, 'align'); - if (v) { - if (v == 'left' || v == 'right') - dom.setStyle(img, 'float', v); - else - img.style.verticalAlign = v; - } - } - - // Handle border - if (ty == 'border') { - dom.setStyle(img, 'border', ''); - - v = f.border.value; - if (v || v == '0') { - if (v == '0') - img.style.border = '0'; - else - img.style.border = v + 'px solid black'; - } - } - - // Handle hspace - if (ty == 'hspace') { - dom.setStyle(img, 'marginLeft', ''); - dom.setStyle(img, 'marginRight', ''); - - v = f.hspace.value; - if (v) { - img.style.marginLeft = v + 'px'; - img.style.marginRight = v + 'px'; - } - } - - // Handle vspace - if (ty == 'vspace') { - dom.setStyle(img, 'marginTop', ''); - dom.setStyle(img, 'marginBottom', ''); - - v = f.vspace.value; - if (v) { - img.style.marginTop = v + 'px'; - img.style.marginBottom = v + 'px'; - } - } - - // Merge - dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img'); - } - }, - - changeMouseMove : function() { - }, - - showPreviewImage : function(u, st) { - if (!u) { - tinyMCEPopup.dom.setHTML('prev', ''); - return; - } - - if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) - this.resetImageData(); - - u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u); - - if (!st) - tinyMCEPopup.dom.setHTML('prev', ''); - else - tinyMCEPopup.dom.setHTML('prev', ''); - } -}; - -ImageDialog.preInit(); -tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js b/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js deleted file mode 100755 index f493d19..0000000 --- a/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js +++ /dev/null @@ -1,43 +0,0 @@ -tinyMCE.addI18n('en.advimage_dlg',{ -tab_general:"General", -tab_appearance:"Appearance", -tab_advanced:"Advanced", -general:"General", -title:"Title", -preview:"Preview", -constrain_proportions:"Constrain proportions", -langdir:"Language direction", -langcode:"Language code", -long_desc:"Long description link", -style:"Style", -classes:"Classes", -ltr:"Left to right", -rtl:"Right to left", -id:"Id", -map:"Image map", -swap_image:"Swap image", -alt_image:"Alternative image", -mouseover:"for mouse over", -mouseout:"for mouse out", -misc:"Miscellaneous", -example_img:"Appearance preview image", -missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.", -dialog_title:"Insert/edit image", -src:"Image URL", -alt:"Image description", -list:"Image list", -border:"Border", -dimensions:"Dimensions", -vspace:"Vertical space", -hspace:"Horizontal space", -align:"Alignment", -align_baseline:"Baseline", -align_top:"Top", -align_middle:"Middle", -align_bottom:"Bottom", -align_texttop:"Text top", -align_textbottom:"Text bottom", -align_left:"Left", -align_right:"Right", -image_list:"Image list" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/css/advlink.css b/public_html/tiny_mce/plugins/advlink/css/advlink.css deleted file mode 100755 index 1436431..0000000 --- a/public_html/tiny_mce/plugins/advlink/css/advlink.css +++ /dev/null @@ -1,8 +0,0 @@ -.mceLinkList, .mceAnchorList, #targetlist {width:280px;} -.mceActionPanel {margin-top:7px;} -.panel_wrapper div.current {height:320px;} -#classlist, #title, #href {width:280px;} -#popupurl, #popupname {width:200px;} -#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} -#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} -#events_panel input {width:200px;} diff --git a/public_html/tiny_mce/plugins/advlink/editor_plugin.js b/public_html/tiny_mce/plugins/advlink/editor_plugin.js deleted file mode 100755 index 983fe5a..0000000 --- a/public_html/tiny_mce/plugins/advlink/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js b/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js deleted file mode 100755 index 14e46a7..0000000 --- a/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedLinkPlugin', { - init : function(ed, url) { - this.editor = ed; - - // Register commands - ed.addCommand('mceAdvLink', function() { - var se = ed.selection; - - // No selection and not in link - if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A')) - return; - - ed.windowManager.open({ - file : url + '/link.htm', - width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)), - height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('link', { - title : 'advlink.link_desc', - cmd : 'mceAdvLink' - }); - - ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink'); - - ed.onNodeChange.add(function(ed, cm, n, co) { - cm.setDisabled('link', co && n.nodeName != 'A'); - cm.setActive('link', n.nodeName == 'A' && !n.name); - }); - }, - - getInfo : function() { - return { - longname : 'Advanced link', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/js/advlink.js b/public_html/tiny_mce/plugins/advlink/js/advlink.js deleted file mode 100755 index b78e82f..0000000 --- a/public_html/tiny_mce/plugins/advlink/js/advlink.js +++ /dev/null @@ -1,528 +0,0 @@ -/* Functions for the advlink plugin popup */ - -tinyMCEPopup.requireLangPack(); - -var templates = { - "window.open" : "window.open('${url}','${target}','${options}')" -}; - -function preinit() { - var url; - - if (url = tinyMCEPopup.getParam("external_link_list_url")) - document.write(''); -} - -function changeClass() { - var f = document.forms[0]; - - f.classes.value = getSelectValue(f, 'classlist'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - var inst = tinyMCEPopup.editor; - var elm = inst.selection.getNode(); - var action = "insert"; - var html; - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); - document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); - document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); - document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); - document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); - - // Link list - html = getLinkListHTML('linklisthref','href'); - if (html == "") - document.getElementById("linklisthrefrow").style.display = 'none'; - else - document.getElementById("linklisthrefcontainer").innerHTML = html; - - // Resize some elements - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '260px'; - - if (isVisible('popupurlbrowser')) - document.getElementById('popupurl').style.width = '180px'; - - elm = inst.dom.getParent(elm, "A"); - if (elm != null && elm.nodeName == "A") - action = "update"; - - formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true); - - setPopupControlsDisabled(true); - - if (action == "update") { - var href = inst.dom.getAttrib(elm, 'href'); - var onclick = inst.dom.getAttrib(elm, 'onclick'); - - // Setup form data - setFormValue('href', href); - setFormValue('title', inst.dom.getAttrib(elm, 'title')); - setFormValue('id', inst.dom.getAttrib(elm, 'id')); - setFormValue('style', inst.dom.getAttrib(elm, "style")); - setFormValue('rel', inst.dom.getAttrib(elm, 'rel')); - setFormValue('rev', inst.dom.getAttrib(elm, 'rev')); - setFormValue('charset', inst.dom.getAttrib(elm, 'charset')); - setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang')); - setFormValue('dir', inst.dom.getAttrib(elm, 'dir')); - setFormValue('lang', inst.dom.getAttrib(elm, 'lang')); - setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); - setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); - setFormValue('type', inst.dom.getAttrib(elm, 'type')); - setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus')); - setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur')); - setFormValue('onclick', onclick); - setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick')); - setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown')); - setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup')); - setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover')); - setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove')); - setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout')); - setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress')); - setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown')); - setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup')); - setFormValue('target', inst.dom.getAttrib(elm, 'target')); - setFormValue('classes', inst.dom.getAttrib(elm, 'class')); - - // Parse onclick data - if (onclick != null && onclick.indexOf('window.open') != -1) - parseWindowOpen(onclick); - else - parseFunction(onclick); - - // Select by the values - selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir')); - selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel')); - selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev')); - selectByValue(formObj, 'linklisthref', href); - - if (href.charAt(0) == '#') - selectByValue(formObj, 'anchorlist', href); - - addClassesToList('classlist', 'advlink_styles'); - - selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true); - selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true); - } else - addClassesToList('classlist', 'advlink_styles'); -} - -function checkPrefix(n) { - if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) - n.value = 'mailto:' + n.value; - - if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) - n.value = 'http://' + n.value; -} - -function setFormValue(name, value) { - document.forms[0].elements[name].value = value; -} - -function parseWindowOpen(onclick) { - var formObj = document.forms[0]; - - // Preprocess center code - if (onclick.indexOf('return false;') != -1) { - formObj.popupreturn.checked = true; - onclick = onclick.replace('return false;', ''); - } else - formObj.popupreturn.checked = false; - - var onClickData = parseLink(onclick); - - if (onClickData != null) { - formObj.ispopup.checked = true; - setPopupControlsDisabled(false); - - var onClickWindowOptions = parseOptions(onClickData['options']); - var url = onClickData['url']; - - formObj.popupname.value = onClickData['target']; - formObj.popupurl.value = url; - formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); - formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); - - formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); - formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); - - if (formObj.popupleft.value.indexOf('screen') != -1) - formObj.popupleft.value = "c"; - - if (formObj.popuptop.value.indexOf('screen') != -1) - formObj.popuptop.value = "c"; - - formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; - formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; - formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; - formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; - formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; - formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; - formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; - - buildOnClick(); - } -} - -function parseFunction(onclick) { - var formObj = document.forms[0]; - var onClickData = parseLink(onclick); - - // TODO: Add stuff here -} - -function getOption(opts, name) { - return typeof(opts[name]) == "undefined" ? "" : opts[name]; -} - -function setPopupControlsDisabled(state) { - var formObj = document.forms[0]; - - formObj.popupname.disabled = state; - formObj.popupurl.disabled = state; - formObj.popupwidth.disabled = state; - formObj.popupheight.disabled = state; - formObj.popupleft.disabled = state; - formObj.popuptop.disabled = state; - formObj.popuplocation.disabled = state; - formObj.popupscrollbars.disabled = state; - formObj.popupmenubar.disabled = state; - formObj.popupresizable.disabled = state; - formObj.popuptoolbar.disabled = state; - formObj.popupstatus.disabled = state; - formObj.popupreturn.disabled = state; - formObj.popupdependent.disabled = state; - - setBrowserDisabled('popupurlbrowser', state); -} - -function parseLink(link) { - link = link.replace(new RegExp(''', 'g'), "'"); - - var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); - - // Is function name a template function - var template = templates[fnName]; - if (template) { - // Build regexp - var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); - var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; - var replaceStr = ""; - for (var i=0; i"; - } else - regExp += ".*"; - } - - regExp += "\\);?"; - - // Build variable array - var variables = []; - variables["_function"] = fnName; - var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split(''); - for (var i=0; i'; - html += '---'; - - for (i=0; i' + name + ''; - } - - html += ''; - - return html; -} - -function insertAction() { - var inst = tinyMCEPopup.editor; - var elm, elementArray, i; - - elm = inst.selection.getNode(); - checkPrefix(document.forms[0].href); - - elm = inst.dom.getParent(elm, "A"); - - // Remove element if there is no href - if (!document.forms[0].href.value) { - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - i = inst.selection.getBookmark(); - inst.dom.remove(elm, 1); - inst.selection.moveToBookmark(i); - tinyMCEPopup.execCommand("mceEndUndoLevel"); - tinyMCEPopup.close(); - return; - } - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - // Create new anchor elements - if (elm == null) { - inst.getDoc().execCommand("unlink", false, null); - tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); - - elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); - for (i=0; i---'; - - for (var i=0; i' + tinyMCELinkList[i][0] + ''; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -function getTargetListHTML(elm_id, target_form_element) { - var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';'); - var html = ''; - - html += ''; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_same') + ''; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)'; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)'; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)'; - - for (var i=0; i' + value + ' (' + key + ')'; - } - - html += ''; - - return html; -} - -// While loading -preinit(); -tinyMCEPopup.onInit.add(init); diff --git a/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js b/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js deleted file mode 100755 index c71ffbd..0000000 --- a/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js +++ /dev/null @@ -1,52 +0,0 @@ -tinyMCE.addI18n('en.advlink_dlg',{ -title:"Insert/edit link", -url:"Link URL", -target:"Target", -titlefield:"Title", -is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", -is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", -list:"Link list", -general_tab:"General", -popup_tab:"Popup", -events_tab:"Events", -advanced_tab:"Advanced", -general_props:"General properties", -popup_props:"Popup properties", -event_props:"Events", -advanced_props:"Advanced properties", -popup_opts:"Options", -anchor_names:"Anchors", -target_same:"Open in this window / frame", -target_parent:"Open in parent window / frame", -target_top:"Open in top frame (replaces all frames)", -target_blank:"Open in new window", -popup:"Javascript popup", -popup_url:"Popup URL", -popup_name:"Window name", -popup_return:"Insert 'return false'", -popup_scrollbars:"Show scrollbars", -popup_statusbar:"Show status bar", -popup_toolbar:"Show toolbars", -popup_menubar:"Show menu bar", -popup_location:"Show location bar", -popup_resizable:"Make window resizable", -popup_dependent:"Dependent (Mozilla/Firefox only)", -popup_size:"Size", -popup_position:"Position (X/Y)", -id:"Id", -style:"Style", -classes:"Classes", -target_name:"Target name", -langdir:"Language direction", -target_langcode:"Target language", -langcode:"Language code", -encoding:"Target character encoding", -mime:"Target MIME type", -rel:"Relationship page to target", -rev:"Relationship target to page", -tabindex:"Tabindex", -accesskey:"Accesskey", -ltr:"Left to right", -rtl:"Right to left", -link_list:"Link list" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/link.htm b/public_html/tiny_mce/plugins/advlink/link.htm deleted file mode 100755 index 876669c..0000000 --- a/public_html/tiny_mce/plugins/advlink/link.htm +++ /dev/null @@ -1,333 +0,0 @@ - - - - {#advlink_dlg.title} - - - - - - - - - - - - {#advlink_dlg.general_tab} - {#advlink_dlg.popup_tab} - {#advlink_dlg.events_tab} - {#advlink_dlg.advanced_tab} - - - - - - - {#advlink_dlg.general_props} - - - - {#advlink_dlg.url} - - - - - - - - - {#advlink_dlg.list} - - - - {#advlink_dlg.anchor_names} - - - - {#advlink_dlg.target} - - - - {#advlink_dlg.titlefield} - - - - {#class_name} - - - {#not_set} - - - - - - - - - - {#advlink_dlg.popup_props} - - - {#advlink_dlg.popup} - - - - {#advlink_dlg.popup_url} - - - - - - - - - - - {#advlink_dlg.popup_name} - - - - {#advlink_dlg.popup_size} - - x - px - - - - {#advlink_dlg.popup_position} - - / - (c /c = center) - - - - - - {#advlink_dlg.popup_opts} - - - - - {#advlink_dlg.popup_location} - - {#advlink_dlg.popup_scrollbars} - - - - {#advlink_dlg.popup_menubar} - - {#advlink_dlg.popup_resizable} - - - - {#advlink_dlg.popup_toolbar} - - {#advlink_dlg.popup_dependent} - - - - {#advlink_dlg.popup_statusbar} - - {#advlink_dlg.popup_return} - - - - - - - - - {#advlink_dlg.advanced_props} - - - - {#advlink_dlg.id} - - - - - {#advlink_dlg.style} - - - - - {#advlink_dlg.classes} - - - - - {#advlink_dlg.target_name} - - - - - {#advlink_dlg.langdir} - - - {#not_set} - {#advlink_dlg.ltr} - {#advlink_dlg.rtl} - - - - - - {#advlink_dlg.target_langcode} - - - - - {#advlink_dlg.langcode} - - - - - - - {#advlink_dlg.encoding} - - - - - {#advlink_dlg.mime} - - - - - {#advlink_dlg.rel} - - {#not_set} - Lightbox - Alternate - Designates - Stylesheet - Start - Next - Prev - Contents - Index - Glossary - Copyright - Chapter - Subsection - Appendix - Help - Bookmark - No Follow - Tag - - - - - - {#advlink_dlg.rev} - - {#not_set} - Alternate - Designates - Stylesheet - Start - Next - Prev - Contents - Index - Glossary - Copyright - Chapter - Subsection - Appendix - Help - Bookmark - - - - - - {#advlink_dlg.tabindex} - - - - - {#advlink_dlg.accesskey} - - - - - - - - - {#advlink_dlg.event_props} - - - - onfocus - - - - - onblur - - - - - onclick - - - - - ondblclick - - - - - onmousedown - - - - - onmouseup - - - - - onmouseover - - - - - onmousemove - - - - - onmouseout - - - - - onkeypress - - - - - onkeydown - - - - - onkeyup - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advlist/editor_plugin.js b/public_html/tiny_mce/plugins/advlist/editor_plugin.js deleted file mode 100755 index 02d1697..0000000 --- a/public_html/tiny_mce/plugins/advlist/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("_mce_style")}}}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle"}).setDisabled(1);a(f[d],function(k){k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js b/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js deleted file mode 100755 index a61887a..0000000 --- a/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var each = tinymce.each; - - tinymce.create('tinymce.plugins.AdvListPlugin', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - function buildFormats(str) { - var formats = []; - - each(str.split(/,/), function(type) { - formats.push({ - title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')), - styles : { - listStyleType : type == 'default' ? '' : type - } - }); - }); - - return formats; - }; - - // Setup number formats from config or default - t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"); - t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square"); - }, - - createControl: function(name, cm) { - var t = this, btn, format; - - if (name == 'numlist' || name == 'bullist') { - // Default to first item if it's a default item - if (t[name][0].title == 'advlist.def') - format = t[name][0]; - - function hasFormat(node, format) { - var state = true; - - each(format.styles, function(value, name) { - // Format doesn't match - if (t.editor.dom.getStyle(node, name) != value) { - state = false; - return false; - } - }); - - return state; - }; - - function applyListFormat() { - var list, ed = t.editor, dom = ed.dom, sel = ed.selection; - - // Check for existing list element - list = dom.getParent(sel.getNode(), 'ol,ul'); - - // Switch/add list type if needed - if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format)) - ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList'); - - // Append styles to new list element - if (format) { - list = dom.getParent(sel.getNode(), 'ol,ul'); - - if (list) { - dom.setStyles(list, format.styles); - list.removeAttribute('_mce_style'); - } - } - }; - - btn = cm.createSplitButton(name, { - title : 'advanced.' + name + '_desc', - 'class' : 'mce_' + name, - onclick : function() { - applyListFormat(); - } - }); - - btn.onRenderMenu.add(function(btn, menu) { - menu.onShowMenu.add(function() { - var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList; - - if (list || format) { - fmtList = t[name]; - - // Unselect existing items - each(menu.items, function(item) { - var state = true; - - item.setSelected(0); - - if (list && !item.isDisabled()) { - each(fmtList, function(fmt) { - if (fmt.id == item.id) { - if (!hasFormat(list, fmt)) { - state = false; - return false; - } - } - }); - - if (state) - item.setSelected(1); - } - }); - - // Select the current format - if (!list) - menu.items[format.id].setSelected(1); - } - }); - - menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle'}).setDisabled(1); - - each(t[name], function(item) { - item.id = t.editor.dom.uniqueId(); - - menu.add({id : item.id, title : item.title, onclick : function() { - format = item; - applyListFormat(); - }}); - }); - }); - - return btn; - } - }, - - getInfo : function() { - return { - longname : 'Advanced lists', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autoresize/editor_plugin.js b/public_html/tiny_mce/plugins/autoresize/editor_plugin.js deleted file mode 100755 index 1676b15..0000000 --- a/public_html/tiny_mce/plugins/autoresize/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)})}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js b/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js deleted file mode 100755 index c260b7a..0000000 --- a/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - /** - * Auto Resize - * - * This plugin automatically resizes the content area to fit its content height. - * It will retain a minimum height, which is the height of the content area when - * it's initialized. - */ - tinymce.create('tinymce.plugins.AutoResizePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - var t = this; - - if (ed.getParam('fullscreen_is_enabled')) - return; - - /** - * This method gets executed each time the editor needs to resize. - */ - function resize() { - var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight; - - // Get height differently depending on the browser used - myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight; - - // Don't make it smaller than the minimum height - if (myHeight > t.autoresize_min_height) - resizeHeight = myHeight; - - // Resize content element - DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); - - // if we're throbbing, we'll re-throb to match the new size - if (t.throbbing) { - ed.setProgressState(false); - ed.setProgressState(true); - } - }; - - t.editor = ed; - - // Define minimum height - t.autoresize_min_height = ed.getElement().offsetHeight; - - // Add appropriate listeners for resizing content area - ed.onChange.add(resize); - ed.onSetContent.add(resize); - ed.onPaste.add(resize); - ed.onKeyUp.add(resize); - ed.onPostRender.add(resize); - - if (ed.getParam('autoresize_on_init', true)) { - // Things to do when the editor is ready - ed.onInit.add(function(ed, l) { - // Show throbber until content area is resized properly - ed.setProgressState(true); - t.throbbing = true; - - // Hide scrollbars - ed.getBody().style.overflowY = "hidden"; - }); - - ed.onLoadContent.add(function(ed, l) { - resize(); - - // Because the content area resizes when its content CSS loads, - // and we can't easily add a listener to its onload event, - // we'll just trigger a resize after a short loading period - setTimeout(function() { - resize(); - - // Disable throbber - ed.setProgressState(false); - t.throbbing = false; - }, 1250); - }); - } - - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceAutoResize', resize); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Auto Resize', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autosave/editor_plugin.js b/public_html/tiny_mce/plugins/autosave/editor_plugin.js deleted file mode 100755 index 6e48540..0000000 --- a/public_html/tiny_mce/plugins/autosave/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>|]*>/gi, "").length > 0) { - // Show confirm dialog if the editor isn't empty - ed.windowManager.confirm( - PLUGIN_NAME + ".warning_message", - function(ok) { - if (ok) - self.restoreDraft(); - } - ); - } else - self.restoreDraft(); - } - }); - - // Enable/disable restoredraft button depending on if there is a draft stored or not - ed.onNodeChange.add(function() { - var controlManager = ed.controlManager; - - if (controlManager.get(RESTORE_DRAFT)) - controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft()); - }); - - ed.onInit.add(function() { - // Check if the user added the restore button, then setup auto storage logic - if (ed.controlManager.get(RESTORE_DRAFT)) { - // Setup storage engine - self.setupStorage(ed); - - // Auto save contents each interval time - setInterval(function() { - self.storeDraft(); - ed.nodeChanged(); - }, settings.autosave_interval); - } - }); - - /** - * This event gets fired when a draft is stored to local storage. - * - * @event onStoreDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onStoreDraft = new Dispatcher(self); - - /** - * This event gets fired when a draft is restored from local storage. - * - * @event onStoreDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onRestoreDraft = new Dispatcher(self); - - /** - * This event gets fired when a draft removed/expired. - * - * @event onRemoveDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onRemoveDraft = new Dispatcher(self); - - // Add ask before unload dialog only add one unload handler - if (!unloadHandlerAdded) { - window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler; - unloadHandlerAdded = TRUE; - } - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Auto save', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - /** - * Returns an expiration date UTC string. - * - * @method getExpDate - * @return {String} Expiration date UTC string. - */ - getExpDate : function() { - return new Date( - new Date().getTime() + this.editor.settings.autosave_retention - ).toUTCString(); - }, - - /** - * This method will setup the storage engine. If the browser has support for it. - * - * @method setupStorage - */ - setupStorage : function(ed) { - var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK"; - - self.key = PLUGIN_NAME + ed.id; - - // Loop though each storage engine type until we find one that works - tinymce.each([ - function() { - // Try HTML5 Local Storage - if (localStorage) { - localStorage.setItem(testKey, testVal); - - if (localStorage.getItem(testKey) === testVal) { - localStorage.removeItem(testKey); - - return localStorage; - } - } - }, - - function() { - // Try HTML5 Session Storage - if (sessionStorage) { - sessionStorage.setItem(testKey, testVal); - - if (sessionStorage.getItem(testKey) === testVal) { - sessionStorage.removeItem(testKey); - - return sessionStorage; - } - } - }, - - function() { - // Try IE userData - if (tinymce.isIE) { - ed.getElement().style.behavior = "url('#default#userData')"; - - // Fake localStorage on old IE - return { - autoExpires : TRUE, - - setItem : function(key, value) { - var userDataElement = ed.getElement(); - - userDataElement.setAttribute(key, value); - userDataElement.expires = self.getExpDate(); - userDataElement.save("TinyMCE"); - }, - - getItem : function(key) { - var userDataElement = ed.getElement(); - - userDataElement.load("TinyMCE"); - - return userDataElement.getAttribute(key); - }, - - removeItem : function(key) { - ed.getElement().removeAttribute(key); - } - }; - } - }, - ], function(setup) { - // Try executing each function to find a suitable storage engine - try { - self.storage = setup(); - - if (self.storage) - return false; - } catch (e) { - // Ignore - } - }); - }, - - /** - * This method will store the current contents in the the storage engine. - * - * @method storeDraft - */ - storeDraft : function() { - var self = this, storage = self.storage, editor = self.editor, expires, content; - - // Is the contents dirty - if (storage) { - // If there is no existing key and the contents hasn't been changed since - // it's original value then there is no point in saving a draft - if (!storage.getItem(self.key) && !editor.isDirty()) - return; - - // Store contents if the contents if longer than the minlength of characters - content = editor.getContent({draft: true}); - if (content.length > editor.settings.autosave_minlength) { - expires = self.getExpDate(); - - // Store expiration date if needed IE userData has auto expire built in - if (!self.storage.autoExpires) - self.storage.setItem(self.key + "_expires", expires); - - self.storage.setItem(self.key, content); - self.onStoreDraft.dispatch(self, { - expires : expires, - content : content - }); - } - } - }, - - /** - * This method will restore the contents from the storage engine back to the editor. - * - * @method restoreDraft - */ - restoreDraft : function() { - var self = this, storage = self.storage; - - if (storage) { - content = storage.getItem(self.key); - - if (content) { - self.editor.setContent(content); - self.onRestoreDraft.dispatch(self, { - content : content - }); - } - } - }, - - /** - * This method will return true/false if there is a local storage draft available. - * - * @method hasDraft - * @return {boolean} true/false state if there is a local draft. - */ - hasDraft : function() { - var self = this, storage = self.storage, expDate, exists; - - if (storage) { - // Does the item exist at all - exists = !!storage.getItem(self.key); - if (exists) { - // Storage needs autoexpire - if (!self.storage.autoExpires) { - expDate = new Date(storage.getItem(self.key + "_expires")); - - // Contents hasn't expired - if (new Date().getTime() < expDate.getTime()) - return TRUE; - - // Remove it if it has - self.removeDraft(); - } else - return TRUE; - } - } - - return false; - }, - - /** - * Removes the currently stored draft. - * - * @method removeDraft - */ - removeDraft : function() { - var self = this, storage = self.storage, key = self.key, content; - - if (storage) { - // Get current contents and remove the existing draft - content = storage.getItem(key); - storage.removeItem(key); - storage.removeItem(key + "_expires"); - - // Dispatch remove event if we had any contents - if (content) { - self.onRemoveDraft.dispatch(self, { - content : content - }); - } - } - }, - - "static" : { - // Internal unload handler will be called before the page is unloaded - _beforeUnloadHandler : function(e) { - var msg; - - tinymce.each(tinyMCE.editors, function(ed) { - // Store a draft for each editor instance - if (ed.plugins.autosave) - ed.plugins.autosave.storeDraft(); - - // Never ask in fullscreen mode - if (ed.getParam("fullscreen_is_enabled")) - return; - - // Setup a return message if the editor is dirty - if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload")) - msg = ed.getLang("autosave.unload_msg"); - }); - - return msg; - } - } - }); - - tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave); -})(tinymce); diff --git a/public_html/tiny_mce/plugins/autosave/langs/en.js b/public_html/tiny_mce/plugins/autosave/langs/en.js deleted file mode 100755 index fce6bd3..0000000 --- a/public_html/tiny_mce/plugins/autosave/langs/en.js +++ /dev/null @@ -1,4 +0,0 @@ -tinyMCE.addI18n('en.autosave',{ -restore_content: "Restore auto-saved content", -warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin.js deleted file mode 100755 index 930fdff..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(//gi,"\n");b(//gi,"\n");b(//gi,"\n");b(//gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js deleted file mode 100755 index 5586637..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.BBCodePlugin', { - init : function(ed, url) { - var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); - - ed.onBeforeSetContent.add(function(ed, o) { - o.content = t['_' + dialect + '_bbcode2html'](o.content); - }); - - ed.onPostProcess.add(function(ed, o) { - if (o.set) - o.content = t['_' + dialect + '_bbcode2html'](o.content); - - if (o.get) - o.content = t['_' + dialect + '_html2bbcode'](o.content); - }); - }, - - getInfo : function() { - return { - longname : 'BBCode Plugin', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - // HTML -> BBCode in PunBB dialect - _punbb_html2bbcode : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: to [b] - rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); - rep(/(.*?)<\/font>/gi,"$1"); - rep(//gi,"[img]$1[/img]"); - rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); - rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); - rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); - rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); - rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); - rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); - rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); - rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); - rep(/<\/(strong|b)>/gi,"[/b]"); - rep(/<(strong|b)>/gi,"[b]"); - rep(/<\/(em|i)>/gi,"[/i]"); - rep(/<(em|i)>/gi,"[i]"); - rep(/<\/u>/gi,"[/u]"); - rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); - rep(//gi,"[u]"); - rep(/]*>/gi,"[quote]"); - rep(/<\/blockquote>/gi,"[/quote]"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,""); - rep(/<\/p>/gi,"\n"); - rep(/ /gi," "); - rep(/"/gi,"\""); - rep(/</gi,"<"); - rep(/>/gi,">"); - rep(/&/gi,"&"); - - return s; - }, - - // BBCode -> HTML from PunBB dialect - _punbb_bbcode2html : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: [b] to - rep(/\n/gi,""); - rep(/\[b\]/gi,""); - rep(/\[\/b\]/gi,""); - rep(/\[i\]/gi,""); - rep(/\[\/i\]/gi,""); - rep(/\[u\]/gi,""); - rep(/\[\/u\]/gi,""); - rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); - rep(/\[url\](.*?)\[\/url\]/gi,"$1"); - rep(/\[img\](.*?)\[\/img\]/gi,""); - rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); - rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); - rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); - - return s; - } - }); - - // Register plugin - tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js deleted file mode 100755 index 9749e51..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100755 index 13813a6..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; - - /** - * This plugin a context menu to TinyMCE editor instances. - * - * @class tinymce.plugins.ContextMenu - */ - tinymce.create('tinymce.plugins.ContextMenu', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @method init - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed) { - var t = this, lastRng; - - t.editor = ed; - - /** - * This event gets fired when the context menu is shown. - * - * @event onContextMenu - * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. - * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. - */ - t.onContextMenu = new tinymce.util.Dispatcher(this); - - ed.onContextMenu.add(function(ed, e) { - if (!e.ctrlKey) { - // Restore the last selection since it was removed - if (lastRng) - ed.selection.setRng(lastRng); - - t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', function(e) { - hide(ed, e); - }); - Event.cancel(e); - } - }); - - ed.onRemove.add(function() { - if (t._menu) - t._menu.removeAll(); - }); - - function hide(ed, e) { - lastRng = null; - - // Since the contextmenu event moves - // the selection we need to store it away - if (e && e.button == 2) { - lastRng = ed.selection.getRng(); - return; - } - - if (t._menu) { - t._menu.removeAll(); - t._menu.destroy(); - Event.remove(ed.getDoc(), 'click', hide); - } - }; - - ed.onMouseDown.add(hide); - ed.onKeyDown.add(hide); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Contextmenu', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - _getMenu : function(ed) { - var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; - - if (m) { - m.removeAll(); - m.destroy(); - } - - p1 = DOM.getPos(ed.getContentAreaContainer()); - p2 = DOM.getPos(ed.getContainer()); - - m = ed.controlManager.createDropMenu('contextmenu', { - offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), - offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), - constrain : 1 - }); - - t._menu = m; - - m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); - m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); - m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); - - if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { - m.addSeparator(); - m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); - m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); - } - - m.addSeparator(); - m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); - - m.addSeparator(); - am = m.addMenu({title : 'contextmenu.align'}); - am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); - am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); - am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); - am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); - - t.onContextMenu.dispatch(t, m, el, col); - - return m; - } - }); - - // Register plugin - tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin.js b/public_html/tiny_mce/plugins/directionality/editor_plugin.js deleted file mode 100755 index bce8e73..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js b/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js deleted file mode 100755 index 4444959..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.Directionality', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - ed.addCommand('mceDirectionLTR', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "ltr") - ed.dom.setAttrib(e, "dir", "ltr"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addCommand('mceDirectionRTL', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "rtl") - ed.dom.setAttrib(e, "dir", "rtl"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); - ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); - - ed.onNodeChange.add(t._nodeChange, t); - }, - - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - _nodeChange : function(ed, cm, n) { - var dom = ed.dom, dir; - - n = dom.getParent(n, dom.isBlock); - if (!n) { - cm.setDisabled('ltr', 1); - cm.setDisabled('rtl', 1); - return; - } - - dir = dom.getAttrib(n, 'dir'); - cm.setActive('ltr', dir == "ltr"); - cm.setDisabled('ltr', 0); - cm.setActive('rtl', dir == "rtl"); - cm.setDisabled('rtl', 0); - } - }); - - // Register plugin - tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin.js b/public_html/tiny_mce/plugins/emotions/editor_plugin.js deleted file mode 100755 index dbdd8ff..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js b/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js deleted file mode 100755 index 71d5416..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function(tinymce) { - tinymce.create('tinymce.plugins.EmotionsPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceEmotion', function() { - ed.windowManager.open({ - file : url + '/emotions.htm', - width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), - height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); - }, - - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); -})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/emotions.htm b/public_html/tiny_mce/plugins/emotions/emotions.htm deleted file mode 100755 index 55a1d72..0000000 --- a/public_html/tiny_mce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - - {#emotions_dlg.title} - - - - - - {#emotions_dlg.title}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif deleted file mode 100755 index ba90cc3..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif deleted file mode 100755 index 74d897a..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif deleted file mode 100755 index 963a96b..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif deleted file mode 100755 index 16f68cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif deleted file mode 100755 index 716f55e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif deleted file mode 100755 index 334d49e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif deleted file mode 100755 index 4efd549..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif deleted file mode 100755 index 1606c11..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif deleted file mode 100755 index ca2451e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif deleted file mode 100755 index b33d3cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif deleted file mode 100755 index e6a9e60..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif deleted file mode 100755 index cb99cdd..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif deleted file mode 100755 index 2075dc1..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif deleted file mode 100755 index bef7e25..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif deleted file mode 100755 index 9faf1af..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif deleted file mode 100755 index 648e6e8..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/js/emotions.js b/public_html/tiny_mce/plugins/emotions/js/emotions.js deleted file mode 100755 index c549367..0000000 --- a/public_html/tiny_mce/plugins/emotions/js/emotions.js +++ /dev/null @@ -1,22 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var EmotionsDialog = { - init : function(ed) { - tinyMCEPopup.resizeToInnerSize(); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, dom = ed.dom; - - tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { - src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, - alt : ed.getLang(title), - title : ed.getLang(title), - border : 0 - })); - - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js b/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js deleted file mode 100755 index 3b57ad9..0000000 --- a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js +++ /dev/null @@ -1,20 +0,0 @@ -tinyMCE.addI18n('en.emotions_dlg',{ -title:"Insert emotion", -desc:"Emotions", -cool:"Cool", -cry:"Cry", -embarassed:"Embarassed", -foot_in_mouth:"Foot in mouth", -frown:"Frown", -innocent:"Innocent", -kiss:"Kiss", -laughing:"Laughing", -money_mouth:"Money mouth", -sealed:"Sealed", -smile:"Smile", -surprised:"Surprised", -tongue_out:"Tongue out", -undecided:"Undecided", -wink:"Wink", -yell:"Yell" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/dialog.htm b/public_html/tiny_mce/plugins/example/dialog.htm deleted file mode 100755 index 50b2b34..0000000 --- a/public_html/tiny_mce/plugins/example/dialog.htm +++ /dev/null @@ -1,22 +0,0 @@ - - - - {#example_dlg.title} - - - - - - - Here is a example dialog. - Selected text: - Custom arg: - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/example/editor_plugin.js b/public_html/tiny_mce/plugins/example/editor_plugin.js deleted file mode 100755 index ec1f81e..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/editor_plugin_src.js b/public_html/tiny_mce/plugins/example/editor_plugin_src.js deleted file mode 100755 index 9a0e7da..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - // Load plugin specific language pack - tinymce.PluginManager.requireLangPack('example'); - - tinymce.create('tinymce.plugins.ExamplePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceExample', function() { - ed.windowManager.open({ - file : url + '/dialog.htm', - width : 320 + parseInt(ed.getLang('example.delta_width', 0)), - height : 120 + parseInt(ed.getLang('example.delta_height', 0)), - inline : 1 - }, { - plugin_url : url, // Plugin absolute URL - some_custom_arg : 'custom arg' // Custom argument - }); - }); - - // Register example button - ed.addButton('example', { - title : 'example.desc', - cmd : 'mceExample', - image : url + '/img/example.gif' - }); - - // Add a node change handler, selects the button in the UI when a image is selected - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('example', n.nodeName == 'IMG'); - }); - }, - - /** - * Creates control instances based in the incomming name. This method is normally not - * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons - * but you sometimes need to create more complex controls like listboxes, split buttons etc then this - * method can be used to create those. - * - * @param {String} n Name of the control to create. - * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. - * @return {tinymce.ui.Control} New control instance or null if no control was created. - */ - createControl : function(n, cm) { - return null; - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Example plugin', - author : 'Some author', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', - version : "1.0" - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/img/example.gif b/public_html/tiny_mce/plugins/example/img/example.gif deleted file mode 100755 index 1ab5da4..0000000 Binary files a/public_html/tiny_mce/plugins/example/img/example.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/example/js/dialog.js b/public_html/tiny_mce/plugins/example/js/dialog.js deleted file mode 100755 index fa83411..0000000 --- a/public_html/tiny_mce/plugins/example/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/public_html/tiny_mce/plugins/example/langs/en.js b/public_html/tiny_mce/plugins/example/langs/en.js deleted file mode 100755 index e0784f8..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example',{ - desc : 'This is just a template button' -}); diff --git a/public_html/tiny_mce/plugins/example/langs/en_dlg.js b/public_html/tiny_mce/plugins/example/langs/en_dlg.js deleted file mode 100755 index ebcf948..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en_dlg.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example_dlg',{ - title : 'This is just a example title' -}); diff --git a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css b/public_html/tiny_mce/plugins/fullpage/css/fullpage.css deleted file mode 100755 index 7a3334f..0000000 --- a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,182 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -#doctypes { - width: 200px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} - -textarea { - height: 55px; -} - -.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js b/public_html/tiny_mce/plugins/fullpage/editor_plugin.js deleted file mode 100755 index aeaa669..0000000 --- a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
", - "href,src,alt,class,style,align,valign,color,face,size,width,height,border,cellpadding,cellspacing,colspan,rowspan"); -} - -/*function parse_youtube($input) -{ - return preg_replace("/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i", - " - ",$input); -}*/ - -function youtubify($input) -{ - $video_width = 900; - $video_height = 506; - - $input = preg_replace("/]+href=[\"']https?:\/\/([a-z\-0-9]+\.)youtube\.com\/watch\?[^'\" ]*v=([a-z0-9\-_]+)[^'\" ]*['\"][^>]*>[^<]*<\/a>/i", - "", $input); - - $input = preg_replace("/https?:\/\/([a-z\-0-9]+\.)youtube\.com\/watch\?[^'\" ]*v=([a-z0-9\-_]+)[^<)\]! ]*/i", - "", $input); - - return $input; -} -?> diff --git a/public_html/include/include.ip.php b/public_html/include/include.ip.php deleted file mode 100755 index afc85e2..0000000 --- a/public_html/include/include.ip.php +++ /dev/null @@ -1,138 +0,0 @@ -= $low && $check <= $high) - { - return true; - } - else - { - return false; - } -} - -function is_reverse_proxied() -{ - $reverseProxied = false; - // TODO multiple ips! - if(!empty($_SERVER['HTTP_X_FORWARDED_FOR']) || !empty($_SERVER['HTTP_FORWARDED_FOR']) || !empty($_SERVER['HTTP_CLIENT_IP']) || !empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) - { - $ip = $_SERVER['REMOTE_ADDR']; - // First check for requests that originate from localhost - $reverseProxied = $reverseProxied || ip_in_range($ip, "10.0.0.0/8"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "127.0.0.1/8"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "172.16.0.0/12"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "192.168.0.0/16"); - - // Then check for CloudFlare - $reverseProxied = $reverseProxied || ip_in_range($ip, "204.93.240.0/24"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "204.93.177.0/24"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "199.27.128.0/21"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "173.245.48.0/20"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "103.22.200.0/22"); - $reverseProxied = $reverseProxied || ip_in_range($ip, "141.101.64.0/18"); - - if(!empty($proxy_ranges)) - { - foreach($proxy_ranges as $proxy_range) - { - $reverseProxied = $reverseProxied || ip_in_range($ip, $proxy_range); - } - } - } - - return $reverseProxied; -} - -function get_ip() -{ - if(is_reverse_proxied()) - { - if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) - { - $result = $_SERVER['HTTP_X_FORWARDED_FOR']; - } - elseif(!empty($_SERVER['HTTP_FORWARDED_FOR'])) - { - $result = $_SERVER['HTTP_FORWARDED_FOR']; - } - elseif(!empty($_SERVER['HTTP_CLIENT_IP'])) - { - $result = $_SERVER['HTTP_CLIENT_IP']; - } - elseif(!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) - { - $result = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP']; - } - else - { - $result = $_SERVER['REMOTE_ADDR']; - } - } - else - { - $result = $_SERVER['REMOTE_ADDR']; - } - - return $result; -} - -function check_banlist() -{ - global $bannedIps; - $ipList = explode(",", get_ip()); - foreach($ipList as $ip) - { - if(isset($bannedIps[trim($ip)])) - { - return true; // Banned. - } - } - return false; // Not banned. -} - -function check_blacklisted($ip = null) -{ - /* Thanks to Rene Moser (http://www.renemoser.net/) */ - if($ip == null) - { - $ip = get_ip(); - } - - $dns_black_lists = file('dnsbl/dnsbl.txt', FILE_IGNORE_NEW_LINES); - $rev_ip = implode(array_reverse(explode('.', $ip)), '.'); - $response = array(); - foreach ($dns_black_lists as $dns_black_list) - { - $response = (gethostbynamel($rev_ip . '.' . $dns_black_list)); - if (!empty($response)) - { - return true; - } - } - return false; -} - -function ip_hash($ip) -{ - $ip = str_replace("::ffff:", "", $ip); - list($a, $b, $c, $d) = explode(".", $ip); - $e = ($d < 128) ? 0 : 128; - return sha1("{$a}.{$b}.{$c}.{$e}"); -} -?> diff --git a/public_html/include/include.memcache.php b/public_html/include/include.memcache.php deleted file mode 100755 index 4d77b39..0000000 --- a/public_html/include/include.memcache.php +++ /dev/null @@ -1,141 +0,0 @@ -connect($memcache_server, $memcache_port); - - if($memcache_established !== false) - { - $memcache_connected = true; - } - else - { - $memcache_connected = false; - } -} - -function mc_get($key) -{ - global $memcache_enabled, $memcache_connected, $memcache; - - if($memcache_enabled === false || $memcache_connected === false) - { - return false; - } - else - { - $get_result = $memcache->get($key); - if($get_result !== false) - { - return $get_result; - } - else - { - return false; - } - } -} - -function mc_set($key, $value, $expiry) -{ - global $memcache_enabled, $memcache_connected, $memcache_compressed, $memcache; - - if($memcache_enabled === false || $memcache_connected === false) - { - return false; - } - else - { - if($memcache_compressed === true) - { - $flag = MEMCACHE_COMPRESSED; - } - else - { - $flag = false; - } - - $set_result = $memcache->set($key, $value, $flag, $expiry); - return $set_result; - } -} - -function mc_delete($key) -{ - global $memcache_enabled, $memcache_connected, $memcache; - - if($memcache_enabled === false || $memcache_connected === false) - { - return false; - } - else - { - return $memcache->delete($key); - } -} - -function mysql_query_cached($query, $expiry = 60) -{ - if($res = mc_get(md5($query) . md5($query . "x"))) - { - $return_object->source = "memcache"; - $return_object->data = $res; - return $return_object; - } - else - { - if($res = mysql_query($query)) - { - $found = false; - - while($row = mysql_fetch_assoc($res)) - { - $return_object->data[] = $row; - $found = true; - } - - if($found === true) - { - $return_object->source = "database"; - mc_set(md5($query) . md5($query . "x"), $return_object->data, $expiry); - return $return_object; - } - else - { - return false; - } - } - else - { - return false; - } - } -} - -function file_get_contents_cached($path, $expiry = 3600) -{ - if($res = mc_get(md5($path) . md5($path . "x"))) - { - $return_object->source = "memcache"; - $return_object->data = $res; - return $return_object; - } - else - { - if($result = file_get_contents($path)) - { - $return_object->source = "disk"; - $return_object->data = $result; - mc_set(md5($path) . md5($path . "x"), $return_object->data, $expiry); - return $return_object; - } - else - { - return false; - } - } -} -?> diff --git a/public_html/include/include.recaptcha.php b/public_html/include/include.recaptcha.php deleted file mode 100755 index 32c4f4d..0000000 --- a/public_html/include/include.recaptcha.php +++ /dev/null @@ -1,277 +0,0 @@ - $value ) - $req .= $key . '=' . urlencode( stripslashes($value) ) . '&'; - - // Cut the last '&' - $req=substr($req,0,strlen($req)-1); - return $req; -} - - - -/** - * Submits an HTTP POST to a reCAPTCHA server - * @param string $host - * @param string $path - * @param array $data - * @param int port - * @return array response - */ -function _recaptcha_http_post($host, $path, $data, $port = 80) { - - $req = _recaptcha_qsencode ($data); - - $http_request = "POST $path HTTP/1.0\r\n"; - $http_request .= "Host: $host\r\n"; - $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; - $http_request .= "Content-Length: " . strlen($req) . "\r\n"; - $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; - $http_request .= "\r\n"; - $http_request .= $req; - - $response = ''; - if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) { - die ('Could not open socket'); - } - - fwrite($fs, $http_request); - - while ( !feof($fs) ) - $response .= fgets($fs, 1160); // One TCP-IP packet - fclose($fs); - $response = explode("\r\n\r\n", $response, 2); - - return $response; -} - - - -/** - * Gets the challenge HTML (javascript and non-javascript version). - * This is called from the browser, and the resulting reCAPTCHA HTML widget - * is embedded within the HTML form it was called from. - * @param string $pubkey A public key for reCAPTCHA - * @param string $error The error given by reCAPTCHA (optional, default is null) - * @param boolean $use_ssl Should the request be made over ssl? (optional, default is false) - - * @return string - The HTML to be embedded in the user's form. - */ -function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false) -{ - if ($pubkey == null || $pubkey == '') { - die ("To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create"); - } - - if ($use_ssl) { - $server = RECAPTCHA_API_SECURE_SERVER; - } else { - $server = RECAPTCHA_API_SERVER; - } - - $errorpart = ""; - if ($error) { - $errorpart = "&error=" . $error; - } - return ' - - - - - - '; -} - - - - -/** - * A ReCaptchaResponse is returned from recaptcha_check_answer() - */ -class ReCaptchaResponse { - var $is_valid; - var $error; -} - - -/** - * Calls an HTTP POST function to verify if the user's guess was correct - * @param string $privkey - * @param string $remoteip - * @param string $challenge - * @param string $response - * @param array $extra_params an array of extra variables to post to the server - * @return ReCaptchaResponse - */ -function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array()) -{ - if ($privkey == null || $privkey == '') { - die ("To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create"); - } - - if ($remoteip == null || $remoteip == '') { - die ("For security reasons, you must pass the remote ip to reCAPTCHA"); - } - - - - //discard spam submissions - if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) { - $recaptcha_response = new ReCaptchaResponse(); - $recaptcha_response->is_valid = false; - $recaptcha_response->error = 'incorrect-captcha-sol'; - return $recaptcha_response; - } - - $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify", - array ( - 'privatekey' => $privkey, - 'remoteip' => $remoteip, - 'challenge' => $challenge, - 'response' => $response - ) + $extra_params - ); - - $answers = explode ("\n", $response [1]); - $recaptcha_response = new ReCaptchaResponse(); - - if (trim ($answers [0]) == 'true') { - $recaptcha_response->is_valid = true; - } - else { - $recaptcha_response->is_valid = false; - $recaptcha_response->error = $answers [1]; - } - return $recaptcha_response; - -} - -/** - * gets a URL where the user can sign up for reCAPTCHA. If your application - * has a configuration page where you enter a key, you should provide a link - * using this function. - * @param string $domain The domain where the page is hosted - * @param string $appname The name of your application - */ -function recaptcha_get_signup_url ($domain = null, $appname = null) { - return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname)); -} - -function _recaptcha_aes_pad($val) { - $block_size = 16; - $numpad = $block_size - (strlen ($val) % $block_size); - return str_pad($val, strlen ($val) + $numpad, chr($numpad)); -} - -/* Mailhide related code */ - -function _recaptcha_aes_encrypt($val,$ky) { - if (! function_exists ("mcrypt_encrypt")) { - die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); - } - $mode=MCRYPT_MODE_CBC; - $enc=MCRYPT_RIJNDAEL_128; - $val=_recaptcha_aes_pad($val); - return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); -} - - -function _recaptcha_mailhide_urlbase64 ($x) { - return strtr(base64_encode ($x), '+/', '-_'); -} - -/* gets the reCAPTCHA Mailhide url for a given email, public key and private key */ -function recaptcha_mailhide_url($pubkey, $privkey, $email) { - if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) { - die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " . - "you can do so at http://www.google.com/recaptcha/mailhide/apikey"); - } - - - $ky = pack('H*', $privkey); - $cryptmail = _recaptcha_aes_encrypt ($email, $ky); - - return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail); -} - -/** - * gets the parts of the email to expose to the user. - * eg, given johndoe@example,com return ["john", "example.com"]. - * the email is then displayed as john...@example.com - */ -function _recaptcha_mailhide_email_parts ($email) { - $arr = preg_split("/@/", $email ); - - if (strlen ($arr[0]) <= 4) { - $arr[0] = substr ($arr[0], 0, 1); - } else if (strlen ($arr[0]) <= 6) { - $arr[0] = substr ($arr[0], 0, 3); - } else { - $arr[0] = substr ($arr[0], 0, 4); - } - return $arr; -} - -/** - * Gets html to display an email address given a public an private key. - * to get a key, go to: - * - * http://www.google.com/recaptcha/mailhide/apikey - */ -function recaptcha_mailhide_html($pubkey, $privkey, $email) { - $emailparts = _recaptcha_mailhide_email_parts ($email); - $url = recaptcha_mailhide_url ($pubkey, $privkey, $email); - - return htmlentities($emailparts[0]) . "...@" . htmlentities ($emailparts [1]); - -} - - -?> diff --git a/public_html/include/include.render.php b/public_html/include/include.render.php deleted file mode 100755 index 5d3e548..0000000 --- a/public_html/include/include.render.php +++ /dev/null @@ -1,187 +0,0 @@ - 0) - { - $output = ""; - $res = mysql_query("SELECT * FROM comments WHERE `ItemId` = '{$id}' AND `Section` = '{$table}' AND `Visible` = '1' ORDER BY `Posted` ASC"); - - if(mysql_num_rows($res) > 0) - { - while($row = mysql_fetch_array($res)) - { - $obj->id = $row['Id']; - $obj->itemid = $row['ItemId']; - $obj->name = $row['Name']; - $obj->body = $row['Body']; - $obj->parentid = $row['ParentId']; - $obj->postdate = $row['Posted']; - $obj->linecount = $row['LineCount']; - $obj->children = array(); - $dataset[$obj->id] = clone $obj; - } - - foreach($dataset as $element) - { - if($element->parentid == 0) - { - $top[] = $element; - } - else - { - if(isset($dataset[$element->parentid])) - { - $dataset[$element->parentid]->children[] = $element; - } - } - } - - foreach($top as $comment) - { - $output .= print_comment($comment, $table); - $output .= ""; - } - } - else - { - $output = "No comments have been posted on this entry yet."; - } - - $output .= " - - - - Post a new comment - - - - - - Post comment - - - - "; - - $path = "{$render_dir}/c-{$table}-{$id}.render"; - - file_put_contents($path, $output); - - mc_delete(md5($path) . md5($path . "x")); - - return $output; - } - else - { - return false; - } - -} - -function print_comment($comment, $table) -{ - $output = ""; - - if($table == "ext") - { - $sect = "external-news"; - } - elseif($table == "sites") - { - $sect = "related-sites"; - } - else - { - $sect = "press"; - } - - $c_name = utf8entities(stripslashes($comment->name)); - $c_date = utf8entities($comment->postdate); - $c_body = nl2br(utf8entities(stripslashes($comment->body)), false); - if($comment->linecount == 1) - { - $output .= " - - - id}\"> - - itemid}/comments/post/{$comment->id}/\" onclick=\"return replyToComment(this);\">Reply - itemid}/comments/#c-{$comment->id}\">Perma - - - {$c_name} - {$c_body} - - - - "; - } - else - { - $output .= " - - - id}\"> - - {$c_name} - {$c_date} - - - - - itemid}/comments/post/{$comment->id}/\" onclick=\"return replyToComment(this);\">Reply - itemid}/comments/#c-{$comment->id}\">Perma - - - {$c_body} - - - "; - } - - $output .= " - - {$comment->id} - - - - "; - - foreach($comment->children as $child) - { - $output .= print_comment($child, $table); - } - $output .= ""; - - return $output; -} - -?> diff --git a/public_html/include/include.string.php b/public_html/include/include.string.php deleted file mode 100755 index ee921ad..0000000 --- a/public_html/include/include.string.php +++ /dev/null @@ -1,151 +0,0 @@ - $maxlen) - { - $maxlen = $len; - $highest = $i; - } - } - return trim($parts[$highest]); - } - else - { - return $title; - } -} - -function split_lines($input) -{ - return explode("\n", str_replace("\r", "", $input)); -} - -function utf8_entities_if_needed($input) -{ - if(strpos($input, ">") !== false || strpos($input, "<") !== false) - { - return utf8entities($input); - } - else - { - return $input; - } -} - -function arraytolower($array) -{ - //return unserialize(strtolower(serialize($array))); - return $array; -} - -function clean_tag($tag) -{ - return preg_replace("/[^a-zA-Z0-9']/", "", normalize_chars($tag)); -} - -/* Thanks to highstrike at gmail dot com (http://www.php.net/manual/en/function.substr.php#80247) */ -function cut_text($value, $length) -{ - if(is_array($value)) list($string, $match_to) = $value; - else { $string = $value; $match_to = $value{0}; } - - $match_start = stristr($string, $match_to); - $match_compute = strlen($string) - strlen($match_start); - - if (strlen($string) > $length) - { - if ($match_compute < ($length - strlen($match_to))) - { - $pre_string = substr($string, 0, $length); - $pos_end = strrpos($pre_string, " "); - if($pos_end === false) $string = $pre_string."..."; - else $string = substr($pre_string, 0, $pos_end)."..."; - } - else if ($match_compute > (strlen($string) - ($length - strlen($match_to)))) - { - $pre_string = substr($string, (strlen($string) - ($length - strlen($match_to)))); - $pos_start = strpos($pre_string, " "); - $string = "...".substr($pre_string, $pos_start); - if($pos_start === false) $string = "...".$pre_string; - else $string = "...".substr($pre_string, $pos_start); - } - else - { - $pre_string = substr($string, ($match_compute - round(($length / 3))), $length); - $pos_start = strpos($pre_string, " "); $pos_end = strrpos($pre_string, " "); - $string = "...".substr($pre_string, $pos_start, $pos_end)."..."; - if($pos_start === false && $pos_end === false) $string = "...".$pre_string."..."; - else $string = "...".substr($pre_string, $pos_start, $pos_end)."..."; - } - - $match_start = stristr($string, $match_to); - $match_compute = strlen($string) - strlen($match_start); - } - - return $string; -} - -function normalize_chars($str) -{ - $charmap = array( - 'Š'=>'S', 'š'=>'s', 'Ð'=>'Dj','Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', - 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', - 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', - 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss','à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', - 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', - 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', - 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y', 'ƒ'=>'f', 'č'=>'c' - ); - - return strtr($str, $charmap); -} - -function random_string($length) -{ - $output = ""; - for ($i = 0; $i < $length; $i++) - { - $output .= substr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", mt_rand(0, 61), 1); - } - return $output; -} -?> diff --git a/public_html/include/include.tahoe.php b/public_html/include/include.tahoe.php deleted file mode 100755 index 20241d7..0000000 --- a/public_html/include/include.tahoe.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/public_html/include/include.template.php b/public_html/include/include.template.php deleted file mode 100755 index 40f5efb..0000000 --- a/public_html/include/include.template.php +++ /dev/null @@ -1,100 +0,0 @@ - - {$title} - "; - - if($section == "external-news") - { - $output .= " - - - + - - {$rank}"; - } - - $output .= " - {$comments} - {$lang[35]} - "; - - if($section == "press") - { - $output .= "+{$upvotes}"; - } - - $output .= " - - "; - - return $output; -} - -function template_post($post) -{ - $first = ($post['ParentId'] == 0) ? " forum-post-first" : ""; - - $user = utf8entities(stripslashes($post['Name'])); - $body = nl2br(utf8entities(stripslashes($post['Body']))); - $date = date("F j, Y H:i:s", strtotime($post['Posted'])); - - $output = " - - - - - {$user} - - - {$date} - - - - {$body} - - - - "; - - return $output; -} - -function template_captcha() -{ - global $recaptcha_pubkey; - return " - - - - > - - - - - Get another Captcha - Get Audio Captcha - Get Text Captcha - Help - Captcha by reCAPTCHA. - - - - - - - " . recaptcha_get_html($recaptcha_pubkey); -} - -?> diff --git a/public_html/include/include.utf8.php b/public_html/include/include.utf8.php deleted file mode 100755 index afed74f..0000000 --- a/public_html/include/include.utf8.php +++ /dev/null @@ -1,53 +0,0 @@ - diff --git a/public_html/index.php b/public_html/index.php deleted file mode 100755 index 1884128..0000000 --- a/public_html/index.php +++ /dev/null @@ -1,140 +0,0 @@ - diff --git a/public_html/internal.php b/public_html/internal.php deleted file mode 100755 index 1266418..0000000 --- a/public_html/internal.php +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - AnonNews.org : - - - - - - - - - - - - - - - - - AnonNews 2.0 is finally there! Press release submission - is open again, as are comments - and we now have forums! - Other interface languages and language/tag filtering coming soon, as well - as RSS feeds. - - - AnonNews - - - FAQ - IRC - Forum - - - - - - - - - - - - - - - - - AnonNews is an independent and uncensored (but moderated) news platform for Anonymous. Anyone is welcome to post a submission, and can do so by clicking the "Add" button for a category. - If you need help or have questions regarding AnonNews, please join our IRC channel. - - 0) - { - echo("There are $total unmoderated item(s)! Click here to start moderating."); - } - } - ?> - - - - - - - - - ฿ - Donate using Bitcoin! - - - - 1PPVupRRz7tHvfvJWEDBnDr7bFVFFYLu6G - - - - - - - All content on this website is automatically licensed under a Creative Commons Attribution license. You are free to redistribute and/or remix it, but you have to credit the author, or, if the author is unknown ("Anonymous"), place a backlink to the corresponding page on AnonNews and attribute it to "Anonymous". - - - - - Download the AnonNews 2.0 source code / Moderation panel - - - - - -"); -?> diff --git a/public_html/jquery.js b/public_html/jquery.js deleted file mode 100755 index 087e164..0000000 --- a/public_html/jquery.js +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * jQuery JavaScript Library v1.5.2 - * http://jquery.com/ - * - * Copyright 2011, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2011, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Thu Mar 31 15:28:23 2011 -0400 - */ -(function(a,b){function ci(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cf(a){if(!b_[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";b_[a]=c}return b_[a]}function ce(a,b){var c={};d.each(cd.concat.apply([],cd.slice(0,b)),function(){c[this]=a});return c}function b$(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bZ(){try{return new a.XMLHttpRequest}catch(b){}}function bY(){d(a).unload(function(){for(var a in bW)bW[a](0,1)})}function bS(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function P(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function H(a,b){return(a&&a!=="*"?a+".":"")+b.replace(t,"`").replace(u,"&")}function G(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,p=[],q=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function E(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function y(){return!0}function x(){return!1}function i(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function h(a,c,e){if(e===b&&a.nodeType===1){e=a.getAttribute("data-"+c);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:d.isNaN(e)?g.test(e)?d.parseJSON(e):e:parseFloat(e)}catch(f){}d.data(a,c,e)}else e=b}return e}var c=a.document,d=function(){function G(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(G,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x,y,z=Object.prototype.toString,A=Object.prototype.hasOwnProperty,B=Array.prototype.push,C=Array.prototype.slice,D=String.prototype.trim,E=Array.prototype.indexOf,F={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return C.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?B.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),x.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(C.apply(this,arguments),"slice",C.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;x.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=d._Deferred();if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",y,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",y),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&G()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):F[z.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!A.call(a,"constructor")&&!A.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||A.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1?f.call(arguments,0):c,--g||h.resolveWith(h,f.call(b,0))}}var b=arguments,c=0,e=b.length,g=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;ca";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e)}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="t";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(a.style.width="1px",a.style.marginRight="0",d.support.reliableMarginRight=(parseInt(c.defaultView.getComputedStyle(a,null).marginRight,10)||0)===0),b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function");return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}}();var g=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!i(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,g=b.nodeType,h=g?d.cache:b,j=g?b[d.expando]:d.expando;if(!h[j])return;if(c){var k=e?h[j][f]:h[j];if(k){delete k[c];if(!i(k))return}}if(e){delete h[j][f];if(!i(h[j]))return}var l=h[j][f];d.support.deleteExpando||h!=a?delete h[j]:h[j]=null,l?(h[j]={},g||(h[j].toJSON=d.noop),h[j][f]=l):g&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var f=this[0].attributes,g;for(var i=0,j=f.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var j=i?f:0,k=i?f+1:h.length;j=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=m.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&n.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var k=a.getAttributeNode("tabIndex");return k&&k.specified?k.value:o.test(a.nodeName)||p.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var l=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return l===null?b:l}h&&(a[c]=e);return a[c]}});var r=/\.(.*)$/,s=/^(?:textarea|input|select)$/i,t=/\./g,u=/ /g,v=/[^\w\s.|`]/g,w=function(a){return a.replace(v,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=x;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(a){return typeof d!=="undefined"&&d.event.triggered!==a.type?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=x);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),w).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(r,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=a.type,l[m]())}catch(p){}k&&(l["on"+m]=k),d.event.triggered=b}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},D=function D(a){var c=a.target,e,f;if(s.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=C(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:D,beforedeactivate:D,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&D.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&D.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",C(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in B)d.event.add(this,c+".specialChange",B[c]);return s.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return s.test(this.nodeName)}},B=d.event.special.change.filters,B.focus=B.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(a){var c=d.event.fix(a);c.type=b,c.originalEvent={},d.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var e=0;d.event.special[b]={setup:function(){e++===0&&c.addEventListener(a,f,!0)},teardown:function(){--e===0&&c.removeEventListener(a,f,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"text"===c&&(b===c||b===null)},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=N.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(P(c[0])||P(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=M.call(arguments);I.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!O[a]?d.unique(f):f,(this.length>1||K.test(e))&&J.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var R=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,U=/<([\w:]+)/,V=/",""],legend:[1,"",""],thead:[1,"",""],tr:[2,"",""],td:[3,"",""],col:[2,"",""],area:[1,"",""],_default:[0,"",""]};Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td,d.support.htmlSerialize||(Z._default=[1,"div",""]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(R,""):null;if(typeof a!=="string"||X.test(a)||!d.support.leadingWhitespace&&S.test(a)||Z[(U.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(T,"<$1>$2>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){ba(a,e),f=bb(a),g=bb(e);for(h=0;f[h];++h)ba(f[h],g[h])}if(b){_(a,e);if(c){f=bb(a),g=bb(e);for(h=0;f[h];++h)_(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||W.test(i)){if(typeof i==="string"){i=i.replace(T,"<$1>$2>");var j=(U.exec(i)||["",""])[1].toLowerCase(),k=Z[j]||Z._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=V.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&S.test(i)&&m.insertBefore(b.createTextNode(S.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bd=/alpha\([^)]*\)/i,be=/opacity=([^)]*)/,bf=/-([a-z])/ig,bg=/([A-Z]|^ms)/g,bh=/^-?\d+(?:px)?$/i,bi=/^-?\d/,bj={position:"absolute",visibility:"hidden",display:"block"},bk=["Left","Right"],bl=["Top","Bottom"],bm,bn,bo,bp=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bm(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bm)return bm(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bf,bp)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bq(a,b,e):d.swap(a,bj,function(){f=bq(a,b,e)});if(f<=0){f=bm(a,b,b),f==="0px"&&bo&&(f=bo(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bh.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return be.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bd.test(f)?f.replace(bd,e):c.filter+" "+e}}),d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){b?c=bm(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bn=function(a,c,e){var f,g,h;e=e.replace(bg,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bo=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bh.test(d)&&bi.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bm=bn||bo,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var br=/%20/g,bs=/\[\]$/,bt=/\r?\n/g,bu=/#.*$/,bv=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bw=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bx=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,by=/^(?:GET|HEAD)$/,bz=/^\/\//,bA=/\?/,bB=/ - - - Submit URL >> - - - - Scanning URL... (this may take a while!) - - - "); - // Stage 2: Verifying that the URL is indeed valid. If it is valid, suggest a title and allow the user to enter more details - if(spam_score($_POST['url'], "", false) < 10) - { - $request = curl_head($_POST['url']); - - if($request->code == 999) - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - elseif($request->code == 200) - { - $request = curl_get($_POST['url']); - if(!preg_match("/?(.*?)<\/title>/i", $request->result, $matches)) - { - $title = ""; - $title_desc = "No article title could be suggested. Please enter one yourself."; - } - else - { - $title = $matches[1]; - - $title_desc = "The below suggestion was made based on the full page title ($title). Make sure it's correct before submitting."; - - $title_suggestion = utf8_entities_if_needed(suggest_title($title)); - - $raw_suggestion = html_entity_decode($title_suggestion, ENT_QUOTES, "UTF-8"); - - // Load noise dictionary, for tag generation - $noise = split_lines(file_get_contents_cached("english.dic")->data); - $noise = arraytolower($noise); - - foreach(explode(" ", $raw_suggestion) as $tag) - { - $tag = trim(clean_tag($tag)); - if(strlen(trim($tag)) > 1 && in_array(strtolower(trim($tag)), $noise) === false) - { - $tag_list[] = strtolower($tag); - } - } - - $tag_list = array_unique($tag_list); - - $tags_suggestion = utf8_entities_if_needed(implode(", ", $tag_list)); - } - - if($detect_language) - { - require_once("Text/LanguageDetect.php"); - $detector = new Text_LanguageDetect; - $detected_language = $detector->detectSimple(strip_tags($request->result)); - } - else - { - $detected_language = "English"; - } - - ?> - Submit an external news article - - - - - - Article Title - - - - - - Tags (optional) - - Enter comma-separated tags here, that indicate what the press release is about. This will make it easier to find on the site. - - - - Article Language - - $lang) - { - $sel = (strtolower($lang) == strtolower($detected_language)) ? " selected" : ""; - echo("{$lang}"); - } - ?> - - - Detected language: - - - Complete the CAPTCHA - - - - Submit external news item >> - - - - Submitting external news item... (this may take a while!) - - - - code} -->"); - $var_code = ANONNEWS_ERROR_NONEXISTENT_URL; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_URL_BLACKLISTED; - require("module.error.php"); - } - } - elseif($var_id == "submit") - { - // Stage 3: Processing the submission. - $recaptcha = recaptcha_check_answer ($privatekey, - $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); - - if($recaptcha->is_valid) - { - if(!empty($_POST['title'])) - { - if(!empty($_POST['url'])) - { - // It will have to be approved before it appears on the front page. - $spam_score = spam_score($_POST['url'], $_POST['title'], true); - - if($spam_score < 10) - { - $request = curl_head($_POST['url']); - if($request->code == 200) - { - if($spam_score < 5) - { - $visible = true; - $approval_status = "Your submission is now visible on the frontpage."; - } - else - { - $visible = false; - $approval_status = "Your submission was however flagged as potential spam, and will be manually reviewed before appearing on the frontpage."; - } - - $language = mysql_real_escape_string($_POST['language']); - $title = mysql_real_escape_string($_POST['title']); - $url = mysql_real_escape_string($_POST['url']); - - $query = "INSERT INTO ext (`Name`, `Url`, `CommentCount`, `Deleted`, `Approved`, `Visible`, `Rank`, `Mod`, `Language`, `Posted`) - VALUES ('$title', '$url', '0', '0', '0', '{$visible}', '0', '', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('ext', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your external news item was successfully submitted. {$approval_status} - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - else - { - echo(""); - $var_code = ANONNEWS_ERROR_NONEXISTENT_URL; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_SPAM; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_URL; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.ext.list.php b/public_html/module.ext.list.php deleted file mode 100755 index ae41ac4..0000000 --- a/public_html/module.ext.list.php +++ /dev/null @@ -1,131 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_last) && is_numeric($var_last) && $var_last > 0) - { - $var_page = mysql_real_escape_string($var_last - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_sort = ($var_sort == "date") ? "Posted" : "Rank"; - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount, Rank FROM ext WHERE `Visible` = '1' AND `Deleted` = '0' ORDER BY `{$query_sort}` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sort == "date" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sort == "date" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - $style[2] = ($var_sort == "rank" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[3] = ($var_sort == "rank" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - Highest ranked first - Lowest ranked first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - - echo(" - {$page_list} - "); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.ext.php b/public_html/module.ext.php deleted file mode 100755 index 82dbc24..0000000 --- a/public_html/module.ext.php +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/public_html/module.forum.category.php b/public_html/module.forum.category.php deleted file mode 100755 index 15db2da..0000000 --- a/public_html/module.forum.category.php +++ /dev/null @@ -1,62 +0,0 @@ -data[0]; - $catname = utf8entities(stripslashes($category['Name'])); - $catid = $category['Id']; - $catthreads = (is_numeric($category['Name'])) ? $category['Name'] : 0; - echo("Forum > {$catname}"); - ?> - - - - Create new thread - - - - - - Thread Title - Replies - - data as $post) - { - $teaser = cut_text(utf8entities(stripslashes($post['Body'])), 90); - $topic = utf8entities(stripslashes($post['Topic'])); - - echo(" - - - {$topic} - {$teaser} - - - {$post['Replies']} - "); - } - } - else - { - echo(" - There are no threads in this category yet. - "); - } - ?> - - - diff --git a/public_html/module.forum.overview.php b/public_html/module.forum.overview.php deleted file mode 100755 index 05f91a7..0000000 --- a/public_html/module.forum.overview.php +++ /dev/null @@ -1,46 +0,0 @@ - - -Forum - - - Be sure to read the Forum Rules! All posting is anonymous, no registration is necessary and no IPs are kept. - - - - - Category - Threads - Posts - - data as $category) - { - if($category['Posts'] > 0) - { - $posttime = date("F j, Y H:i:s", strtotime($category['LastPostTime'])); - $lasttopic = utf8entities($category['LastPostTopic']); - $lastpost = "Last post: {$lasttopic} @ {$posttime}"; - } - else - { - $lastpost = "There are no posts in this category yet."; - } - - echo(" - - - {$category['Name']} - {$lastpost} - - - {$category['Threads']} - {$category['Posts']} - "); - } - ?> - diff --git a/public_html/module.forum.php b/public_html/module.forum.php deleted file mode 100755 index a1284b4..0000000 --- a/public_html/module.forum.php +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/public_html/module.forum.post.php b/public_html/module.forum.post.php deleted file mode 100755 index c18991e..0000000 --- a/public_html/module.forum.post.php +++ /dev/null @@ -1,160 +0,0 @@ -data[0]; - - if(!isset($_POST['submit'])) - { - $catname = utf8entities($var_id); - $catrealname = utf8entities(stripslashes($category['Name'])); - - echo(""); - echo(" - Forum > {$catrealname} > New Thread - - - Name - - - Topic Title - - - Contents - - - Create thread >> - Complete the captcha - " . template_captcha() . " - - - - "); - } - else - { - $recaptcha = recaptcha_check_answer ($privatekey, - $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); - - if($recaptcha->is_valid) - { - $name = (!empty($_POST['name'])) ? mysql_real_escape_string($_POST['name']) : "Anonymous"; - $body = mysql_real_escape_string($_POST['body']); - $topic = mysql_real_escape_string($_POST['topic']); - $catname = mysql_real_escape_string($var_id); - - $result = mysql_query_cached("SELECT Id FROM forum_categories WHERE `UrlName`='{$catname}'"); - $catid = $result->data[0]['Id']; - - if(!empty($body)) - { - if(!empty($topic)) - { - $parent = $result->data[0]; - - $query = "INSERT INTO forum_posts (`CategoryId`, `ParentId`, `Name`, `Topic`, `Posted`, `Body`, `Replies`, `LastReplyUser`, `LastReplyTime`) - VALUES ('{$catid}', '0', '{$name}', '{$topic}', CURRENT_TIMESTAMP, '{$body}', '0', '', CURRENT_TIMESTAMP)"; - if(mysql_query($query)) - { - $insid = mysql_insert_id(); - mysql_query("UPDATE forum_categories SET `Posts`=`Posts`+1 , `Threads`=`Threads`+1 , `LastPostTime`=CURRENT_TIMESTAMP , `LastPostTopic`='{$topic}' WHERE `Id`='{$catid}'"); - echo("Your post was successful! It may take a few seconds to appear. - << go to thread"); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_POST_TOPIC; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_POST_BODY; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - } -} -elseif($var_mode == "reply") -{ - // Post a reply to an existing thread. - - $recaptcha = recaptcha_check_answer ($privatekey, - $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); - - if($recaptcha->is_valid) - { - $post_id = (is_numeric($var_id)) ? $var_id : 0; - $name = (!empty($_POST['name'])) ? mysql_real_escape_string($_POST['name']) : "Anonymous"; - $body = mysql_real_escape_string($_POST['body']); - - if(!empty($body)) - { - if($result = mysql_query_cached("SELECT * FROM forum_posts WHERE `Id`='{$post_id}'")) - { - $parent = $result->data[0]; - - $query = "INSERT INTO forum_posts (`CategoryId`, `ParentId`, `Name`, `Topic`, `Posted`, `Body`, `Replies`, `LastReplyUser`, `LastReplyTime`) - VALUES ('{$parent['CategoryId']}', '{$post_id}', '{$name}', '', CURRENT_TIMESTAMP, '{$body}', '0', '', CURRENT_TIMESTAMP)"; - if(mysql_query($query)) - { - $insid = mysql_insert_id(); - $topic = mysql_real_escape_string(stripslashes($parent['Topic'])); - - mysql_query("UPDATE forum_categories SET `Posts`=`Posts`+1 , `LastPostTime`=CURRENT_TIMESTAMP , `LastPostTopic`='{$topic}' WHERE `Id`='{$parent['CategoryId']}'"); - mysql_query("UPDATE forum_posts SET `Replies`=`Replies`+1 , `LastReplyUser`='{$name}' , `LastReplyTime`=CURRENT_TIMESTAMP WHERE `Id`='{$post_id}'"); - echo("Your post was successful! It may take a few seconds to appear. - << back to thread"); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_POST_BODY; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); -} -?> diff --git a/public_html/module.forum.view.php b/public_html/module.forum.view.php deleted file mode 100755 index 872399e..0000000 --- a/public_html/module.forum.view.php +++ /dev/null @@ -1,54 +0,0 @@ -data[0]; - - $query = "SELECT * FROM forum_categories WHERE `Id`='{$post['CategoryId']}'"; - if($category = mysql_query_cached($query)->data[0]) - { - $topic = utf8entities(stripslashes($post['Topic'])); - - $caturlname = utf8entities(stripslashes($category['UrlName'])); - $catname = utf8entities(stripslashes($category['Name'])); - - echo("Forum > {$catname} > {$topic}"); - - echo(template_post($post)); - - $query = "SELECT * FROM forum_posts WHERE `ParentId`='{$post['Id']}'"; - if($children = mysql_query_cached($query, 5)) - { - foreach($children->data as $child) - { - echo(template_post($child)); - } - } - - echo(" - Post a reply - - - - - Post reply >> - " . template_captcha() . " - - - "); - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); -} -?> diff --git a/public_html/module.home.php b/public_html/module.home.php deleted file mode 100755 index 6c31e4a..0000000 --- a/public_html/module.home.php +++ /dev/null @@ -1,196 +0,0 @@ -data[0]['COUNT(*)']; - -$result = mysql_query_cached("SELECT COUNT(*) FROM ext WHERE `Deleted`='0' AND `Visible`='1'", 600); -$total_ext = $result->data[0]['COUNT(*)']; - -$result = mysql_query_cached("SELECT COUNT(*) FROM sites WHERE `Deleted`='0' AND `Approved`='1'", 600); -$total_sites = $result->data[0]['COUNT(*)']; - -if($site_messages_enabled === true) -{ - $sitemsg_id = floor(rand(0, count($site_messages)-1)); - - $i = 0; - $sitemsg_url = ""; - $sitemsg_message = ""; - foreach($site_messages as $key => $message) - { - if($i == $sitemsg_id) - { - $sitemsg_url = $key; - $sitemsg_message = $message; - } - $i += 1; - } - - echo(" - $sitemsg_message - - "); -} -?> - - - - - Overview - Highest rated - Most recent - - - - = DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Upvotes` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, true, $upvotes, 0)); - } - } - - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - } - ?> - - - More () >> - + Add - - - - - - - - - - - data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - } - ?> - More () >> - + Add - - - - - - - - Last days - Forever - - - - = DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` DESC LIMIT 4"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - } - ?> - - - More () >> - + Add - - - - - - - - Last days - Forever - - - - = DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY) ORDER BY `Rank` ASC LIMIT 4"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = $item['Rank']; - - echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); - } - } - ?> - - - More () >> - + Add - - - - - - - - - - data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - - echo(template_item($name, "related-sites", $id, $comments, false, 0, 0)); - } - } - ?> - More () >> - + Add - - - diff --git a/public_html/module.moderation.approve.php b/public_html/module.moderation.approve.php deleted file mode 100644 index 1ac600a..0000000 --- a/public_html/module.moderation.approve.php +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/public_html/module.moderation.login.php b/public_html/module.moderation.login.php deleted file mode 100644 index 70e5c0e..0000000 --- a/public_html/module.moderation.login.php +++ /dev/null @@ -1,34 +0,0 @@ -data[0]['Id']; - $_SESSION['accesslevel'] = $result->data[0]['AccessLevel']; - echo("Successfully logged in! Continue..."); - } - else - { - echo("The login details you entered are incorrect."); - } -} -else -{ - // Show login form - echo(" - - Log in to access the moderator panel. - Username: - Password: - Log in - - "); -} -?> diff --git a/public_html/module.moderation.overview.php b/public_html/module.moderation.overview.php deleted file mode 100644 index bbaa477..0000000 --- a/public_html/module.moderation.overview.php +++ /dev/null @@ -1,74 +0,0 @@ -Moderation panel"); - -echo("Press releases"); -if($result = mysql_query_cached("SELECT * FROM press WHERE `Approved` = '0' AND `Deleted` = '0' ORDER BY `Posted` ASC LIMIT 30", 2)) -{ - foreach($result->data as $item) - { - $sTitle = utf8entities(stripslashes($item['Name'])); - $sId = $item['Id']; // PRIMARY KEY, safe to assign - - echo(" - {$sTitle} - Approve - Reject - "); - } -} -else -{ - echo("No unmoderated press releases."); -} - - -echo("External news sources"); -if($result = mysql_query_cached("SELECT * FROM ext WHERE `Deleted` = '0' AND `Approved` = '0' ORDER BY `Visible` DESC LIMIT 100", 2)) -{ - foreach($result->data as $item) - { - $sUrl = htmlspecialchars(stripslashes($item['Url'])); - $sTitle = utf8entities(stripslashes($item['Name'])); - $sId = $item['Id']; // PRIMARY KEY, safe to assign - - echo(" - {$sTitle} - Approve - Reject - {$sUrl} - "); - } -} -else -{ - echo("No unmoderated external news sources."); -} - - - -echo("Related sites"); -if($result = mysql_query_cached("SELECT * FROM sites WHERE `Deleted` = '0' AND `Approved` = '0' ORDER BY `Id` ASC LIMIT 100", 2)) -{ - foreach($result->data as $item) - { - $sUrl = htmlspecialchars(stripslashes($item['Url'])); - $sTitle = utf8entities(stripslashes($item['Name'])); - $sId = $item['Id']; // PRIMARY KEY, safe to assign - - echo(" - {$sTitle} - Approve - Reject - {$sUrl} - "); - } -} -else -{ - echo("No unmoderated related sites."); -} - -//$result = mysql_query_cached("SELECT * FROM sites WHERE `Approved` = '0'", 2); -?> diff --git a/public_html/module.moderation.php b/public_html/module.moderation.php deleted file mode 100755 index 281c849..0000000 --- a/public_html/module.moderation.php +++ /dev/null @@ -1,66 +0,0 @@ - 5) - { - if(empty($var_id)) - { - require("module.forum.blacklist.overview.php"); - } - elseif($var_id == "add") - { - require("module.forum.blacklist.add.php"); - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } - else - { - echo("You do not have sufficient rights to view this page."); - } - } -} -else -{ - if($var_page == "login") - { - require("module.moderation.login.php"); - } - else - { - echo("You are not logged in. Please log in to start moderating."); - } -} -?> diff --git a/public_html/module.moderation.process.php b/public_html/module.moderation.process.php deleted file mode 100644 index 6b68eba..0000000 --- a/public_html/module.moderation.process.php +++ /dev/null @@ -1,42 +0,0 @@ - diff --git a/public_html/module.press.add.php b/public_html/module.press.add.php deleted file mode 100755 index b4c679d..0000000 --- a/public_html/module.press.add.php +++ /dev/null @@ -1,252 +0,0 @@ - - Read these guidelines. Not reading them may get you banned. - While no censorship based on opinion, views, etc. takes place on AnonNews, there are several guidelines in place to keep content on the site relevant. - Read these guidelines completely before submitting a press release. Not reading them may get you banned. - This is not a forum. Opinion posts, questions to anons, and other similar things do not belong here. Use the forum. - AnonNews is about Anonymous. While you may think your local political party, a phone tapping scandal, or anything else is important, this is not the place for personal army requests. - If you wish to discuss a topic that may be of interest to other anons, you can do so on the forum. If it's not a press release or manifesto from Anonymous, it doesn't belong here - period. - Format your press releases properly. Press releases and manifestos are expected to be readable and in proper formatting. While we certainly don't expect perfect grammar, a press - release that uses an abbreviation every other word or contains excessive 'leetspeak' is not going to be accepted. If your press release is in bright pink with images of red flowers on the side, it will - probably not be accepted either. - No copypasting. This section is intended for those that wish to submit a press release about an operation they are involved with (not necessarily being part of staff). Don't copypaste - news articles or press releases from others that you have nothing to do with. Submitting it for someone else who is involved with an operation, is of course not an issue at all. - You are not the leader of Anonymous. Noone is. Don't try to imply that all of Anonymous agrees with something or condemns it - your press release will be rejected. Unless you - have talked through your press release with literally every single anon out there, you cannot speak for all of them. Making a generic 'from Anonymous' statement is fine, as long as you don't try to say that - 'person X and operation Y were not Anonymous' or try to impose alleged 'universal values or ideologies' onto Anonymous - they simply do not exist. - On the IP retention policy: we normally do not store IP addresses of anyone submitting content to AnonNews (feel free to use TOR or a proxy to be completely sure). If you hit a spam filter, - however (there is almost zero chance for a false positive), your IP may be recorded and banned. If an IP is incorrectly recorded (a false positive) it will be reviewed and removed from the log within 24 hours, without exception. - - If you have read the guidelines, click here to submit your press release. - - - Submit a press release - - - - Press release title - - Press release text - - To make use of the WYSIWYG editor, Javascript is required. If Javascript is turned off, you can make use of HTML instead - line breaks will automatically be inserted. - - - - - - - Upload an image (optional) - - Allowed: PNG, GIF, JPG. Maximum filesize: 20MB. If possible, please use PNG instead of JPG for better image quality. - - - - - Tags (optional) - - Enter comma-separated tags here, that indicate what the article is about. This will make it easier to find on the site. - - - - Press Release Language - - $lang) - { - echo("{$lang}"); - } - ?> - - - Complete the CAPTCHA - - - - Submit press release >> - - - - Submitting press release... (this may take a while!) - - - is_valid) - { - $error = false; - if(isset($_FILES['file']) && $_FILES['file']['error'] == 0) - { - $file_uploaded = true; - if(ends_with($_FILES['file']['name'], ".jpg") || ends_with($_FILES['file']['name'], ".jpeg") || ends_with($_FILES['file']['name'], ".png") || ends_with($_FILES['file']['name'], ".gif")) - { - if($_FILES['file']['size'] <= 20000000) - { - $upload_result = curl_put("{$tahoe_server}/uri", $_FILES['file']['tmp_name']); - if($upload_result !== false) - { - $upload_b64 = urlsafe_b64encode($upload_result); - $upload_url = "/download/$upload_b64/{$_FILES['file']['name']}"; - } - } - else - { - $error = true; - $var_code = ANONNEWS_ERROR_TOO_LARGE; // Upload filesize error - require("module.error.php"); - } - } - else - { - $error = true; - $var_code = ANONNEWS_ERROR_INCORRECT_FORMAT; // Upload file format error - require("module.error.php"); - } - } - elseif(isset($_FILES['file']) && $_FILES['file']['error'] == 4) - { - // No file was uploaded. - $file_uploaded = false; - } - else - { - $error = true; - $var_code = ANONNEWS_ERROR_UPLOAD_ERR; // Generic upload error - require("module.error.php"); - } - - if($error === false) - { - // Either no file was uploaded or the file was successfully uploaded, continue... - if(!empty($_POST['title'])) - { - if(!empty($_POST['body'])) - { - if($file_uploaded === false) - { - $upload_url = ""; - } - - $body = $_POST['body']; - - if($_POST['js_enabled'] === "false") - { - $body = nl2br($body, false); - } - - $body = mysql_real_escape_string(str_replace("javascript:", "",strip_tags_attributes($body, - "", - "href,src,alt,class,style,align,valign,color,face,size,width,height,shape,coords,target,border,cellpadding,cellspacing,colspan,rowspan"))); - $title = mysql_real_escape_string($_POST['title']); - - $language = mysql_real_escape_string($_POST['language']); - - $query = "INSERT INTO press (`Name`, `Body`, `CommentCount`, `Deleted`, `Approved`, `Attachment`, `Upvotes`, `Mod`, `ExternalAttachment`, `Language`, `Posted`) - VALUES ('{$title}', '{$body}', '0', '0', '0', '{$upload_url}', '0', '', '1', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('press', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your press release was successfully submitted. It will have to be approved before it appears on the front page. - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_BODY; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.press.item.php b/public_html/module.press.item.php deleted file mode 100755 index 61b1ff4..0000000 --- a/public_html/module.press.item.php +++ /dev/null @@ -1,67 +0,0 @@ -data[0]['Name'])); - $body = youtubify(filter_extended(stripslashes($result->data[0]['Body']))); - $externalattachment = $result->data[0]['ExternalAttachment']; - $attachment = utf8entities(stripslashes($result->data[0]['Attachment'])); - $commentcount = $result->data[0]['CommentCount']; - - echo(" - Join the conversation! {$commentcount} comment(s) already posted - click to post one yourself, anonymously of course. - $title"); - - if(!empty($attachment)) - { - if($externalattachment == 1) - { - $image = $tahoe_gateway . $attachment; - } - else - { - $image = "/" . $attachment; - } - - echo(" - - "); - } - - echo("$body - Join the conversation! {$commentcount} comment(s) already posted - click to post one yourself, anonymously of course. - - "); - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); -} -?> diff --git a/public_html/module.press.list.php b/public_html/module.press.list.php deleted file mode 100755 index a3118bc..0000000 --- a/public_html/module.press.list.php +++ /dev/null @@ -1,127 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_last) && is_numeric($var_last) && $var_last > 0) - { - $var_page = mysql_real_escape_string($var_last - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_sort = ($var_sort == "date") ? "Posted" : "Upvotes"; - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount, Upvotes FROM press WHERE `Approved` = '1' AND `Deleted` = '0' ORDER BY `{$query_sort}` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sort == "date" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sort == "date" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - $style[2] = ($var_sort == "upvotes" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[3] = ($var_sort == "upvotes" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - Highest ranked first - Lowest ranked first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - - echo(" - {$page_list} - "); - - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.press.php b/public_html/module.press.php deleted file mode 100755 index 87fb67f..0000000 --- a/public_html/module.press.php +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/public_html/module.sites.add.php b/public_html/module.sites.add.php deleted file mode 100755 index 03cbb2f..0000000 --- a/public_html/module.sites.add.php +++ /dev/null @@ -1,303 +0,0 @@ - - Read these guidelines. Not reading them may get you banned. - While no censorship based on opinion, views, etc. takes place on AnonNews, there are several guidelines in place to keep content on the site relevant. - Read these guidelines completely before submitting a related site. Not reading them may get you banned. - This section is solely for Anonymous-related websites. The site must represent a group or 'part' of Anonymous. Examples are IRC networks, Anonymous event planners, specific - Anonymous-related news sites or blogs, and so on. - Related sites have to be notable. This essentially means that your blog with 20 visitors a day and 3 total posts is not going to be accepted. An (almost) empty website is not going - to be accepted either. For networks/groups/'cells', there must be an established userbase already. Websites run by one person will only be accepted if they offer considerable value (your blog - with weekly opinion posts will probably not get accepted, whereas a blog with frequent news about various Anonymous groups will be accepted). - This is not Craigslist. This is not a place to advertise your new site - this section is intended to help people find useful Anonymous-related resources that already exist. - If you are looking to start something new, and you're looking for people to join, the forums would be a better place. - Only very few entries will be accepted. The intention is to keep this section as small as possible, offering a brief overview of related resources for people that want to - learn more about Anonymous or get actively involved with it. Only the most notable and useful submissions will be accepted. - Keep the submission title to the point. The title must be the name of the site, or, if it doesn't have a name, a brief description of what the site is. No slogans, no URLs, - no explanations - keep that for the site itself. - - If you have read the guidelines, click here to submit your related site. - - - Submit a related site - - - First of all, enter a URL. After the URL has been checked and found to be valid, you will be able to enter the rest. - - Article URL - - - - - - Submit URL >> - - - - Scanning URL... (this may take a while!) - - - code == 999) - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - elseif($request->code == 200) - { - $request = curl_get($_POST['url']); - if(!preg_match("/?(.*?)<\/title>/i", $request->result, $matches)) - { - $title = ""; - $title_desc = "No website title could be suggested. Please enter one yourself."; - } - else - { - $title = $matches[1]; - - $title_desc = "The below suggestion was made based on the full page title ($title). Make sure it's correct before submitting."; - - $title_suggestion = utf8_entities_if_needed(suggest_title($title)); - - $raw_suggestion = html_entity_decode($title_suggestion, ENT_QUOTES, "UTF-8"); - - // Load noise dictionary, for tag generation - $noise = split_lines(file_get_contents_cached("english.dic")->data); - $noise = arraytolower($noise); - - foreach(explode(" ", $raw_suggestion) as $tag) - { - $tag = trim(clean_tag($tag)); - if(strlen(trim($tag)) > 1 && in_array(strtolower(trim($tag)), $noise) === false) - { - $tag_list[] = strtolower($tag); - } - } - - $tag_list = array_unique($tag_list); - - $tags_suggestion = utf8_entities_if_needed(implode(", ", $tag_list)); - } - - if($detect_language) - { - require_once("Text/LanguageDetect.php"); - $detector = new Text_LanguageDetect; - $detected_language = $detector->detectSimple(strip_tags($request->result)); - } - else - { - $detected_language = "English"; - } - - ?> - Submit a related site - - - - - - Website Title - - - - - - Tags (optional) - - Enter comma-separated tags here, that indicate what the website is about. This will make it easier to find on the site. - - - - Website Language - - $lang) - { - $sel = (strtolower($lang) == strtolower($detected_language)) ? " selected" : ""; - echo("{$lang}"); - } - ?> - - - Detected language: - - - Complete the CAPTCHA - - - - Submit related site >> - - - - Submitting related site... (this may take a while!) - - - - is_valid) - { - if(!empty($_POST['title'])) - { - if(!empty($_POST['url'])) - { - // It will have to be approved before it appears on the front page. - $spam_score = spam_score($_POST['url'], $_POST['title'], false); - - if($spam_score < 10) - { - $request = curl_head($_POST['url']); - if($request->code == 200) - { - $language = mysql_real_escape_string($_POST['language']); - $title = mysql_real_escape_string($_POST['title']); - $url = mysql_real_escape_string($_POST['url']); - - $query = "INSERT INTO sites (`Name`, `Url`, `CommentCount`, `Deleted`, `Approved`, `Mod`, `Language`, `Posted`) - VALUES ('$title', '$url', '0', '0', '0', '', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('sites', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your related site was successfully submitted. It will have to be approved before it appears on the front page. - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - else - { - $var_code = ANONNEWS_ERROR_NONEXISTENT_URL; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_SPAM; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_URL; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.sites.list.php b/public_html/module.sites.list.php deleted file mode 100755 index 43dc1fc..0000000 --- a/public_html/module.sites.list.php +++ /dev/null @@ -1,115 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_subpage) && is_numeric($var_subpage) && $var_subpage > 0) - { - $var_page = mysql_real_escape_string($var_subpage - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount FROM sites WHERE `Approved` = '1' AND `Deleted` = '0' ORDER BY `Posted` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - - echo(template_item($name, "related-sites", $id, $comments, false, 0, 0)); - } - - echo(" - {$page_list} - "); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.sites.php b/public_html/module.sites.php deleted file mode 100755 index a763574..0000000 --- a/public_html/module.sites.php +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/public_html/process.frontpage.php b/public_html/process.frontpage.php deleted file mode 100755 index acd8d2f..0000000 --- a/public_html/process.frontpage.php +++ /dev/null @@ -1,210 +0,0 @@ -= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Upvotes` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, true, $upvotes, 0)); - } - } - - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - } - } - else - { - // Process all other queries here. - - if($_GET['q'] == "press_top") - { - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Upvotes` DESC LIMIT 6"; - $section = "press"; - } - elseif($_GET['q'] == "press_latest") - { - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 6"; - $section = "press"; - } - elseif($_GET['q'] == "ext_top_7days") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` DESC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_top_all") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' ORDER BY `Rank` DESC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_bottom_7days") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` ASC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_bottom_all") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' ORDER BY `Rank` ASC LIMIT 4"; - $section = "external-news"; - } - - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = ($section == "external-news") ? $item['Rank'] : 0; - $upvotes = ($section == "press") ? $item['Upvotes'] : 0; - - echo(template_item($name, $section, $id, $comments, false, $upvotes, $rank)); - } - } - - } -} -else -{ - die("Error: No valid query was passed on."); -} -/* -if(!isset($_GET['s']) || !isset($_GET['f']) || !isset($_GET['o']) || !isset($_GET['p'])) -{ - die("An internal error occurred. Not all variables were set."); -} - -if($_GET['s'] == "ext") -{ - $section = "ext"; - $sectionname = "external-news"; - $rules = "WHERE `Deleted`='0'"; -} -elseif($_GET['s'] == "sites") -{ - $section = "sites"; - $sectionname = "related-sites"; - $rules = "WHERE `Deleted`='0' AND `Approved`='1'"; -} -elseif($_GET['s'] == "press") -{ - $section = "press"; - $sectionname = "press"; - $rules = "WHERE `Deleted`='0' AND `Approved`='1'"; -} -else -{ - die("An internal error occurred. 's' was not correctly defined."); -} - -if($_GET['o'] == "a") -{ - $order = "ASC"; -} -elseif($_GET['o'] == "d") -{ - $order = "DESC"; -} -else -{ - die("An internal error occurred. 'o' was not correctly defined."); -} - -if($_GET['f'] == "rank") -{ - if($section == "press") - { - $field = "Upvotes"; - } - elseif($section == "ext") - { - $field = "Rank"; - } - else - { - die("An internal error occurred. 'fS' was not correctly defined."); - } -} -elseif($_GET['f'] == "date") -{ - $field = "Posted"; -} -else -{ - die("An internal error occurred. 'f' was not correctly defined."); -} - -if($_GET['p'] == "all") -{ - $query = $rules; -} -elseif($_GET['p'] == "week") -{ - $query = "{$rules} AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)"; -} -else -{ - die("An internal error occurred. 'p' was not correctly defined."); -} - -if(isset($_GET['l']) && is_numeric($_GET['l'])) -{ - $limit = $_GET['l']; -} -else -{ - $limit = "5"; -} - -$query = "{$query} ORDER BY `{$field}` {$order} LIMIT {$limit}"; - -if(isset($_GET['hl'])) -{ - $highlight = " highlighted"; -} -else -{ - $highlight = ""; -} - -echo("SELECT * FROM {$section} {$query}"); - -//echo("SELECT * FROM {$section} {$query}"); -/* -$result = mysql_query_cached("SELECT * FROM {$section} {$query}"); - -foreach($result->data as $item) -{ - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = ($sectionname == "press") ? $item['Upvotes'] : 0; - $rank = ($sectionname == "ext") ? $item['Rank'] : 0; - - echo(template_item($name, $sectionname, $id, $comments, isset($_GET['hl']), $upvotes, $rank)); -}*/ - -?> diff --git a/public_html/process.vote.php b/public_html/process.vote.php deleted file mode 100755 index 95affe5..0000000 --- a/public_html/process.vote.php +++ /dev/null @@ -1,73 +0,0 @@ -X"); - } - - $nojs = (isset($_GET['nojs'])) ? true : false; - $frame = (isset($_GET['frame'])) ? true : false; - $item_id = (is_numeric($_GET['id'])) ? $_GET['id'] : 0; - $vote = $_GET['vote']; - $ip_hash = ip_hash(get_ip()); - - if(mysql_num_rows(mysql_query("SELECT Rank FROM ext WHERE `Id`='{$item_id}'")) > 0) - { - if(mysql_num_rows(mysql_query("SELECT * FROM votes WHERE `Id`='{$item_id}' AND `Ip`='{$ip_hash}'")) == 0) - { - if($vote == "up") - { - mysql_query("UPDATE ext SET `Rank`=`Rank`+1 WHERE `Id`='{$item_id}'"); - - if(!$nojs) - { - echo("+"); - } - } - elseif($vote == "down") - { - mysql_query("UPDATE ext SET `Rank`=`Rank`-1 WHERE `Id`='{$item_id}'"); - - if(!$nojs) - { - echo("-"); - } - } - else - { - die("X"); - } - - if($nojs && $frame) - { - echo("Your vote was counted."); - } - elseif($nojs) - { - echo("Your vote was counted. Click here to go back to the page you came from."); - } - - mysql_query("INSERT INTO votes (`Id`, `Ip`) VALUES ('{$item_id}', '{$ip_hash}')"); - } - else - { - if($nojs && $frame) - { - echo("You already voted."); - } - elseif($nojs) - { - header("Location: {$referer}"); - } - else - { - die("X"); - } - } - } -} -?> diff --git a/public_html/rewrite.php b/public_html/rewrite.php deleted file mode 100755 index ac36504..0000000 --- a/public_html/rewrite.php +++ /dev/null @@ -1,117 +0,0 @@ - 1) -{ - if($parts[0] == "localize") - { - if(isset($parts[1]) && strlen($parts[1]) > 0) - { - $var_lang = $parts[1]; - $_SESSION['curlang'] = $var_lang; - if(isset($parts[2]) && strlen($parts[2]) > 0) - { - $var_start = 2; - } - else - { - $break = true; - } - } - else - { - $var_section = "error"; - $var_code = 404; - $break = true; - } - } - - if($break === false) - { - $var_section = $parts[$var_start]; - if($var_section == "press" || $var_section == "external-news" || $var_section == "related-sites" || $var_section == "forum" || $var_section == "moderation") - { - // Handle functional pages - if($var_section == "external-news") - { - $var_table = "ext"; - } - elseif($var_section == "related-sites") - { - $var_table = "sites"; - } - else - { - $var_table = "press"; - } - - if(isset($parts[$var_start + 3]) && strlen($parts[$var_start + 3]) > 0) - { - $var_subpage = $parts[$var_start + 3]; - } - - if(isset($parts[$var_start + 4]) && strlen($parts[$var_start + 4]) > 0) - { - $var_last = $parts[$var_start + 4]; - } - - if(isset($parts[$var_start + 1]) && strlen($parts[$var_start + 1]) > 0) - { - $var_page = $parts[$var_start + 1]; - - if(($var_table == "ext" || $var_table == "sites") && $var_page == "item" && $var_subpage != "comments") - { - $var_include = "external.php"; - } - } - - if(isset($parts[$var_start + 2]) && strlen($parts[$var_start + 2]) > 0) - { - $var_id = $parts[$var_start + 2]; - } - } - elseif($var_section != "radio") - { - // Handle static pages - $var_section = "static"; - if(isset($parts[$var_start + 1])) - { - $var_table = $parts[$var_start + 1]; - } - else - { - $var_section = "error"; - $var_code = 404; - } - } - } -} - -$_INCLUDED = true; -require($var_include); - -?> diff --git a/public_html/script2.js b/public_html/script2.js deleted file mode 100755 index 9d30649..0000000 --- a/public_html/script2.js +++ /dev/null @@ -1,83 +0,0 @@ -var debugEl; -var pr_img; - -function vote(c,id) -{ - var obj=newAjaxObject(); - obj.onreadystatechange=function() - { - if(obj.readyState==4) - { - $('vote'+id).innerHTML = obj.responseText; - $('votebuttons'+id).innerHTML = ""; - } - } - obj.open('GET', 'vote.php?c='+c+'&i='+id, true); - obj.send(null); -} - -function switchTab(tabElement) -{ - $(tabElement).siblings('.tab-active').removeClass('tab-active').addClass('tab'); - $(tabElement).addClass('tab-active').removeClass('tab'); -} - -function initialize() -{ - pr_img = $(".pressrelease-image img")[0]; - if(pr_img != null) - { - var real_width; - $("") - .attr("src", $(pr_img).attr("src")) - .load(function() - { - real_width = this.width; - if(real_width < 900) - { - $(pr_img).removeAttr("width"); - } - }); - } -} - -/*function get_filler() -{ - // Dirty hack to avoid the 'press releases' section resizing when switching tabs - return "placeholder placeholder placeholder"; -}*/ - -function replyToComment(element) -{ - var el = $(element).parent().parent().parent().children('.c-reply'); - var itemid = trim(el.text()); - el.html("^Post reply"); - el.css({'display':'block'}); - return false; -} - -function trim(value) -{ - value = value.replace(/^\s+/,''); - value = value.replace(/\s+$/,''); - return value; -} - -function voteUp(id, token) -{ - $('.votebuttons'+id).load("/process.vote.php?id="+id+"&vote=up&token="+token); - $('.votecount'+id).html(parseInt($('.votecount'+id).html()) + 1); - return false; -} - -function voteDown(id, token) -{ - $('.votebuttons'+id).load("/process.vote.php?id="+id+"&vote=down&token="+token); - $('.votecount'+id).html(parseInt($('.votecount'+id).html()) - 1); - return false; -} - -$(function(){ - initialize(); -}); - diff --git a/public_html/static/anon.static.php b/public_html/static/anon.static.php deleted file mode 100644 index ef4b63b..0000000 --- a/public_html/static/anon.static.php +++ /dev/null @@ -1,9 +0,0 @@ - -AnonNews is not just for AnonOps. -AnonNews was made for anything involving Anonymous - that means you do not need to be affiliated or involved with a specific network or group. No matter -who you are affiliated with - or whether you are affiliated with anything or anyone at all! - you're welcome to post on AnonNews, as long as you follow the -same relevancy guidelines as everyone else (everything that does not fit in the main sections, can generally go in the forum). -AnonNews also does not promote any particular group or network over another - this is a 'neutral' site, not taking any sides. -We would also like to remind you that AnonOps does not equal Anonymous, and that no single group or network can be representative of Anonymous as a whole. -If anyone claims to 'represent' Anonymous, he lies - no exceptions. Anonymous is also not a democratic body, which means a majority of anons (if this is -something that can be measured in the first place) can not be considered representative of Anonymous either. diff --git a/public_html/static/donate.static.php b/public_html/static/donate.static.php deleted file mode 100755 index 7899452..0000000 --- a/public_html/static/donate.static.php +++ /dev/null @@ -1,11 +0,0 @@ - - -Donate to AnonNews -AnonNews accepts donations through various methods. If you want to use PayPal or Flattr, use one of the buttons at the top of the page. - -You can also donate using Bitcoin. Bitcoin is an open-source, anonymous, and decentralized P2P currency (that means noone has control over it), that you can use to easily donate to AnonNews. For more information about Bitcoin, visit -WeUseCoins (video) or the Bitcoin website. - -To send a Bitcoin donation to AnonNews, you can send Bitcoins to the following address: 1PPVupRRz7tHvfvJWEDBnDr7bFVFFYLu6G. - -Thanks for supporting AnonNews! diff --git a/public_html/static/faq.static.php b/public_html/static/faq.static.php deleted file mode 100755 index 1ce3c32..0000000 --- a/public_html/static/faq.static.php +++ /dev/null @@ -1,53 +0,0 @@ - - - Frequently Asked Questions - This section will discuss some questions that come up fairly often. If you have any other relevant questions, feel free to join the IRC channel. - - How can I join Anonymous? - This question comes up quite often. Anonymous does not have a membership list, and you can't really 'join' it either. If you identify with or say you are Anonymous, you are Anonymous. - Noone has the authority to say whether you are Anonymous or not, except for yourself. - - How can I talk to Anonymous? - Anons can be found all over the world - and all over the internet. There are no leaders or official spokespersons, and no official websites, IRC networks, or anything else. Basically, if you want - to talk to Anonymous, join a random IRC network or forum and start talking to anons! A starting point may be, for example, the AnonNews IRC channel. - - Isn't AnonNews just for AnonOps? - No, not at all! Any anon is welcome to post on AnonNews, and there is no active affiliation with AnonOps. You can read more about this issue here. - - I don't like this press release! How can I get it removed? - You can't. AnonNews is uncensored (but moderated), and everyone has equal rights to post press releases (or forum posts, or anything else). As long as something - is relevant and fits the guidelines, it will be published, regardless of pressure to take it down. There is one exception to this rule, and that is press releases that pretend to be made by the staff - of a specific network or operation, while actually being made by an outsider. In this case the network/operation staff can request removal of the press release (this only goes for operations and - networks with a defined leadership structure). Other than the aforementioned situation, don't bother trying to get something removed. - - Why was my submission rejected? - If your submission doesn't show up after a while, that means it probably didn't fit the guidelines. If you think a submission was rejected in error, you can contact an administrator in the - IRC channel. Please don't resubmit your submissions. - - How do I upvote a press release? - To upvote a press release, you will have to post a comment that is at least 2 lines long, and at least 100 characters long. This is to prevent pointless '+1' posts just to upvote a press release. - Simply enter a comment, and if your comment is long enough, a checkbox to upvote the press release will appear on the captcha verification page. - - Do you keep IPs? - Short answer: no. - Longer answer: no, with a few exceptions. To prevent double voting, salted hashes of partial IPs are kept - these should be practically useless if someone were to gain access to the database. - The fact that only partial IPs are used for these hashes means that occasionally a vote may not be counted correctly, however this should not happen very often. The other situation is the spamfilter. - If your submission hits a severe spamfilter, your submission will be blocked, and the IP you are submitting from will be saved - the submission will be reviewed in 24 hours, and if it turns out your - submission was legitimate, your IP will be removed from the system. Most 'suspicious' submissions will be held for review, rather than being outright blocked - in this case, your IP is NOT kept. If - you do manage to hit a severe spamfilter and your submission was indeed malicious/spam, your IP may be banned (thus stored in the banlist). - No access logs or other logs with identifying information are kept on the server. You can visit the site and post submissions from TOR, VPNs, or other anonymization networks, however most of the - time your submission will be held for review when using one of these methods. - - How does the spamfilter work? - AnonNews uses a custom spam score system, where a 'score' is assigned, depending on several characteristics of a submission. Several factors that play a role for submissions are banned IPs, blocked - domains, blacklisted keywords, DNSBL-listed IPs, and other things. Depending on your spam score, the submission is either directly visible, held for manual review, or outright blocked. For comments, - several text characteristics are analyzed such as the amount of lines, average length and variation in length of lines, special characters ratio, and amount of URLs. - - Can I use the press releases or forum posts on AnonNews elsewhere? - Yes, all user-submitted content is automatically licensed under a Creative Commons Attribution license. This means that you are free to reuse and remix content, both for commercial and non-commercial - purposes, as long as you give credit to the original author. If no specific author is outlined, you should attribute to 'Anonymous' and place a backlink to the relevant page on AnonNews. - - Can I use the design / source code / etc. of AnonNews? - Yes, AnonNews is licensed under the WTFPL, meaning you can pretty much do with it what you want. No attribution required, no restrictions whatsoever. Be aware that some third-party code is used - that may have separate restrictions - this is detailed in the LICENSE file of the source code package. You can download the source code here. - diff --git a/public_html/static/forumrules.static.php b/public_html/static/forumrules.static.php deleted file mode 100755 index e2e84a3..0000000 --- a/public_html/static/forumrules.static.php +++ /dev/null @@ -1,25 +0,0 @@ - - - Forum Rules - The AnonNews forums are very loosely moderated, in fact very little will be removed - however, there are a few rules. - - No malicious or commercial content - Content that is harmful towards users is not allowed. That means no posting of malware, phishers, etc. Commercial/promotional content is also not allowed - this includes merchandise and 'content farms' - that are obviously designed for turning a profit. Content that carries serious legal liability (such as child porn or fraud) is also not allowed, to protect the AnonNews infrastructure. Discussion about - these subjects is allowed, as long as no practical instructions and/or actual content is provided. - - No organizing of outright illegal operations - Because of legal liability, organizing Anonymous Operations that are based on outright illegal activity - such as LOIC/DDoS operations - should not be organized from these forums. Discussing them - is of course allowed, as long as no actual organization takes place (that means no posting of targets and manuals and such). There are plenty of places to organize these kind of operations, look at the - Related Sites section for some examples. - - Threads have to be relevant - Except for the offtopic forum, all threads should have at least some relevancy to (a part of) Anonymous. Discussing things that are not directly related but may be of interest to Anonymous, is of course - allowed. Please don't post 'how do I hack' topics anywhere, for those kinds of things there are sites like HackForums. - - Users are encouraged to post in the right sections - While there is no real moderation on this, you are encouraged to post topics in the 'appropriate' categories - this will ensure that those interested in the subject will read them. This is not a real - "rule", topics will not be moved when placed in the wrong section. - - - diff --git a/public_html/static/irc.static.php b/public_html/static/irc.static.php deleted file mode 100755 index e1bc448..0000000 --- a/public_html/static/irc.static.php +++ /dev/null @@ -1,18 +0,0 @@ - -IRC -AnonNews has an IRC channel on Cryto IRC, for support, questions, moderator applications, and general chit-chat. TOR users are welcome, however abusing IPs will -receive a temporary ban from the network. If you cannot connect through a TOR node, VPN, or proxy, please try using a different TOR identity / proxy / VPN IP. An I2P tunnel is planned, but not yet operational. -Important: AnonNews is not affiliated with AnonOps or any other Anonymous-related website, network, or infrastructure. If you have complaints about an Anonymous Operation, please directly -contact those responsible for the organization - AnonNews has nothing to do with it, and is just a news platform. - - For webchat users: - Visit http://irc.lc/cryto/anonnews to use our web IRC client. No downloads or plugins are required. - Please do not 'slap' other users, this is considered rude. - - - For users with an IRC client: - Server: irc.cryto.net - Port: 6667 (regular) / 6697 (SSL) - Channel: #anonnews - For those that do not wish to connect to a US-based server, you can connect to nijaxor.cryto.net (NL), haless.cryto.net (DE), or konjassiem.cryto.net (DE). - diff --git a/public_html/static/moderation.static.php b/public_html/static/moderation.static.php deleted file mode 100755 index 86a8057..0000000 --- a/public_html/static/moderation.static.php +++ /dev/null @@ -1,28 +0,0 @@ - -Moderation is not censorship. -A question / criticism that comes up rather often is that AnonNews would be exercising censorship on submissions. This page will explain why this is not the case, and what the difference between -moderation and censorship is. - -What is censorship? -Censorship is, generally speaking, attempting to filter out morally objectionable content - this can be news, images, music or anything else, and what classifies as 'morally objectionable' will differ -for everyone, based on their personal moral standpoints and opinions. The key here is that censorship revolves around specific ideas or information of which the spreading is actively hindered, based on -personal ideals. - -How is this different from moderation? -Moderation, in the case of AnonNews, is the removal of content that is not relevant to 'Anonymous', is intended to cause harm to the machines of visitors, or attempts to exploit visitors. This means -that links to malware, scams, or news that is not about Anonymous (as well as things that are not put in the right category) will be removed. This is not based on any personal ideals, and the actual -message or opinion in said content does not play a role. Potentially 'offensive' content is not moderated, as even controversial ideas should have a voice. - -How does moderation on AnonNews work? -There is a group of moderators, and anyone can apply to become a moderator. As a general rule of thumb, anyone who applies will become a moderator, and no 'screening' is done. The platform is made to -allow rollbacks in case of abuse, so there is very little harm that can be done by a moderator. If a moderator exhibits unsuitable behaviour (such as removing content based on personal morals) he will lose -his moderator status, to ensure that AnonNews only has mods that are capable of objective analysis. -Moderators are encouraged to not read any submissions before approving or rejecting them. The general rule of thumb is to use the browsers search-in-page feature to determine whether -'Anonymous' is mentioned somewhere in the article, and to quickly skim the text to get an idea of whether it's actually news, or something else (like an opinion blogpost). In the case of press releases, -moderators are encouraged to only look at the grammar, spelling, and formatting - and to check whether any part of the press release claims to speak for all of Anonymous. That's it. -TL;DR moderation is generally speaking done without even paying attention to what the article is about. - -About the comments sections and the forums -"Regular" moderators do not have access to moderate comments or forum posts. This is because there is not really a need for a large moderation team - the only rules are that you cannot organize illegal -Anonymous Operations such as DDoS operations (this is in order to protect the AnonNews infrastructure), and that you cannot post malware / scams, or posts that are intended to make the pages unreasonably -long, such as posts that contain entire books (yes, it has been done.) diff --git a/public_html/static/mods.static.php b/public_html/static/mods.static.php deleted file mode 100755 index 49e8216..0000000 --- a/public_html/static/mods.static.php +++ /dev/null @@ -1,14 +0,0 @@ - -AnonNews is looking for moderators! -We are looking for people that have the time (and capability) to moderate incoming submissions. The most important requirements for being a moderator: - - You must be able to moderate submissions solely based on relevancy. You must be able to leave out your own personal morals in moderation. - You must be present in the AnonNews (staff) IRC channel regularly. - You must be tech-savvy enough to distinguish potentially harmful links from genuine links. - You must have read and understood the guidelines for the submission of press releases, external news, and related sites. - You must be able to speak and understand English. - -Being a moderator does not require an e-mail address, real name, or any other personally identifiable information - all that is needed is a username and a password. -Be aware that all moderation decisions are logged, and that intentionally bad moderation or unwillingness to follow the guidelines may result in your moderator account being disabled. -This includes exercising moderation based on personal morals. -To apply for being a moderator, join the IRC channel. diff --git a/public_html/static/noise.dict b/public_html/static/noise.dict deleted file mode 100755 index e041843..0000000 --- a/public_html/static/noise.dict +++ /dev/null @@ -1,494 +0,0 @@ -able -about -above -acid -across -actually -after -again -against -ago -ai -all -almost -alors -already -also -alter -although -always -am -among -an -and -angry -another -any -anyway -appropriate -are -around -as -at -aussi -automatic -autre -autres -available -avant -awake -aware -away -back -bad -basic -be -beautiful -because -been -before -being -bent -better -between -big -bitter -black -blue -boiling -both -bright -broken -brown -but -by -came -can -cause -ceci -cela -central -certain -certainly -ces -ceux-ci -cheap -chemical -chief -clean -clear -clearly -close -cold -come -comme -common -complete -complex -concerned -conscious -could -cruel -current -cut -dans -dark -de -dead -dear -deep -delicate -dependent -depuis -des -did -different -difficult -dirty -do -does -down -dry -du -due -each -early -east -easy -economic -either -elastic -electric -elle -else -enough -equal -especially -est -et -eux -even -ever -every -exactly -false -far -fat -feeble -female -fertile -few -final -finalty -financial -fine -first -fixed -flat -following -foolish -for -foreign -form -former -forward -free -frequent -from -full -further -future -general -generality -get -give -go -good -got -great -green -grey/gray -had -half -hanging -happy -hard -has -have -he -healthy -heavy -help -her -here -high -him -himself -his -hollow -home -how -however -human -ici -if -il -ill -ils -important -in -indeed -individual -industrial -instead -international -into -is -it -its -je -just -keep -kind -la -labor -large -last -late -later -le -least -left -legal -les -less -let -leur -leurs -like -likely -line -little -living -local -long -loose -loud -low -lui -là -ma -main -mais -major -make -male -many -married -material -may -maybe -me -mean -medical -mes -might -military -mixed -modern -moi -moins -mon -more -most -much -must -my -name -narrow -national -natural -near -nearly -necessary -never -new -next -nice -no -nor -normal -north -nos -not -notre -nous -now -obviously -of -off -often -okay -old -on -once -one -only -open -opposite -or -original -other -ou -our -out -over -own -par -parallel -particular -particularly -past -perhaps -personal -physical -please -plus -political -poor -popular -possible -pour -present -previous -prime -private -probable -probably -professional -public -put -que -quick -quickly -quiet -quite -rather -ready -real -really -recent -recently -red -regular -responsible -right -rough -round -royal -sa -sad -safe -said -same -say -second -secret -see -seem -send -separate -serious -ses -several -shall -sharp -short -should -shut -significant -similar -simple -simply -since -single -slow -small -smooth -so -social -soft -solid -some -sometimes -son -soon -sorry -south -special -specific -sticky -stiff -still -straight -strange -strong -successful -such -sudden -suddenly -sure -sweet -ta -take -tall -tel -tes -than -that -the -their -them -then -there -therefore -these -they -thick -thin -think -this -those -though -through -thus -tight -till -tired -to -today -together -toi -tomorrow -ton -too -top -total -tous -tout -true -tu -turn -un -under -une -unless -until -up -use -used -useful -usually -various -very -violent -vos -votre -vous -waiting -warm -was -way -we -well -were -west -wet -what -whatever -when -where -whether -which -while -white -who -whole -whose -why -wide -will -wise -with -would -wrong -yeah -yellow -yes -yesterday -yet -you -young -your -brought -love diff --git a/public_html/static/radio.static.php b/public_html/static/radio.static.php deleted file mode 100755 index 6fdac18..0000000 --- a/public_html/static/radio.static.php +++ /dev/null @@ -1,4 +0,0 @@ - -AnonNews Radio has been discontinued -AnonNews Radio no longer exists. Although this may change in the future, there are no direct plans to set up AnonNews Radio again. -If you are looking for new music, a good place to look would be Jamendo - a website with thousands of freely shareable (Creative Commons-licensed) tracks. diff --git a/public_html/style2.css b/public_html/style2.css deleted file mode 100755 index c6d3ad2..0000000 --- a/public_html/style2.css +++ /dev/null @@ -1,755 +0,0 @@ -.c-actions -{ - bottom: 0; - position: absolute; - right: 0; -} -.c-actions-button -{ - border: 1px solid #CACACA; - display: block; - float: right; - font-size: 14px; - font-weight: 700; - margin: 4px; - padding: 2px 5px; -} -.c-actions-button:hover -{ - background-color: #E9E9E9; - border: 1px solid #000; -} -.c-body -{ - padding-bottom: 25px; - text-align: justify; -} -.c-children -{ - padding-left: 30px; -} -.c-meta -{ - background-color: #E8E8E8; - border-radius: 5px; - margin-bottom: 9px; - moz-border-radius: 5px; - padding: 4px 8px; -} -.c-meta-date -{ - float: right; - font-style: italic; -} -.c-outer -{ - min-height: 95px; - padding: 8px; -} -.c-outer,.c-small -{ - background-color: #DADADA; - border: 1px solid #888; - margin-top: 10px; - position: relative; -} -.c-reply -{ - display: none; - padding-left: 20px; -} -.c-reply button,.c-comment button -{ - font-size: 16px; - margin-top: 6px; -} -.c-reply div.button,.c-comment div.button -{ - text-align: right; -} -.c-reply input,.c-reply textarea,.c-comment input,.c-comment textarea -{ - border: 1px solid #000; -} -.c-reply input,.c-reply textarea,.c-reply div.button,.c-comment input,.c-comment textarea,.c-comment div.button -{ - box-sizing: border-box; - display: block; - padding: 4px; - width: 80%; -} -.c-reply textarea,.c-comment textarea -{ - font-size: 16px; - height: 250px; -} -.c-reply-header -{ - font-size: 19px; - font-weight: 700; - margin-top: 7px; -} -.c-small -{ - color: #505050; - padding: 4px; -} -.c-small .c-actions-button -{ - margin: 2px; -} -.c-small-inner -{ - padding: 3px; -} -.c-spacer -{ - margin-top: 30px; -} -.forum-buttons a -{ - border: 1px solid #C6C6C6; - display: block; - float: right; - margin-bottom: 5px; - padding: 5px; - text-decoration: none; -} -.forum-buttons a:hover -{ - background-color: #DEDEDE; - border: 1px solid gray; -} -.forum-header -{ - font-size: 18px; - font-weight: 700; - margin-bottom: 16px; - margin-top: 12px; - text-align: center; -} -.forum-header-category-threads,.forum-header-category-posts,.forum-header-threads-replies -{ - width: 70px; -} -.forum-item-category-threads,.forum-item-category-posts,.forum-item-threads-replies -{ - font-size: 28px; - font-weight: 700; -} -.forum-post -{ - background-color: #DEDEDE; - border: 1px solid silver; - margin-top: 16px; -} -.forum-post-body -{ - font-size: 15px; - padding: 9px 14px; - text-align: justify; - width: 682px; -} -.forum-post-date -{ - font-size: 13px; - margin-bottom: 9px; - margin-top: 6px; -} -.forum-post-first -{ - border: 1px solid gray; -} -.forum-post-meta -{ - background-color: #D4D4D4; - padding: 9px 6px; - width: 178px; -} -.forum-post-meta,.forum-post-body -{ - float: left; -} -.forum-post-user -{ - font-size: 18px; - font-weight: 700; -} -.forum-table .forum-item-category-name,.forum-table .forum-item-threads-name -{ - padding: 0; -} -.forum-table th -{ - background-color: #D8D8D8; - text-align: left; -} -.forum-table th,.forum-table td -{ - padding: 7px; -} -.forum-table,.forum-buttons,.forum-post,.forum-reply -{ - margin: 0 auto; - width: 900px; -} -.forum-table,.forum-table th,.forum-table td -{ - border: 1px solid #C6C6C6; - border-collapse: collapse; -} -.forum-table-date,.forum-table-teaser -{ - font-size: 13px; -} -.forum-table-link -{ - border: none; - display: block; - padding: 7px; -} -.forum-table-link:hover -{ - background-color: #DCDCDC; - border: none; -} -.forum-table-name -{ - font-size: 19px; - font-weight: 700; -} -@font-face -{ - font-family: 'Muli'; - font-style: normal; - font-weight: 400; - src: local('Muli Light'), local('Muli-Light'), url('http://tahoe-gateway.cryto.net:3719/download/VVJJOkNISzpjcWE1M3FhZTd6NXlsM3JuMmVkcGdzaHRvcTozMm9rbDN4Mmdsd2twM21mcG4yNGJ0M2RmZ2Zqb2NhM2hqaHRleTI3Nmo3cmlsdW92b3BhOjM6NjozMzkyNA==/anonnews.woff') format('woff'); -} -a -{ - border-bottom: 1px dashed; - color: #000; - text-decoration: none; -} -a.comments -{ - display: block; - float: right; - margin-right: 9px; - padding: 3px 4px 6px; - text-decoration: none; -} -a.comments span.count -{ - display: block; - font-size: 20px; - line-height: 17px; - margin-bottom: 0; - margin-left: auto; - margin-right: auto; -} -a.comments span.under -{ - display: block; - font-size: 8px; - line-height: 6px; - margin-left: auto; - margin-right: auto; - margin-top: 0; -} -a.header-button,div.header-button -{ - border: 1px solid #696969; - border-radius: 10px; - color: #202020; - display: block; - float: left; - font-size: 20px; - margin: 5px; - moz-border-radius: 10px; - overflow: hidden; - padding: 8px; - text-decoration: none; -} -a.header-button:hover,a.section-button:hover -{ - background-color: #EFEFEF; - border: 1px solid #000; - color: #242424; - text-decoration: none; -} -a.hidden -{ - display: block; - font-size: 13px; - margin-top: 19px; -} -a.minus -{ - color: red; - padding-left: 8px; - padding-right: 8px; -} -a.name -{ - border-bottom: none; - display: inline; - line-height: 32px; - padding: 6px; - text-decoration: none; -} -a.page-button,div.page-button -{ - border: 1px solid #696969; - border-radius: 10px; - color: #202020; - font-size: 16px; - margin: 1px; - moz-border-radius: 10px; - overflow: hidden; - padding: 8px; - text-decoration: none; -} -a.page-button:hover -{ - background-color: #D8D8D8; - border: 1px solid #000; - color: #242424; - text-decoration: none; -} -a.plus -{ - color: lime; - padding-left: 4px; - padding-right: 4px; -} -a.plus,a.minus,a.comments -{ - border-bottom: none; -} -a.plus,a.minus,div.votestate -{ - display: block; - float: right; - padding-bottom: 3px; - padding-right: 3px; - text-decoration: none; -} -a.plus:hover,a.minus:hover,a.comments:hover -{ - background-color: gray; - color: #FFF; -} -a.readmore -{ - color: #000; - margin-left: 12px; - text-decoration: none; -} -a.readmore:hover,a.name:hover -{ - text-decoration: underline; -} -a.section-button -{ - border: 1px solid #DDD; - border-radius: 10px; - color: #EFEFEF; - display: block; - float: right; - font-size: 14px; - margin: 5px; - moz-border-radius: 10px; - padding: 6px; - text-decoration: none; -} -a.small -{ - display: inline; - margin-left: 8px; -} -a.tab -{ - border-bottom: 1px solid #000; -} -a.tab,a.tab-active -{ - background-color: #DDD; - border: 1px solid #000; - border-top-left-radius: 7px; - border-top-right-radius: 7px; - font-size: 18px; - font-weight: 400; - moz-border-radius-topleft: 7px; - moz-border-radius-topright: 7px; - padding: 5px 5px 4px; - text-decoration: none; -} -a.tab-active,a.tab:hover -{ - background-color: #7D7D7D; - color: #EFEFEF; -} -a:hover -{ - border-bottom: 1px solid; -} -button.hiddenreply -{ - float: right; -} -div.body-main -{ - padding: 3px 13px; -} -div.cc-notice -{ - background-color: #D9D9D9; - border: 1px solid #000; - border-radius: 8px; - font-size: 11px; - margin: 0 auto; - moz-border-radius: 8px; - padding: 4px; - width: 80%; -} -div.cc-notice img -{ - float: left; - margin-right: 6px; -} -div.clear -{ - clear: both; -} -div.comment -{ - background-color: #E0E0E0; - border: 1px solid #000; - font-size: 16px; - margin-bottom: 18px; - padding: 16px; -} -div.form-notice -{ - background-color: #FFEFBE; - background-image: url(http://tahoe-gateway.cryto.net:3719/download/VVJJOkNISzp5anRpYzc1b24zemx3M2k0MnJ0ajN4Y2Z5eTpqcGt1aXJkcXhiYnU3bnUzdjdycngyZWFhejd3cGpqZzY1d3ptbG81NnY3Y21mNGh4aDRhOjM6Njo2NjY=/error.png); - background-position: 6px 3px; - background-repeat: no-repeat; - border: 1px solid #735600; - border-radius: 10px; - box-sizing: border-box; - font-size: 12px; - khtml-box-sizing: border-box; - margin-bottom: 3px; - moz-border-radius: 10px; - moz-box-sizing: border-box; - ms-box-sizing: border-box; - padding: 5px 5px 5px 27px; - webkit-border-radius: 10px; - webkit-box-sizing: border-box; - width: 80%; -} -div.header,.forum-reply -{ - margin-top: 16px; -} -div.hiddenreply -{ - background-color: silver; - border: 1px solid #000; - display: none; - margin-top: 6px; - padding: 4px; - width: 358px; -} -div.highlighted -{ - background-color: #FBEC99; -} -div.item -{ - background-color: #DDD; - border: 1px solid gray; - border-radius: 8px; - font-size: 16px; - margin-top: 3px; - moz-border-radius: 8px; - padding: 0; -} -div.normalcomments -{ - background-color: silver; - border: 1px solid #000; - padding: 4px; - width: 358px; -} -div.note -{ - font-size: 12px; - margin-top: 6px; -} -div.page-list -{ - padding: 0 15px; - text-align: center; -} -div.page-list a -{ - border: none; - line-height: 180%; - margin: 2px 0; - padding: 3px 4px 3px 3px; - text-decoration: none; -} -div.page-list a:hover -{ - outline: 1px dashed #000; -} -div.page-list-bottom -{ - margin-top: 11px; -} -div.page-list-top -{ - margin-bottom: 11px; - margin-top: 11px; -} -div.pagecontent -{ - margin: 12px; -} -div.pressrelease -{ - margin: 0 auto; - text-align: justify; - width: 900px; -} -div.pressrelease p -{ - margin-bottom: 9px; - margin-top: 4px; -} -div.pressrelease-image -{ - margin-bottom: 15px; - padding: 0; - text-align: center; -} -div.pressrelease-image img -{ - margin: 0; -} -div.section -{ - background-color: #7D7D7D; - border: 1px solid #000; - border-radius: 14px; - moz-border-radius: 14px; - padding: 4px; -} -div.section-header -{ - color: #5B5B5B; - font-size: 23px; - font-weight: 700; - margin-bottom: 3px; -} -div.section-wrapper -{ - margin: 0 auto 17px; - width: 98%; -} -div.small -{ - background-color: #E1E1E1; - border-color: gray; - padding: 8px; -} -div.sort-options -{ - float: right; - font-size: 13px; - margin-bottom: 6px; -} -div.sort-options a,input.empty -{ - color: gray; -} -div.sort-options a.active -{ - border-bottom-style: solid; - color: #000; -} -div.sort-options a:hover -{ - border-bottom-style: dashed; - color: #000; -} -div.source-notice -{ - text-align: center; -} -div.submit -{ - margin-top: 15px; - text-align: center; - width: 80%; -} -div.submit button -{ - font-size: 19px; -} -div.submit-loader -{ - display: none; - font-size: 16px; - text-align: center; - width: 80%; -} -div.topbar -{ - background-color: #E0E0E0; - border-bottom: 1px solid gray; - font-size: 18px; - margin-bottom: 15px; - padding: 3px 12px; - text-align: left; -} -div.upvotes -{ - color: green; - float: right; - margin-right: 8px; -} -form h4 -{ - font-size: 22px; - margin-bottom: 2px; - margin-top: 14px; -} -form.forum input,form.forum textarea,form.forum select -{ - font-size: 17px; - padding: 4px; - width: 100%; -} -form.forum textarea -{ - height: 200px; -} -form.submission input,form.submission textarea,form.submission select -{ - font-size: 24px; - padding: 5px; - width: 80%; -} -form.submission input,form.submission textarea,form.submission select,form.forum input,form.forum textarea,form.forum select -{ - background-color: #F1F1F1; - border: 1px solid #000; - box-sizing: border-box; - display: block; - khtml-box-sizing: border-box; - moz-box-sizing: border-box; - ms-box-sizing: border-box; - webkit-box-sizing: border-box; -} -form.submission input.upload,.c-reply input,.c-comment input -{ - font-size: 17px; -} -form.submission textarea -{ - height: 400px; -} -form.submission textarea,form.forum textarea -{ - font-size: 14px; -} -h1 -{ - background-color: #D7D7D7; - border-bottom: 1px solid gray; - font-weight: 400; - margin-bottom: 0; - margin-top: 0; - padding: 10px; -} -h1 img,h1 input -{ - font-size: 2px; -} -h1,h1 a -{ - border-bottom: none; - color: #3B3B3B; -} -h2 -{ - color: #3D3D3D; - display: inline; - padding: 7px; -} -h3 -{ - margin-bottom: 2px; -} -h5 -{ - border-bottom: 1px solid #000; - font-size: 26px; - margin-bottom: 15px; - margin-top: 3px; - padding-bottom: 7px; -} -html,body -{ - background-color: #EBEBEB; - font-family: Muli, Verdana, Arial; - height: 100%; - margin: 0; - padding: 0; -} -img.loader -{ - display: none; - float: left; - margin-left: 5px; - margin-top: 9px; -} -span.smallcomment -{ - color: #242424; -} -span.spacer -{ - font-size: 1px; -} -span.strong,a.tab-active,span.bold,div.page-list a.current,.c-meta-name -{ - font-weight: 700; -} -span.votecount -{ - float: right; - padding-right: 6px; -} -span.votes -{ - float: right; - font-size: 24px; - font-weight: 700; - padding-right: 9px; -} -strong.hidden -{ - display: block; - margin-bottom: 3px; -} -textarea.reply -{ - font-family: arial; - height: 140px; - width: 350px; -} diff --git a/public_html/tiny_mce/langs/en.js b/public_html/tiny_mce/langs/en.js deleted file mode 100755 index ea4a1b0..0000000 --- a/public_html/tiny_mce/langs/en.js +++ /dev/null @@ -1,170 +0,0 @@ -tinyMCE.addI18n({en:{ -common:{ -edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", -apply:"Apply", -insert:"Insert", -update:"Update", -cancel:"Cancel", -close:"Close", -browse:"Browse", -class_name:"Class", -not_set:"-- Not set --", -clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?", -clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.", -popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.", -invalid_data:"Error: Invalid values entered, these are marked in red.", -more_colors:"More colors" -}, -contextmenu:{ -align:"Alignment", -left:"Left", -center:"Center", -right:"Right", -full:"Full" -}, -insertdatetime:{ -date_fmt:"%Y-%m-%d", -time_fmt:"%H:%M:%S", -insertdate_desc:"Insert date", -inserttime_desc:"Insert time", -months_long:"January,February,March,April,May,June,July,August,September,October,November,December", -months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", -day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", -day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun" -}, -print:{ -print_desc:"Print" -}, -preview:{ -preview_desc:"Preview" -}, -directionality:{ -ltr_desc:"Direction left to right", -rtl_desc:"Direction right to left" -}, -layer:{ -insertlayer_desc:"Insert new layer", -forward_desc:"Move forward", -backward_desc:"Move backward", -absolute_desc:"Toggle absolute positioning", -content:"New layer..." -}, -save:{ -save_desc:"Save", -cancel_desc:"Cancel all changes" -}, -nonbreaking:{ -nonbreaking_desc:"Insert non-breaking space character" -}, -iespell:{ -iespell_desc:"Run spell checking", -download:"ieSpell not detected. Do you want to install it now?" -}, -advhr:{ -advhr_desc:"Horizontal rule" -}, -emotions:{ -emotions_desc:"Emotions" -}, -searchreplace:{ -search_desc:"Find", -replace_desc:"Find/Replace" -}, -advimage:{ -image_desc:"Insert/edit image" -}, -advlink:{ -link_desc:"Insert/edit link" -}, -xhtmlxtras:{ -cite_desc:"Citation", -abbr_desc:"Abbreviation", -acronym_desc:"Acronym", -del_desc:"Deletion", -ins_desc:"Insertion", -attribs_desc:"Insert/Edit Attributes" -}, -style:{ -desc:"Edit CSS Style" -}, -paste:{ -paste_text_desc:"Paste as Plain Text", -paste_word_desc:"Paste from Word", -selectall_desc:"Select All", -plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.", -plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode." -}, -paste_dlg:{ -text_title:"Use CTRL+V on your keyboard to paste the text into the window.", -text_linebreaks:"Keep linebreaks", -word_title:"Use CTRL+V on your keyboard to paste the text into the window." -}, -table:{ -desc:"Inserts a new table", -row_before_desc:"Insert row before", -row_after_desc:"Insert row after", -delete_row_desc:"Delete row", -col_before_desc:"Insert column before", -col_after_desc:"Insert column after", -delete_col_desc:"Remove column", -split_cells_desc:"Split merged table cells", -merge_cells_desc:"Merge table cells", -row_desc:"Table row properties", -cell_desc:"Table cell properties", -props_desc:"Table properties", -paste_row_before_desc:"Paste table row before", -paste_row_after_desc:"Paste table row after", -cut_row_desc:"Cut table row", -copy_row_desc:"Copy table row", -del:"Delete table", -row:"Row", -col:"Column", -cell:"Cell" -}, -autosave:{ -unload_msg:"The changes you made will be lost if you navigate away from this page.", -restore_content:"Restore auto-saved content.", -warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?." -}, -fullscreen:{ -desc:"Toggle fullscreen mode" -}, -media:{ -desc:"Insert / edit embedded media", -edit:"Edit embedded media" -}, -fullpage:{ -desc:"Document properties" -}, -template:{ -desc:"Insert predefined template content" -}, -visualchars:{ -desc:"Visual control characters on/off." -}, -spellchecker:{ -desc:"Toggle spellchecker", -menu:"Spellchecker settings", -ignore_word:"Ignore word", -ignore_words:"Ignore all", -langs:"Languages", -wait:"Please wait...", -sug:"Suggestions", -no_sug:"No suggestions", -no_mpell:"No misspellings found." -}, -pagebreak:{ -desc:"Insert page break." -}, -advlist:{ -types:"Types", -def:"Default", -lower_alpha:"Lower alpha", -lower_greek:"Lower greek", -lower_roman:"Lower roman", -upper_alpha:"Upper alpha", -upper_roman:"Upper roman", -circle:"Circle", -disc:"Disc", -square:"Square" -}}}); \ No newline at end of file diff --git a/public_html/tiny_mce/license.txt b/public_html/tiny_mce/license.txt deleted file mode 100755 index 60d6d4c..0000000 --- a/public_html/tiny_mce/license.txt +++ /dev/null @@ -1,504 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - - diff --git a/public_html/tiny_mce/plugins/advhr/css/advhr.css b/public_html/tiny_mce/plugins/advhr/css/advhr.css deleted file mode 100755 index 0e22834..0000000 --- a/public_html/tiny_mce/plugins/advhr/css/advhr.css +++ /dev/null @@ -1,5 +0,0 @@ -input.radio {border:1px none #000; background:transparent; vertical-align:middle;} -.panel_wrapper div.current {height:80px;} -#width {width:50px; vertical-align:middle;} -#width2 {width:50px; vertical-align:middle;} -#size {width:100px;} diff --git a/public_html/tiny_mce/plugins/advhr/editor_plugin.js b/public_html/tiny_mce/plugins/advhr/editor_plugin.js deleted file mode 100755 index 4d3b062..0000000 --- a/public_html/tiny_mce/plugins/advhr/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js b/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js deleted file mode 100755 index 0c652d3..0000000 --- a/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedHRPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceAdvancedHr', function() { - ed.windowManager.open({ - file : url + '/rule.htm', - width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), - height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('advhr', { - title : 'advhr.advhr_desc', - cmd : 'mceAdvancedHr' - }); - - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('advhr', n.nodeName == 'HR'); - }); - - ed.onClick.add(function(ed, e) { - e = e.target; - - if (e.nodeName === 'HR') - ed.selection.select(e); - }); - }, - - getInfo : function() { - return { - longname : 'Advanced HR', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/js/rule.js b/public_html/tiny_mce/plugins/advhr/js/rule.js deleted file mode 100755 index b6cbd66..0000000 --- a/public_html/tiny_mce/plugins/advhr/js/rule.js +++ /dev/null @@ -1,43 +0,0 @@ -var AdvHRDialog = { - init : function(ed) { - var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; - - w = dom.getAttrib(n, 'width'); - f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); - f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; - f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); - selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); - }, - - update : function() { - var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; - - h = ''; - - ed.execCommand("mceInsertContent", false, h); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.requireLangPack(); -tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog); diff --git a/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js b/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js deleted file mode 100755 index 873bfd8..0000000 --- a/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js +++ /dev/null @@ -1,5 +0,0 @@ -tinyMCE.addI18n('en.advhr_dlg',{ -width:"Width", -size:"Height", -noshade:"No shadow" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/rule.htm b/public_html/tiny_mce/plugins/advhr/rule.htm deleted file mode 100755 index fc37b2a..0000000 --- a/public_html/tiny_mce/plugins/advhr/rule.htm +++ /dev/null @@ -1,57 +0,0 @@ - - - - {#advhr.advhr_desc} - - - - - - - - - - - {#advhr.advhr_desc} - - - - - - - - {#advhr_dlg.width} - - - - px - % - - - - - {#advhr_dlg.size} - - Normal - 1 - 2 - 3 - 4 - 5 - - - - {#advhr_dlg.noshade} - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advimage/css/advimage.css b/public_html/tiny_mce/plugins/advimage/css/advimage.css deleted file mode 100755 index 0a6251a..0000000 --- a/public_html/tiny_mce/plugins/advimage/css/advimage.css +++ /dev/null @@ -1,13 +0,0 @@ -#src_list, #over_list, #out_list {width:280px;} -.mceActionPanel {margin-top:7px;} -.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} -.checkbox {border:0;} -.panel_wrapper div.current {height:305px;} -#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} -#align, #classlist {width:150px;} -#width, #height {vertical-align:middle; width:50px; text-align:center;} -#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} -#class_list {width:180px;} -input {width: 280px;} -#constrain, #onmousemovecheck {width:auto;} -#id, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/public_html/tiny_mce/plugins/advimage/editor_plugin.js b/public_html/tiny_mce/plugins/advimage/editor_plugin.js deleted file mode 100755 index 4c7a9c3..0000000 --- a/public_html/tiny_mce/plugins/advimage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js b/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js deleted file mode 100755 index 2625dd2..0000000 --- a/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedImagePlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceAdvImage', function() { - // Internal image object like a flash placeholder - if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) - return; - - ed.windowManager.open({ - file : url + '/image.htm', - width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)), - height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('image', { - title : 'advimage.image_desc', - cmd : 'mceAdvImage' - }); - }, - - getInfo : function() { - return { - longname : 'Advanced image', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advimage/image.htm b/public_html/tiny_mce/plugins/advimage/image.htm deleted file mode 100755 index 79cff3f..0000000 --- a/public_html/tiny_mce/plugins/advimage/image.htm +++ /dev/null @@ -1,232 +0,0 @@ - - - - {#advimage_dlg.dialog_title} - - - - - - - - - - - - - {#advimage_dlg.tab_general} - {#advimage_dlg.tab_appearance} - {#advimage_dlg.tab_advanced} - - - - - - - {#advimage_dlg.general} - - - - {#advimage_dlg.src} - - - - - - - - - {#advimage_dlg.image_list} - - - - {#advimage_dlg.alt} - - - - {#advimage_dlg.title} - - - - - - - {#advimage_dlg.preview} - - - - - - - {#advimage_dlg.tab_appearance} - - - - {#advimage_dlg.align} - - {#not_set} - {#advimage_dlg.align_baseline} - {#advimage_dlg.align_top} - {#advimage_dlg.align_middle} - {#advimage_dlg.align_bottom} - {#advimage_dlg.align_texttop} - {#advimage_dlg.align_textbottom} - {#advimage_dlg.align_left} - {#advimage_dlg.align_right} - - - - - - Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam - nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum - edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam - erat volutpat. - - - - - - {#advimage_dlg.dimensions} - - x - px - - - - - - - - - {#advimage_dlg.constrain_proportions} - - - - - - {#advimage_dlg.vspace} - - - - - - {#advimage_dlg.hspace} - - - - - {#advimage_dlg.border} - - - - - {#class_name} - - - - - {#advimage_dlg.style} - - - - - - - - - - - {#advimage_dlg.swap_image} - - - {#advimage_dlg.alt_image} - - - - {#advimage_dlg.mouseover} - - - - - - - - - {#advimage_dlg.image_list} - - - - {#advimage_dlg.mouseout} - - - - - - - - - {#advimage_dlg.image_list} - - - - - - - {#advimage_dlg.misc} - - - - {#advimage_dlg.id} - - - - - {#advimage_dlg.langdir} - - - {#not_set} - {#advimage_dlg.ltr} - {#advimage_dlg.rtl} - - - - - - {#advimage_dlg.langcode} - - - - - - - {#advimage_dlg.map} - - - - - - - {#advimage_dlg.long_desc} - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advimage/img/sample.gif b/public_html/tiny_mce/plugins/advimage/img/sample.gif deleted file mode 100755 index 53bf689..0000000 Binary files a/public_html/tiny_mce/plugins/advimage/img/sample.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/advimage/js/image.js b/public_html/tiny_mce/plugins/advimage/js/image.js deleted file mode 100755 index 3bda86a..0000000 --- a/public_html/tiny_mce/plugins/advimage/js/image.js +++ /dev/null @@ -1,443 +0,0 @@ -var ImageDialog = { - preInit : function() { - var url; - - tinyMCEPopup.requireLangPack(); - - if (url = tinyMCEPopup.getParam("external_image_list_url")) - document.write(''); - }, - - init : function(ed) { - var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); - - tinyMCEPopup.resizeToInnerSize(); - this.fillClassList('class_list'); - this.fillFileList('src_list', 'tinyMCEImageList'); - this.fillFileList('over_list', 'tinyMCEImageList'); - this.fillFileList('out_list', 'tinyMCEImageList'); - TinyMCE_EditableSelects.init(); - - if (n.nodeName == 'IMG') { - nl.src.value = dom.getAttrib(n, 'src'); - nl.width.value = dom.getAttrib(n, 'width'); - nl.height.value = dom.getAttrib(n, 'height'); - nl.alt.value = dom.getAttrib(n, 'alt'); - nl.title.value = dom.getAttrib(n, 'title'); - nl.vspace.value = this.getAttrib(n, 'vspace'); - nl.hspace.value = this.getAttrib(n, 'hspace'); - nl.border.value = this.getAttrib(n, 'border'); - selectByValue(f, 'align', this.getAttrib(n, 'align')); - selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true); - nl.style.value = dom.getAttrib(n, 'style'); - nl.id.value = dom.getAttrib(n, 'id'); - nl.dir.value = dom.getAttrib(n, 'dir'); - nl.lang.value = dom.getAttrib(n, 'lang'); - nl.usemap.value = dom.getAttrib(n, 'usemap'); - nl.longdesc.value = dom.getAttrib(n, 'longdesc'); - nl.insert.value = ed.getLang('update'); - - if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover'))) - nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); - - if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout'))) - nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); - - if (ed.settings.inline_styles) { - // Move attribs to styles - if (dom.getAttrib(n, 'align')) - this.updateStyle('align'); - - if (dom.getAttrib(n, 'hspace')) - this.updateStyle('hspace'); - - if (dom.getAttrib(n, 'border')) - this.updateStyle('border'); - - if (dom.getAttrib(n, 'vspace')) - this.updateStyle('vspace'); - } - } - - // Setup browse button - document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); - if (isVisible('srcbrowser')) - document.getElementById('src').style.width = '260px'; - - // Setup browse button - document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image'); - if (isVisible('overbrowser')) - document.getElementById('onmouseoversrc').style.width = '260px'; - - // Setup browse button - document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image'); - if (isVisible('outbrowser')) - document.getElementById('onmouseoutsrc').style.width = '260px'; - - // If option enabled default contrain proportions to checked - if (ed.getParam("advimage_constrain_proportions", true)) - f.constrain.checked = true; - - // Check swap image if valid data - if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value) - this.setSwapImage(true); - else - this.setSwapImage(false); - - this.changeAppearance(); - this.showPreviewImage(nl.src.value, 1); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, t = this, f = document.forms[0]; - - if (f.src.value === '') { - if (ed.selection.getNode().nodeName == 'IMG') { - ed.dom.remove(ed.selection.getNode()); - ed.execCommand('mceRepaint'); - } - - tinyMCEPopup.close(); - return; - } - - if (tinyMCEPopup.getParam("accessibility_warnings", 1)) { - if (!f.alt.value) { - tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) { - if (s) - t.insertAndClose(); - }); - - return; - } - } - - t.insertAndClose(); - }, - - insertAndClose : function() { - var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el; - - tinyMCEPopup.restoreSelection(); - - // Fixes crash in Safari - if (tinymce.isWebKit) - ed.getWin().focus(); - - if (!ed.settings.inline_styles) { - args = { - vspace : nl.vspace.value, - hspace : nl.hspace.value, - border : nl.border.value, - align : getSelectValue(f, 'align') - }; - } else { - // Remove deprecated values - args = { - vspace : '', - hspace : '', - border : '', - align : '' - }; - } - - tinymce.extend(args, { - src : nl.src.value, - width : nl.width.value, - height : nl.height.value, - alt : nl.alt.value, - title : nl.title.value, - 'class' : getSelectValue(f, 'class_list'), - style : nl.style.value, - id : nl.id.value, - dir : nl.dir.value, - lang : nl.lang.value, - usemap : nl.usemap.value, - longdesc : nl.longdesc.value - }); - - args.onmouseover = args.onmouseout = ''; - - if (f.onmousemovecheck.checked) { - if (nl.onmouseoversrc.value) - args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';"; - - if (nl.onmouseoutsrc.value) - args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';"; - } - - el = ed.selection.getNode(); - - if (el && el.nodeName == 'IMG') { - ed.dom.setAttribs(el, args); - } else { - ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); - ed.dom.setAttribs('__mce_tmp', args); - ed.dom.setAttrib('__mce_tmp', 'id', ''); - ed.undoManager.add(); - } - - tinyMCEPopup.close(); - }, - - getAttrib : function(e, at) { - var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; - - if (ed.settings.inline_styles) { - switch (at) { - case 'align': - if (v = dom.getStyle(e, 'float')) - return v; - - if (v = dom.getStyle(e, 'vertical-align')) - return v; - - break; - - case 'hspace': - v = dom.getStyle(e, 'margin-left') - v2 = dom.getStyle(e, 'margin-right'); - - if (v && v == v2) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - - case 'vspace': - v = dom.getStyle(e, 'margin-top') - v2 = dom.getStyle(e, 'margin-bottom'); - if (v && v == v2) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - - case 'border': - v = 0; - - tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { - sv = dom.getStyle(e, 'border-' + sv + '-width'); - - // False or not the same as prev - if (!sv || (sv != v && v !== 0)) { - v = 0; - return false; - } - - if (sv) - v = sv; - }); - - if (v) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - } - } - - if (v = dom.getAttrib(e, at)) - return v; - - return ''; - }, - - setSwapImage : function(st) { - var f = document.forms[0]; - - f.onmousemovecheck.checked = st; - setBrowserDisabled('overbrowser', !st); - setBrowserDisabled('outbrowser', !st); - - if (f.over_list) - f.over_list.disabled = !st; - - if (f.out_list) - f.out_list.disabled = !st; - - f.onmouseoversrc.disabled = !st; - f.onmouseoutsrc.disabled = !st; - }, - - fillClassList : function(id) { - var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; - - if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { - cl = []; - - tinymce.each(v.split(';'), function(v) { - var p = v.split('='); - - cl.push({'title' : p[0], 'class' : p[1]}); - }); - } else - cl = tinyMCEPopup.editor.dom.getClasses(); - - if (cl.length > 0) { - lst.options.length = 0; - lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); - - tinymce.each(cl, function(o) { - lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); - }); - } else - dom.remove(dom.getParent(id, 'tr')); - }, - - fillFileList : function(id, l) { - var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; - - l = window[l]; - lst.options.length = 0; - - if (l && l.length > 0) { - lst.options[lst.options.length] = new Option('', ''); - - tinymce.each(l, function(o) { - lst.options[lst.options.length] = new Option(o[0], o[1]); - }); - } else - dom.remove(dom.getParent(id, 'tr')); - }, - - resetImageData : function() { - var f = document.forms[0]; - - f.elements.width.value = f.elements.height.value = ''; - }, - - updateImageData : function(img, st) { - var f = document.forms[0]; - - if (!st) { - f.elements.width.value = img.width; - f.elements.height.value = img.height; - } - - this.preloadImg = img; - }, - - changeAppearance : function() { - var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg'); - - if (img) { - if (ed.getParam('inline_styles')) { - ed.dom.setAttrib(img, 'style', f.style.value); - } else { - img.align = f.align.value; - img.border = f.border.value; - img.hspace = f.hspace.value; - img.vspace = f.vspace.value; - } - } - }, - - changeHeight : function() { - var f = document.forms[0], tp, t = this; - - if (!f.constrain.checked || !t.preloadImg) { - return; - } - - if (f.width.value == "" || f.height.value == "") - return; - - tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height; - f.height.value = tp.toFixed(0); - }, - - changeWidth : function() { - var f = document.forms[0], tp, t = this; - - if (!f.constrain.checked || !t.preloadImg) { - return; - } - - if (f.width.value == "" || f.height.value == "") - return; - - tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width; - f.width.value = tp.toFixed(0); - }, - - updateStyle : function(ty) { - var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value}); - - if (tinyMCEPopup.editor.settings.inline_styles) { - // Handle align - if (ty == 'align') { - dom.setStyle(img, 'float', ''); - dom.setStyle(img, 'vertical-align', ''); - - v = getSelectValue(f, 'align'); - if (v) { - if (v == 'left' || v == 'right') - dom.setStyle(img, 'float', v); - else - img.style.verticalAlign = v; - } - } - - // Handle border - if (ty == 'border') { - dom.setStyle(img, 'border', ''); - - v = f.border.value; - if (v || v == '0') { - if (v == '0') - img.style.border = '0'; - else - img.style.border = v + 'px solid black'; - } - } - - // Handle hspace - if (ty == 'hspace') { - dom.setStyle(img, 'marginLeft', ''); - dom.setStyle(img, 'marginRight', ''); - - v = f.hspace.value; - if (v) { - img.style.marginLeft = v + 'px'; - img.style.marginRight = v + 'px'; - } - } - - // Handle vspace - if (ty == 'vspace') { - dom.setStyle(img, 'marginTop', ''); - dom.setStyle(img, 'marginBottom', ''); - - v = f.vspace.value; - if (v) { - img.style.marginTop = v + 'px'; - img.style.marginBottom = v + 'px'; - } - } - - // Merge - dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img'); - } - }, - - changeMouseMove : function() { - }, - - showPreviewImage : function(u, st) { - if (!u) { - tinyMCEPopup.dom.setHTML('prev', ''); - return; - } - - if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) - this.resetImageData(); - - u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u); - - if (!st) - tinyMCEPopup.dom.setHTML('prev', ''); - else - tinyMCEPopup.dom.setHTML('prev', ''); - } -}; - -ImageDialog.preInit(); -tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js b/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js deleted file mode 100755 index f493d19..0000000 --- a/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js +++ /dev/null @@ -1,43 +0,0 @@ -tinyMCE.addI18n('en.advimage_dlg',{ -tab_general:"General", -tab_appearance:"Appearance", -tab_advanced:"Advanced", -general:"General", -title:"Title", -preview:"Preview", -constrain_proportions:"Constrain proportions", -langdir:"Language direction", -langcode:"Language code", -long_desc:"Long description link", -style:"Style", -classes:"Classes", -ltr:"Left to right", -rtl:"Right to left", -id:"Id", -map:"Image map", -swap_image:"Swap image", -alt_image:"Alternative image", -mouseover:"for mouse over", -mouseout:"for mouse out", -misc:"Miscellaneous", -example_img:"Appearance preview image", -missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.", -dialog_title:"Insert/edit image", -src:"Image URL", -alt:"Image description", -list:"Image list", -border:"Border", -dimensions:"Dimensions", -vspace:"Vertical space", -hspace:"Horizontal space", -align:"Alignment", -align_baseline:"Baseline", -align_top:"Top", -align_middle:"Middle", -align_bottom:"Bottom", -align_texttop:"Text top", -align_textbottom:"Text bottom", -align_left:"Left", -align_right:"Right", -image_list:"Image list" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/css/advlink.css b/public_html/tiny_mce/plugins/advlink/css/advlink.css deleted file mode 100755 index 1436431..0000000 --- a/public_html/tiny_mce/plugins/advlink/css/advlink.css +++ /dev/null @@ -1,8 +0,0 @@ -.mceLinkList, .mceAnchorList, #targetlist {width:280px;} -.mceActionPanel {margin-top:7px;} -.panel_wrapper div.current {height:320px;} -#classlist, #title, #href {width:280px;} -#popupurl, #popupname {width:200px;} -#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} -#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} -#events_panel input {width:200px;} diff --git a/public_html/tiny_mce/plugins/advlink/editor_plugin.js b/public_html/tiny_mce/plugins/advlink/editor_plugin.js deleted file mode 100755 index 983fe5a..0000000 --- a/public_html/tiny_mce/plugins/advlink/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js b/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js deleted file mode 100755 index 14e46a7..0000000 --- a/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedLinkPlugin', { - init : function(ed, url) { - this.editor = ed; - - // Register commands - ed.addCommand('mceAdvLink', function() { - var se = ed.selection; - - // No selection and not in link - if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A')) - return; - - ed.windowManager.open({ - file : url + '/link.htm', - width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)), - height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('link', { - title : 'advlink.link_desc', - cmd : 'mceAdvLink' - }); - - ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink'); - - ed.onNodeChange.add(function(ed, cm, n, co) { - cm.setDisabled('link', co && n.nodeName != 'A'); - cm.setActive('link', n.nodeName == 'A' && !n.name); - }); - }, - - getInfo : function() { - return { - longname : 'Advanced link', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/js/advlink.js b/public_html/tiny_mce/plugins/advlink/js/advlink.js deleted file mode 100755 index b78e82f..0000000 --- a/public_html/tiny_mce/plugins/advlink/js/advlink.js +++ /dev/null @@ -1,528 +0,0 @@ -/* Functions for the advlink plugin popup */ - -tinyMCEPopup.requireLangPack(); - -var templates = { - "window.open" : "window.open('${url}','${target}','${options}')" -}; - -function preinit() { - var url; - - if (url = tinyMCEPopup.getParam("external_link_list_url")) - document.write(''); -} - -function changeClass() { - var f = document.forms[0]; - - f.classes.value = getSelectValue(f, 'classlist'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - var inst = tinyMCEPopup.editor; - var elm = inst.selection.getNode(); - var action = "insert"; - var html; - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); - document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); - document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); - document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); - document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); - - // Link list - html = getLinkListHTML('linklisthref','href'); - if (html == "") - document.getElementById("linklisthrefrow").style.display = 'none'; - else - document.getElementById("linklisthrefcontainer").innerHTML = html; - - // Resize some elements - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '260px'; - - if (isVisible('popupurlbrowser')) - document.getElementById('popupurl').style.width = '180px'; - - elm = inst.dom.getParent(elm, "A"); - if (elm != null && elm.nodeName == "A") - action = "update"; - - formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true); - - setPopupControlsDisabled(true); - - if (action == "update") { - var href = inst.dom.getAttrib(elm, 'href'); - var onclick = inst.dom.getAttrib(elm, 'onclick'); - - // Setup form data - setFormValue('href', href); - setFormValue('title', inst.dom.getAttrib(elm, 'title')); - setFormValue('id', inst.dom.getAttrib(elm, 'id')); - setFormValue('style', inst.dom.getAttrib(elm, "style")); - setFormValue('rel', inst.dom.getAttrib(elm, 'rel')); - setFormValue('rev', inst.dom.getAttrib(elm, 'rev')); - setFormValue('charset', inst.dom.getAttrib(elm, 'charset')); - setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang')); - setFormValue('dir', inst.dom.getAttrib(elm, 'dir')); - setFormValue('lang', inst.dom.getAttrib(elm, 'lang')); - setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); - setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); - setFormValue('type', inst.dom.getAttrib(elm, 'type')); - setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus')); - setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur')); - setFormValue('onclick', onclick); - setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick')); - setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown')); - setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup')); - setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover')); - setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove')); - setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout')); - setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress')); - setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown')); - setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup')); - setFormValue('target', inst.dom.getAttrib(elm, 'target')); - setFormValue('classes', inst.dom.getAttrib(elm, 'class')); - - // Parse onclick data - if (onclick != null && onclick.indexOf('window.open') != -1) - parseWindowOpen(onclick); - else - parseFunction(onclick); - - // Select by the values - selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir')); - selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel')); - selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev')); - selectByValue(formObj, 'linklisthref', href); - - if (href.charAt(0) == '#') - selectByValue(formObj, 'anchorlist', href); - - addClassesToList('classlist', 'advlink_styles'); - - selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true); - selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true); - } else - addClassesToList('classlist', 'advlink_styles'); -} - -function checkPrefix(n) { - if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) - n.value = 'mailto:' + n.value; - - if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) - n.value = 'http://' + n.value; -} - -function setFormValue(name, value) { - document.forms[0].elements[name].value = value; -} - -function parseWindowOpen(onclick) { - var formObj = document.forms[0]; - - // Preprocess center code - if (onclick.indexOf('return false;') != -1) { - formObj.popupreturn.checked = true; - onclick = onclick.replace('return false;', ''); - } else - formObj.popupreturn.checked = false; - - var onClickData = parseLink(onclick); - - if (onClickData != null) { - formObj.ispopup.checked = true; - setPopupControlsDisabled(false); - - var onClickWindowOptions = parseOptions(onClickData['options']); - var url = onClickData['url']; - - formObj.popupname.value = onClickData['target']; - formObj.popupurl.value = url; - formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); - formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); - - formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); - formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); - - if (formObj.popupleft.value.indexOf('screen') != -1) - formObj.popupleft.value = "c"; - - if (formObj.popuptop.value.indexOf('screen') != -1) - formObj.popuptop.value = "c"; - - formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; - formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; - formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; - formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; - formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; - formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; - formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; - - buildOnClick(); - } -} - -function parseFunction(onclick) { - var formObj = document.forms[0]; - var onClickData = parseLink(onclick); - - // TODO: Add stuff here -} - -function getOption(opts, name) { - return typeof(opts[name]) == "undefined" ? "" : opts[name]; -} - -function setPopupControlsDisabled(state) { - var formObj = document.forms[0]; - - formObj.popupname.disabled = state; - formObj.popupurl.disabled = state; - formObj.popupwidth.disabled = state; - formObj.popupheight.disabled = state; - formObj.popupleft.disabled = state; - formObj.popuptop.disabled = state; - formObj.popuplocation.disabled = state; - formObj.popupscrollbars.disabled = state; - formObj.popupmenubar.disabled = state; - formObj.popupresizable.disabled = state; - formObj.popuptoolbar.disabled = state; - formObj.popupstatus.disabled = state; - formObj.popupreturn.disabled = state; - formObj.popupdependent.disabled = state; - - setBrowserDisabled('popupurlbrowser', state); -} - -function parseLink(link) { - link = link.replace(new RegExp(''', 'g'), "'"); - - var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); - - // Is function name a template function - var template = templates[fnName]; - if (template) { - // Build regexp - var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); - var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; - var replaceStr = ""; - for (var i=0; i"; - } else - regExp += ".*"; - } - - regExp += "\\);?"; - - // Build variable array - var variables = []; - variables["_function"] = fnName; - var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split(''); - for (var i=0; i'; - html += '---'; - - for (i=0; i' + name + ''; - } - - html += ''; - - return html; -} - -function insertAction() { - var inst = tinyMCEPopup.editor; - var elm, elementArray, i; - - elm = inst.selection.getNode(); - checkPrefix(document.forms[0].href); - - elm = inst.dom.getParent(elm, "A"); - - // Remove element if there is no href - if (!document.forms[0].href.value) { - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - i = inst.selection.getBookmark(); - inst.dom.remove(elm, 1); - inst.selection.moveToBookmark(i); - tinyMCEPopup.execCommand("mceEndUndoLevel"); - tinyMCEPopup.close(); - return; - } - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - // Create new anchor elements - if (elm == null) { - inst.getDoc().execCommand("unlink", false, null); - tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); - - elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); - for (i=0; i---'; - - for (var i=0; i' + tinyMCELinkList[i][0] + ''; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -function getTargetListHTML(elm_id, target_form_element) { - var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';'); - var html = ''; - - html += ''; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_same') + ''; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)'; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)'; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)'; - - for (var i=0; i' + value + ' (' + key + ')'; - } - - html += ''; - - return html; -} - -// While loading -preinit(); -tinyMCEPopup.onInit.add(init); diff --git a/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js b/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js deleted file mode 100755 index c71ffbd..0000000 --- a/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js +++ /dev/null @@ -1,52 +0,0 @@ -tinyMCE.addI18n('en.advlink_dlg',{ -title:"Insert/edit link", -url:"Link URL", -target:"Target", -titlefield:"Title", -is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", -is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", -list:"Link list", -general_tab:"General", -popup_tab:"Popup", -events_tab:"Events", -advanced_tab:"Advanced", -general_props:"General properties", -popup_props:"Popup properties", -event_props:"Events", -advanced_props:"Advanced properties", -popup_opts:"Options", -anchor_names:"Anchors", -target_same:"Open in this window / frame", -target_parent:"Open in parent window / frame", -target_top:"Open in top frame (replaces all frames)", -target_blank:"Open in new window", -popup:"Javascript popup", -popup_url:"Popup URL", -popup_name:"Window name", -popup_return:"Insert 'return false'", -popup_scrollbars:"Show scrollbars", -popup_statusbar:"Show status bar", -popup_toolbar:"Show toolbars", -popup_menubar:"Show menu bar", -popup_location:"Show location bar", -popup_resizable:"Make window resizable", -popup_dependent:"Dependent (Mozilla/Firefox only)", -popup_size:"Size", -popup_position:"Position (X/Y)", -id:"Id", -style:"Style", -classes:"Classes", -target_name:"Target name", -langdir:"Language direction", -target_langcode:"Target language", -langcode:"Language code", -encoding:"Target character encoding", -mime:"Target MIME type", -rel:"Relationship page to target", -rev:"Relationship target to page", -tabindex:"Tabindex", -accesskey:"Accesskey", -ltr:"Left to right", -rtl:"Right to left", -link_list:"Link list" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/link.htm b/public_html/tiny_mce/plugins/advlink/link.htm deleted file mode 100755 index 876669c..0000000 --- a/public_html/tiny_mce/plugins/advlink/link.htm +++ /dev/null @@ -1,333 +0,0 @@ - - - - {#advlink_dlg.title} - - - - - - - - - - - - {#advlink_dlg.general_tab} - {#advlink_dlg.popup_tab} - {#advlink_dlg.events_tab} - {#advlink_dlg.advanced_tab} - - - - - - - {#advlink_dlg.general_props} - - - - {#advlink_dlg.url} - - - - - - - - - {#advlink_dlg.list} - - - - {#advlink_dlg.anchor_names} - - - - {#advlink_dlg.target} - - - - {#advlink_dlg.titlefield} - - - - {#class_name} - - - {#not_set} - - - - - - - - - - {#advlink_dlg.popup_props} - - - {#advlink_dlg.popup} - - - - {#advlink_dlg.popup_url} - - - - - - - - - - - {#advlink_dlg.popup_name} - - - - {#advlink_dlg.popup_size} - - x - px - - - - {#advlink_dlg.popup_position} - - / - (c /c = center) - - - - - - {#advlink_dlg.popup_opts} - - - - - {#advlink_dlg.popup_location} - - {#advlink_dlg.popup_scrollbars} - - - - {#advlink_dlg.popup_menubar} - - {#advlink_dlg.popup_resizable} - - - - {#advlink_dlg.popup_toolbar} - - {#advlink_dlg.popup_dependent} - - - - {#advlink_dlg.popup_statusbar} - - {#advlink_dlg.popup_return} - - - - - - - - - {#advlink_dlg.advanced_props} - - - - {#advlink_dlg.id} - - - - - {#advlink_dlg.style} - - - - - {#advlink_dlg.classes} - - - - - {#advlink_dlg.target_name} - - - - - {#advlink_dlg.langdir} - - - {#not_set} - {#advlink_dlg.ltr} - {#advlink_dlg.rtl} - - - - - - {#advlink_dlg.target_langcode} - - - - - {#advlink_dlg.langcode} - - - - - - - {#advlink_dlg.encoding} - - - - - {#advlink_dlg.mime} - - - - - {#advlink_dlg.rel} - - {#not_set} - Lightbox - Alternate - Designates - Stylesheet - Start - Next - Prev - Contents - Index - Glossary - Copyright - Chapter - Subsection - Appendix - Help - Bookmark - No Follow - Tag - - - - - - {#advlink_dlg.rev} - - {#not_set} - Alternate - Designates - Stylesheet - Start - Next - Prev - Contents - Index - Glossary - Copyright - Chapter - Subsection - Appendix - Help - Bookmark - - - - - - {#advlink_dlg.tabindex} - - - - - {#advlink_dlg.accesskey} - - - - - - - - - {#advlink_dlg.event_props} - - - - onfocus - - - - - onblur - - - - - onclick - - - - - ondblclick - - - - - onmousedown - - - - - onmouseup - - - - - onmouseover - - - - - onmousemove - - - - - onmouseout - - - - - onkeypress - - - - - onkeydown - - - - - onkeyup - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advlist/editor_plugin.js b/public_html/tiny_mce/plugins/advlist/editor_plugin.js deleted file mode 100755 index 02d1697..0000000 --- a/public_html/tiny_mce/plugins/advlist/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("_mce_style")}}}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle"}).setDisabled(1);a(f[d],function(k){k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js b/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js deleted file mode 100755 index a61887a..0000000 --- a/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var each = tinymce.each; - - tinymce.create('tinymce.plugins.AdvListPlugin', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - function buildFormats(str) { - var formats = []; - - each(str.split(/,/), function(type) { - formats.push({ - title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')), - styles : { - listStyleType : type == 'default' ? '' : type - } - }); - }); - - return formats; - }; - - // Setup number formats from config or default - t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"); - t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square"); - }, - - createControl: function(name, cm) { - var t = this, btn, format; - - if (name == 'numlist' || name == 'bullist') { - // Default to first item if it's a default item - if (t[name][0].title == 'advlist.def') - format = t[name][0]; - - function hasFormat(node, format) { - var state = true; - - each(format.styles, function(value, name) { - // Format doesn't match - if (t.editor.dom.getStyle(node, name) != value) { - state = false; - return false; - } - }); - - return state; - }; - - function applyListFormat() { - var list, ed = t.editor, dom = ed.dom, sel = ed.selection; - - // Check for existing list element - list = dom.getParent(sel.getNode(), 'ol,ul'); - - // Switch/add list type if needed - if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format)) - ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList'); - - // Append styles to new list element - if (format) { - list = dom.getParent(sel.getNode(), 'ol,ul'); - - if (list) { - dom.setStyles(list, format.styles); - list.removeAttribute('_mce_style'); - } - } - }; - - btn = cm.createSplitButton(name, { - title : 'advanced.' + name + '_desc', - 'class' : 'mce_' + name, - onclick : function() { - applyListFormat(); - } - }); - - btn.onRenderMenu.add(function(btn, menu) { - menu.onShowMenu.add(function() { - var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList; - - if (list || format) { - fmtList = t[name]; - - // Unselect existing items - each(menu.items, function(item) { - var state = true; - - item.setSelected(0); - - if (list && !item.isDisabled()) { - each(fmtList, function(fmt) { - if (fmt.id == item.id) { - if (!hasFormat(list, fmt)) { - state = false; - return false; - } - } - }); - - if (state) - item.setSelected(1); - } - }); - - // Select the current format - if (!list) - menu.items[format.id].setSelected(1); - } - }); - - menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle'}).setDisabled(1); - - each(t[name], function(item) { - item.id = t.editor.dom.uniqueId(); - - menu.add({id : item.id, title : item.title, onclick : function() { - format = item; - applyListFormat(); - }}); - }); - }); - - return btn; - } - }, - - getInfo : function() { - return { - longname : 'Advanced lists', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autoresize/editor_plugin.js b/public_html/tiny_mce/plugins/autoresize/editor_plugin.js deleted file mode 100755 index 1676b15..0000000 --- a/public_html/tiny_mce/plugins/autoresize/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)})}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js b/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js deleted file mode 100755 index c260b7a..0000000 --- a/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - /** - * Auto Resize - * - * This plugin automatically resizes the content area to fit its content height. - * It will retain a minimum height, which is the height of the content area when - * it's initialized. - */ - tinymce.create('tinymce.plugins.AutoResizePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - var t = this; - - if (ed.getParam('fullscreen_is_enabled')) - return; - - /** - * This method gets executed each time the editor needs to resize. - */ - function resize() { - var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight; - - // Get height differently depending on the browser used - myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight; - - // Don't make it smaller than the minimum height - if (myHeight > t.autoresize_min_height) - resizeHeight = myHeight; - - // Resize content element - DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); - - // if we're throbbing, we'll re-throb to match the new size - if (t.throbbing) { - ed.setProgressState(false); - ed.setProgressState(true); - } - }; - - t.editor = ed; - - // Define minimum height - t.autoresize_min_height = ed.getElement().offsetHeight; - - // Add appropriate listeners for resizing content area - ed.onChange.add(resize); - ed.onSetContent.add(resize); - ed.onPaste.add(resize); - ed.onKeyUp.add(resize); - ed.onPostRender.add(resize); - - if (ed.getParam('autoresize_on_init', true)) { - // Things to do when the editor is ready - ed.onInit.add(function(ed, l) { - // Show throbber until content area is resized properly - ed.setProgressState(true); - t.throbbing = true; - - // Hide scrollbars - ed.getBody().style.overflowY = "hidden"; - }); - - ed.onLoadContent.add(function(ed, l) { - resize(); - - // Because the content area resizes when its content CSS loads, - // and we can't easily add a listener to its onload event, - // we'll just trigger a resize after a short loading period - setTimeout(function() { - resize(); - - // Disable throbber - ed.setProgressState(false); - t.throbbing = false; - }, 1250); - }); - } - - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceAutoResize', resize); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Auto Resize', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autosave/editor_plugin.js b/public_html/tiny_mce/plugins/autosave/editor_plugin.js deleted file mode 100755 index 6e48540..0000000 --- a/public_html/tiny_mce/plugins/autosave/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>|]*>/gi, "").length > 0) { - // Show confirm dialog if the editor isn't empty - ed.windowManager.confirm( - PLUGIN_NAME + ".warning_message", - function(ok) { - if (ok) - self.restoreDraft(); - } - ); - } else - self.restoreDraft(); - } - }); - - // Enable/disable restoredraft button depending on if there is a draft stored or not - ed.onNodeChange.add(function() { - var controlManager = ed.controlManager; - - if (controlManager.get(RESTORE_DRAFT)) - controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft()); - }); - - ed.onInit.add(function() { - // Check if the user added the restore button, then setup auto storage logic - if (ed.controlManager.get(RESTORE_DRAFT)) { - // Setup storage engine - self.setupStorage(ed); - - // Auto save contents each interval time - setInterval(function() { - self.storeDraft(); - ed.nodeChanged(); - }, settings.autosave_interval); - } - }); - - /** - * This event gets fired when a draft is stored to local storage. - * - * @event onStoreDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onStoreDraft = new Dispatcher(self); - - /** - * This event gets fired when a draft is restored from local storage. - * - * @event onStoreDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onRestoreDraft = new Dispatcher(self); - - /** - * This event gets fired when a draft removed/expired. - * - * @event onRemoveDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onRemoveDraft = new Dispatcher(self); - - // Add ask before unload dialog only add one unload handler - if (!unloadHandlerAdded) { - window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler; - unloadHandlerAdded = TRUE; - } - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Auto save', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - /** - * Returns an expiration date UTC string. - * - * @method getExpDate - * @return {String} Expiration date UTC string. - */ - getExpDate : function() { - return new Date( - new Date().getTime() + this.editor.settings.autosave_retention - ).toUTCString(); - }, - - /** - * This method will setup the storage engine. If the browser has support for it. - * - * @method setupStorage - */ - setupStorage : function(ed) { - var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK"; - - self.key = PLUGIN_NAME + ed.id; - - // Loop though each storage engine type until we find one that works - tinymce.each([ - function() { - // Try HTML5 Local Storage - if (localStorage) { - localStorage.setItem(testKey, testVal); - - if (localStorage.getItem(testKey) === testVal) { - localStorage.removeItem(testKey); - - return localStorage; - } - } - }, - - function() { - // Try HTML5 Session Storage - if (sessionStorage) { - sessionStorage.setItem(testKey, testVal); - - if (sessionStorage.getItem(testKey) === testVal) { - sessionStorage.removeItem(testKey); - - return sessionStorage; - } - } - }, - - function() { - // Try IE userData - if (tinymce.isIE) { - ed.getElement().style.behavior = "url('#default#userData')"; - - // Fake localStorage on old IE - return { - autoExpires : TRUE, - - setItem : function(key, value) { - var userDataElement = ed.getElement(); - - userDataElement.setAttribute(key, value); - userDataElement.expires = self.getExpDate(); - userDataElement.save("TinyMCE"); - }, - - getItem : function(key) { - var userDataElement = ed.getElement(); - - userDataElement.load("TinyMCE"); - - return userDataElement.getAttribute(key); - }, - - removeItem : function(key) { - ed.getElement().removeAttribute(key); - } - }; - } - }, - ], function(setup) { - // Try executing each function to find a suitable storage engine - try { - self.storage = setup(); - - if (self.storage) - return false; - } catch (e) { - // Ignore - } - }); - }, - - /** - * This method will store the current contents in the the storage engine. - * - * @method storeDraft - */ - storeDraft : function() { - var self = this, storage = self.storage, editor = self.editor, expires, content; - - // Is the contents dirty - if (storage) { - // If there is no existing key and the contents hasn't been changed since - // it's original value then there is no point in saving a draft - if (!storage.getItem(self.key) && !editor.isDirty()) - return; - - // Store contents if the contents if longer than the minlength of characters - content = editor.getContent({draft: true}); - if (content.length > editor.settings.autosave_minlength) { - expires = self.getExpDate(); - - // Store expiration date if needed IE userData has auto expire built in - if (!self.storage.autoExpires) - self.storage.setItem(self.key + "_expires", expires); - - self.storage.setItem(self.key, content); - self.onStoreDraft.dispatch(self, { - expires : expires, - content : content - }); - } - } - }, - - /** - * This method will restore the contents from the storage engine back to the editor. - * - * @method restoreDraft - */ - restoreDraft : function() { - var self = this, storage = self.storage; - - if (storage) { - content = storage.getItem(self.key); - - if (content) { - self.editor.setContent(content); - self.onRestoreDraft.dispatch(self, { - content : content - }); - } - } - }, - - /** - * This method will return true/false if there is a local storage draft available. - * - * @method hasDraft - * @return {boolean} true/false state if there is a local draft. - */ - hasDraft : function() { - var self = this, storage = self.storage, expDate, exists; - - if (storage) { - // Does the item exist at all - exists = !!storage.getItem(self.key); - if (exists) { - // Storage needs autoexpire - if (!self.storage.autoExpires) { - expDate = new Date(storage.getItem(self.key + "_expires")); - - // Contents hasn't expired - if (new Date().getTime() < expDate.getTime()) - return TRUE; - - // Remove it if it has - self.removeDraft(); - } else - return TRUE; - } - } - - return false; - }, - - /** - * Removes the currently stored draft. - * - * @method removeDraft - */ - removeDraft : function() { - var self = this, storage = self.storage, key = self.key, content; - - if (storage) { - // Get current contents and remove the existing draft - content = storage.getItem(key); - storage.removeItem(key); - storage.removeItem(key + "_expires"); - - // Dispatch remove event if we had any contents - if (content) { - self.onRemoveDraft.dispatch(self, { - content : content - }); - } - } - }, - - "static" : { - // Internal unload handler will be called before the page is unloaded - _beforeUnloadHandler : function(e) { - var msg; - - tinymce.each(tinyMCE.editors, function(ed) { - // Store a draft for each editor instance - if (ed.plugins.autosave) - ed.plugins.autosave.storeDraft(); - - // Never ask in fullscreen mode - if (ed.getParam("fullscreen_is_enabled")) - return; - - // Setup a return message if the editor is dirty - if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload")) - msg = ed.getLang("autosave.unload_msg"); - }); - - return msg; - } - } - }); - - tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave); -})(tinymce); diff --git a/public_html/tiny_mce/plugins/autosave/langs/en.js b/public_html/tiny_mce/plugins/autosave/langs/en.js deleted file mode 100755 index fce6bd3..0000000 --- a/public_html/tiny_mce/plugins/autosave/langs/en.js +++ /dev/null @@ -1,4 +0,0 @@ -tinyMCE.addI18n('en.autosave',{ -restore_content: "Restore auto-saved content", -warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin.js deleted file mode 100755 index 930fdff..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(//gi,"\n");b(//gi,"\n");b(//gi,"\n");b(//gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js deleted file mode 100755 index 5586637..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.BBCodePlugin', { - init : function(ed, url) { - var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); - - ed.onBeforeSetContent.add(function(ed, o) { - o.content = t['_' + dialect + '_bbcode2html'](o.content); - }); - - ed.onPostProcess.add(function(ed, o) { - if (o.set) - o.content = t['_' + dialect + '_bbcode2html'](o.content); - - if (o.get) - o.content = t['_' + dialect + '_html2bbcode'](o.content); - }); - }, - - getInfo : function() { - return { - longname : 'BBCode Plugin', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - // HTML -> BBCode in PunBB dialect - _punbb_html2bbcode : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: to [b] - rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); - rep(/(.*?)<\/font>/gi,"$1"); - rep(//gi,"[img]$1[/img]"); - rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); - rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); - rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); - rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); - rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); - rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); - rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); - rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); - rep(/<\/(strong|b)>/gi,"[/b]"); - rep(/<(strong|b)>/gi,"[b]"); - rep(/<\/(em|i)>/gi,"[/i]"); - rep(/<(em|i)>/gi,"[i]"); - rep(/<\/u>/gi,"[/u]"); - rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); - rep(//gi,"[u]"); - rep(/]*>/gi,"[quote]"); - rep(/<\/blockquote>/gi,"[/quote]"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,""); - rep(/<\/p>/gi,"\n"); - rep(/ /gi," "); - rep(/"/gi,"\""); - rep(/</gi,"<"); - rep(/>/gi,">"); - rep(/&/gi,"&"); - - return s; - }, - - // BBCode -> HTML from PunBB dialect - _punbb_bbcode2html : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: [b] to - rep(/\n/gi,""); - rep(/\[b\]/gi,""); - rep(/\[\/b\]/gi,""); - rep(/\[i\]/gi,""); - rep(/\[\/i\]/gi,""); - rep(/\[u\]/gi,""); - rep(/\[\/u\]/gi,""); - rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); - rep(/\[url\](.*?)\[\/url\]/gi,"$1"); - rep(/\[img\](.*?)\[\/img\]/gi,""); - rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); - rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); - rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); - - return s; - } - }); - - // Register plugin - tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js deleted file mode 100755 index 9749e51..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100755 index 13813a6..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; - - /** - * This plugin a context menu to TinyMCE editor instances. - * - * @class tinymce.plugins.ContextMenu - */ - tinymce.create('tinymce.plugins.ContextMenu', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @method init - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed) { - var t = this, lastRng; - - t.editor = ed; - - /** - * This event gets fired when the context menu is shown. - * - * @event onContextMenu - * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. - * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. - */ - t.onContextMenu = new tinymce.util.Dispatcher(this); - - ed.onContextMenu.add(function(ed, e) { - if (!e.ctrlKey) { - // Restore the last selection since it was removed - if (lastRng) - ed.selection.setRng(lastRng); - - t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', function(e) { - hide(ed, e); - }); - Event.cancel(e); - } - }); - - ed.onRemove.add(function() { - if (t._menu) - t._menu.removeAll(); - }); - - function hide(ed, e) { - lastRng = null; - - // Since the contextmenu event moves - // the selection we need to store it away - if (e && e.button == 2) { - lastRng = ed.selection.getRng(); - return; - } - - if (t._menu) { - t._menu.removeAll(); - t._menu.destroy(); - Event.remove(ed.getDoc(), 'click', hide); - } - }; - - ed.onMouseDown.add(hide); - ed.onKeyDown.add(hide); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Contextmenu', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - _getMenu : function(ed) { - var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; - - if (m) { - m.removeAll(); - m.destroy(); - } - - p1 = DOM.getPos(ed.getContentAreaContainer()); - p2 = DOM.getPos(ed.getContainer()); - - m = ed.controlManager.createDropMenu('contextmenu', { - offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), - offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), - constrain : 1 - }); - - t._menu = m; - - m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); - m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); - m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); - - if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { - m.addSeparator(); - m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); - m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); - } - - m.addSeparator(); - m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); - - m.addSeparator(); - am = m.addMenu({title : 'contextmenu.align'}); - am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); - am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); - am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); - am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); - - t.onContextMenu.dispatch(t, m, el, col); - - return m; - } - }); - - // Register plugin - tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin.js b/public_html/tiny_mce/plugins/directionality/editor_plugin.js deleted file mode 100755 index bce8e73..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js b/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js deleted file mode 100755 index 4444959..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.Directionality', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - ed.addCommand('mceDirectionLTR', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "ltr") - ed.dom.setAttrib(e, "dir", "ltr"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addCommand('mceDirectionRTL', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "rtl") - ed.dom.setAttrib(e, "dir", "rtl"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); - ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); - - ed.onNodeChange.add(t._nodeChange, t); - }, - - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - _nodeChange : function(ed, cm, n) { - var dom = ed.dom, dir; - - n = dom.getParent(n, dom.isBlock); - if (!n) { - cm.setDisabled('ltr', 1); - cm.setDisabled('rtl', 1); - return; - } - - dir = dom.getAttrib(n, 'dir'); - cm.setActive('ltr', dir == "ltr"); - cm.setDisabled('ltr', 0); - cm.setActive('rtl', dir == "rtl"); - cm.setDisabled('rtl', 0); - } - }); - - // Register plugin - tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin.js b/public_html/tiny_mce/plugins/emotions/editor_plugin.js deleted file mode 100755 index dbdd8ff..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js b/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js deleted file mode 100755 index 71d5416..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function(tinymce) { - tinymce.create('tinymce.plugins.EmotionsPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceEmotion', function() { - ed.windowManager.open({ - file : url + '/emotions.htm', - width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), - height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); - }, - - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); -})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/emotions.htm b/public_html/tiny_mce/plugins/emotions/emotions.htm deleted file mode 100755 index 55a1d72..0000000 --- a/public_html/tiny_mce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - - {#emotions_dlg.title} - - - - - - {#emotions_dlg.title}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif deleted file mode 100755 index ba90cc3..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif deleted file mode 100755 index 74d897a..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif deleted file mode 100755 index 963a96b..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif deleted file mode 100755 index 16f68cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif deleted file mode 100755 index 716f55e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif deleted file mode 100755 index 334d49e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif deleted file mode 100755 index 4efd549..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif deleted file mode 100755 index 1606c11..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif deleted file mode 100755 index ca2451e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif deleted file mode 100755 index b33d3cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif deleted file mode 100755 index e6a9e60..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif deleted file mode 100755 index cb99cdd..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif deleted file mode 100755 index 2075dc1..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif deleted file mode 100755 index bef7e25..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif deleted file mode 100755 index 9faf1af..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif deleted file mode 100755 index 648e6e8..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/js/emotions.js b/public_html/tiny_mce/plugins/emotions/js/emotions.js deleted file mode 100755 index c549367..0000000 --- a/public_html/tiny_mce/plugins/emotions/js/emotions.js +++ /dev/null @@ -1,22 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var EmotionsDialog = { - init : function(ed) { - tinyMCEPopup.resizeToInnerSize(); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, dom = ed.dom; - - tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { - src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, - alt : ed.getLang(title), - title : ed.getLang(title), - border : 0 - })); - - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js b/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js deleted file mode 100755 index 3b57ad9..0000000 --- a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js +++ /dev/null @@ -1,20 +0,0 @@ -tinyMCE.addI18n('en.emotions_dlg',{ -title:"Insert emotion", -desc:"Emotions", -cool:"Cool", -cry:"Cry", -embarassed:"Embarassed", -foot_in_mouth:"Foot in mouth", -frown:"Frown", -innocent:"Innocent", -kiss:"Kiss", -laughing:"Laughing", -money_mouth:"Money mouth", -sealed:"Sealed", -smile:"Smile", -surprised:"Surprised", -tongue_out:"Tongue out", -undecided:"Undecided", -wink:"Wink", -yell:"Yell" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/dialog.htm b/public_html/tiny_mce/plugins/example/dialog.htm deleted file mode 100755 index 50b2b34..0000000 --- a/public_html/tiny_mce/plugins/example/dialog.htm +++ /dev/null @@ -1,22 +0,0 @@ - - - - {#example_dlg.title} - - - - - - - Here is a example dialog. - Selected text: - Custom arg: - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/example/editor_plugin.js b/public_html/tiny_mce/plugins/example/editor_plugin.js deleted file mode 100755 index ec1f81e..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/editor_plugin_src.js b/public_html/tiny_mce/plugins/example/editor_plugin_src.js deleted file mode 100755 index 9a0e7da..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - // Load plugin specific language pack - tinymce.PluginManager.requireLangPack('example'); - - tinymce.create('tinymce.plugins.ExamplePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceExample', function() { - ed.windowManager.open({ - file : url + '/dialog.htm', - width : 320 + parseInt(ed.getLang('example.delta_width', 0)), - height : 120 + parseInt(ed.getLang('example.delta_height', 0)), - inline : 1 - }, { - plugin_url : url, // Plugin absolute URL - some_custom_arg : 'custom arg' // Custom argument - }); - }); - - // Register example button - ed.addButton('example', { - title : 'example.desc', - cmd : 'mceExample', - image : url + '/img/example.gif' - }); - - // Add a node change handler, selects the button in the UI when a image is selected - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('example', n.nodeName == 'IMG'); - }); - }, - - /** - * Creates control instances based in the incomming name. This method is normally not - * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons - * but you sometimes need to create more complex controls like listboxes, split buttons etc then this - * method can be used to create those. - * - * @param {String} n Name of the control to create. - * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. - * @return {tinymce.ui.Control} New control instance or null if no control was created. - */ - createControl : function(n, cm) { - return null; - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Example plugin', - author : 'Some author', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', - version : "1.0" - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/img/example.gif b/public_html/tiny_mce/plugins/example/img/example.gif deleted file mode 100755 index 1ab5da4..0000000 Binary files a/public_html/tiny_mce/plugins/example/img/example.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/example/js/dialog.js b/public_html/tiny_mce/plugins/example/js/dialog.js deleted file mode 100755 index fa83411..0000000 --- a/public_html/tiny_mce/plugins/example/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/public_html/tiny_mce/plugins/example/langs/en.js b/public_html/tiny_mce/plugins/example/langs/en.js deleted file mode 100755 index e0784f8..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example',{ - desc : 'This is just a template button' -}); diff --git a/public_html/tiny_mce/plugins/example/langs/en_dlg.js b/public_html/tiny_mce/plugins/example/langs/en_dlg.js deleted file mode 100755 index ebcf948..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en_dlg.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example_dlg',{ - title : 'This is just a example title' -}); diff --git a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css b/public_html/tiny_mce/plugins/fullpage/css/fullpage.css deleted file mode 100755 index 7a3334f..0000000 --- a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,182 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -#doctypes { - width: 200px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} - -textarea { - height: 55px; -} - -.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js b/public_html/tiny_mce/plugins/fullpage/editor_plugin.js deleted file mode 100755 index aeaa669..0000000 --- a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
Your external news item was successfully submitted. {$approval_status}
<< back to front page
Your post was successful! It may take a few seconds to appear.
<< go to thread
<< back to thread
While no censorship based on opinion, views, etc. takes place on AnonNews, there are several guidelines in place to keep content on the site relevant. - Read these guidelines completely before submitting a press release. Not reading them may get you banned.
This is not a forum. Opinion posts, questions to anons, and other similar things do not belong here. Use the forum.
AnonNews is about Anonymous. While you may think your local political party, a phone tapping scandal, or anything else is important, this is not the place for personal army requests. - If you wish to discuss a topic that may be of interest to other anons, you can do so on the forum. If it's not a press release or manifesto from Anonymous, it doesn't belong here - period.
Format your press releases properly. Press releases and manifestos are expected to be readable and in proper formatting. While we certainly don't expect perfect grammar, a press - release that uses an abbreviation every other word or contains excessive 'leetspeak' is not going to be accepted. If your press release is in bright pink with images of red flowers on the side, it will - probably not be accepted either.
No copypasting. This section is intended for those that wish to submit a press release about an operation they are involved with (not necessarily being part of staff). Don't copypaste - news articles or press releases from others that you have nothing to do with. Submitting it for someone else who is involved with an operation, is of course not an issue at all.
You are not the leader of Anonymous. Noone is. Don't try to imply that all of Anonymous agrees with something or condemns it - your press release will be rejected. Unless you - have talked through your press release with literally every single anon out there, you cannot speak for all of them. Making a generic 'from Anonymous' statement is fine, as long as you don't try to say that - 'person X and operation Y were not Anonymous' or try to impose alleged 'universal values or ideologies' onto Anonymous - they simply do not exist.
On the IP retention policy: we normally do not store IP addresses of anyone submitting content to AnonNews (feel free to use TOR or a proxy to be completely sure). If you hit a spam filter, - however (there is almost zero chance for a false positive), your IP may be recorded and banned. If an IP is incorrectly recorded (a false positive) it will be reviewed and removed from the log within 24 hours, without exception.
", - "href,src,alt,class,style,align,valign,color,face,size,width,height,shape,coords,target,border,cellpadding,cellspacing,colspan,rowspan"))); - $title = mysql_real_escape_string($_POST['title']); - - $language = mysql_real_escape_string($_POST['language']); - - $query = "INSERT INTO press (`Name`, `Body`, `CommentCount`, `Deleted`, `Approved`, `Attachment`, `Upvotes`, `Mod`, `ExternalAttachment`, `Language`, `Posted`) - VALUES ('{$title}', '{$body}', '0', '0', '0', '{$upload_url}', '0', '', '1', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('press', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your press release was successfully submitted. It will have to be approved before it appears on the front page. - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_BODY; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.press.item.php b/public_html/module.press.item.php deleted file mode 100755 index 61b1ff4..0000000 --- a/public_html/module.press.item.php +++ /dev/null @@ -1,67 +0,0 @@ -data[0]['Name'])); - $body = youtubify(filter_extended(stripslashes($result->data[0]['Body']))); - $externalattachment = $result->data[0]['ExternalAttachment']; - $attachment = utf8entities(stripslashes($result->data[0]['Attachment'])); - $commentcount = $result->data[0]['CommentCount']; - - echo(" - Join the conversation! {$commentcount} comment(s) already posted - click to post one yourself, anonymously of course. - $title"); - - if(!empty($attachment)) - { - if($externalattachment == 1) - { - $image = $tahoe_gateway . $attachment; - } - else - { - $image = "/" . $attachment; - } - - echo(" - - "); - } - - echo("$body - Join the conversation! {$commentcount} comment(s) already posted - click to post one yourself, anonymously of course. - - "); - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); -} -?> diff --git a/public_html/module.press.list.php b/public_html/module.press.list.php deleted file mode 100755 index a3118bc..0000000 --- a/public_html/module.press.list.php +++ /dev/null @@ -1,127 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_last) && is_numeric($var_last) && $var_last > 0) - { - $var_page = mysql_real_escape_string($var_last - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_sort = ($var_sort == "date") ? "Posted" : "Upvotes"; - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount, Upvotes FROM press WHERE `Approved` = '1' AND `Deleted` = '0' ORDER BY `{$query_sort}` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sort == "date" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sort == "date" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - $style[2] = ($var_sort == "upvotes" && $var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[3] = ($var_sort == "upvotes" && $var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - Highest ranked first - Lowest ranked first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - - echo(" - {$page_list} - "); - - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.press.php b/public_html/module.press.php deleted file mode 100755 index 87fb67f..0000000 --- a/public_html/module.press.php +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/public_html/module.sites.add.php b/public_html/module.sites.add.php deleted file mode 100755 index 03cbb2f..0000000 --- a/public_html/module.sites.add.php +++ /dev/null @@ -1,303 +0,0 @@ - - Read these guidelines. Not reading them may get you banned. - While no censorship based on opinion, views, etc. takes place on AnonNews, there are several guidelines in place to keep content on the site relevant. - Read these guidelines completely before submitting a related site. Not reading them may get you banned. - This section is solely for Anonymous-related websites. The site must represent a group or 'part' of Anonymous. Examples are IRC networks, Anonymous event planners, specific - Anonymous-related news sites or blogs, and so on. - Related sites have to be notable. This essentially means that your blog with 20 visitors a day and 3 total posts is not going to be accepted. An (almost) empty website is not going - to be accepted either. For networks/groups/'cells', there must be an established userbase already. Websites run by one person will only be accepted if they offer considerable value (your blog - with weekly opinion posts will probably not get accepted, whereas a blog with frequent news about various Anonymous groups will be accepted). - This is not Craigslist. This is not a place to advertise your new site - this section is intended to help people find useful Anonymous-related resources that already exist. - If you are looking to start something new, and you're looking for people to join, the forums would be a better place. - Only very few entries will be accepted. The intention is to keep this section as small as possible, offering a brief overview of related resources for people that want to - learn more about Anonymous or get actively involved with it. Only the most notable and useful submissions will be accepted. - Keep the submission title to the point. The title must be the name of the site, or, if it doesn't have a name, a brief description of what the site is. No slogans, no URLs, - no explanations - keep that for the site itself. - - If you have read the guidelines, click here to submit your related site. - - - Submit a related site - - - First of all, enter a URL. After the URL has been checked and found to be valid, you will be able to enter the rest. - - Article URL - - - - - - Submit URL >> - - - - Scanning URL... (this may take a while!) - - - code == 999) - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - elseif($request->code == 200) - { - $request = curl_get($_POST['url']); - if(!preg_match("/?(.*?)<\/title>/i", $request->result, $matches)) - { - $title = ""; - $title_desc = "No website title could be suggested. Please enter one yourself."; - } - else - { - $title = $matches[1]; - - $title_desc = "The below suggestion was made based on the full page title ($title). Make sure it's correct before submitting."; - - $title_suggestion = utf8_entities_if_needed(suggest_title($title)); - - $raw_suggestion = html_entity_decode($title_suggestion, ENT_QUOTES, "UTF-8"); - - // Load noise dictionary, for tag generation - $noise = split_lines(file_get_contents_cached("english.dic")->data); - $noise = arraytolower($noise); - - foreach(explode(" ", $raw_suggestion) as $tag) - { - $tag = trim(clean_tag($tag)); - if(strlen(trim($tag)) > 1 && in_array(strtolower(trim($tag)), $noise) === false) - { - $tag_list[] = strtolower($tag); - } - } - - $tag_list = array_unique($tag_list); - - $tags_suggestion = utf8_entities_if_needed(implode(", ", $tag_list)); - } - - if($detect_language) - { - require_once("Text/LanguageDetect.php"); - $detector = new Text_LanguageDetect; - $detected_language = $detector->detectSimple(strip_tags($request->result)); - } - else - { - $detected_language = "English"; - } - - ?> - Submit a related site - - - - - - Website Title - - - - - - Tags (optional) - - Enter comma-separated tags here, that indicate what the website is about. This will make it easier to find on the site. - - - - Website Language - - $lang) - { - $sel = (strtolower($lang) == strtolower($detected_language)) ? " selected" : ""; - echo("{$lang}"); - } - ?> - - - Detected language: - - - Complete the CAPTCHA - - - - Submit related site >> - - - - Submitting related site... (this may take a while!) - - - - is_valid) - { - if(!empty($_POST['title'])) - { - if(!empty($_POST['url'])) - { - // It will have to be approved before it appears on the front page. - $spam_score = spam_score($_POST['url'], $_POST['title'], false); - - if($spam_score < 10) - { - $request = curl_head($_POST['url']); - if($request->code == 200) - { - $language = mysql_real_escape_string($_POST['language']); - $title = mysql_real_escape_string($_POST['title']); - $url = mysql_real_escape_string($_POST['url']); - - $query = "INSERT INTO sites (`Name`, `Url`, `CommentCount`, `Deleted`, `Approved`, `Mod`, `Language`, `Posted`) - VALUES ('$title', '$url', '0', '0', '0', '', '{$language}', CURRENT_TIMESTAMP)"; - - if(mysql_query($query)) - { - $insert_id = mysql_insert_id(); - - if(!empty($_POST['tags'])) - { - // tags were entered. - $tags = $_POST['tags']; - $tags_list = explode(",", $tags); - foreach($tags_list as $tag) - { - $tag = mysql_real_escape_string(trim(clean_tag($tag))); - if(!empty($tag)) - { - $query = "INSERT INTO tags (`Table`, `ItemId`, `TagName`) VALUES ('sites', '{$insert_id}', '$tag')"; - mysql_query($query); - } - } - } - - echo("Your related site was successfully submitted. It will have to be approved before it appears on the front page. - << back to front page"); - } - else - { - echo(mysql_error()); - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; // Generic upload error - require("module.error.php"); - } - } - elseif($request->code == 300 || $request->code == 301 || $request->code == 302) - { - $var_code = ANONNEWS_ERROR_SHORTENER_DETECTED; - require("module.error.php"); - } - else - { - $var_code = ANONNEWS_ERROR_NONEXISTENT_URL; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_SPAM; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_URL; // Empty body - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_EMPTY_TITLE; // Empty title - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_INCORRECT_CAPTCHA; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_NOT_FOUND; - require("module.error.php"); - } - } -} -else -{ - $var_code = ANONNEWS_ERROR_BANNED; // Banned from submission. - require("module.error.php"); -} -?> diff --git a/public_html/module.sites.list.php b/public_html/module.sites.list.php deleted file mode 100755 index 43dc1fc..0000000 --- a/public_html/module.sites.list.php +++ /dev/null @@ -1,115 +0,0 @@ -data[0])) - { - $total_records = $result->data[0]['COUNT(*)']; - - $per_page = 20; - - if(!empty($var_subpage) && is_numeric($var_subpage) && $var_subpage > 0) - { - $var_page = mysql_real_escape_string($var_subpage - 1); - } - else - { - $var_page = 0; - } - - $start = $var_page * $per_page; - - $last_page = floor($total_records / $per_page); - - if($start >= $total_records) - { - $start = $total_pages * $per_page; - } - - $page_list = ""; - - if($var_page > 0) - { - $p = $var_page; - $page_list .= "<< previous "; - } - - for($i = 0; $i <= $last_page; $i++) - { - $p = $i + 1; - $current = ($var_page == $i) ? " class=\"current\"" : ""; - $page_list .= "{$p} "; - } - - if($var_page < $last_page) - { - $p = $var_page + 2; - $page_list .= "next >>"; - } - - $query_dir = ($var_sortdir == "asc") ? "ASC" : "DESC"; - $query = "SELECT Id, Name, CommentCount FROM sites WHERE `Approved` = '1' AND `Deleted` = '0' ORDER BY `Posted` {$query_dir} LIMIT {$start},{$per_page}"; - - if($result = mysql_query_cached($query)) - { - $style[0] = ($var_sortdir == "desc") ? " class=\"active\"" : ""; - $style[1] = ($var_sortdir == "asc") ? " class=\"active\"" : ""; - - echo(" - Sort order: - Newest first - Oldest first - - "); - - echo(" - {$page_list} - "); - - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - - echo(template_item($name, "related-sites", $id, $comments, false, 0, 0)); - } - - echo(" - {$page_list} - "); - } - else - { - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); - } - } - else - { - $var_code = ANONNEWS_ERROR_MALFORMED_DATA; - require("module.error.php"); - } -} -else -{ - $var_code = ANONNEWS_ERROR_DATABASE_ERROR; - require("module.error.php"); -} -?> diff --git a/public_html/module.sites.php b/public_html/module.sites.php deleted file mode 100755 index a763574..0000000 --- a/public_html/module.sites.php +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/public_html/process.frontpage.php b/public_html/process.frontpage.php deleted file mode 100755 index acd8d2f..0000000 --- a/public_html/process.frontpage.php +++ /dev/null @@ -1,210 +0,0 @@ -= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Upvotes` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, true, $upvotes, 0)); - } - } - - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 3"; - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = $item['Upvotes']; - - echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); - } - } - } - else - { - // Process all other queries here. - - if($_GET['q'] == "press_top") - { - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Upvotes` DESC LIMIT 6"; - $section = "press"; - } - elseif($_GET['q'] == "press_latest") - { - $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 6"; - $section = "press"; - } - elseif($_GET['q'] == "ext_top_7days") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` DESC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_top_all") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' ORDER BY `Rank` DESC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_bottom_7days") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` ASC LIMIT 4"; - $section = "external-news"; - } - elseif($_GET['q'] == "ext_bottom_all") - { - $query = "SELECT * FROM ext WHERE `Deleted`='0' AND `Visible`='1' ORDER BY `Rank` ASC LIMIT 4"; - $section = "external-news"; - } - - if($result = mysql_query_cached($query)) - { - foreach($result->data as $item) - { - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $rank = ($section == "external-news") ? $item['Rank'] : 0; - $upvotes = ($section == "press") ? $item['Upvotes'] : 0; - - echo(template_item($name, $section, $id, $comments, false, $upvotes, $rank)); - } - } - - } -} -else -{ - die("Error: No valid query was passed on."); -} -/* -if(!isset($_GET['s']) || !isset($_GET['f']) || !isset($_GET['o']) || !isset($_GET['p'])) -{ - die("An internal error occurred. Not all variables were set."); -} - -if($_GET['s'] == "ext") -{ - $section = "ext"; - $sectionname = "external-news"; - $rules = "WHERE `Deleted`='0'"; -} -elseif($_GET['s'] == "sites") -{ - $section = "sites"; - $sectionname = "related-sites"; - $rules = "WHERE `Deleted`='0' AND `Approved`='1'"; -} -elseif($_GET['s'] == "press") -{ - $section = "press"; - $sectionname = "press"; - $rules = "WHERE `Deleted`='0' AND `Approved`='1'"; -} -else -{ - die("An internal error occurred. 's' was not correctly defined."); -} - -if($_GET['o'] == "a") -{ - $order = "ASC"; -} -elseif($_GET['o'] == "d") -{ - $order = "DESC"; -} -else -{ - die("An internal error occurred. 'o' was not correctly defined."); -} - -if($_GET['f'] == "rank") -{ - if($section == "press") - { - $field = "Upvotes"; - } - elseif($section == "ext") - { - $field = "Rank"; - } - else - { - die("An internal error occurred. 'fS' was not correctly defined."); - } -} -elseif($_GET['f'] == "date") -{ - $field = "Posted"; -} -else -{ - die("An internal error occurred. 'f' was not correctly defined."); -} - -if($_GET['p'] == "all") -{ - $query = $rules; -} -elseif($_GET['p'] == "week") -{ - $query = "{$rules} AND `Posted` >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)"; -} -else -{ - die("An internal error occurred. 'p' was not correctly defined."); -} - -if(isset($_GET['l']) && is_numeric($_GET['l'])) -{ - $limit = $_GET['l']; -} -else -{ - $limit = "5"; -} - -$query = "{$query} ORDER BY `{$field}` {$order} LIMIT {$limit}"; - -if(isset($_GET['hl'])) -{ - $highlight = " highlighted"; -} -else -{ - $highlight = ""; -} - -echo("SELECT * FROM {$section} {$query}"); - -//echo("SELECT * FROM {$section} {$query}"); -/* -$result = mysql_query_cached("SELECT * FROM {$section} {$query}"); - -foreach($result->data as $item) -{ - $name = utf8entities(stripslashes($item['Name'])); - $id = $item['Id']; - $comments = $item['CommentCount']; - $upvotes = ($sectionname == "press") ? $item['Upvotes'] : 0; - $rank = ($sectionname == "ext") ? $item['Rank'] : 0; - - echo(template_item($name, $sectionname, $id, $comments, isset($_GET['hl']), $upvotes, $rank)); -}*/ - -?> diff --git a/public_html/process.vote.php b/public_html/process.vote.php deleted file mode 100755 index 95affe5..0000000 --- a/public_html/process.vote.php +++ /dev/null @@ -1,73 +0,0 @@ -X"); - } - - $nojs = (isset($_GET['nojs'])) ? true : false; - $frame = (isset($_GET['frame'])) ? true : false; - $item_id = (is_numeric($_GET['id'])) ? $_GET['id'] : 0; - $vote = $_GET['vote']; - $ip_hash = ip_hash(get_ip()); - - if(mysql_num_rows(mysql_query("SELECT Rank FROM ext WHERE `Id`='{$item_id}'")) > 0) - { - if(mysql_num_rows(mysql_query("SELECT * FROM votes WHERE `Id`='{$item_id}' AND `Ip`='{$ip_hash}'")) == 0) - { - if($vote == "up") - { - mysql_query("UPDATE ext SET `Rank`=`Rank`+1 WHERE `Id`='{$item_id}'"); - - if(!$nojs) - { - echo("+"); - } - } - elseif($vote == "down") - { - mysql_query("UPDATE ext SET `Rank`=`Rank`-1 WHERE `Id`='{$item_id}'"); - - if(!$nojs) - { - echo("-"); - } - } - else - { - die("X"); - } - - if($nojs && $frame) - { - echo("Your vote was counted."); - } - elseif($nojs) - { - echo("Your vote was counted. Click here to go back to the page you came from."); - } - - mysql_query("INSERT INTO votes (`Id`, `Ip`) VALUES ('{$item_id}', '{$ip_hash}')"); - } - else - { - if($nojs && $frame) - { - echo("You already voted."); - } - elseif($nojs) - { - header("Location: {$referer}"); - } - else - { - die("X"); - } - } - } -} -?> diff --git a/public_html/rewrite.php b/public_html/rewrite.php deleted file mode 100755 index ac36504..0000000 --- a/public_html/rewrite.php +++ /dev/null @@ -1,117 +0,0 @@ - 1) -{ - if($parts[0] == "localize") - { - if(isset($parts[1]) && strlen($parts[1]) > 0) - { - $var_lang = $parts[1]; - $_SESSION['curlang'] = $var_lang; - if(isset($parts[2]) && strlen($parts[2]) > 0) - { - $var_start = 2; - } - else - { - $break = true; - } - } - else - { - $var_section = "error"; - $var_code = 404; - $break = true; - } - } - - if($break === false) - { - $var_section = $parts[$var_start]; - if($var_section == "press" || $var_section == "external-news" || $var_section == "related-sites" || $var_section == "forum" || $var_section == "moderation") - { - // Handle functional pages - if($var_section == "external-news") - { - $var_table = "ext"; - } - elseif($var_section == "related-sites") - { - $var_table = "sites"; - } - else - { - $var_table = "press"; - } - - if(isset($parts[$var_start + 3]) && strlen($parts[$var_start + 3]) > 0) - { - $var_subpage = $parts[$var_start + 3]; - } - - if(isset($parts[$var_start + 4]) && strlen($parts[$var_start + 4]) > 0) - { - $var_last = $parts[$var_start + 4]; - } - - if(isset($parts[$var_start + 1]) && strlen($parts[$var_start + 1]) > 0) - { - $var_page = $parts[$var_start + 1]; - - if(($var_table == "ext" || $var_table == "sites") && $var_page == "item" && $var_subpage != "comments") - { - $var_include = "external.php"; - } - } - - if(isset($parts[$var_start + 2]) && strlen($parts[$var_start + 2]) > 0) - { - $var_id = $parts[$var_start + 2]; - } - } - elseif($var_section != "radio") - { - // Handle static pages - $var_section = "static"; - if(isset($parts[$var_start + 1])) - { - $var_table = $parts[$var_start + 1]; - } - else - { - $var_section = "error"; - $var_code = 404; - } - } - } -} - -$_INCLUDED = true; -require($var_include); - -?> diff --git a/public_html/script2.js b/public_html/script2.js deleted file mode 100755 index 9d30649..0000000 --- a/public_html/script2.js +++ /dev/null @@ -1,83 +0,0 @@ -var debugEl; -var pr_img; - -function vote(c,id) -{ - var obj=newAjaxObject(); - obj.onreadystatechange=function() - { - if(obj.readyState==4) - { - $('vote'+id).innerHTML = obj.responseText; - $('votebuttons'+id).innerHTML = ""; - } - } - obj.open('GET', 'vote.php?c='+c+'&i='+id, true); - obj.send(null); -} - -function switchTab(tabElement) -{ - $(tabElement).siblings('.tab-active').removeClass('tab-active').addClass('tab'); - $(tabElement).addClass('tab-active').removeClass('tab'); -} - -function initialize() -{ - pr_img = $(".pressrelease-image img")[0]; - if(pr_img != null) - { - var real_width; - $("") - .attr("src", $(pr_img).attr("src")) - .load(function() - { - real_width = this.width; - if(real_width < 900) - { - $(pr_img).removeAttr("width"); - } - }); - } -} - -/*function get_filler() -{ - // Dirty hack to avoid the 'press releases' section resizing when switching tabs - return "placeholder placeholder placeholder"; -}*/ - -function replyToComment(element) -{ - var el = $(element).parent().parent().parent().children('.c-reply'); - var itemid = trim(el.text()); - el.html("^Post reply"); - el.css({'display':'block'}); - return false; -} - -function trim(value) -{ - value = value.replace(/^\s+/,''); - value = value.replace(/\s+$/,''); - return value; -} - -function voteUp(id, token) -{ - $('.votebuttons'+id).load("/process.vote.php?id="+id+"&vote=up&token="+token); - $('.votecount'+id).html(parseInt($('.votecount'+id).html()) + 1); - return false; -} - -function voteDown(id, token) -{ - $('.votebuttons'+id).load("/process.vote.php?id="+id+"&vote=down&token="+token); - $('.votecount'+id).html(parseInt($('.votecount'+id).html()) - 1); - return false; -} - -$(function(){ - initialize(); -}); - diff --git a/public_html/static/anon.static.php b/public_html/static/anon.static.php deleted file mode 100644 index ef4b63b..0000000 --- a/public_html/static/anon.static.php +++ /dev/null @@ -1,9 +0,0 @@ - -AnonNews is not just for AnonOps. -AnonNews was made for anything involving Anonymous - that means you do not need to be affiliated or involved with a specific network or group. No matter -who you are affiliated with - or whether you are affiliated with anything or anyone at all! - you're welcome to post on AnonNews, as long as you follow the -same relevancy guidelines as everyone else (everything that does not fit in the main sections, can generally go in the forum). -AnonNews also does not promote any particular group or network over another - this is a 'neutral' site, not taking any sides. -We would also like to remind you that AnonOps does not equal Anonymous, and that no single group or network can be representative of Anonymous as a whole. -If anyone claims to 'represent' Anonymous, he lies - no exceptions. Anonymous is also not a democratic body, which means a majority of anons (if this is -something that can be measured in the first place) can not be considered representative of Anonymous either. diff --git a/public_html/static/donate.static.php b/public_html/static/donate.static.php deleted file mode 100755 index 7899452..0000000 --- a/public_html/static/donate.static.php +++ /dev/null @@ -1,11 +0,0 @@ - - -Donate to AnonNews -AnonNews accepts donations through various methods. If you want to use PayPal or Flattr, use one of the buttons at the top of the page. - -You can also donate using Bitcoin. Bitcoin is an open-source, anonymous, and decentralized P2P currency (that means noone has control over it), that you can use to easily donate to AnonNews. For more information about Bitcoin, visit -WeUseCoins (video) or the Bitcoin website. - -To send a Bitcoin donation to AnonNews, you can send Bitcoins to the following address: 1PPVupRRz7tHvfvJWEDBnDr7bFVFFYLu6G. - -Thanks for supporting AnonNews! diff --git a/public_html/static/faq.static.php b/public_html/static/faq.static.php deleted file mode 100755 index 1ce3c32..0000000 --- a/public_html/static/faq.static.php +++ /dev/null @@ -1,53 +0,0 @@ - - - Frequently Asked Questions - This section will discuss some questions that come up fairly often. If you have any other relevant questions, feel free to join the IRC channel. - - How can I join Anonymous? - This question comes up quite often. Anonymous does not have a membership list, and you can't really 'join' it either. If you identify with or say you are Anonymous, you are Anonymous. - Noone has the authority to say whether you are Anonymous or not, except for yourself. - - How can I talk to Anonymous? - Anons can be found all over the world - and all over the internet. There are no leaders or official spokespersons, and no official websites, IRC networks, or anything else. Basically, if you want - to talk to Anonymous, join a random IRC network or forum and start talking to anons! A starting point may be, for example, the AnonNews IRC channel. - - Isn't AnonNews just for AnonOps? - No, not at all! Any anon is welcome to post on AnonNews, and there is no active affiliation with AnonOps. You can read more about this issue here. - - I don't like this press release! How can I get it removed? - You can't. AnonNews is uncensored (but moderated), and everyone has equal rights to post press releases (or forum posts, or anything else). As long as something - is relevant and fits the guidelines, it will be published, regardless of pressure to take it down. There is one exception to this rule, and that is press releases that pretend to be made by the staff - of a specific network or operation, while actually being made by an outsider. In this case the network/operation staff can request removal of the press release (this only goes for operations and - networks with a defined leadership structure). Other than the aforementioned situation, don't bother trying to get something removed. - - Why was my submission rejected? - If your submission doesn't show up after a while, that means it probably didn't fit the guidelines. If you think a submission was rejected in error, you can contact an administrator in the - IRC channel. Please don't resubmit your submissions. - - How do I upvote a press release? - To upvote a press release, you will have to post a comment that is at least 2 lines long, and at least 100 characters long. This is to prevent pointless '+1' posts just to upvote a press release. - Simply enter a comment, and if your comment is long enough, a checkbox to upvote the press release will appear on the captcha verification page. - - Do you keep IPs? - Short answer: no. - Longer answer: no, with a few exceptions. To prevent double voting, salted hashes of partial IPs are kept - these should be practically useless if someone were to gain access to the database. - The fact that only partial IPs are used for these hashes means that occasionally a vote may not be counted correctly, however this should not happen very often. The other situation is the spamfilter. - If your submission hits a severe spamfilter, your submission will be blocked, and the IP you are submitting from will be saved - the submission will be reviewed in 24 hours, and if it turns out your - submission was legitimate, your IP will be removed from the system. Most 'suspicious' submissions will be held for review, rather than being outright blocked - in this case, your IP is NOT kept. If - you do manage to hit a severe spamfilter and your submission was indeed malicious/spam, your IP may be banned (thus stored in the banlist). - No access logs or other logs with identifying information are kept on the server. You can visit the site and post submissions from TOR, VPNs, or other anonymization networks, however most of the - time your submission will be held for review when using one of these methods. - - How does the spamfilter work? - AnonNews uses a custom spam score system, where a 'score' is assigned, depending on several characteristics of a submission. Several factors that play a role for submissions are banned IPs, blocked - domains, blacklisted keywords, DNSBL-listed IPs, and other things. Depending on your spam score, the submission is either directly visible, held for manual review, or outright blocked. For comments, - several text characteristics are analyzed such as the amount of lines, average length and variation in length of lines, special characters ratio, and amount of URLs. - - Can I use the press releases or forum posts on AnonNews elsewhere? - Yes, all user-submitted content is automatically licensed under a Creative Commons Attribution license. This means that you are free to reuse and remix content, both for commercial and non-commercial - purposes, as long as you give credit to the original author. If no specific author is outlined, you should attribute to 'Anonymous' and place a backlink to the relevant page on AnonNews. - - Can I use the design / source code / etc. of AnonNews? - Yes, AnonNews is licensed under the WTFPL, meaning you can pretty much do with it what you want. No attribution required, no restrictions whatsoever. Be aware that some third-party code is used - that may have separate restrictions - this is detailed in the LICENSE file of the source code package. You can download the source code here. - diff --git a/public_html/static/forumrules.static.php b/public_html/static/forumrules.static.php deleted file mode 100755 index e2e84a3..0000000 --- a/public_html/static/forumrules.static.php +++ /dev/null @@ -1,25 +0,0 @@ - - - Forum Rules - The AnonNews forums are very loosely moderated, in fact very little will be removed - however, there are a few rules. - - No malicious or commercial content - Content that is harmful towards users is not allowed. That means no posting of malware, phishers, etc. Commercial/promotional content is also not allowed - this includes merchandise and 'content farms' - that are obviously designed for turning a profit. Content that carries serious legal liability (such as child porn or fraud) is also not allowed, to protect the AnonNews infrastructure. Discussion about - these subjects is allowed, as long as no practical instructions and/or actual content is provided. - - No organizing of outright illegal operations - Because of legal liability, organizing Anonymous Operations that are based on outright illegal activity - such as LOIC/DDoS operations - should not be organized from these forums. Discussing them - is of course allowed, as long as no actual organization takes place (that means no posting of targets and manuals and such). There are plenty of places to organize these kind of operations, look at the - Related Sites section for some examples. - - Threads have to be relevant - Except for the offtopic forum, all threads should have at least some relevancy to (a part of) Anonymous. Discussing things that are not directly related but may be of interest to Anonymous, is of course - allowed. Please don't post 'how do I hack' topics anywhere, for those kinds of things there are sites like HackForums. - - Users are encouraged to post in the right sections - While there is no real moderation on this, you are encouraged to post topics in the 'appropriate' categories - this will ensure that those interested in the subject will read them. This is not a real - "rule", topics will not be moved when placed in the wrong section. - - - diff --git a/public_html/static/irc.static.php b/public_html/static/irc.static.php deleted file mode 100755 index e1bc448..0000000 --- a/public_html/static/irc.static.php +++ /dev/null @@ -1,18 +0,0 @@ - -IRC -AnonNews has an IRC channel on Cryto IRC, for support, questions, moderator applications, and general chit-chat. TOR users are welcome, however abusing IPs will -receive a temporary ban from the network. If you cannot connect through a TOR node, VPN, or proxy, please try using a different TOR identity / proxy / VPN IP. An I2P tunnel is planned, but not yet operational. -Important: AnonNews is not affiliated with AnonOps or any other Anonymous-related website, network, or infrastructure. If you have complaints about an Anonymous Operation, please directly -contact those responsible for the organization - AnonNews has nothing to do with it, and is just a news platform. - - For webchat users: - Visit http://irc.lc/cryto/anonnews to use our web IRC client. No downloads or plugins are required. - Please do not 'slap' other users, this is considered rude. - - - For users with an IRC client: - Server: irc.cryto.net - Port: 6667 (regular) / 6697 (SSL) - Channel: #anonnews - For those that do not wish to connect to a US-based server, you can connect to nijaxor.cryto.net (NL), haless.cryto.net (DE), or konjassiem.cryto.net (DE). - diff --git a/public_html/static/moderation.static.php b/public_html/static/moderation.static.php deleted file mode 100755 index 86a8057..0000000 --- a/public_html/static/moderation.static.php +++ /dev/null @@ -1,28 +0,0 @@ - -Moderation is not censorship. -A question / criticism that comes up rather often is that AnonNews would be exercising censorship on submissions. This page will explain why this is not the case, and what the difference between -moderation and censorship is. - -What is censorship? -Censorship is, generally speaking, attempting to filter out morally objectionable content - this can be news, images, music or anything else, and what classifies as 'morally objectionable' will differ -for everyone, based on their personal moral standpoints and opinions. The key here is that censorship revolves around specific ideas or information of which the spreading is actively hindered, based on -personal ideals. - -How is this different from moderation? -Moderation, in the case of AnonNews, is the removal of content that is not relevant to 'Anonymous', is intended to cause harm to the machines of visitors, or attempts to exploit visitors. This means -that links to malware, scams, or news that is not about Anonymous (as well as things that are not put in the right category) will be removed. This is not based on any personal ideals, and the actual -message or opinion in said content does not play a role. Potentially 'offensive' content is not moderated, as even controversial ideas should have a voice. - -How does moderation on AnonNews work? -There is a group of moderators, and anyone can apply to become a moderator. As a general rule of thumb, anyone who applies will become a moderator, and no 'screening' is done. The platform is made to -allow rollbacks in case of abuse, so there is very little harm that can be done by a moderator. If a moderator exhibits unsuitable behaviour (such as removing content based on personal morals) he will lose -his moderator status, to ensure that AnonNews only has mods that are capable of objective analysis. -Moderators are encouraged to not read any submissions before approving or rejecting them. The general rule of thumb is to use the browsers search-in-page feature to determine whether -'Anonymous' is mentioned somewhere in the article, and to quickly skim the text to get an idea of whether it's actually news, or something else (like an opinion blogpost). In the case of press releases, -moderators are encouraged to only look at the grammar, spelling, and formatting - and to check whether any part of the press release claims to speak for all of Anonymous. That's it. -TL;DR moderation is generally speaking done without even paying attention to what the article is about. - -About the comments sections and the forums -"Regular" moderators do not have access to moderate comments or forum posts. This is because there is not really a need for a large moderation team - the only rules are that you cannot organize illegal -Anonymous Operations such as DDoS operations (this is in order to protect the AnonNews infrastructure), and that you cannot post malware / scams, or posts that are intended to make the pages unreasonably -long, such as posts that contain entire books (yes, it has been done.) diff --git a/public_html/static/mods.static.php b/public_html/static/mods.static.php deleted file mode 100755 index 49e8216..0000000 --- a/public_html/static/mods.static.php +++ /dev/null @@ -1,14 +0,0 @@ - -AnonNews is looking for moderators! -We are looking for people that have the time (and capability) to moderate incoming submissions. The most important requirements for being a moderator: - - You must be able to moderate submissions solely based on relevancy. You must be able to leave out your own personal morals in moderation. - You must be present in the AnonNews (staff) IRC channel regularly. - You must be tech-savvy enough to distinguish potentially harmful links from genuine links. - You must have read and understood the guidelines for the submission of press releases, external news, and related sites. - You must be able to speak and understand English. - -Being a moderator does not require an e-mail address, real name, or any other personally identifiable information - all that is needed is a username and a password. -Be aware that all moderation decisions are logged, and that intentionally bad moderation or unwillingness to follow the guidelines may result in your moderator account being disabled. -This includes exercising moderation based on personal morals. -To apply for being a moderator, join the IRC channel. diff --git a/public_html/static/noise.dict b/public_html/static/noise.dict deleted file mode 100755 index e041843..0000000 --- a/public_html/static/noise.dict +++ /dev/null @@ -1,494 +0,0 @@ -able -about -above -acid -across -actually -after -again -against -ago -ai -all -almost -alors -already -also -alter -although -always -am -among -an -and -angry -another -any -anyway -appropriate -are -around -as -at -aussi -automatic -autre -autres -available -avant -awake -aware -away -back -bad -basic -be -beautiful -because -been -before -being -bent -better -between -big -bitter -black -blue -boiling -both -bright -broken -brown -but -by -came -can -cause -ceci -cela -central -certain -certainly -ces -ceux-ci -cheap -chemical -chief -clean -clear -clearly -close -cold -come -comme -common -complete -complex -concerned -conscious -could -cruel -current -cut -dans -dark -de -dead -dear -deep -delicate -dependent -depuis -des -did -different -difficult -dirty -do -does -down -dry -du -due -each -early -east -easy -economic -either -elastic -electric -elle -else -enough -equal -especially -est -et -eux -even -ever -every -exactly -false -far -fat -feeble -female -fertile -few -final -finalty -financial -fine -first -fixed -flat -following -foolish -for -foreign -form -former -forward -free -frequent -from -full -further -future -general -generality -get -give -go -good -got -great -green -grey/gray -had -half -hanging -happy -hard -has -have -he -healthy -heavy -help -her -here -high -him -himself -his -hollow -home -how -however -human -ici -if -il -ill -ils -important -in -indeed -individual -industrial -instead -international -into -is -it -its -je -just -keep -kind -la -labor -large -last -late -later -le -least -left -legal -les -less -let -leur -leurs -like -likely -line -little -living -local -long -loose -loud -low -lui -là -ma -main -mais -major -make -male -many -married -material -may -maybe -me -mean -medical -mes -might -military -mixed -modern -moi -moins -mon -more -most -much -must -my -name -narrow -national -natural -near -nearly -necessary -never -new -next -nice -no -nor -normal -north -nos -not -notre -nous -now -obviously -of -off -often -okay -old -on -once -one -only -open -opposite -or -original -other -ou -our -out -over -own -par -parallel -particular -particularly -past -perhaps -personal -physical -please -plus -political -poor -popular -possible -pour -present -previous -prime -private -probable -probably -professional -public -put -que -quick -quickly -quiet -quite -rather -ready -real -really -recent -recently -red -regular -responsible -right -rough -round -royal -sa -sad -safe -said -same -say -second -secret -see -seem -send -separate -serious -ses -several -shall -sharp -short -should -shut -significant -similar -simple -simply -since -single -slow -small -smooth -so -social -soft -solid -some -sometimes -son -soon -sorry -south -special -specific -sticky -stiff -still -straight -strange -strong -successful -such -sudden -suddenly -sure -sweet -ta -take -tall -tel -tes -than -that -the -their -them -then -there -therefore -these -they -thick -thin -think -this -those -though -through -thus -tight -till -tired -to -today -together -toi -tomorrow -ton -too -top -total -tous -tout -true -tu -turn -un -under -une -unless -until -up -use -used -useful -usually -various -very -violent -vos -votre -vous -waiting -warm -was -way -we -well -were -west -wet -what -whatever -when -where -whether -which -while -white -who -whole -whose -why -wide -will -wise -with -would -wrong -yeah -yellow -yes -yesterday -yet -you -young -your -brought -love diff --git a/public_html/static/radio.static.php b/public_html/static/radio.static.php deleted file mode 100755 index 6fdac18..0000000 --- a/public_html/static/radio.static.php +++ /dev/null @@ -1,4 +0,0 @@ - -AnonNews Radio has been discontinued -AnonNews Radio no longer exists. Although this may change in the future, there are no direct plans to set up AnonNews Radio again. -If you are looking for new music, a good place to look would be Jamendo - a website with thousands of freely shareable (Creative Commons-licensed) tracks. diff --git a/public_html/style2.css b/public_html/style2.css deleted file mode 100755 index c6d3ad2..0000000 --- a/public_html/style2.css +++ /dev/null @@ -1,755 +0,0 @@ -.c-actions -{ - bottom: 0; - position: absolute; - right: 0; -} -.c-actions-button -{ - border: 1px solid #CACACA; - display: block; - float: right; - font-size: 14px; - font-weight: 700; - margin: 4px; - padding: 2px 5px; -} -.c-actions-button:hover -{ - background-color: #E9E9E9; - border: 1px solid #000; -} -.c-body -{ - padding-bottom: 25px; - text-align: justify; -} -.c-children -{ - padding-left: 30px; -} -.c-meta -{ - background-color: #E8E8E8; - border-radius: 5px; - margin-bottom: 9px; - moz-border-radius: 5px; - padding: 4px 8px; -} -.c-meta-date -{ - float: right; - font-style: italic; -} -.c-outer -{ - min-height: 95px; - padding: 8px; -} -.c-outer,.c-small -{ - background-color: #DADADA; - border: 1px solid #888; - margin-top: 10px; - position: relative; -} -.c-reply -{ - display: none; - padding-left: 20px; -} -.c-reply button,.c-comment button -{ - font-size: 16px; - margin-top: 6px; -} -.c-reply div.button,.c-comment div.button -{ - text-align: right; -} -.c-reply input,.c-reply textarea,.c-comment input,.c-comment textarea -{ - border: 1px solid #000; -} -.c-reply input,.c-reply textarea,.c-reply div.button,.c-comment input,.c-comment textarea,.c-comment div.button -{ - box-sizing: border-box; - display: block; - padding: 4px; - width: 80%; -} -.c-reply textarea,.c-comment textarea -{ - font-size: 16px; - height: 250px; -} -.c-reply-header -{ - font-size: 19px; - font-weight: 700; - margin-top: 7px; -} -.c-small -{ - color: #505050; - padding: 4px; -} -.c-small .c-actions-button -{ - margin: 2px; -} -.c-small-inner -{ - padding: 3px; -} -.c-spacer -{ - margin-top: 30px; -} -.forum-buttons a -{ - border: 1px solid #C6C6C6; - display: block; - float: right; - margin-bottom: 5px; - padding: 5px; - text-decoration: none; -} -.forum-buttons a:hover -{ - background-color: #DEDEDE; - border: 1px solid gray; -} -.forum-header -{ - font-size: 18px; - font-weight: 700; - margin-bottom: 16px; - margin-top: 12px; - text-align: center; -} -.forum-header-category-threads,.forum-header-category-posts,.forum-header-threads-replies -{ - width: 70px; -} -.forum-item-category-threads,.forum-item-category-posts,.forum-item-threads-replies -{ - font-size: 28px; - font-weight: 700; -} -.forum-post -{ - background-color: #DEDEDE; - border: 1px solid silver; - margin-top: 16px; -} -.forum-post-body -{ - font-size: 15px; - padding: 9px 14px; - text-align: justify; - width: 682px; -} -.forum-post-date -{ - font-size: 13px; - margin-bottom: 9px; - margin-top: 6px; -} -.forum-post-first -{ - border: 1px solid gray; -} -.forum-post-meta -{ - background-color: #D4D4D4; - padding: 9px 6px; - width: 178px; -} -.forum-post-meta,.forum-post-body -{ - float: left; -} -.forum-post-user -{ - font-size: 18px; - font-weight: 700; -} -.forum-table .forum-item-category-name,.forum-table .forum-item-threads-name -{ - padding: 0; -} -.forum-table th -{ - background-color: #D8D8D8; - text-align: left; -} -.forum-table th,.forum-table td -{ - padding: 7px; -} -.forum-table,.forum-buttons,.forum-post,.forum-reply -{ - margin: 0 auto; - width: 900px; -} -.forum-table,.forum-table th,.forum-table td -{ - border: 1px solid #C6C6C6; - border-collapse: collapse; -} -.forum-table-date,.forum-table-teaser -{ - font-size: 13px; -} -.forum-table-link -{ - border: none; - display: block; - padding: 7px; -} -.forum-table-link:hover -{ - background-color: #DCDCDC; - border: none; -} -.forum-table-name -{ - font-size: 19px; - font-weight: 700; -} -@font-face -{ - font-family: 'Muli'; - font-style: normal; - font-weight: 400; - src: local('Muli Light'), local('Muli-Light'), url('http://tahoe-gateway.cryto.net:3719/download/VVJJOkNISzpjcWE1M3FhZTd6NXlsM3JuMmVkcGdzaHRvcTozMm9rbDN4Mmdsd2twM21mcG4yNGJ0M2RmZ2Zqb2NhM2hqaHRleTI3Nmo3cmlsdW92b3BhOjM6NjozMzkyNA==/anonnews.woff') format('woff'); -} -a -{ - border-bottom: 1px dashed; - color: #000; - text-decoration: none; -} -a.comments -{ - display: block; - float: right; - margin-right: 9px; - padding: 3px 4px 6px; - text-decoration: none; -} -a.comments span.count -{ - display: block; - font-size: 20px; - line-height: 17px; - margin-bottom: 0; - margin-left: auto; - margin-right: auto; -} -a.comments span.under -{ - display: block; - font-size: 8px; - line-height: 6px; - margin-left: auto; - margin-right: auto; - margin-top: 0; -} -a.header-button,div.header-button -{ - border: 1px solid #696969; - border-radius: 10px; - color: #202020; - display: block; - float: left; - font-size: 20px; - margin: 5px; - moz-border-radius: 10px; - overflow: hidden; - padding: 8px; - text-decoration: none; -} -a.header-button:hover,a.section-button:hover -{ - background-color: #EFEFEF; - border: 1px solid #000; - color: #242424; - text-decoration: none; -} -a.hidden -{ - display: block; - font-size: 13px; - margin-top: 19px; -} -a.minus -{ - color: red; - padding-left: 8px; - padding-right: 8px; -} -a.name -{ - border-bottom: none; - display: inline; - line-height: 32px; - padding: 6px; - text-decoration: none; -} -a.page-button,div.page-button -{ - border: 1px solid #696969; - border-radius: 10px; - color: #202020; - font-size: 16px; - margin: 1px; - moz-border-radius: 10px; - overflow: hidden; - padding: 8px; - text-decoration: none; -} -a.page-button:hover -{ - background-color: #D8D8D8; - border: 1px solid #000; - color: #242424; - text-decoration: none; -} -a.plus -{ - color: lime; - padding-left: 4px; - padding-right: 4px; -} -a.plus,a.minus,a.comments -{ - border-bottom: none; -} -a.plus,a.minus,div.votestate -{ - display: block; - float: right; - padding-bottom: 3px; - padding-right: 3px; - text-decoration: none; -} -a.plus:hover,a.minus:hover,a.comments:hover -{ - background-color: gray; - color: #FFF; -} -a.readmore -{ - color: #000; - margin-left: 12px; - text-decoration: none; -} -a.readmore:hover,a.name:hover -{ - text-decoration: underline; -} -a.section-button -{ - border: 1px solid #DDD; - border-radius: 10px; - color: #EFEFEF; - display: block; - float: right; - font-size: 14px; - margin: 5px; - moz-border-radius: 10px; - padding: 6px; - text-decoration: none; -} -a.small -{ - display: inline; - margin-left: 8px; -} -a.tab -{ - border-bottom: 1px solid #000; -} -a.tab,a.tab-active -{ - background-color: #DDD; - border: 1px solid #000; - border-top-left-radius: 7px; - border-top-right-radius: 7px; - font-size: 18px; - font-weight: 400; - moz-border-radius-topleft: 7px; - moz-border-radius-topright: 7px; - padding: 5px 5px 4px; - text-decoration: none; -} -a.tab-active,a.tab:hover -{ - background-color: #7D7D7D; - color: #EFEFEF; -} -a:hover -{ - border-bottom: 1px solid; -} -button.hiddenreply -{ - float: right; -} -div.body-main -{ - padding: 3px 13px; -} -div.cc-notice -{ - background-color: #D9D9D9; - border: 1px solid #000; - border-radius: 8px; - font-size: 11px; - margin: 0 auto; - moz-border-radius: 8px; - padding: 4px; - width: 80%; -} -div.cc-notice img -{ - float: left; - margin-right: 6px; -} -div.clear -{ - clear: both; -} -div.comment -{ - background-color: #E0E0E0; - border: 1px solid #000; - font-size: 16px; - margin-bottom: 18px; - padding: 16px; -} -div.form-notice -{ - background-color: #FFEFBE; - background-image: url(http://tahoe-gateway.cryto.net:3719/download/VVJJOkNISzp5anRpYzc1b24zemx3M2k0MnJ0ajN4Y2Z5eTpqcGt1aXJkcXhiYnU3bnUzdjdycngyZWFhejd3cGpqZzY1d3ptbG81NnY3Y21mNGh4aDRhOjM6Njo2NjY=/error.png); - background-position: 6px 3px; - background-repeat: no-repeat; - border: 1px solid #735600; - border-radius: 10px; - box-sizing: border-box; - font-size: 12px; - khtml-box-sizing: border-box; - margin-bottom: 3px; - moz-border-radius: 10px; - moz-box-sizing: border-box; - ms-box-sizing: border-box; - padding: 5px 5px 5px 27px; - webkit-border-radius: 10px; - webkit-box-sizing: border-box; - width: 80%; -} -div.header,.forum-reply -{ - margin-top: 16px; -} -div.hiddenreply -{ - background-color: silver; - border: 1px solid #000; - display: none; - margin-top: 6px; - padding: 4px; - width: 358px; -} -div.highlighted -{ - background-color: #FBEC99; -} -div.item -{ - background-color: #DDD; - border: 1px solid gray; - border-radius: 8px; - font-size: 16px; - margin-top: 3px; - moz-border-radius: 8px; - padding: 0; -} -div.normalcomments -{ - background-color: silver; - border: 1px solid #000; - padding: 4px; - width: 358px; -} -div.note -{ - font-size: 12px; - margin-top: 6px; -} -div.page-list -{ - padding: 0 15px; - text-align: center; -} -div.page-list a -{ - border: none; - line-height: 180%; - margin: 2px 0; - padding: 3px 4px 3px 3px; - text-decoration: none; -} -div.page-list a:hover -{ - outline: 1px dashed #000; -} -div.page-list-bottom -{ - margin-top: 11px; -} -div.page-list-top -{ - margin-bottom: 11px; - margin-top: 11px; -} -div.pagecontent -{ - margin: 12px; -} -div.pressrelease -{ - margin: 0 auto; - text-align: justify; - width: 900px; -} -div.pressrelease p -{ - margin-bottom: 9px; - margin-top: 4px; -} -div.pressrelease-image -{ - margin-bottom: 15px; - padding: 0; - text-align: center; -} -div.pressrelease-image img -{ - margin: 0; -} -div.section -{ - background-color: #7D7D7D; - border: 1px solid #000; - border-radius: 14px; - moz-border-radius: 14px; - padding: 4px; -} -div.section-header -{ - color: #5B5B5B; - font-size: 23px; - font-weight: 700; - margin-bottom: 3px; -} -div.section-wrapper -{ - margin: 0 auto 17px; - width: 98%; -} -div.small -{ - background-color: #E1E1E1; - border-color: gray; - padding: 8px; -} -div.sort-options -{ - float: right; - font-size: 13px; - margin-bottom: 6px; -} -div.sort-options a,input.empty -{ - color: gray; -} -div.sort-options a.active -{ - border-bottom-style: solid; - color: #000; -} -div.sort-options a:hover -{ - border-bottom-style: dashed; - color: #000; -} -div.source-notice -{ - text-align: center; -} -div.submit -{ - margin-top: 15px; - text-align: center; - width: 80%; -} -div.submit button -{ - font-size: 19px; -} -div.submit-loader -{ - display: none; - font-size: 16px; - text-align: center; - width: 80%; -} -div.topbar -{ - background-color: #E0E0E0; - border-bottom: 1px solid gray; - font-size: 18px; - margin-bottom: 15px; - padding: 3px 12px; - text-align: left; -} -div.upvotes -{ - color: green; - float: right; - margin-right: 8px; -} -form h4 -{ - font-size: 22px; - margin-bottom: 2px; - margin-top: 14px; -} -form.forum input,form.forum textarea,form.forum select -{ - font-size: 17px; - padding: 4px; - width: 100%; -} -form.forum textarea -{ - height: 200px; -} -form.submission input,form.submission textarea,form.submission select -{ - font-size: 24px; - padding: 5px; - width: 80%; -} -form.submission input,form.submission textarea,form.submission select,form.forum input,form.forum textarea,form.forum select -{ - background-color: #F1F1F1; - border: 1px solid #000; - box-sizing: border-box; - display: block; - khtml-box-sizing: border-box; - moz-box-sizing: border-box; - ms-box-sizing: border-box; - webkit-box-sizing: border-box; -} -form.submission input.upload,.c-reply input,.c-comment input -{ - font-size: 17px; -} -form.submission textarea -{ - height: 400px; -} -form.submission textarea,form.forum textarea -{ - font-size: 14px; -} -h1 -{ - background-color: #D7D7D7; - border-bottom: 1px solid gray; - font-weight: 400; - margin-bottom: 0; - margin-top: 0; - padding: 10px; -} -h1 img,h1 input -{ - font-size: 2px; -} -h1,h1 a -{ - border-bottom: none; - color: #3B3B3B; -} -h2 -{ - color: #3D3D3D; - display: inline; - padding: 7px; -} -h3 -{ - margin-bottom: 2px; -} -h5 -{ - border-bottom: 1px solid #000; - font-size: 26px; - margin-bottom: 15px; - margin-top: 3px; - padding-bottom: 7px; -} -html,body -{ - background-color: #EBEBEB; - font-family: Muli, Verdana, Arial; - height: 100%; - margin: 0; - padding: 0; -} -img.loader -{ - display: none; - float: left; - margin-left: 5px; - margin-top: 9px; -} -span.smallcomment -{ - color: #242424; -} -span.spacer -{ - font-size: 1px; -} -span.strong,a.tab-active,span.bold,div.page-list a.current,.c-meta-name -{ - font-weight: 700; -} -span.votecount -{ - float: right; - padding-right: 6px; -} -span.votes -{ - float: right; - font-size: 24px; - font-weight: 700; - padding-right: 9px; -} -strong.hidden -{ - display: block; - margin-bottom: 3px; -} -textarea.reply -{ - font-family: arial; - height: 140px; - width: 350px; -} diff --git a/public_html/tiny_mce/langs/en.js b/public_html/tiny_mce/langs/en.js deleted file mode 100755 index ea4a1b0..0000000 --- a/public_html/tiny_mce/langs/en.js +++ /dev/null @@ -1,170 +0,0 @@ -tinyMCE.addI18n({en:{ -common:{ -edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", -apply:"Apply", -insert:"Insert", -update:"Update", -cancel:"Cancel", -close:"Close", -browse:"Browse", -class_name:"Class", -not_set:"-- Not set --", -clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?", -clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.", -popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.", -invalid_data:"Error: Invalid values entered, these are marked in red.", -more_colors:"More colors" -}, -contextmenu:{ -align:"Alignment", -left:"Left", -center:"Center", -right:"Right", -full:"Full" -}, -insertdatetime:{ -date_fmt:"%Y-%m-%d", -time_fmt:"%H:%M:%S", -insertdate_desc:"Insert date", -inserttime_desc:"Insert time", -months_long:"January,February,March,April,May,June,July,August,September,October,November,December", -months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", -day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", -day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun" -}, -print:{ -print_desc:"Print" -}, -preview:{ -preview_desc:"Preview" -}, -directionality:{ -ltr_desc:"Direction left to right", -rtl_desc:"Direction right to left" -}, -layer:{ -insertlayer_desc:"Insert new layer", -forward_desc:"Move forward", -backward_desc:"Move backward", -absolute_desc:"Toggle absolute positioning", -content:"New layer..." -}, -save:{ -save_desc:"Save", -cancel_desc:"Cancel all changes" -}, -nonbreaking:{ -nonbreaking_desc:"Insert non-breaking space character" -}, -iespell:{ -iespell_desc:"Run spell checking", -download:"ieSpell not detected. Do you want to install it now?" -}, -advhr:{ -advhr_desc:"Horizontal rule" -}, -emotions:{ -emotions_desc:"Emotions" -}, -searchreplace:{ -search_desc:"Find", -replace_desc:"Find/Replace" -}, -advimage:{ -image_desc:"Insert/edit image" -}, -advlink:{ -link_desc:"Insert/edit link" -}, -xhtmlxtras:{ -cite_desc:"Citation", -abbr_desc:"Abbreviation", -acronym_desc:"Acronym", -del_desc:"Deletion", -ins_desc:"Insertion", -attribs_desc:"Insert/Edit Attributes" -}, -style:{ -desc:"Edit CSS Style" -}, -paste:{ -paste_text_desc:"Paste as Plain Text", -paste_word_desc:"Paste from Word", -selectall_desc:"Select All", -plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.", -plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode." -}, -paste_dlg:{ -text_title:"Use CTRL+V on your keyboard to paste the text into the window.", -text_linebreaks:"Keep linebreaks", -word_title:"Use CTRL+V on your keyboard to paste the text into the window." -}, -table:{ -desc:"Inserts a new table", -row_before_desc:"Insert row before", -row_after_desc:"Insert row after", -delete_row_desc:"Delete row", -col_before_desc:"Insert column before", -col_after_desc:"Insert column after", -delete_col_desc:"Remove column", -split_cells_desc:"Split merged table cells", -merge_cells_desc:"Merge table cells", -row_desc:"Table row properties", -cell_desc:"Table cell properties", -props_desc:"Table properties", -paste_row_before_desc:"Paste table row before", -paste_row_after_desc:"Paste table row after", -cut_row_desc:"Cut table row", -copy_row_desc:"Copy table row", -del:"Delete table", -row:"Row", -col:"Column", -cell:"Cell" -}, -autosave:{ -unload_msg:"The changes you made will be lost if you navigate away from this page.", -restore_content:"Restore auto-saved content.", -warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?." -}, -fullscreen:{ -desc:"Toggle fullscreen mode" -}, -media:{ -desc:"Insert / edit embedded media", -edit:"Edit embedded media" -}, -fullpage:{ -desc:"Document properties" -}, -template:{ -desc:"Insert predefined template content" -}, -visualchars:{ -desc:"Visual control characters on/off." -}, -spellchecker:{ -desc:"Toggle spellchecker", -menu:"Spellchecker settings", -ignore_word:"Ignore word", -ignore_words:"Ignore all", -langs:"Languages", -wait:"Please wait...", -sug:"Suggestions", -no_sug:"No suggestions", -no_mpell:"No misspellings found." -}, -pagebreak:{ -desc:"Insert page break." -}, -advlist:{ -types:"Types", -def:"Default", -lower_alpha:"Lower alpha", -lower_greek:"Lower greek", -lower_roman:"Lower roman", -upper_alpha:"Upper alpha", -upper_roman:"Upper roman", -circle:"Circle", -disc:"Disc", -square:"Square" -}}}); \ No newline at end of file diff --git a/public_html/tiny_mce/license.txt b/public_html/tiny_mce/license.txt deleted file mode 100755 index 60d6d4c..0000000 --- a/public_html/tiny_mce/license.txt +++ /dev/null @@ -1,504 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - - diff --git a/public_html/tiny_mce/plugins/advhr/css/advhr.css b/public_html/tiny_mce/plugins/advhr/css/advhr.css deleted file mode 100755 index 0e22834..0000000 --- a/public_html/tiny_mce/plugins/advhr/css/advhr.css +++ /dev/null @@ -1,5 +0,0 @@ -input.radio {border:1px none #000; background:transparent; vertical-align:middle;} -.panel_wrapper div.current {height:80px;} -#width {width:50px; vertical-align:middle;} -#width2 {width:50px; vertical-align:middle;} -#size {width:100px;} diff --git a/public_html/tiny_mce/plugins/advhr/editor_plugin.js b/public_html/tiny_mce/plugins/advhr/editor_plugin.js deleted file mode 100755 index 4d3b062..0000000 --- a/public_html/tiny_mce/plugins/advhr/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js b/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js deleted file mode 100755 index 0c652d3..0000000 --- a/public_html/tiny_mce/plugins/advhr/editor_plugin_src.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedHRPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceAdvancedHr', function() { - ed.windowManager.open({ - file : url + '/rule.htm', - width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), - height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('advhr', { - title : 'advhr.advhr_desc', - cmd : 'mceAdvancedHr' - }); - - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('advhr', n.nodeName == 'HR'); - }); - - ed.onClick.add(function(ed, e) { - e = e.target; - - if (e.nodeName === 'HR') - ed.selection.select(e); - }); - }, - - getInfo : function() { - return { - longname : 'Advanced HR', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/js/rule.js b/public_html/tiny_mce/plugins/advhr/js/rule.js deleted file mode 100755 index b6cbd66..0000000 --- a/public_html/tiny_mce/plugins/advhr/js/rule.js +++ /dev/null @@ -1,43 +0,0 @@ -var AdvHRDialog = { - init : function(ed) { - var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; - - w = dom.getAttrib(n, 'width'); - f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); - f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; - f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); - selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); - }, - - update : function() { - var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; - - h = ''; - - ed.execCommand("mceInsertContent", false, h); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.requireLangPack(); -tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog); diff --git a/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js b/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js deleted file mode 100755 index 873bfd8..0000000 --- a/public_html/tiny_mce/plugins/advhr/langs/en_dlg.js +++ /dev/null @@ -1,5 +0,0 @@ -tinyMCE.addI18n('en.advhr_dlg',{ -width:"Width", -size:"Height", -noshade:"No shadow" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advhr/rule.htm b/public_html/tiny_mce/plugins/advhr/rule.htm deleted file mode 100755 index fc37b2a..0000000 --- a/public_html/tiny_mce/plugins/advhr/rule.htm +++ /dev/null @@ -1,57 +0,0 @@ - - - - {#advhr.advhr_desc} - - - - - - - - - - - {#advhr.advhr_desc} - - - - - - - - {#advhr_dlg.width} - - - - px - % - - - - - {#advhr_dlg.size} - - Normal - 1 - 2 - 3 - 4 - 5 - - - - {#advhr_dlg.noshade} - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advimage/css/advimage.css b/public_html/tiny_mce/plugins/advimage/css/advimage.css deleted file mode 100755 index 0a6251a..0000000 --- a/public_html/tiny_mce/plugins/advimage/css/advimage.css +++ /dev/null @@ -1,13 +0,0 @@ -#src_list, #over_list, #out_list {width:280px;} -.mceActionPanel {margin-top:7px;} -.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} -.checkbox {border:0;} -.panel_wrapper div.current {height:305px;} -#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} -#align, #classlist {width:150px;} -#width, #height {vertical-align:middle; width:50px; text-align:center;} -#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} -#class_list {width:180px;} -input {width: 280px;} -#constrain, #onmousemovecheck {width:auto;} -#id, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/public_html/tiny_mce/plugins/advimage/editor_plugin.js b/public_html/tiny_mce/plugins/advimage/editor_plugin.js deleted file mode 100755 index 4c7a9c3..0000000 --- a/public_html/tiny_mce/plugins/advimage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js b/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js deleted file mode 100755 index 2625dd2..0000000 --- a/public_html/tiny_mce/plugins/advimage/editor_plugin_src.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedImagePlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceAdvImage', function() { - // Internal image object like a flash placeholder - if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) - return; - - ed.windowManager.open({ - file : url + '/image.htm', - width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)), - height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('image', { - title : 'advimage.image_desc', - cmd : 'mceAdvImage' - }); - }, - - getInfo : function() { - return { - longname : 'Advanced image', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advimage/image.htm b/public_html/tiny_mce/plugins/advimage/image.htm deleted file mode 100755 index 79cff3f..0000000 --- a/public_html/tiny_mce/plugins/advimage/image.htm +++ /dev/null @@ -1,232 +0,0 @@ - - - - {#advimage_dlg.dialog_title} - - - - - - - - - - - - - {#advimage_dlg.tab_general} - {#advimage_dlg.tab_appearance} - {#advimage_dlg.tab_advanced} - - - - - - - {#advimage_dlg.general} - - - - {#advimage_dlg.src} - - - - - - - - - {#advimage_dlg.image_list} - - - - {#advimage_dlg.alt} - - - - {#advimage_dlg.title} - - - - - - - {#advimage_dlg.preview} - - - - - - - {#advimage_dlg.tab_appearance} - - - - {#advimage_dlg.align} - - {#not_set} - {#advimage_dlg.align_baseline} - {#advimage_dlg.align_top} - {#advimage_dlg.align_middle} - {#advimage_dlg.align_bottom} - {#advimage_dlg.align_texttop} - {#advimage_dlg.align_textbottom} - {#advimage_dlg.align_left} - {#advimage_dlg.align_right} - - - - - - Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam - nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum - edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam - erat volutpat. - - - - - - {#advimage_dlg.dimensions} - - x - px - - - - - - - - - {#advimage_dlg.constrain_proportions} - - - - - - {#advimage_dlg.vspace} - - - - - - {#advimage_dlg.hspace} - - - - - {#advimage_dlg.border} - - - - - {#class_name} - - - - - {#advimage_dlg.style} - - - - - - - - - - - {#advimage_dlg.swap_image} - - - {#advimage_dlg.alt_image} - - - - {#advimage_dlg.mouseover} - - - - - - - - - {#advimage_dlg.image_list} - - - - {#advimage_dlg.mouseout} - - - - - - - - - {#advimage_dlg.image_list} - - - - - - - {#advimage_dlg.misc} - - - - {#advimage_dlg.id} - - - - - {#advimage_dlg.langdir} - - - {#not_set} - {#advimage_dlg.ltr} - {#advimage_dlg.rtl} - - - - - - {#advimage_dlg.langcode} - - - - - - - {#advimage_dlg.map} - - - - - - - {#advimage_dlg.long_desc} - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advimage/img/sample.gif b/public_html/tiny_mce/plugins/advimage/img/sample.gif deleted file mode 100755 index 53bf689..0000000 Binary files a/public_html/tiny_mce/plugins/advimage/img/sample.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/advimage/js/image.js b/public_html/tiny_mce/plugins/advimage/js/image.js deleted file mode 100755 index 3bda86a..0000000 --- a/public_html/tiny_mce/plugins/advimage/js/image.js +++ /dev/null @@ -1,443 +0,0 @@ -var ImageDialog = { - preInit : function() { - var url; - - tinyMCEPopup.requireLangPack(); - - if (url = tinyMCEPopup.getParam("external_image_list_url")) - document.write(''); - }, - - init : function(ed) { - var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); - - tinyMCEPopup.resizeToInnerSize(); - this.fillClassList('class_list'); - this.fillFileList('src_list', 'tinyMCEImageList'); - this.fillFileList('over_list', 'tinyMCEImageList'); - this.fillFileList('out_list', 'tinyMCEImageList'); - TinyMCE_EditableSelects.init(); - - if (n.nodeName == 'IMG') { - nl.src.value = dom.getAttrib(n, 'src'); - nl.width.value = dom.getAttrib(n, 'width'); - nl.height.value = dom.getAttrib(n, 'height'); - nl.alt.value = dom.getAttrib(n, 'alt'); - nl.title.value = dom.getAttrib(n, 'title'); - nl.vspace.value = this.getAttrib(n, 'vspace'); - nl.hspace.value = this.getAttrib(n, 'hspace'); - nl.border.value = this.getAttrib(n, 'border'); - selectByValue(f, 'align', this.getAttrib(n, 'align')); - selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true); - nl.style.value = dom.getAttrib(n, 'style'); - nl.id.value = dom.getAttrib(n, 'id'); - nl.dir.value = dom.getAttrib(n, 'dir'); - nl.lang.value = dom.getAttrib(n, 'lang'); - nl.usemap.value = dom.getAttrib(n, 'usemap'); - nl.longdesc.value = dom.getAttrib(n, 'longdesc'); - nl.insert.value = ed.getLang('update'); - - if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover'))) - nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); - - if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout'))) - nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); - - if (ed.settings.inline_styles) { - // Move attribs to styles - if (dom.getAttrib(n, 'align')) - this.updateStyle('align'); - - if (dom.getAttrib(n, 'hspace')) - this.updateStyle('hspace'); - - if (dom.getAttrib(n, 'border')) - this.updateStyle('border'); - - if (dom.getAttrib(n, 'vspace')) - this.updateStyle('vspace'); - } - } - - // Setup browse button - document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); - if (isVisible('srcbrowser')) - document.getElementById('src').style.width = '260px'; - - // Setup browse button - document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image'); - if (isVisible('overbrowser')) - document.getElementById('onmouseoversrc').style.width = '260px'; - - // Setup browse button - document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image'); - if (isVisible('outbrowser')) - document.getElementById('onmouseoutsrc').style.width = '260px'; - - // If option enabled default contrain proportions to checked - if (ed.getParam("advimage_constrain_proportions", true)) - f.constrain.checked = true; - - // Check swap image if valid data - if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value) - this.setSwapImage(true); - else - this.setSwapImage(false); - - this.changeAppearance(); - this.showPreviewImage(nl.src.value, 1); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, t = this, f = document.forms[0]; - - if (f.src.value === '') { - if (ed.selection.getNode().nodeName == 'IMG') { - ed.dom.remove(ed.selection.getNode()); - ed.execCommand('mceRepaint'); - } - - tinyMCEPopup.close(); - return; - } - - if (tinyMCEPopup.getParam("accessibility_warnings", 1)) { - if (!f.alt.value) { - tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) { - if (s) - t.insertAndClose(); - }); - - return; - } - } - - t.insertAndClose(); - }, - - insertAndClose : function() { - var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el; - - tinyMCEPopup.restoreSelection(); - - // Fixes crash in Safari - if (tinymce.isWebKit) - ed.getWin().focus(); - - if (!ed.settings.inline_styles) { - args = { - vspace : nl.vspace.value, - hspace : nl.hspace.value, - border : nl.border.value, - align : getSelectValue(f, 'align') - }; - } else { - // Remove deprecated values - args = { - vspace : '', - hspace : '', - border : '', - align : '' - }; - } - - tinymce.extend(args, { - src : nl.src.value, - width : nl.width.value, - height : nl.height.value, - alt : nl.alt.value, - title : nl.title.value, - 'class' : getSelectValue(f, 'class_list'), - style : nl.style.value, - id : nl.id.value, - dir : nl.dir.value, - lang : nl.lang.value, - usemap : nl.usemap.value, - longdesc : nl.longdesc.value - }); - - args.onmouseover = args.onmouseout = ''; - - if (f.onmousemovecheck.checked) { - if (nl.onmouseoversrc.value) - args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';"; - - if (nl.onmouseoutsrc.value) - args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';"; - } - - el = ed.selection.getNode(); - - if (el && el.nodeName == 'IMG') { - ed.dom.setAttribs(el, args); - } else { - ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); - ed.dom.setAttribs('__mce_tmp', args); - ed.dom.setAttrib('__mce_tmp', 'id', ''); - ed.undoManager.add(); - } - - tinyMCEPopup.close(); - }, - - getAttrib : function(e, at) { - var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; - - if (ed.settings.inline_styles) { - switch (at) { - case 'align': - if (v = dom.getStyle(e, 'float')) - return v; - - if (v = dom.getStyle(e, 'vertical-align')) - return v; - - break; - - case 'hspace': - v = dom.getStyle(e, 'margin-left') - v2 = dom.getStyle(e, 'margin-right'); - - if (v && v == v2) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - - case 'vspace': - v = dom.getStyle(e, 'margin-top') - v2 = dom.getStyle(e, 'margin-bottom'); - if (v && v == v2) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - - case 'border': - v = 0; - - tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { - sv = dom.getStyle(e, 'border-' + sv + '-width'); - - // False or not the same as prev - if (!sv || (sv != v && v !== 0)) { - v = 0; - return false; - } - - if (sv) - v = sv; - }); - - if (v) - return parseInt(v.replace(/[^0-9]/g, '')); - - break; - } - } - - if (v = dom.getAttrib(e, at)) - return v; - - return ''; - }, - - setSwapImage : function(st) { - var f = document.forms[0]; - - f.onmousemovecheck.checked = st; - setBrowserDisabled('overbrowser', !st); - setBrowserDisabled('outbrowser', !st); - - if (f.over_list) - f.over_list.disabled = !st; - - if (f.out_list) - f.out_list.disabled = !st; - - f.onmouseoversrc.disabled = !st; - f.onmouseoutsrc.disabled = !st; - }, - - fillClassList : function(id) { - var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; - - if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { - cl = []; - - tinymce.each(v.split(';'), function(v) { - var p = v.split('='); - - cl.push({'title' : p[0], 'class' : p[1]}); - }); - } else - cl = tinyMCEPopup.editor.dom.getClasses(); - - if (cl.length > 0) { - lst.options.length = 0; - lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); - - tinymce.each(cl, function(o) { - lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); - }); - } else - dom.remove(dom.getParent(id, 'tr')); - }, - - fillFileList : function(id, l) { - var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; - - l = window[l]; - lst.options.length = 0; - - if (l && l.length > 0) { - lst.options[lst.options.length] = new Option('', ''); - - tinymce.each(l, function(o) { - lst.options[lst.options.length] = new Option(o[0], o[1]); - }); - } else - dom.remove(dom.getParent(id, 'tr')); - }, - - resetImageData : function() { - var f = document.forms[0]; - - f.elements.width.value = f.elements.height.value = ''; - }, - - updateImageData : function(img, st) { - var f = document.forms[0]; - - if (!st) { - f.elements.width.value = img.width; - f.elements.height.value = img.height; - } - - this.preloadImg = img; - }, - - changeAppearance : function() { - var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg'); - - if (img) { - if (ed.getParam('inline_styles')) { - ed.dom.setAttrib(img, 'style', f.style.value); - } else { - img.align = f.align.value; - img.border = f.border.value; - img.hspace = f.hspace.value; - img.vspace = f.vspace.value; - } - } - }, - - changeHeight : function() { - var f = document.forms[0], tp, t = this; - - if (!f.constrain.checked || !t.preloadImg) { - return; - } - - if (f.width.value == "" || f.height.value == "") - return; - - tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height; - f.height.value = tp.toFixed(0); - }, - - changeWidth : function() { - var f = document.forms[0], tp, t = this; - - if (!f.constrain.checked || !t.preloadImg) { - return; - } - - if (f.width.value == "" || f.height.value == "") - return; - - tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width; - f.width.value = tp.toFixed(0); - }, - - updateStyle : function(ty) { - var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value}); - - if (tinyMCEPopup.editor.settings.inline_styles) { - // Handle align - if (ty == 'align') { - dom.setStyle(img, 'float', ''); - dom.setStyle(img, 'vertical-align', ''); - - v = getSelectValue(f, 'align'); - if (v) { - if (v == 'left' || v == 'right') - dom.setStyle(img, 'float', v); - else - img.style.verticalAlign = v; - } - } - - // Handle border - if (ty == 'border') { - dom.setStyle(img, 'border', ''); - - v = f.border.value; - if (v || v == '0') { - if (v == '0') - img.style.border = '0'; - else - img.style.border = v + 'px solid black'; - } - } - - // Handle hspace - if (ty == 'hspace') { - dom.setStyle(img, 'marginLeft', ''); - dom.setStyle(img, 'marginRight', ''); - - v = f.hspace.value; - if (v) { - img.style.marginLeft = v + 'px'; - img.style.marginRight = v + 'px'; - } - } - - // Handle vspace - if (ty == 'vspace') { - dom.setStyle(img, 'marginTop', ''); - dom.setStyle(img, 'marginBottom', ''); - - v = f.vspace.value; - if (v) { - img.style.marginTop = v + 'px'; - img.style.marginBottom = v + 'px'; - } - } - - // Merge - dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img'); - } - }, - - changeMouseMove : function() { - }, - - showPreviewImage : function(u, st) { - if (!u) { - tinyMCEPopup.dom.setHTML('prev', ''); - return; - } - - if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) - this.resetImageData(); - - u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u); - - if (!st) - tinyMCEPopup.dom.setHTML('prev', ''); - else - tinyMCEPopup.dom.setHTML('prev', ''); - } -}; - -ImageDialog.preInit(); -tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js b/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js deleted file mode 100755 index f493d19..0000000 --- a/public_html/tiny_mce/plugins/advimage/langs/en_dlg.js +++ /dev/null @@ -1,43 +0,0 @@ -tinyMCE.addI18n('en.advimage_dlg',{ -tab_general:"General", -tab_appearance:"Appearance", -tab_advanced:"Advanced", -general:"General", -title:"Title", -preview:"Preview", -constrain_proportions:"Constrain proportions", -langdir:"Language direction", -langcode:"Language code", -long_desc:"Long description link", -style:"Style", -classes:"Classes", -ltr:"Left to right", -rtl:"Right to left", -id:"Id", -map:"Image map", -swap_image:"Swap image", -alt_image:"Alternative image", -mouseover:"for mouse over", -mouseout:"for mouse out", -misc:"Miscellaneous", -example_img:"Appearance preview image", -missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.", -dialog_title:"Insert/edit image", -src:"Image URL", -alt:"Image description", -list:"Image list", -border:"Border", -dimensions:"Dimensions", -vspace:"Vertical space", -hspace:"Horizontal space", -align:"Alignment", -align_baseline:"Baseline", -align_top:"Top", -align_middle:"Middle", -align_bottom:"Bottom", -align_texttop:"Text top", -align_textbottom:"Text bottom", -align_left:"Left", -align_right:"Right", -image_list:"Image list" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/css/advlink.css b/public_html/tiny_mce/plugins/advlink/css/advlink.css deleted file mode 100755 index 1436431..0000000 --- a/public_html/tiny_mce/plugins/advlink/css/advlink.css +++ /dev/null @@ -1,8 +0,0 @@ -.mceLinkList, .mceAnchorList, #targetlist {width:280px;} -.mceActionPanel {margin-top:7px;} -.panel_wrapper div.current {height:320px;} -#classlist, #title, #href {width:280px;} -#popupurl, #popupname {width:200px;} -#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} -#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} -#events_panel input {width:200px;} diff --git a/public_html/tiny_mce/plugins/advlink/editor_plugin.js b/public_html/tiny_mce/plugins/advlink/editor_plugin.js deleted file mode 100755 index 983fe5a..0000000 --- a/public_html/tiny_mce/plugins/advlink/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js b/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js deleted file mode 100755 index 14e46a7..0000000 --- a/public_html/tiny_mce/plugins/advlink/editor_plugin_src.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.AdvancedLinkPlugin', { - init : function(ed, url) { - this.editor = ed; - - // Register commands - ed.addCommand('mceAdvLink', function() { - var se = ed.selection; - - // No selection and not in link - if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A')) - return; - - ed.windowManager.open({ - file : url + '/link.htm', - width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)), - height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('link', { - title : 'advlink.link_desc', - cmd : 'mceAdvLink' - }); - - ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink'); - - ed.onNodeChange.add(function(ed, cm, n, co) { - cm.setDisabled('link', co && n.nodeName != 'A'); - cm.setActive('link', n.nodeName == 'A' && !n.name); - }); - }, - - getInfo : function() { - return { - longname : 'Advanced link', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/js/advlink.js b/public_html/tiny_mce/plugins/advlink/js/advlink.js deleted file mode 100755 index b78e82f..0000000 --- a/public_html/tiny_mce/plugins/advlink/js/advlink.js +++ /dev/null @@ -1,528 +0,0 @@ -/* Functions for the advlink plugin popup */ - -tinyMCEPopup.requireLangPack(); - -var templates = { - "window.open" : "window.open('${url}','${target}','${options}')" -}; - -function preinit() { - var url; - - if (url = tinyMCEPopup.getParam("external_link_list_url")) - document.write(''); -} - -function changeClass() { - var f = document.forms[0]; - - f.classes.value = getSelectValue(f, 'classlist'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - var inst = tinyMCEPopup.editor; - var elm = inst.selection.getNode(); - var action = "insert"; - var html; - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); - document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); - document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); - document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); - document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); - - // Link list - html = getLinkListHTML('linklisthref','href'); - if (html == "") - document.getElementById("linklisthrefrow").style.display = 'none'; - else - document.getElementById("linklisthrefcontainer").innerHTML = html; - - // Resize some elements - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '260px'; - - if (isVisible('popupurlbrowser')) - document.getElementById('popupurl').style.width = '180px'; - - elm = inst.dom.getParent(elm, "A"); - if (elm != null && elm.nodeName == "A") - action = "update"; - - formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true); - - setPopupControlsDisabled(true); - - if (action == "update") { - var href = inst.dom.getAttrib(elm, 'href'); - var onclick = inst.dom.getAttrib(elm, 'onclick'); - - // Setup form data - setFormValue('href', href); - setFormValue('title', inst.dom.getAttrib(elm, 'title')); - setFormValue('id', inst.dom.getAttrib(elm, 'id')); - setFormValue('style', inst.dom.getAttrib(elm, "style")); - setFormValue('rel', inst.dom.getAttrib(elm, 'rel')); - setFormValue('rev', inst.dom.getAttrib(elm, 'rev')); - setFormValue('charset', inst.dom.getAttrib(elm, 'charset')); - setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang')); - setFormValue('dir', inst.dom.getAttrib(elm, 'dir')); - setFormValue('lang', inst.dom.getAttrib(elm, 'lang')); - setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); - setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); - setFormValue('type', inst.dom.getAttrib(elm, 'type')); - setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus')); - setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur')); - setFormValue('onclick', onclick); - setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick')); - setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown')); - setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup')); - setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover')); - setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove')); - setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout')); - setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress')); - setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown')); - setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup')); - setFormValue('target', inst.dom.getAttrib(elm, 'target')); - setFormValue('classes', inst.dom.getAttrib(elm, 'class')); - - // Parse onclick data - if (onclick != null && onclick.indexOf('window.open') != -1) - parseWindowOpen(onclick); - else - parseFunction(onclick); - - // Select by the values - selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir')); - selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel')); - selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev')); - selectByValue(formObj, 'linklisthref', href); - - if (href.charAt(0) == '#') - selectByValue(formObj, 'anchorlist', href); - - addClassesToList('classlist', 'advlink_styles'); - - selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true); - selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true); - } else - addClassesToList('classlist', 'advlink_styles'); -} - -function checkPrefix(n) { - if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) - n.value = 'mailto:' + n.value; - - if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) - n.value = 'http://' + n.value; -} - -function setFormValue(name, value) { - document.forms[0].elements[name].value = value; -} - -function parseWindowOpen(onclick) { - var formObj = document.forms[0]; - - // Preprocess center code - if (onclick.indexOf('return false;') != -1) { - formObj.popupreturn.checked = true; - onclick = onclick.replace('return false;', ''); - } else - formObj.popupreturn.checked = false; - - var onClickData = parseLink(onclick); - - if (onClickData != null) { - formObj.ispopup.checked = true; - setPopupControlsDisabled(false); - - var onClickWindowOptions = parseOptions(onClickData['options']); - var url = onClickData['url']; - - formObj.popupname.value = onClickData['target']; - formObj.popupurl.value = url; - formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); - formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); - - formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); - formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); - - if (formObj.popupleft.value.indexOf('screen') != -1) - formObj.popupleft.value = "c"; - - if (formObj.popuptop.value.indexOf('screen') != -1) - formObj.popuptop.value = "c"; - - formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; - formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; - formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; - formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; - formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; - formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; - formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; - - buildOnClick(); - } -} - -function parseFunction(onclick) { - var formObj = document.forms[0]; - var onClickData = parseLink(onclick); - - // TODO: Add stuff here -} - -function getOption(opts, name) { - return typeof(opts[name]) == "undefined" ? "" : opts[name]; -} - -function setPopupControlsDisabled(state) { - var formObj = document.forms[0]; - - formObj.popupname.disabled = state; - formObj.popupurl.disabled = state; - formObj.popupwidth.disabled = state; - formObj.popupheight.disabled = state; - formObj.popupleft.disabled = state; - formObj.popuptop.disabled = state; - formObj.popuplocation.disabled = state; - formObj.popupscrollbars.disabled = state; - formObj.popupmenubar.disabled = state; - formObj.popupresizable.disabled = state; - formObj.popuptoolbar.disabled = state; - formObj.popupstatus.disabled = state; - formObj.popupreturn.disabled = state; - formObj.popupdependent.disabled = state; - - setBrowserDisabled('popupurlbrowser', state); -} - -function parseLink(link) { - link = link.replace(new RegExp(''', 'g'), "'"); - - var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); - - // Is function name a template function - var template = templates[fnName]; - if (template) { - // Build regexp - var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); - var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; - var replaceStr = ""; - for (var i=0; i"; - } else - regExp += ".*"; - } - - regExp += "\\);?"; - - // Build variable array - var variables = []; - variables["_function"] = fnName; - var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split(''); - for (var i=0; i'; - html += '---'; - - for (i=0; i' + name + ''; - } - - html += ''; - - return html; -} - -function insertAction() { - var inst = tinyMCEPopup.editor; - var elm, elementArray, i; - - elm = inst.selection.getNode(); - checkPrefix(document.forms[0].href); - - elm = inst.dom.getParent(elm, "A"); - - // Remove element if there is no href - if (!document.forms[0].href.value) { - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - i = inst.selection.getBookmark(); - inst.dom.remove(elm, 1); - inst.selection.moveToBookmark(i); - tinyMCEPopup.execCommand("mceEndUndoLevel"); - tinyMCEPopup.close(); - return; - } - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - // Create new anchor elements - if (elm == null) { - inst.getDoc().execCommand("unlink", false, null); - tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); - - elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); - for (i=0; i---'; - - for (var i=0; i' + tinyMCELinkList[i][0] + ''; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -function getTargetListHTML(elm_id, target_form_element) { - var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';'); - var html = ''; - - html += ''; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_same') + ''; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)'; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)'; - html += '' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)'; - - for (var i=0; i' + value + ' (' + key + ')'; - } - - html += ''; - - return html; -} - -// While loading -preinit(); -tinyMCEPopup.onInit.add(init); diff --git a/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js b/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js deleted file mode 100755 index c71ffbd..0000000 --- a/public_html/tiny_mce/plugins/advlink/langs/en_dlg.js +++ /dev/null @@ -1,52 +0,0 @@ -tinyMCE.addI18n('en.advlink_dlg',{ -title:"Insert/edit link", -url:"Link URL", -target:"Target", -titlefield:"Title", -is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", -is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", -list:"Link list", -general_tab:"General", -popup_tab:"Popup", -events_tab:"Events", -advanced_tab:"Advanced", -general_props:"General properties", -popup_props:"Popup properties", -event_props:"Events", -advanced_props:"Advanced properties", -popup_opts:"Options", -anchor_names:"Anchors", -target_same:"Open in this window / frame", -target_parent:"Open in parent window / frame", -target_top:"Open in top frame (replaces all frames)", -target_blank:"Open in new window", -popup:"Javascript popup", -popup_url:"Popup URL", -popup_name:"Window name", -popup_return:"Insert 'return false'", -popup_scrollbars:"Show scrollbars", -popup_statusbar:"Show status bar", -popup_toolbar:"Show toolbars", -popup_menubar:"Show menu bar", -popup_location:"Show location bar", -popup_resizable:"Make window resizable", -popup_dependent:"Dependent (Mozilla/Firefox only)", -popup_size:"Size", -popup_position:"Position (X/Y)", -id:"Id", -style:"Style", -classes:"Classes", -target_name:"Target name", -langdir:"Language direction", -target_langcode:"Target language", -langcode:"Language code", -encoding:"Target character encoding", -mime:"Target MIME type", -rel:"Relationship page to target", -rev:"Relationship target to page", -tabindex:"Tabindex", -accesskey:"Accesskey", -ltr:"Left to right", -rtl:"Right to left", -link_list:"Link list" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlink/link.htm b/public_html/tiny_mce/plugins/advlink/link.htm deleted file mode 100755 index 876669c..0000000 --- a/public_html/tiny_mce/plugins/advlink/link.htm +++ /dev/null @@ -1,333 +0,0 @@ - - - - {#advlink_dlg.title} - - - - - - - - - - - - {#advlink_dlg.general_tab} - {#advlink_dlg.popup_tab} - {#advlink_dlg.events_tab} - {#advlink_dlg.advanced_tab} - - - - - - - {#advlink_dlg.general_props} - - - - {#advlink_dlg.url} - - - - - - - - - {#advlink_dlg.list} - - - - {#advlink_dlg.anchor_names} - - - - {#advlink_dlg.target} - - - - {#advlink_dlg.titlefield} - - - - {#class_name} - - - {#not_set} - - - - - - - - - - {#advlink_dlg.popup_props} - - - {#advlink_dlg.popup} - - - - {#advlink_dlg.popup_url} - - - - - - - - - - - {#advlink_dlg.popup_name} - - - - {#advlink_dlg.popup_size} - - x - px - - - - {#advlink_dlg.popup_position} - - / - (c /c = center) - - - - - - {#advlink_dlg.popup_opts} - - - - - {#advlink_dlg.popup_location} - - {#advlink_dlg.popup_scrollbars} - - - - {#advlink_dlg.popup_menubar} - - {#advlink_dlg.popup_resizable} - - - - {#advlink_dlg.popup_toolbar} - - {#advlink_dlg.popup_dependent} - - - - {#advlink_dlg.popup_statusbar} - - {#advlink_dlg.popup_return} - - - - - - - - - {#advlink_dlg.advanced_props} - - - - {#advlink_dlg.id} - - - - - {#advlink_dlg.style} - - - - - {#advlink_dlg.classes} - - - - - {#advlink_dlg.target_name} - - - - - {#advlink_dlg.langdir} - - - {#not_set} - {#advlink_dlg.ltr} - {#advlink_dlg.rtl} - - - - - - {#advlink_dlg.target_langcode} - - - - - {#advlink_dlg.langcode} - - - - - - - {#advlink_dlg.encoding} - - - - - {#advlink_dlg.mime} - - - - - {#advlink_dlg.rel} - - {#not_set} - Lightbox - Alternate - Designates - Stylesheet - Start - Next - Prev - Contents - Index - Glossary - Copyright - Chapter - Subsection - Appendix - Help - Bookmark - No Follow - Tag - - - - - - {#advlink_dlg.rev} - - {#not_set} - Alternate - Designates - Stylesheet - Start - Next - Prev - Contents - Index - Glossary - Copyright - Chapter - Subsection - Appendix - Help - Bookmark - - - - - - {#advlink_dlg.tabindex} - - - - - {#advlink_dlg.accesskey} - - - - - - - - - {#advlink_dlg.event_props} - - - - onfocus - - - - - onblur - - - - - onclick - - - - - ondblclick - - - - - onmousedown - - - - - onmouseup - - - - - onmouseover - - - - - onmousemove - - - - - onmouseout - - - - - onkeypress - - - - - onkeydown - - - - - onkeyup - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/advlist/editor_plugin.js b/public_html/tiny_mce/plugins/advlist/editor_plugin.js deleted file mode 100755 index 02d1697..0000000 --- a/public_html/tiny_mce/plugins/advlist/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("_mce_style")}}}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle"}).setDisabled(1);a(f[d],function(k){k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js b/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js deleted file mode 100755 index a61887a..0000000 --- a/public_html/tiny_mce/plugins/advlist/editor_plugin_src.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var each = tinymce.each; - - tinymce.create('tinymce.plugins.AdvListPlugin', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - function buildFormats(str) { - var formats = []; - - each(str.split(/,/), function(type) { - formats.push({ - title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')), - styles : { - listStyleType : type == 'default' ? '' : type - } - }); - }); - - return formats; - }; - - // Setup number formats from config or default - t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"); - t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square"); - }, - - createControl: function(name, cm) { - var t = this, btn, format; - - if (name == 'numlist' || name == 'bullist') { - // Default to first item if it's a default item - if (t[name][0].title == 'advlist.def') - format = t[name][0]; - - function hasFormat(node, format) { - var state = true; - - each(format.styles, function(value, name) { - // Format doesn't match - if (t.editor.dom.getStyle(node, name) != value) { - state = false; - return false; - } - }); - - return state; - }; - - function applyListFormat() { - var list, ed = t.editor, dom = ed.dom, sel = ed.selection; - - // Check for existing list element - list = dom.getParent(sel.getNode(), 'ol,ul'); - - // Switch/add list type if needed - if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format)) - ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList'); - - // Append styles to new list element - if (format) { - list = dom.getParent(sel.getNode(), 'ol,ul'); - - if (list) { - dom.setStyles(list, format.styles); - list.removeAttribute('_mce_style'); - } - } - }; - - btn = cm.createSplitButton(name, { - title : 'advanced.' + name + '_desc', - 'class' : 'mce_' + name, - onclick : function() { - applyListFormat(); - } - }); - - btn.onRenderMenu.add(function(btn, menu) { - menu.onShowMenu.add(function() { - var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList; - - if (list || format) { - fmtList = t[name]; - - // Unselect existing items - each(menu.items, function(item) { - var state = true; - - item.setSelected(0); - - if (list && !item.isDisabled()) { - each(fmtList, function(fmt) { - if (fmt.id == item.id) { - if (!hasFormat(list, fmt)) { - state = false; - return false; - } - } - }); - - if (state) - item.setSelected(1); - } - }); - - // Select the current format - if (!list) - menu.items[format.id].setSelected(1); - } - }); - - menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle'}).setDisabled(1); - - each(t[name], function(item) { - item.id = t.editor.dom.uniqueId(); - - menu.add({id : item.id, title : item.title, onclick : function() { - format = item; - applyListFormat(); - }}); - }); - }); - - return btn; - } - }, - - getInfo : function() { - return { - longname : 'Advanced lists', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autoresize/editor_plugin.js b/public_html/tiny_mce/plugins/autoresize/editor_plugin.js deleted file mode 100755 index 1676b15..0000000 --- a/public_html/tiny_mce/plugins/autoresize/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)})}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js b/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js deleted file mode 100755 index c260b7a..0000000 --- a/public_html/tiny_mce/plugins/autoresize/editor_plugin_src.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - /** - * Auto Resize - * - * This plugin automatically resizes the content area to fit its content height. - * It will retain a minimum height, which is the height of the content area when - * it's initialized. - */ - tinymce.create('tinymce.plugins.AutoResizePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - var t = this; - - if (ed.getParam('fullscreen_is_enabled')) - return; - - /** - * This method gets executed each time the editor needs to resize. - */ - function resize() { - var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight; - - // Get height differently depending on the browser used - myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight; - - // Don't make it smaller than the minimum height - if (myHeight > t.autoresize_min_height) - resizeHeight = myHeight; - - // Resize content element - DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); - - // if we're throbbing, we'll re-throb to match the new size - if (t.throbbing) { - ed.setProgressState(false); - ed.setProgressState(true); - } - }; - - t.editor = ed; - - // Define minimum height - t.autoresize_min_height = ed.getElement().offsetHeight; - - // Add appropriate listeners for resizing content area - ed.onChange.add(resize); - ed.onSetContent.add(resize); - ed.onPaste.add(resize); - ed.onKeyUp.add(resize); - ed.onPostRender.add(resize); - - if (ed.getParam('autoresize_on_init', true)) { - // Things to do when the editor is ready - ed.onInit.add(function(ed, l) { - // Show throbber until content area is resized properly - ed.setProgressState(true); - t.throbbing = true; - - // Hide scrollbars - ed.getBody().style.overflowY = "hidden"; - }); - - ed.onLoadContent.add(function(ed, l) { - resize(); - - // Because the content area resizes when its content CSS loads, - // and we can't easily add a listener to its onload event, - // we'll just trigger a resize after a short loading period - setTimeout(function() { - resize(); - - // Disable throbber - ed.setProgressState(false); - t.throbbing = false; - }, 1250); - }); - } - - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceAutoResize', resize); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Auto Resize', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/autosave/editor_plugin.js b/public_html/tiny_mce/plugins/autosave/editor_plugin.js deleted file mode 100755 index 6e48540..0000000 --- a/public_html/tiny_mce/plugins/autosave/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>|]*>/gi, "").length > 0) { - // Show confirm dialog if the editor isn't empty - ed.windowManager.confirm( - PLUGIN_NAME + ".warning_message", - function(ok) { - if (ok) - self.restoreDraft(); - } - ); - } else - self.restoreDraft(); - } - }); - - // Enable/disable restoredraft button depending on if there is a draft stored or not - ed.onNodeChange.add(function() { - var controlManager = ed.controlManager; - - if (controlManager.get(RESTORE_DRAFT)) - controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft()); - }); - - ed.onInit.add(function() { - // Check if the user added the restore button, then setup auto storage logic - if (ed.controlManager.get(RESTORE_DRAFT)) { - // Setup storage engine - self.setupStorage(ed); - - // Auto save contents each interval time - setInterval(function() { - self.storeDraft(); - ed.nodeChanged(); - }, settings.autosave_interval); - } - }); - - /** - * This event gets fired when a draft is stored to local storage. - * - * @event onStoreDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onStoreDraft = new Dispatcher(self); - - /** - * This event gets fired when a draft is restored from local storage. - * - * @event onStoreDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onRestoreDraft = new Dispatcher(self); - - /** - * This event gets fired when a draft removed/expired. - * - * @event onRemoveDraft - * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. - * @param {Object} draft Draft object containing the HTML contents of the editor. - */ - self.onRemoveDraft = new Dispatcher(self); - - // Add ask before unload dialog only add one unload handler - if (!unloadHandlerAdded) { - window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler; - unloadHandlerAdded = TRUE; - } - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Auto save', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - /** - * Returns an expiration date UTC string. - * - * @method getExpDate - * @return {String} Expiration date UTC string. - */ - getExpDate : function() { - return new Date( - new Date().getTime() + this.editor.settings.autosave_retention - ).toUTCString(); - }, - - /** - * This method will setup the storage engine. If the browser has support for it. - * - * @method setupStorage - */ - setupStorage : function(ed) { - var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK"; - - self.key = PLUGIN_NAME + ed.id; - - // Loop though each storage engine type until we find one that works - tinymce.each([ - function() { - // Try HTML5 Local Storage - if (localStorage) { - localStorage.setItem(testKey, testVal); - - if (localStorage.getItem(testKey) === testVal) { - localStorage.removeItem(testKey); - - return localStorage; - } - } - }, - - function() { - // Try HTML5 Session Storage - if (sessionStorage) { - sessionStorage.setItem(testKey, testVal); - - if (sessionStorage.getItem(testKey) === testVal) { - sessionStorage.removeItem(testKey); - - return sessionStorage; - } - } - }, - - function() { - // Try IE userData - if (tinymce.isIE) { - ed.getElement().style.behavior = "url('#default#userData')"; - - // Fake localStorage on old IE - return { - autoExpires : TRUE, - - setItem : function(key, value) { - var userDataElement = ed.getElement(); - - userDataElement.setAttribute(key, value); - userDataElement.expires = self.getExpDate(); - userDataElement.save("TinyMCE"); - }, - - getItem : function(key) { - var userDataElement = ed.getElement(); - - userDataElement.load("TinyMCE"); - - return userDataElement.getAttribute(key); - }, - - removeItem : function(key) { - ed.getElement().removeAttribute(key); - } - }; - } - }, - ], function(setup) { - // Try executing each function to find a suitable storage engine - try { - self.storage = setup(); - - if (self.storage) - return false; - } catch (e) { - // Ignore - } - }); - }, - - /** - * This method will store the current contents in the the storage engine. - * - * @method storeDraft - */ - storeDraft : function() { - var self = this, storage = self.storage, editor = self.editor, expires, content; - - // Is the contents dirty - if (storage) { - // If there is no existing key and the contents hasn't been changed since - // it's original value then there is no point in saving a draft - if (!storage.getItem(self.key) && !editor.isDirty()) - return; - - // Store contents if the contents if longer than the minlength of characters - content = editor.getContent({draft: true}); - if (content.length > editor.settings.autosave_minlength) { - expires = self.getExpDate(); - - // Store expiration date if needed IE userData has auto expire built in - if (!self.storage.autoExpires) - self.storage.setItem(self.key + "_expires", expires); - - self.storage.setItem(self.key, content); - self.onStoreDraft.dispatch(self, { - expires : expires, - content : content - }); - } - } - }, - - /** - * This method will restore the contents from the storage engine back to the editor. - * - * @method restoreDraft - */ - restoreDraft : function() { - var self = this, storage = self.storage; - - if (storage) { - content = storage.getItem(self.key); - - if (content) { - self.editor.setContent(content); - self.onRestoreDraft.dispatch(self, { - content : content - }); - } - } - }, - - /** - * This method will return true/false if there is a local storage draft available. - * - * @method hasDraft - * @return {boolean} true/false state if there is a local draft. - */ - hasDraft : function() { - var self = this, storage = self.storage, expDate, exists; - - if (storage) { - // Does the item exist at all - exists = !!storage.getItem(self.key); - if (exists) { - // Storage needs autoexpire - if (!self.storage.autoExpires) { - expDate = new Date(storage.getItem(self.key + "_expires")); - - // Contents hasn't expired - if (new Date().getTime() < expDate.getTime()) - return TRUE; - - // Remove it if it has - self.removeDraft(); - } else - return TRUE; - } - } - - return false; - }, - - /** - * Removes the currently stored draft. - * - * @method removeDraft - */ - removeDraft : function() { - var self = this, storage = self.storage, key = self.key, content; - - if (storage) { - // Get current contents and remove the existing draft - content = storage.getItem(key); - storage.removeItem(key); - storage.removeItem(key + "_expires"); - - // Dispatch remove event if we had any contents - if (content) { - self.onRemoveDraft.dispatch(self, { - content : content - }); - } - } - }, - - "static" : { - // Internal unload handler will be called before the page is unloaded - _beforeUnloadHandler : function(e) { - var msg; - - tinymce.each(tinyMCE.editors, function(ed) { - // Store a draft for each editor instance - if (ed.plugins.autosave) - ed.plugins.autosave.storeDraft(); - - // Never ask in fullscreen mode - if (ed.getParam("fullscreen_is_enabled")) - return; - - // Setup a return message if the editor is dirty - if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload")) - msg = ed.getLang("autosave.unload_msg"); - }); - - return msg; - } - } - }); - - tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave); -})(tinymce); diff --git a/public_html/tiny_mce/plugins/autosave/langs/en.js b/public_html/tiny_mce/plugins/autosave/langs/en.js deleted file mode 100755 index fce6bd3..0000000 --- a/public_html/tiny_mce/plugins/autosave/langs/en.js +++ /dev/null @@ -1,4 +0,0 @@ -tinyMCE.addI18n('en.autosave',{ -restore_content: "Restore auto-saved content", -warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin.js deleted file mode 100755 index 930fdff..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(//gi,"\n");b(//gi,"\n");b(//gi,"\n");b(//gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js deleted file mode 100755 index 5586637..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.BBCodePlugin', { - init : function(ed, url) { - var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); - - ed.onBeforeSetContent.add(function(ed, o) { - o.content = t['_' + dialect + '_bbcode2html'](o.content); - }); - - ed.onPostProcess.add(function(ed, o) { - if (o.set) - o.content = t['_' + dialect + '_bbcode2html'](o.content); - - if (o.get) - o.content = t['_' + dialect + '_html2bbcode'](o.content); - }); - }, - - getInfo : function() { - return { - longname : 'BBCode Plugin', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - // HTML -> BBCode in PunBB dialect - _punbb_html2bbcode : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: to [b] - rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); - rep(/(.*?)<\/font>/gi,"$1"); - rep(//gi,"[img]$1[/img]"); - rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); - rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); - rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); - rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); - rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); - rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); - rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); - rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); - rep(/<\/(strong|b)>/gi,"[/b]"); - rep(/<(strong|b)>/gi,"[b]"); - rep(/<\/(em|i)>/gi,"[/i]"); - rep(/<(em|i)>/gi,"[i]"); - rep(/<\/u>/gi,"[/u]"); - rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); - rep(//gi,"[u]"); - rep(/]*>/gi,"[quote]"); - rep(/<\/blockquote>/gi,"[/quote]"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,""); - rep(/<\/p>/gi,"\n"); - rep(/ /gi," "); - rep(/"/gi,"\""); - rep(/</gi,"<"); - rep(/>/gi,">"); - rep(/&/gi,"&"); - - return s; - }, - - // BBCode -> HTML from PunBB dialect - _punbb_bbcode2html : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: [b] to - rep(/\n/gi,""); - rep(/\[b\]/gi,""); - rep(/\[\/b\]/gi,""); - rep(/\[i\]/gi,""); - rep(/\[\/i\]/gi,""); - rep(/\[u\]/gi,""); - rep(/\[\/u\]/gi,""); - rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); - rep(/\[url\](.*?)\[\/url\]/gi,"$1"); - rep(/\[img\](.*?)\[\/img\]/gi,""); - rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); - rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); - rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); - - return s; - } - }); - - // Register plugin - tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js deleted file mode 100755 index 9749e51..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100755 index 13813a6..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; - - /** - * This plugin a context menu to TinyMCE editor instances. - * - * @class tinymce.plugins.ContextMenu - */ - tinymce.create('tinymce.plugins.ContextMenu', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @method init - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed) { - var t = this, lastRng; - - t.editor = ed; - - /** - * This event gets fired when the context menu is shown. - * - * @event onContextMenu - * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. - * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. - */ - t.onContextMenu = new tinymce.util.Dispatcher(this); - - ed.onContextMenu.add(function(ed, e) { - if (!e.ctrlKey) { - // Restore the last selection since it was removed - if (lastRng) - ed.selection.setRng(lastRng); - - t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', function(e) { - hide(ed, e); - }); - Event.cancel(e); - } - }); - - ed.onRemove.add(function() { - if (t._menu) - t._menu.removeAll(); - }); - - function hide(ed, e) { - lastRng = null; - - // Since the contextmenu event moves - // the selection we need to store it away - if (e && e.button == 2) { - lastRng = ed.selection.getRng(); - return; - } - - if (t._menu) { - t._menu.removeAll(); - t._menu.destroy(); - Event.remove(ed.getDoc(), 'click', hide); - } - }; - - ed.onMouseDown.add(hide); - ed.onKeyDown.add(hide); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Contextmenu', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - _getMenu : function(ed) { - var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; - - if (m) { - m.removeAll(); - m.destroy(); - } - - p1 = DOM.getPos(ed.getContentAreaContainer()); - p2 = DOM.getPos(ed.getContainer()); - - m = ed.controlManager.createDropMenu('contextmenu', { - offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), - offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), - constrain : 1 - }); - - t._menu = m; - - m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); - m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); - m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); - - if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { - m.addSeparator(); - m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); - m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); - } - - m.addSeparator(); - m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); - - m.addSeparator(); - am = m.addMenu({title : 'contextmenu.align'}); - am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); - am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); - am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); - am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); - - t.onContextMenu.dispatch(t, m, el, col); - - return m; - } - }); - - // Register plugin - tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin.js b/public_html/tiny_mce/plugins/directionality/editor_plugin.js deleted file mode 100755 index bce8e73..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js b/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js deleted file mode 100755 index 4444959..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.Directionality', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - ed.addCommand('mceDirectionLTR', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "ltr") - ed.dom.setAttrib(e, "dir", "ltr"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addCommand('mceDirectionRTL', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "rtl") - ed.dom.setAttrib(e, "dir", "rtl"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); - ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); - - ed.onNodeChange.add(t._nodeChange, t); - }, - - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - _nodeChange : function(ed, cm, n) { - var dom = ed.dom, dir; - - n = dom.getParent(n, dom.isBlock); - if (!n) { - cm.setDisabled('ltr', 1); - cm.setDisabled('rtl', 1); - return; - } - - dir = dom.getAttrib(n, 'dir'); - cm.setActive('ltr', dir == "ltr"); - cm.setDisabled('ltr', 0); - cm.setActive('rtl', dir == "rtl"); - cm.setDisabled('rtl', 0); - } - }); - - // Register plugin - tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin.js b/public_html/tiny_mce/plugins/emotions/editor_plugin.js deleted file mode 100755 index dbdd8ff..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js b/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js deleted file mode 100755 index 71d5416..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function(tinymce) { - tinymce.create('tinymce.plugins.EmotionsPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceEmotion', function() { - ed.windowManager.open({ - file : url + '/emotions.htm', - width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), - height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); - }, - - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); -})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/emotions.htm b/public_html/tiny_mce/plugins/emotions/emotions.htm deleted file mode 100755 index 55a1d72..0000000 --- a/public_html/tiny_mce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - - {#emotions_dlg.title} - - - - - - {#emotions_dlg.title}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif deleted file mode 100755 index ba90cc3..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif deleted file mode 100755 index 74d897a..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif deleted file mode 100755 index 963a96b..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif deleted file mode 100755 index 16f68cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif deleted file mode 100755 index 716f55e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif deleted file mode 100755 index 334d49e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif deleted file mode 100755 index 4efd549..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif deleted file mode 100755 index 1606c11..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif deleted file mode 100755 index ca2451e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif deleted file mode 100755 index b33d3cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif deleted file mode 100755 index e6a9e60..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif deleted file mode 100755 index cb99cdd..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif deleted file mode 100755 index 2075dc1..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif deleted file mode 100755 index bef7e25..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif deleted file mode 100755 index 9faf1af..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif deleted file mode 100755 index 648e6e8..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/js/emotions.js b/public_html/tiny_mce/plugins/emotions/js/emotions.js deleted file mode 100755 index c549367..0000000 --- a/public_html/tiny_mce/plugins/emotions/js/emotions.js +++ /dev/null @@ -1,22 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var EmotionsDialog = { - init : function(ed) { - tinyMCEPopup.resizeToInnerSize(); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, dom = ed.dom; - - tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { - src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, - alt : ed.getLang(title), - title : ed.getLang(title), - border : 0 - })); - - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js b/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js deleted file mode 100755 index 3b57ad9..0000000 --- a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js +++ /dev/null @@ -1,20 +0,0 @@ -tinyMCE.addI18n('en.emotions_dlg',{ -title:"Insert emotion", -desc:"Emotions", -cool:"Cool", -cry:"Cry", -embarassed:"Embarassed", -foot_in_mouth:"Foot in mouth", -frown:"Frown", -innocent:"Innocent", -kiss:"Kiss", -laughing:"Laughing", -money_mouth:"Money mouth", -sealed:"Sealed", -smile:"Smile", -surprised:"Surprised", -tongue_out:"Tongue out", -undecided:"Undecided", -wink:"Wink", -yell:"Yell" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/dialog.htm b/public_html/tiny_mce/plugins/example/dialog.htm deleted file mode 100755 index 50b2b34..0000000 --- a/public_html/tiny_mce/plugins/example/dialog.htm +++ /dev/null @@ -1,22 +0,0 @@ - - - - {#example_dlg.title} - - - - - - - Here is a example dialog. - Selected text: - Custom arg: - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/example/editor_plugin.js b/public_html/tiny_mce/plugins/example/editor_plugin.js deleted file mode 100755 index ec1f81e..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/editor_plugin_src.js b/public_html/tiny_mce/plugins/example/editor_plugin_src.js deleted file mode 100755 index 9a0e7da..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - // Load plugin specific language pack - tinymce.PluginManager.requireLangPack('example'); - - tinymce.create('tinymce.plugins.ExamplePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceExample', function() { - ed.windowManager.open({ - file : url + '/dialog.htm', - width : 320 + parseInt(ed.getLang('example.delta_width', 0)), - height : 120 + parseInt(ed.getLang('example.delta_height', 0)), - inline : 1 - }, { - plugin_url : url, // Plugin absolute URL - some_custom_arg : 'custom arg' // Custom argument - }); - }); - - // Register example button - ed.addButton('example', { - title : 'example.desc', - cmd : 'mceExample', - image : url + '/img/example.gif' - }); - - // Add a node change handler, selects the button in the UI when a image is selected - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('example', n.nodeName == 'IMG'); - }); - }, - - /** - * Creates control instances based in the incomming name. This method is normally not - * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons - * but you sometimes need to create more complex controls like listboxes, split buttons etc then this - * method can be used to create those. - * - * @param {String} n Name of the control to create. - * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. - * @return {tinymce.ui.Control} New control instance or null if no control was created. - */ - createControl : function(n, cm) { - return null; - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Example plugin', - author : 'Some author', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', - version : "1.0" - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/img/example.gif b/public_html/tiny_mce/plugins/example/img/example.gif deleted file mode 100755 index 1ab5da4..0000000 Binary files a/public_html/tiny_mce/plugins/example/img/example.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/example/js/dialog.js b/public_html/tiny_mce/plugins/example/js/dialog.js deleted file mode 100755 index fa83411..0000000 --- a/public_html/tiny_mce/plugins/example/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/public_html/tiny_mce/plugins/example/langs/en.js b/public_html/tiny_mce/plugins/example/langs/en.js deleted file mode 100755 index e0784f8..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example',{ - desc : 'This is just a template button' -}); diff --git a/public_html/tiny_mce/plugins/example/langs/en_dlg.js b/public_html/tiny_mce/plugins/example/langs/en_dlg.js deleted file mode 100755 index ebcf948..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en_dlg.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example_dlg',{ - title : 'This is just a example title' -}); diff --git a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css b/public_html/tiny_mce/plugins/fullpage/css/fullpage.css deleted file mode 100755 index 7a3334f..0000000 --- a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,182 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -#doctypes { - width: 200px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} - -textarea { - height: 55px; -} - -.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js b/public_html/tiny_mce/plugins/fullpage/editor_plugin.js deleted file mode 100755 index aeaa669..0000000 --- a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
Your press release was successfully submitted. It will have to be approved before it appears on the front page.
While no censorship based on opinion, views, etc. takes place on AnonNews, there are several guidelines in place to keep content on the site relevant. - Read these guidelines completely before submitting a related site. Not reading them may get you banned.
This section is solely for Anonymous-related websites. The site must represent a group or 'part' of Anonymous. Examples are IRC networks, Anonymous event planners, specific - Anonymous-related news sites or blogs, and so on.
Related sites have to be notable. This essentially means that your blog with 20 visitors a day and 3 total posts is not going to be accepted. An (almost) empty website is not going - to be accepted either. For networks/groups/'cells', there must be an established userbase already. Websites run by one person will only be accepted if they offer considerable value (your blog - with weekly opinion posts will probably not get accepted, whereas a blog with frequent news about various Anonymous groups will be accepted).
This is not Craigslist. This is not a place to advertise your new site - this section is intended to help people find useful Anonymous-related resources that already exist. - If you are looking to start something new, and you're looking for people to join, the forums would be a better place.
Only very few entries will be accepted. The intention is to keep this section as small as possible, offering a brief overview of related resources for people that want to - learn more about Anonymous or get actively involved with it. Only the most notable and useful submissions will be accepted.
Keep the submission title to the point. The title must be the name of the site, or, if it doesn't have a name, a brief description of what the site is. No slogans, no URLs, - no explanations - keep that for the site itself.
Your related site was successfully submitted. It will have to be approved before it appears on the front page.
AnonNews was made for anything involving Anonymous - that means you do not need to be affiliated or involved with a specific network or group. No matter -who you are affiliated with - or whether you are affiliated with anything or anyone at all! - you're welcome to post on AnonNews, as long as you follow the -same relevancy guidelines as everyone else (everything that does not fit in the main sections, can generally go in the forum).
AnonNews also does not promote any particular group or network over another - this is a 'neutral' site, not taking any sides.
We would also like to remind you that AnonOps does not equal Anonymous, and that no single group or network can be representative of Anonymous as a whole. -If anyone claims to 'represent' Anonymous, he lies - no exceptions. Anonymous is also not a democratic body, which means a majority of anons (if this is -something that can be measured in the first place) can not be considered representative of Anonymous either.
AnonNews accepts donations through various methods. If you want to use PayPal or Flattr, use one of the buttons at the top of the page.
You can also donate using Bitcoin. Bitcoin is an open-source, anonymous, and decentralized P2P currency (that means noone has control over it), that you can use to easily donate to AnonNews. For more information about Bitcoin, visit -WeUseCoins (video) or the Bitcoin website.
To send a Bitcoin donation to AnonNews, you can send Bitcoins to the following address: 1PPVupRRz7tHvfvJWEDBnDr7bFVFFYLu6G.
Thanks for supporting AnonNews!
This section will discuss some questions that come up fairly often. If you have any other relevant questions, feel free to join the IRC channel.
This question comes up quite often. Anonymous does not have a membership list, and you can't really 'join' it either. If you identify with or say you are Anonymous, you are Anonymous. - Noone has the authority to say whether you are Anonymous or not, except for yourself.
Anons can be found all over the world - and all over the internet. There are no leaders or official spokespersons, and no official websites, IRC networks, or anything else. Basically, if you want - to talk to Anonymous, join a random IRC network or forum and start talking to anons! A starting point may be, for example, the AnonNews IRC channel.
No, not at all! Any anon is welcome to post on AnonNews, and there is no active affiliation with AnonOps. You can read more about this issue here.
You can't. AnonNews is uncensored (but moderated), and everyone has equal rights to post press releases (or forum posts, or anything else). As long as something - is relevant and fits the guidelines, it will be published, regardless of pressure to take it down. There is one exception to this rule, and that is press releases that pretend to be made by the staff - of a specific network or operation, while actually being made by an outsider. In this case the network/operation staff can request removal of the press release (this only goes for operations and - networks with a defined leadership structure). Other than the aforementioned situation, don't bother trying to get something removed.
If your submission doesn't show up after a while, that means it probably didn't fit the guidelines. If you think a submission was rejected in error, you can contact an administrator in the - IRC channel. Please don't resubmit your submissions.
To upvote a press release, you will have to post a comment that is at least 2 lines long, and at least 100 characters long. This is to prevent pointless '+1' posts just to upvote a press release. - Simply enter a comment, and if your comment is long enough, a checkbox to upvote the press release will appear on the captcha verification page.
Short answer: no.
Longer answer: no, with a few exceptions. To prevent double voting, salted hashes of partial IPs are kept - these should be practically useless if someone were to gain access to the database. - The fact that only partial IPs are used for these hashes means that occasionally a vote may not be counted correctly, however this should not happen very often. The other situation is the spamfilter. - If your submission hits a severe spamfilter, your submission will be blocked, and the IP you are submitting from will be saved - the submission will be reviewed in 24 hours, and if it turns out your - submission was legitimate, your IP will be removed from the system. Most 'suspicious' submissions will be held for review, rather than being outright blocked - in this case, your IP is NOT kept. If - you do manage to hit a severe spamfilter and your submission was indeed malicious/spam, your IP may be banned (thus stored in the banlist).
No access logs or other logs with identifying information are kept on the server. You can visit the site and post submissions from TOR, VPNs, or other anonymization networks, however most of the - time your submission will be held for review when using one of these methods.
AnonNews uses a custom spam score system, where a 'score' is assigned, depending on several characteristics of a submission. Several factors that play a role for submissions are banned IPs, blocked - domains, blacklisted keywords, DNSBL-listed IPs, and other things. Depending on your spam score, the submission is either directly visible, held for manual review, or outright blocked. For comments, - several text characteristics are analyzed such as the amount of lines, average length and variation in length of lines, special characters ratio, and amount of URLs.
Yes, all user-submitted content is automatically licensed under a Creative Commons Attribution license. This means that you are free to reuse and remix content, both for commercial and non-commercial - purposes, as long as you give credit to the original author. If no specific author is outlined, you should attribute to 'Anonymous' and place a backlink to the relevant page on AnonNews.
Yes, AnonNews is licensed under the WTFPL, meaning you can pretty much do with it what you want. No attribution required, no restrictions whatsoever. Be aware that some third-party code is used - that may have separate restrictions - this is detailed in the LICENSE file of the source code package. You can download the source code here.
The AnonNews forums are very loosely moderated, in fact very little will be removed - however, there are a few rules.
Content that is harmful towards users is not allowed. That means no posting of malware, phishers, etc. Commercial/promotional content is also not allowed - this includes merchandise and 'content farms' - that are obviously designed for turning a profit. Content that carries serious legal liability (such as child porn or fraud) is also not allowed, to protect the AnonNews infrastructure. Discussion about - these subjects is allowed, as long as no practical instructions and/or actual content is provided.
Because of legal liability, organizing Anonymous Operations that are based on outright illegal activity - such as LOIC/DDoS operations - should not be organized from these forums. Discussing them - is of course allowed, as long as no actual organization takes place (that means no posting of targets and manuals and such). There are plenty of places to organize these kind of operations, look at the - Related Sites section for some examples.
Except for the offtopic forum, all threads should have at least some relevancy to (a part of) Anonymous. Discussing things that are not directly related but may be of interest to Anonymous, is of course - allowed. Please don't post 'how do I hack' topics anywhere, for those kinds of things there are sites like HackForums.
While there is no real moderation on this, you are encouraged to post topics in the 'appropriate' categories - this will ensure that those interested in the subject will read them. This is not a real - "rule", topics will not be moved when placed in the wrong section.
AnonNews has an IRC channel on Cryto IRC, for support, questions, moderator applications, and general chit-chat. TOR users are welcome, however abusing IPs will -receive a temporary ban from the network. If you cannot connect through a TOR node, VPN, or proxy, please try using a different TOR identity / proxy / VPN IP. An I2P tunnel is planned, but not yet operational.
Important: AnonNews is not affiliated with AnonOps or any other Anonymous-related website, network, or infrastructure. If you have complaints about an Anonymous Operation, please directly -contact those responsible for the organization - AnonNews has nothing to do with it, and is just a news platform.
- For webchat users: - Visit http://irc.lc/cryto/anonnews to use our web IRC client. No downloads or plugins are required. - Please do not 'slap' other users, this is considered rude. -
- For users with an IRC client: - Server: irc.cryto.net - Port: 6667 (regular) / 6697 (SSL) - Channel: #anonnews - For those that do not wish to connect to a US-based server, you can connect to nijaxor.cryto.net (NL), haless.cryto.net (DE), or konjassiem.cryto.net (DE). -
A question / criticism that comes up rather often is that AnonNews would be exercising censorship on submissions. This page will explain why this is not the case, and what the difference between -moderation and censorship is.
Censorship is, generally speaking, attempting to filter out morally objectionable content - this can be news, images, music or anything else, and what classifies as 'morally objectionable' will differ -for everyone, based on their personal moral standpoints and opinions. The key here is that censorship revolves around specific ideas or information of which the spreading is actively hindered, based on -personal ideals.
Moderation, in the case of AnonNews, is the removal of content that is not relevant to 'Anonymous', is intended to cause harm to the machines of visitors, or attempts to exploit visitors. This means -that links to malware, scams, or news that is not about Anonymous (as well as things that are not put in the right category) will be removed. This is not based on any personal ideals, and the actual -message or opinion in said content does not play a role. Potentially 'offensive' content is not moderated, as even controversial ideas should have a voice.
There is a group of moderators, and anyone can apply to become a moderator. As a general rule of thumb, anyone who applies will become a moderator, and no 'screening' is done. The platform is made to -allow rollbacks in case of abuse, so there is very little harm that can be done by a moderator. If a moderator exhibits unsuitable behaviour (such as removing content based on personal morals) he will lose -his moderator status, to ensure that AnonNews only has mods that are capable of objective analysis.
Moderators are encouraged to not read any submissions before approving or rejecting them. The general rule of thumb is to use the browsers search-in-page feature to determine whether -'Anonymous' is mentioned somewhere in the article, and to quickly skim the text to get an idea of whether it's actually news, or something else (like an opinion blogpost). In the case of press releases, -moderators are encouraged to only look at the grammar, spelling, and formatting - and to check whether any part of the press release claims to speak for all of Anonymous. That's it.
TL;DR moderation is generally speaking done without even paying attention to what the article is about.
"Regular" moderators do not have access to moderate comments or forum posts. This is because there is not really a need for a large moderation team - the only rules are that you cannot organize illegal -Anonymous Operations such as DDoS operations (this is in order to protect the AnonNews infrastructure), and that you cannot post malware / scams, or posts that are intended to make the pages unreasonably -long, such as posts that contain entire books (yes, it has been done.)
We are looking for people that have the time (and capability) to moderate incoming submissions. The most important requirements for being a moderator:
Being a moderator does not require an e-mail address, real name, or any other personally identifiable information - all that is needed is a username and a password.
Be aware that all moderation decisions are logged, and that intentionally bad moderation or unwillingness to follow the guidelines may result in your moderator account being disabled. -This includes exercising moderation based on personal morals.
To apply for being a moderator, join the IRC channel.
AnonNews Radio no longer exists. Although this may change in the future, there are no direct plans to set up AnonNews Radio again.
If you are looking for new music, a good place to look would be Jamendo - a website with thousands of freely shareable (Creative Commons-licensed) tracks.
]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(//gi,"\n");b(//gi,"\n");b(//gi,"\n");b(//gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js deleted file mode 100755 index 5586637..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.BBCodePlugin', { - init : function(ed, url) { - var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); - - ed.onBeforeSetContent.add(function(ed, o) { - o.content = t['_' + dialect + '_bbcode2html'](o.content); - }); - - ed.onPostProcess.add(function(ed, o) { - if (o.set) - o.content = t['_' + dialect + '_bbcode2html'](o.content); - - if (o.get) - o.content = t['_' + dialect + '_html2bbcode'](o.content); - }); - }, - - getInfo : function() { - return { - longname : 'BBCode Plugin', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - // HTML -> BBCode in PunBB dialect - _punbb_html2bbcode : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: to [b] - rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); - rep(/(.*?)<\/font>/gi,"$1"); - rep(//gi,"[img]$1[/img]"); - rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); - rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); - rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); - rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); - rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); - rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); - rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); - rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); - rep(/<\/(strong|b)>/gi,"[/b]"); - rep(/<(strong|b)>/gi,"[b]"); - rep(/<\/(em|i)>/gi,"[/i]"); - rep(/<(em|i)>/gi,"[i]"); - rep(/<\/u>/gi,"[/u]"); - rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); - rep(//gi,"[u]"); - rep(/]*>/gi,"[quote]"); - rep(/<\/blockquote>/gi,"[/quote]"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,""); - rep(/<\/p>/gi,"\n"); - rep(/ /gi," "); - rep(/"/gi,"\""); - rep(/</gi,"<"); - rep(/>/gi,">"); - rep(/&/gi,"&"); - - return s; - }, - - // BBCode -> HTML from PunBB dialect - _punbb_bbcode2html : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: [b] to - rep(/\n/gi,""); - rep(/\[b\]/gi,""); - rep(/\[\/b\]/gi,""); - rep(/\[i\]/gi,""); - rep(/\[\/i\]/gi,""); - rep(/\[u\]/gi,""); - rep(/\[\/u\]/gi,""); - rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); - rep(/\[url\](.*?)\[\/url\]/gi,"$1"); - rep(/\[img\](.*?)\[\/img\]/gi,""); - rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); - rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); - rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); - - return s; - } - }); - - // Register plugin - tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js deleted file mode 100755 index 9749e51..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100755 index 13813a6..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; - - /** - * This plugin a context menu to TinyMCE editor instances. - * - * @class tinymce.plugins.ContextMenu - */ - tinymce.create('tinymce.plugins.ContextMenu', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @method init - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed) { - var t = this, lastRng; - - t.editor = ed; - - /** - * This event gets fired when the context menu is shown. - * - * @event onContextMenu - * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. - * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. - */ - t.onContextMenu = new tinymce.util.Dispatcher(this); - - ed.onContextMenu.add(function(ed, e) { - if (!e.ctrlKey) { - // Restore the last selection since it was removed - if (lastRng) - ed.selection.setRng(lastRng); - - t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', function(e) { - hide(ed, e); - }); - Event.cancel(e); - } - }); - - ed.onRemove.add(function() { - if (t._menu) - t._menu.removeAll(); - }); - - function hide(ed, e) { - lastRng = null; - - // Since the contextmenu event moves - // the selection we need to store it away - if (e && e.button == 2) { - lastRng = ed.selection.getRng(); - return; - } - - if (t._menu) { - t._menu.removeAll(); - t._menu.destroy(); - Event.remove(ed.getDoc(), 'click', hide); - } - }; - - ed.onMouseDown.add(hide); - ed.onKeyDown.add(hide); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Contextmenu', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - _getMenu : function(ed) { - var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; - - if (m) { - m.removeAll(); - m.destroy(); - } - - p1 = DOM.getPos(ed.getContentAreaContainer()); - p2 = DOM.getPos(ed.getContainer()); - - m = ed.controlManager.createDropMenu('contextmenu', { - offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), - offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), - constrain : 1 - }); - - t._menu = m; - - m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); - m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); - m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); - - if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { - m.addSeparator(); - m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); - m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); - } - - m.addSeparator(); - m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); - - m.addSeparator(); - am = m.addMenu({title : 'contextmenu.align'}); - am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); - am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); - am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); - am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); - - t.onContextMenu.dispatch(t, m, el, col); - - return m; - } - }); - - // Register plugin - tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin.js b/public_html/tiny_mce/plugins/directionality/editor_plugin.js deleted file mode 100755 index bce8e73..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js b/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js deleted file mode 100755 index 4444959..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.Directionality', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - ed.addCommand('mceDirectionLTR', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "ltr") - ed.dom.setAttrib(e, "dir", "ltr"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addCommand('mceDirectionRTL', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "rtl") - ed.dom.setAttrib(e, "dir", "rtl"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); - ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); - - ed.onNodeChange.add(t._nodeChange, t); - }, - - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - _nodeChange : function(ed, cm, n) { - var dom = ed.dom, dir; - - n = dom.getParent(n, dom.isBlock); - if (!n) { - cm.setDisabled('ltr', 1); - cm.setDisabled('rtl', 1); - return; - } - - dir = dom.getAttrib(n, 'dir'); - cm.setActive('ltr', dir == "ltr"); - cm.setDisabled('ltr', 0); - cm.setActive('rtl', dir == "rtl"); - cm.setDisabled('rtl', 0); - } - }); - - // Register plugin - tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin.js b/public_html/tiny_mce/plugins/emotions/editor_plugin.js deleted file mode 100755 index dbdd8ff..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js b/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js deleted file mode 100755 index 71d5416..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function(tinymce) { - tinymce.create('tinymce.plugins.EmotionsPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceEmotion', function() { - ed.windowManager.open({ - file : url + '/emotions.htm', - width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), - height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); - }, - - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); -})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/emotions.htm b/public_html/tiny_mce/plugins/emotions/emotions.htm deleted file mode 100755 index 55a1d72..0000000 --- a/public_html/tiny_mce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - - {#emotions_dlg.title} - - - - - - {#emotions_dlg.title}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif deleted file mode 100755 index ba90cc3..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif deleted file mode 100755 index 74d897a..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif deleted file mode 100755 index 963a96b..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif deleted file mode 100755 index 16f68cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif deleted file mode 100755 index 716f55e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif deleted file mode 100755 index 334d49e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif deleted file mode 100755 index 4efd549..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif deleted file mode 100755 index 1606c11..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif deleted file mode 100755 index ca2451e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif deleted file mode 100755 index b33d3cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif deleted file mode 100755 index e6a9e60..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif deleted file mode 100755 index cb99cdd..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif deleted file mode 100755 index 2075dc1..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif deleted file mode 100755 index bef7e25..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif deleted file mode 100755 index 9faf1af..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif deleted file mode 100755 index 648e6e8..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/js/emotions.js b/public_html/tiny_mce/plugins/emotions/js/emotions.js deleted file mode 100755 index c549367..0000000 --- a/public_html/tiny_mce/plugins/emotions/js/emotions.js +++ /dev/null @@ -1,22 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var EmotionsDialog = { - init : function(ed) { - tinyMCEPopup.resizeToInnerSize(); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, dom = ed.dom; - - tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { - src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, - alt : ed.getLang(title), - title : ed.getLang(title), - border : 0 - })); - - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js b/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js deleted file mode 100755 index 3b57ad9..0000000 --- a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js +++ /dev/null @@ -1,20 +0,0 @@ -tinyMCE.addI18n('en.emotions_dlg',{ -title:"Insert emotion", -desc:"Emotions", -cool:"Cool", -cry:"Cry", -embarassed:"Embarassed", -foot_in_mouth:"Foot in mouth", -frown:"Frown", -innocent:"Innocent", -kiss:"Kiss", -laughing:"Laughing", -money_mouth:"Money mouth", -sealed:"Sealed", -smile:"Smile", -surprised:"Surprised", -tongue_out:"Tongue out", -undecided:"Undecided", -wink:"Wink", -yell:"Yell" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/dialog.htm b/public_html/tiny_mce/plugins/example/dialog.htm deleted file mode 100755 index 50b2b34..0000000 --- a/public_html/tiny_mce/plugins/example/dialog.htm +++ /dev/null @@ -1,22 +0,0 @@ - - - - {#example_dlg.title} - - - - - - - Here is a example dialog. - Selected text: - Custom arg: - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/example/editor_plugin.js b/public_html/tiny_mce/plugins/example/editor_plugin.js deleted file mode 100755 index ec1f81e..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/editor_plugin_src.js b/public_html/tiny_mce/plugins/example/editor_plugin_src.js deleted file mode 100755 index 9a0e7da..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - // Load plugin specific language pack - tinymce.PluginManager.requireLangPack('example'); - - tinymce.create('tinymce.plugins.ExamplePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceExample', function() { - ed.windowManager.open({ - file : url + '/dialog.htm', - width : 320 + parseInt(ed.getLang('example.delta_width', 0)), - height : 120 + parseInt(ed.getLang('example.delta_height', 0)), - inline : 1 - }, { - plugin_url : url, // Plugin absolute URL - some_custom_arg : 'custom arg' // Custom argument - }); - }); - - // Register example button - ed.addButton('example', { - title : 'example.desc', - cmd : 'mceExample', - image : url + '/img/example.gif' - }); - - // Add a node change handler, selects the button in the UI when a image is selected - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('example', n.nodeName == 'IMG'); - }); - }, - - /** - * Creates control instances based in the incomming name. This method is normally not - * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons - * but you sometimes need to create more complex controls like listboxes, split buttons etc then this - * method can be used to create those. - * - * @param {String} n Name of the control to create. - * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. - * @return {tinymce.ui.Control} New control instance or null if no control was created. - */ - createControl : function(n, cm) { - return null; - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Example plugin', - author : 'Some author', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', - version : "1.0" - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/img/example.gif b/public_html/tiny_mce/plugins/example/img/example.gif deleted file mode 100755 index 1ab5da4..0000000 Binary files a/public_html/tiny_mce/plugins/example/img/example.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/example/js/dialog.js b/public_html/tiny_mce/plugins/example/js/dialog.js deleted file mode 100755 index fa83411..0000000 --- a/public_html/tiny_mce/plugins/example/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/public_html/tiny_mce/plugins/example/langs/en.js b/public_html/tiny_mce/plugins/example/langs/en.js deleted file mode 100755 index e0784f8..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example',{ - desc : 'This is just a template button' -}); diff --git a/public_html/tiny_mce/plugins/example/langs/en_dlg.js b/public_html/tiny_mce/plugins/example/langs/en_dlg.js deleted file mode 100755 index ebcf948..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en_dlg.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example_dlg',{ - title : 'This is just a example title' -}); diff --git a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css b/public_html/tiny_mce/plugins/fullpage/css/fullpage.css deleted file mode 100755 index 7a3334f..0000000 --- a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,182 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -#doctypes { - width: 200px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} - -textarea { - height: 55px; -} - -.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js b/public_html/tiny_mce/plugins/fullpage/editor_plugin.js deleted file mode 100755 index aeaa669..0000000 --- a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
/gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js b/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js deleted file mode 100755 index 5586637..0000000 --- a/public_html/tiny_mce/plugins/bbcode/editor_plugin_src.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.BBCodePlugin', { - init : function(ed, url) { - var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); - - ed.onBeforeSetContent.add(function(ed, o) { - o.content = t['_' + dialect + '_bbcode2html'](o.content); - }); - - ed.onPostProcess.add(function(ed, o) { - if (o.set) - o.content = t['_' + dialect + '_bbcode2html'](o.content); - - if (o.get) - o.content = t['_' + dialect + '_html2bbcode'](o.content); - }); - }, - - getInfo : function() { - return { - longname : 'BBCode Plugin', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - // HTML -> BBCode in PunBB dialect - _punbb_html2bbcode : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: to [b] - rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); - rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); - rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); - rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); - rep(/(.*?)<\/font>/gi,"$1"); - rep(//gi,"[img]$1[/img]"); - rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); - rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); - rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); - rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); - rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); - rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); - rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); - rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); - rep(/<\/(strong|b)>/gi,"[/b]"); - rep(/<(strong|b)>/gi,"[b]"); - rep(/<\/(em|i)>/gi,"[/i]"); - rep(/<(em|i)>/gi,"[i]"); - rep(/<\/u>/gi,"[/u]"); - rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); - rep(//gi,"[u]"); - rep(/]*>/gi,"[quote]"); - rep(/<\/blockquote>/gi,"[/quote]"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,""); - rep(/<\/p>/gi,"\n"); - rep(/ /gi," "); - rep(/"/gi,"\""); - rep(/</gi,"<"); - rep(/>/gi,">"); - rep(/&/gi,"&"); - - return s; - }, - - // BBCode -> HTML from PunBB dialect - _punbb_bbcode2html : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: [b] to - rep(/\n/gi,""); - rep(/\[b\]/gi,""); - rep(/\[\/b\]/gi,""); - rep(/\[i\]/gi,""); - rep(/\[\/i\]/gi,""); - rep(/\[u\]/gi,""); - rep(/\[\/u\]/gi,""); - rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); - rep(/\[url\](.*?)\[\/url\]/gi,"$1"); - rep(/\[img\](.*?)\[\/img\]/gi,""); - rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); - rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); - rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); - - return s; - } - }); - - // Register plugin - tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js deleted file mode 100755 index 9749e51..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100755 index 13813a6..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; - - /** - * This plugin a context menu to TinyMCE editor instances. - * - * @class tinymce.plugins.ContextMenu - */ - tinymce.create('tinymce.plugins.ContextMenu', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @method init - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed) { - var t = this, lastRng; - - t.editor = ed; - - /** - * This event gets fired when the context menu is shown. - * - * @event onContextMenu - * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. - * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. - */ - t.onContextMenu = new tinymce.util.Dispatcher(this); - - ed.onContextMenu.add(function(ed, e) { - if (!e.ctrlKey) { - // Restore the last selection since it was removed - if (lastRng) - ed.selection.setRng(lastRng); - - t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', function(e) { - hide(ed, e); - }); - Event.cancel(e); - } - }); - - ed.onRemove.add(function() { - if (t._menu) - t._menu.removeAll(); - }); - - function hide(ed, e) { - lastRng = null; - - // Since the contextmenu event moves - // the selection we need to store it away - if (e && e.button == 2) { - lastRng = ed.selection.getRng(); - return; - } - - if (t._menu) { - t._menu.removeAll(); - t._menu.destroy(); - Event.remove(ed.getDoc(), 'click', hide); - } - }; - - ed.onMouseDown.add(hide); - ed.onKeyDown.add(hide); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Contextmenu', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - _getMenu : function(ed) { - var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; - - if (m) { - m.removeAll(); - m.destroy(); - } - - p1 = DOM.getPos(ed.getContentAreaContainer()); - p2 = DOM.getPos(ed.getContainer()); - - m = ed.controlManager.createDropMenu('contextmenu', { - offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), - offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), - constrain : 1 - }); - - t._menu = m; - - m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); - m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); - m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); - - if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { - m.addSeparator(); - m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); - m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); - } - - m.addSeparator(); - m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); - - m.addSeparator(); - am = m.addMenu({title : 'contextmenu.align'}); - am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); - am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); - am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); - am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); - - t.onContextMenu.dispatch(t, m, el, col); - - return m; - } - }); - - // Register plugin - tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin.js b/public_html/tiny_mce/plugins/directionality/editor_plugin.js deleted file mode 100755 index bce8e73..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js b/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js deleted file mode 100755 index 4444959..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.Directionality', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - ed.addCommand('mceDirectionLTR', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "ltr") - ed.dom.setAttrib(e, "dir", "ltr"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addCommand('mceDirectionRTL', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "rtl") - ed.dom.setAttrib(e, "dir", "rtl"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); - ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); - - ed.onNodeChange.add(t._nodeChange, t); - }, - - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - _nodeChange : function(ed, cm, n) { - var dom = ed.dom, dir; - - n = dom.getParent(n, dom.isBlock); - if (!n) { - cm.setDisabled('ltr', 1); - cm.setDisabled('rtl', 1); - return; - } - - dir = dom.getAttrib(n, 'dir'); - cm.setActive('ltr', dir == "ltr"); - cm.setDisabled('ltr', 0); - cm.setActive('rtl', dir == "rtl"); - cm.setDisabled('rtl', 0); - } - }); - - // Register plugin - tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin.js b/public_html/tiny_mce/plugins/emotions/editor_plugin.js deleted file mode 100755 index dbdd8ff..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js b/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js deleted file mode 100755 index 71d5416..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function(tinymce) { - tinymce.create('tinymce.plugins.EmotionsPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceEmotion', function() { - ed.windowManager.open({ - file : url + '/emotions.htm', - width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), - height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); - }, - - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); -})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/emotions.htm b/public_html/tiny_mce/plugins/emotions/emotions.htm deleted file mode 100755 index 55a1d72..0000000 --- a/public_html/tiny_mce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - - {#emotions_dlg.title} - - - - - - {#emotions_dlg.title}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif deleted file mode 100755 index ba90cc3..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif deleted file mode 100755 index 74d897a..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif deleted file mode 100755 index 963a96b..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif deleted file mode 100755 index 16f68cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif deleted file mode 100755 index 716f55e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif deleted file mode 100755 index 334d49e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif deleted file mode 100755 index 4efd549..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif deleted file mode 100755 index 1606c11..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif deleted file mode 100755 index ca2451e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif deleted file mode 100755 index b33d3cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif deleted file mode 100755 index e6a9e60..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif deleted file mode 100755 index cb99cdd..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif deleted file mode 100755 index 2075dc1..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif deleted file mode 100755 index bef7e25..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif deleted file mode 100755 index 9faf1af..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif deleted file mode 100755 index 648e6e8..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/js/emotions.js b/public_html/tiny_mce/plugins/emotions/js/emotions.js deleted file mode 100755 index c549367..0000000 --- a/public_html/tiny_mce/plugins/emotions/js/emotions.js +++ /dev/null @@ -1,22 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var EmotionsDialog = { - init : function(ed) { - tinyMCEPopup.resizeToInnerSize(); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, dom = ed.dom; - - tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { - src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, - alt : ed.getLang(title), - title : ed.getLang(title), - border : 0 - })); - - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js b/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js deleted file mode 100755 index 3b57ad9..0000000 --- a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js +++ /dev/null @@ -1,20 +0,0 @@ -tinyMCE.addI18n('en.emotions_dlg',{ -title:"Insert emotion", -desc:"Emotions", -cool:"Cool", -cry:"Cry", -embarassed:"Embarassed", -foot_in_mouth:"Foot in mouth", -frown:"Frown", -innocent:"Innocent", -kiss:"Kiss", -laughing:"Laughing", -money_mouth:"Money mouth", -sealed:"Sealed", -smile:"Smile", -surprised:"Surprised", -tongue_out:"Tongue out", -undecided:"Undecided", -wink:"Wink", -yell:"Yell" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/dialog.htm b/public_html/tiny_mce/plugins/example/dialog.htm deleted file mode 100755 index 50b2b34..0000000 --- a/public_html/tiny_mce/plugins/example/dialog.htm +++ /dev/null @@ -1,22 +0,0 @@ - - - - {#example_dlg.title} - - - - - - - Here is a example dialog. - Selected text: - Custom arg: - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/example/editor_plugin.js b/public_html/tiny_mce/plugins/example/editor_plugin.js deleted file mode 100755 index ec1f81e..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/editor_plugin_src.js b/public_html/tiny_mce/plugins/example/editor_plugin_src.js deleted file mode 100755 index 9a0e7da..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - // Load plugin specific language pack - tinymce.PluginManager.requireLangPack('example'); - - tinymce.create('tinymce.plugins.ExamplePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceExample', function() { - ed.windowManager.open({ - file : url + '/dialog.htm', - width : 320 + parseInt(ed.getLang('example.delta_width', 0)), - height : 120 + parseInt(ed.getLang('example.delta_height', 0)), - inline : 1 - }, { - plugin_url : url, // Plugin absolute URL - some_custom_arg : 'custom arg' // Custom argument - }); - }); - - // Register example button - ed.addButton('example', { - title : 'example.desc', - cmd : 'mceExample', - image : url + '/img/example.gif' - }); - - // Add a node change handler, selects the button in the UI when a image is selected - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('example', n.nodeName == 'IMG'); - }); - }, - - /** - * Creates control instances based in the incomming name. This method is normally not - * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons - * but you sometimes need to create more complex controls like listboxes, split buttons etc then this - * method can be used to create those. - * - * @param {String} n Name of the control to create. - * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. - * @return {tinymce.ui.Control} New control instance or null if no control was created. - */ - createControl : function(n, cm) { - return null; - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Example plugin', - author : 'Some author', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', - version : "1.0" - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/img/example.gif b/public_html/tiny_mce/plugins/example/img/example.gif deleted file mode 100755 index 1ab5da4..0000000 Binary files a/public_html/tiny_mce/plugins/example/img/example.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/example/js/dialog.js b/public_html/tiny_mce/plugins/example/js/dialog.js deleted file mode 100755 index fa83411..0000000 --- a/public_html/tiny_mce/plugins/example/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/public_html/tiny_mce/plugins/example/langs/en.js b/public_html/tiny_mce/plugins/example/langs/en.js deleted file mode 100755 index e0784f8..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example',{ - desc : 'This is just a template button' -}); diff --git a/public_html/tiny_mce/plugins/example/langs/en_dlg.js b/public_html/tiny_mce/plugins/example/langs/en_dlg.js deleted file mode 100755 index ebcf948..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en_dlg.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example_dlg',{ - title : 'This is just a example title' -}); diff --git a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css b/public_html/tiny_mce/plugins/fullpage/css/fullpage.css deleted file mode 100755 index 7a3334f..0000000 --- a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,182 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -#doctypes { - width: 200px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} - -textarea { - height: 55px; -} - -.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js b/public_html/tiny_mce/plugins/fullpage/editor_plugin.js deleted file mode 100755 index aeaa669..0000000 --- a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
]*>/gi,"[quote]"); - rep(/<\/blockquote>/gi,"[/quote]"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,"\n"); - rep(//gi,""); - rep(/<\/p>/gi,"\n"); - rep(/ /gi," "); - rep(/"/gi,"\""); - rep(/</gi,"<"); - rep(/>/gi,">"); - rep(/&/gi,"&"); - - return s; - }, - - // BBCode -> HTML from PunBB dialect - _punbb_bbcode2html : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: [b] to - rep(/\n/gi,""); - rep(/\[b\]/gi,""); - rep(/\[\/b\]/gi,""); - rep(/\[i\]/gi,""); - rep(/\[\/i\]/gi,""); - rep(/\[u\]/gi,""); - rep(/\[\/u\]/gi,""); - rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); - rep(/\[url\](.*?)\[\/url\]/gi,"$1"); - rep(/\[img\](.*?)\[\/img\]/gi,""); - rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); - rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); - rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); - - return s; - } - }); - - // Register plugin - tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js deleted file mode 100755 index 9749e51..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100755 index 13813a6..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; - - /** - * This plugin a context menu to TinyMCE editor instances. - * - * @class tinymce.plugins.ContextMenu - */ - tinymce.create('tinymce.plugins.ContextMenu', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @method init - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed) { - var t = this, lastRng; - - t.editor = ed; - - /** - * This event gets fired when the context menu is shown. - * - * @event onContextMenu - * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. - * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. - */ - t.onContextMenu = new tinymce.util.Dispatcher(this); - - ed.onContextMenu.add(function(ed, e) { - if (!e.ctrlKey) { - // Restore the last selection since it was removed - if (lastRng) - ed.selection.setRng(lastRng); - - t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', function(e) { - hide(ed, e); - }); - Event.cancel(e); - } - }); - - ed.onRemove.add(function() { - if (t._menu) - t._menu.removeAll(); - }); - - function hide(ed, e) { - lastRng = null; - - // Since the contextmenu event moves - // the selection we need to store it away - if (e && e.button == 2) { - lastRng = ed.selection.getRng(); - return; - } - - if (t._menu) { - t._menu.removeAll(); - t._menu.destroy(); - Event.remove(ed.getDoc(), 'click', hide); - } - }; - - ed.onMouseDown.add(hide); - ed.onKeyDown.add(hide); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Contextmenu', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - _getMenu : function(ed) { - var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; - - if (m) { - m.removeAll(); - m.destroy(); - } - - p1 = DOM.getPos(ed.getContentAreaContainer()); - p2 = DOM.getPos(ed.getContainer()); - - m = ed.controlManager.createDropMenu('contextmenu', { - offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), - offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), - constrain : 1 - }); - - t._menu = m; - - m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); - m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); - m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); - - if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { - m.addSeparator(); - m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); - m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); - } - - m.addSeparator(); - m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); - - m.addSeparator(); - am = m.addMenu({title : 'contextmenu.align'}); - am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); - am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); - am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); - am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); - - t.onContextMenu.dispatch(t, m, el, col); - - return m; - } - }); - - // Register plugin - tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin.js b/public_html/tiny_mce/plugins/directionality/editor_plugin.js deleted file mode 100755 index bce8e73..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js b/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js deleted file mode 100755 index 4444959..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.Directionality', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - ed.addCommand('mceDirectionLTR', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "ltr") - ed.dom.setAttrib(e, "dir", "ltr"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addCommand('mceDirectionRTL', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "rtl") - ed.dom.setAttrib(e, "dir", "rtl"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); - ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); - - ed.onNodeChange.add(t._nodeChange, t); - }, - - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - _nodeChange : function(ed, cm, n) { - var dom = ed.dom, dir; - - n = dom.getParent(n, dom.isBlock); - if (!n) { - cm.setDisabled('ltr', 1); - cm.setDisabled('rtl', 1); - return; - } - - dir = dom.getAttrib(n, 'dir'); - cm.setActive('ltr', dir == "ltr"); - cm.setDisabled('ltr', 0); - cm.setActive('rtl', dir == "rtl"); - cm.setDisabled('rtl', 0); - } - }); - - // Register plugin - tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin.js b/public_html/tiny_mce/plugins/emotions/editor_plugin.js deleted file mode 100755 index dbdd8ff..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js b/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js deleted file mode 100755 index 71d5416..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function(tinymce) { - tinymce.create('tinymce.plugins.EmotionsPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceEmotion', function() { - ed.windowManager.open({ - file : url + '/emotions.htm', - width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), - height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); - }, - - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); -})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/emotions.htm b/public_html/tiny_mce/plugins/emotions/emotions.htm deleted file mode 100755 index 55a1d72..0000000 --- a/public_html/tiny_mce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - - {#emotions_dlg.title} - - - - - - {#emotions_dlg.title}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif deleted file mode 100755 index ba90cc3..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif deleted file mode 100755 index 74d897a..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif deleted file mode 100755 index 963a96b..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif deleted file mode 100755 index 16f68cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif deleted file mode 100755 index 716f55e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif deleted file mode 100755 index 334d49e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif deleted file mode 100755 index 4efd549..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif deleted file mode 100755 index 1606c11..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif deleted file mode 100755 index ca2451e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif deleted file mode 100755 index b33d3cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif deleted file mode 100755 index e6a9e60..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif deleted file mode 100755 index cb99cdd..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif deleted file mode 100755 index 2075dc1..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif deleted file mode 100755 index bef7e25..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif deleted file mode 100755 index 9faf1af..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif deleted file mode 100755 index 648e6e8..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/js/emotions.js b/public_html/tiny_mce/plugins/emotions/js/emotions.js deleted file mode 100755 index c549367..0000000 --- a/public_html/tiny_mce/plugins/emotions/js/emotions.js +++ /dev/null @@ -1,22 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var EmotionsDialog = { - init : function(ed) { - tinyMCEPopup.resizeToInnerSize(); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, dom = ed.dom; - - tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { - src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, - alt : ed.getLang(title), - title : ed.getLang(title), - border : 0 - })); - - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js b/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js deleted file mode 100755 index 3b57ad9..0000000 --- a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js +++ /dev/null @@ -1,20 +0,0 @@ -tinyMCE.addI18n('en.emotions_dlg',{ -title:"Insert emotion", -desc:"Emotions", -cool:"Cool", -cry:"Cry", -embarassed:"Embarassed", -foot_in_mouth:"Foot in mouth", -frown:"Frown", -innocent:"Innocent", -kiss:"Kiss", -laughing:"Laughing", -money_mouth:"Money mouth", -sealed:"Sealed", -smile:"Smile", -surprised:"Surprised", -tongue_out:"Tongue out", -undecided:"Undecided", -wink:"Wink", -yell:"Yell" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/dialog.htm b/public_html/tiny_mce/plugins/example/dialog.htm deleted file mode 100755 index 50b2b34..0000000 --- a/public_html/tiny_mce/plugins/example/dialog.htm +++ /dev/null @@ -1,22 +0,0 @@ - - - - {#example_dlg.title} - - - - - - - Here is a example dialog. - Selected text: - Custom arg: - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/example/editor_plugin.js b/public_html/tiny_mce/plugins/example/editor_plugin.js deleted file mode 100755 index ec1f81e..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/editor_plugin_src.js b/public_html/tiny_mce/plugins/example/editor_plugin_src.js deleted file mode 100755 index 9a0e7da..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - // Load plugin specific language pack - tinymce.PluginManager.requireLangPack('example'); - - tinymce.create('tinymce.plugins.ExamplePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceExample', function() { - ed.windowManager.open({ - file : url + '/dialog.htm', - width : 320 + parseInt(ed.getLang('example.delta_width', 0)), - height : 120 + parseInt(ed.getLang('example.delta_height', 0)), - inline : 1 - }, { - plugin_url : url, // Plugin absolute URL - some_custom_arg : 'custom arg' // Custom argument - }); - }); - - // Register example button - ed.addButton('example', { - title : 'example.desc', - cmd : 'mceExample', - image : url + '/img/example.gif' - }); - - // Add a node change handler, selects the button in the UI when a image is selected - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('example', n.nodeName == 'IMG'); - }); - }, - - /** - * Creates control instances based in the incomming name. This method is normally not - * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons - * but you sometimes need to create more complex controls like listboxes, split buttons etc then this - * method can be used to create those. - * - * @param {String} n Name of the control to create. - * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. - * @return {tinymce.ui.Control} New control instance or null if no control was created. - */ - createControl : function(n, cm) { - return null; - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Example plugin', - author : 'Some author', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', - version : "1.0" - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/img/example.gif b/public_html/tiny_mce/plugins/example/img/example.gif deleted file mode 100755 index 1ab5da4..0000000 Binary files a/public_html/tiny_mce/plugins/example/img/example.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/example/js/dialog.js b/public_html/tiny_mce/plugins/example/js/dialog.js deleted file mode 100755 index fa83411..0000000 --- a/public_html/tiny_mce/plugins/example/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/public_html/tiny_mce/plugins/example/langs/en.js b/public_html/tiny_mce/plugins/example/langs/en.js deleted file mode 100755 index e0784f8..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example',{ - desc : 'This is just a template button' -}); diff --git a/public_html/tiny_mce/plugins/example/langs/en_dlg.js b/public_html/tiny_mce/plugins/example/langs/en_dlg.js deleted file mode 100755 index ebcf948..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en_dlg.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example_dlg',{ - title : 'This is just a example title' -}); diff --git a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css b/public_html/tiny_mce/plugins/fullpage/css/fullpage.css deleted file mode 100755 index 7a3334f..0000000 --- a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,182 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -#doctypes { - width: 200px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} - -textarea { - height: 55px; -} - -.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js b/public_html/tiny_mce/plugins/fullpage/editor_plugin.js deleted file mode 100755 index aeaa669..0000000 --- a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
/gi,""); - rep(/<\/p>/gi,"\n"); - rep(/ /gi," "); - rep(/"/gi,"\""); - rep(/</gi,"<"); - rep(/>/gi,">"); - rep(/&/gi,"&"); - - return s; - }, - - // BBCode -> HTML from PunBB dialect - _punbb_bbcode2html : function(s) { - s = tinymce.trim(s); - - function rep(re, str) { - s = s.replace(re, str); - }; - - // example: [b] to - rep(/\n/gi,""); - rep(/\[b\]/gi,""); - rep(/\[\/b\]/gi,""); - rep(/\[i\]/gi,""); - rep(/\[\/i\]/gi,""); - rep(/\[u\]/gi,""); - rep(/\[\/u\]/gi,""); - rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); - rep(/\[url\](.*?)\[\/url\]/gi,"$1"); - rep(/\[img\](.*?)\[\/img\]/gi,""); - rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); - rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); - rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); - - return s; - } - }); - - // Register plugin - tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js deleted file mode 100755 index 9749e51..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100755 index 13813a6..0000000 --- a/public_html/tiny_mce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; - - /** - * This plugin a context menu to TinyMCE editor instances. - * - * @class tinymce.plugins.ContextMenu - */ - tinymce.create('tinymce.plugins.ContextMenu', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @method init - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed) { - var t = this, lastRng; - - t.editor = ed; - - /** - * This event gets fired when the context menu is shown. - * - * @event onContextMenu - * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. - * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. - */ - t.onContextMenu = new tinymce.util.Dispatcher(this); - - ed.onContextMenu.add(function(ed, e) { - if (!e.ctrlKey) { - // Restore the last selection since it was removed - if (lastRng) - ed.selection.setRng(lastRng); - - t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', function(e) { - hide(ed, e); - }); - Event.cancel(e); - } - }); - - ed.onRemove.add(function() { - if (t._menu) - t._menu.removeAll(); - }); - - function hide(ed, e) { - lastRng = null; - - // Since the contextmenu event moves - // the selection we need to store it away - if (e && e.button == 2) { - lastRng = ed.selection.getRng(); - return; - } - - if (t._menu) { - t._menu.removeAll(); - t._menu.destroy(); - Event.remove(ed.getDoc(), 'click', hide); - } - }; - - ed.onMouseDown.add(hide); - ed.onKeyDown.add(hide); - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @method getInfo - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Contextmenu', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - _getMenu : function(ed) { - var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; - - if (m) { - m.removeAll(); - m.destroy(); - } - - p1 = DOM.getPos(ed.getContentAreaContainer()); - p2 = DOM.getPos(ed.getContainer()); - - m = ed.controlManager.createDropMenu('contextmenu', { - offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), - offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), - constrain : 1 - }); - - t._menu = m; - - m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); - m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); - m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); - - if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { - m.addSeparator(); - m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); - m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); - } - - m.addSeparator(); - m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); - - m.addSeparator(); - am = m.addMenu({title : 'contextmenu.align'}); - am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); - am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); - am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); - am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); - - t.onContextMenu.dispatch(t, m, el, col); - - return m; - } - }); - - // Register plugin - tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin.js b/public_html/tiny_mce/plugins/directionality/editor_plugin.js deleted file mode 100755 index bce8e73..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js b/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js deleted file mode 100755 index 4444959..0000000 --- a/public_html/tiny_mce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - tinymce.create('tinymce.plugins.Directionality', { - init : function(ed, url) { - var t = this; - - t.editor = ed; - - ed.addCommand('mceDirectionLTR', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "ltr") - ed.dom.setAttrib(e, "dir", "ltr"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addCommand('mceDirectionRTL', function() { - var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); - - if (e) { - if (ed.dom.getAttrib(e, "dir") != "rtl") - ed.dom.setAttrib(e, "dir", "rtl"); - else - ed.dom.setAttrib(e, "dir", ""); - } - - ed.nodeChanged(); - }); - - ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); - ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); - - ed.onNodeChange.add(t._nodeChange, t); - }, - - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - }, - - // Private methods - - _nodeChange : function(ed, cm, n) { - var dom = ed.dom, dir; - - n = dom.getParent(n, dom.isBlock); - if (!n) { - cm.setDisabled('ltr', 1); - cm.setDisabled('rtl', 1); - return; - } - - dir = dom.getAttrib(n, 'dir'); - cm.setActive('ltr', dir == "ltr"); - cm.setDisabled('ltr', 0); - cm.setActive('rtl', dir == "rtl"); - cm.setDisabled('rtl', 0); - } - }); - - // Register plugin - tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin.js b/public_html/tiny_mce/plugins/emotions/editor_plugin.js deleted file mode 100755 index dbdd8ff..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js b/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js deleted file mode 100755 index 71d5416..0000000 --- a/public_html/tiny_mce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function(tinymce) { - tinymce.create('tinymce.plugins.EmotionsPlugin', { - init : function(ed, url) { - // Register commands - ed.addCommand('mceEmotion', function() { - ed.windowManager.open({ - file : url + '/emotions.htm', - width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), - height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), - inline : 1 - }, { - plugin_url : url - }); - }); - - // Register buttons - ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); - }, - - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', - version : tinymce.majorVersion + "." + tinymce.minorVersion - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); -})(tinymce); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/emotions/emotions.htm b/public_html/tiny_mce/plugins/emotions/emotions.htm deleted file mode 100755 index 55a1d72..0000000 --- a/public_html/tiny_mce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - - {#emotions_dlg.title} - - - - - - {#emotions_dlg.title}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif deleted file mode 100755 index ba90cc3..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cool.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif deleted file mode 100755 index 74d897a..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-cry.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif deleted file mode 100755 index 963a96b..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif deleted file mode 100755 index 16f68cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif deleted file mode 100755 index 716f55e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-frown.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif deleted file mode 100755 index 334d49e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-innocent.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif deleted file mode 100755 index 4efd549..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-kiss.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif deleted file mode 100755 index 1606c11..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-laughing.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif deleted file mode 100755 index ca2451e..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif deleted file mode 100755 index b33d3cc..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-sealed.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif deleted file mode 100755 index e6a9e60..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-smile.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif deleted file mode 100755 index cb99cdd..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-surprised.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif deleted file mode 100755 index 2075dc1..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif deleted file mode 100755 index bef7e25..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-undecided.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif deleted file mode 100755 index 9faf1af..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-wink.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif deleted file mode 100755 index 648e6e8..0000000 Binary files a/public_html/tiny_mce/plugins/emotions/img/smiley-yell.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/emotions/js/emotions.js b/public_html/tiny_mce/plugins/emotions/js/emotions.js deleted file mode 100755 index c549367..0000000 --- a/public_html/tiny_mce/plugins/emotions/js/emotions.js +++ /dev/null @@ -1,22 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var EmotionsDialog = { - init : function(ed) { - tinyMCEPopup.resizeToInnerSize(); - }, - - insert : function(file, title) { - var ed = tinyMCEPopup.editor, dom = ed.dom; - - tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { - src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, - alt : ed.getLang(title), - title : ed.getLang(title), - border : 0 - })); - - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js b/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js deleted file mode 100755 index 3b57ad9..0000000 --- a/public_html/tiny_mce/plugins/emotions/langs/en_dlg.js +++ /dev/null @@ -1,20 +0,0 @@ -tinyMCE.addI18n('en.emotions_dlg',{ -title:"Insert emotion", -desc:"Emotions", -cool:"Cool", -cry:"Cry", -embarassed:"Embarassed", -foot_in_mouth:"Foot in mouth", -frown:"Frown", -innocent:"Innocent", -kiss:"Kiss", -laughing:"Laughing", -money_mouth:"Money mouth", -sealed:"Sealed", -smile:"Smile", -surprised:"Surprised", -tongue_out:"Tongue out", -undecided:"Undecided", -wink:"Wink", -yell:"Yell" -}); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/dialog.htm b/public_html/tiny_mce/plugins/example/dialog.htm deleted file mode 100755 index 50b2b34..0000000 --- a/public_html/tiny_mce/plugins/example/dialog.htm +++ /dev/null @@ -1,22 +0,0 @@ - - - - {#example_dlg.title} - - - - - - - Here is a example dialog. - Selected text: - Custom arg: - - - - - - - - - diff --git a/public_html/tiny_mce/plugins/example/editor_plugin.js b/public_html/tiny_mce/plugins/example/editor_plugin.js deleted file mode 100755 index ec1f81e..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/editor_plugin_src.js b/public_html/tiny_mce/plugins/example/editor_plugin_src.js deleted file mode 100755 index 9a0e7da..0000000 --- a/public_html/tiny_mce/plugins/example/editor_plugin_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * editor_plugin_src.js - * - * Copyright 2009, Moxiecode Systems AB - * Released under LGPL License. - * - * License: http://tinymce.moxiecode.com/license - * Contributing: http://tinymce.moxiecode.com/contributing - */ - -(function() { - // Load plugin specific language pack - tinymce.PluginManager.requireLangPack('example'); - - tinymce.create('tinymce.plugins.ExamplePlugin', { - /** - * Initializes the plugin, this will be executed after the plugin has been created. - * This call is done before the editor instance has finished it's initialization so use the onInit event - * of the editor instance to intercept that event. - * - * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. - * @param {string} url Absolute URL to where the plugin is located. - */ - init : function(ed, url) { - // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); - ed.addCommand('mceExample', function() { - ed.windowManager.open({ - file : url + '/dialog.htm', - width : 320 + parseInt(ed.getLang('example.delta_width', 0)), - height : 120 + parseInt(ed.getLang('example.delta_height', 0)), - inline : 1 - }, { - plugin_url : url, // Plugin absolute URL - some_custom_arg : 'custom arg' // Custom argument - }); - }); - - // Register example button - ed.addButton('example', { - title : 'example.desc', - cmd : 'mceExample', - image : url + '/img/example.gif' - }); - - // Add a node change handler, selects the button in the UI when a image is selected - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('example', n.nodeName == 'IMG'); - }); - }, - - /** - * Creates control instances based in the incomming name. This method is normally not - * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons - * but you sometimes need to create more complex controls like listboxes, split buttons etc then this - * method can be used to create those. - * - * @param {String} n Name of the control to create. - * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. - * @return {tinymce.ui.Control} New control instance or null if no control was created. - */ - createControl : function(n, cm) { - return null; - }, - - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @return {Object} Name/value array containing information about the plugin. - */ - getInfo : function() { - return { - longname : 'Example plugin', - author : 'Some author', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', - version : "1.0" - }; - } - }); - - // Register plugin - tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); -})(); \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/example/img/example.gif b/public_html/tiny_mce/plugins/example/img/example.gif deleted file mode 100755 index 1ab5da4..0000000 Binary files a/public_html/tiny_mce/plugins/example/img/example.gif and /dev/null differ diff --git a/public_html/tiny_mce/plugins/example/js/dialog.js b/public_html/tiny_mce/plugins/example/js/dialog.js deleted file mode 100755 index fa83411..0000000 --- a/public_html/tiny_mce/plugins/example/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/public_html/tiny_mce/plugins/example/langs/en.js b/public_html/tiny_mce/plugins/example/langs/en.js deleted file mode 100755 index e0784f8..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example',{ - desc : 'This is just a template button' -}); diff --git a/public_html/tiny_mce/plugins/example/langs/en_dlg.js b/public_html/tiny_mce/plugins/example/langs/en_dlg.js deleted file mode 100755 index ebcf948..0000000 --- a/public_html/tiny_mce/plugins/example/langs/en_dlg.js +++ /dev/null @@ -1,3 +0,0 @@ -tinyMCE.addI18n('en.example_dlg',{ - title : 'This is just a example title' -}); diff --git a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css b/public_html/tiny_mce/plugins/fullpage/css/fullpage.css deleted file mode 100755 index 7a3334f..0000000 --- a/public_html/tiny_mce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,182 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -#doctypes { - width: 200px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} - -textarea { - height: 55px; -} - -.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js b/public_html/tiny_mce/plugins/fullpage/editor_plugin.js deleted file mode 100755 index aeaa669..0000000 --- a/public_html/tiny_mce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
Here is a example dialog.
Selected text:
Custom arg:
\n'}h.head+=d.getParam("fullpage_default_doctype",'');h.head+="\n\n
\n
\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="\n