
Geschrieben von
take
(Moderator) am 16.10.2007 um 20:47 Uhr.
Beiträge: 613 /
#1484
Kontakt:
Mailen
|
WWW
Ist kein Tutorial, sondern eher ein fertig Script. Leicht an die eigenen Bedürfnisse anpassbar:
Screenshots:
[hidden]
Ihr braucht 3 Dateien:
index.php
<?php
- <?php
- // settings;
- $top="frame.html"; // Topframe..
- // ::end
- $ref=$_GET['ref'];
- if ($ref) {
- if(preg_match("/^http:///", $ref)) $ref=$ref;
- else $ref = "http://$ref";
- echo '<frameset rows="30,*" border="2" framespacing="1" frameborder="YES">
- <frame src="'.$top.'" noresize scrolling="NO" frameborder="0" marginwidth="0" marginheight="0">
- <frame src="'.$ref.'"></frameset>';
- } else {
- ?>
- <style type="text/css">
- <!--
- body,td,th {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- color: #666666;
- font-size: 12px;
- }
- body {
- background-color: #FFFFFF;
- }
- a:link {
- color: #006699;
- text-decoration: none;
- }
- a {
- font-weight: bold;
- }
- a:visited {
- text-decoration: none;
- color: #006699;
- }
- a:hover {
- text-decoration: underline;
- color: #0066CC;
- }
- a:active {
- text-decoration: none;
- color: #006699;
- }
- .forms {
- background-color: #FFFFFF;
- border: 1px solid #CCCCCC;
- }
- -->
- </style>
- <script type="text/javascript">
- <!--
- function generate() {
- var refsite="http://refkiller.t4k3.de/?ref=";
- var url = document.getElementById('url').value;
- if (url.length < 1) { alert('Bitte geben Sie eine URL ein.'); return false; }
- else {
- document.getElementById('ou').value = refsite+url;
- document.getElementById('hu').value = "<a href='"+refsite+url+"'>Anonym Linken</a>";
- document.getElementById('bu').value = "[url="+refsite+url+"]Anonym Linken[/url]";
- return false;
- }
- }
- function clearforms() {
- document.getElementById('ou').value = "";
- document.getElementById('hu').value = "";
- document.getElementById('bu').value = "";
- document.getElementById('url').value = "";
- return false;
- }
- -->
- </script>
- <form name="form1" method="post" action="" onSubmit="return generate();"><span style="font-weight: bold"><font style="font-size:36px">Anonym Linken.</font></span><br>
- <br>
- <strong>Deine URL</strong><br>
- <form name="form1" method="post" action="" onSubmit="return generate();"><input name="url" type="text" class="forms" id="url" style="width:550px;">
- <br>
- <br>
- <input name="Submit" type="submit" class="forms" style="width:550px;" value="Link generieren">
- <hr align="left" width="550" size="1" noshade="noshade">
- <strong>Original URL mit Ref Killer </strong><br>
- <textarea name="ou" class="forms" id="ou" style="width:550px; height:30px"></textarea>
- <br>
- <br>
- <strong>URL als HTML Link</strong><br>
- <textarea name="hu" class="forms" id="hu" style="width:550px; height:50px"></textarea>
- <br>
- <br>
- <strong>URL als BB Code Link </strong><br>
- <textarea name="bu" class="forms" id="bu" style="width:550px; height:50px"></textarea></form>
- <form name="form2" method="post" action="" onSubmit="return clearforms();"><input name="clean" type="submit" class="forms" id="clean" style="width:550px;" value="Clean / Reset"></form>
- <br>
- <br>
- Script © 2007 by <a href="http://www.t4k3.de">t4k3.de</a>
- <?
- }
- ?>
- ?>
anonym.js
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
<script type="text/javascript">
var refsite = "http://go.take.cx/?uri=";
anonym = function ()
{
var host = window.location.hostname;
if (prot_links != "" && !prot_links.match(host))
{
prot_links += ", "+host;
}
else
{
prot_links = host;
}
ahosts = new Array();
var ahosts = anonym_check();
var x = document.getElementsByTagName("a");
for (i = 0; i < x.length; i++)
{
var check = false;
var o = 0;
var href = x[i].href;
while (check == false && o < ahosts.length)
{
if (href.match(ahosts[o]) || !href.match("http://"))
{
check = true;
}
o++;
}
if (check == false)
{
x[i].href = refsite+href;
}
}
}
anonym_check = function ()
{
var arry = new Array();
prot_links = prot_links.replace(" ", "");
arry = prot_links.split(",");
return arry;
}
</script>
frame.php
<?php
- <style type="text/css">
- <!--
- body,td,th {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- color: #666666;
- font-size: 12px;
- }
- body {
- background-color: #FFFFFF;
- }
- a:link {
- color: #006699;
- text-decoration: none;
- }
- a {
- font-weight: bold;
- }
- a:visited {
- text-decoration: none;
- color: #006699;
- }
- a:hover {
- text-decoration: underline;
- color: #0066CC;
- }
- a:active {
- text-decoration: none;
- color: #006699;
- }
- .forms {
- background-color: #FFFFFF;
- border: 1px solid #CCCCCC;
- }
- -->
- </style>
- <br>
- Anonym Linken?
- <a href="http://go.take.cx">http://go.take.cx</a>. - Gut und günstigen Webspace? Domains?
- <a href="http://www.access-one.de">www.access-one.de</a>
- [<a href="<?=$_GET['ref'];?>" target="_parent" style="font-weight:bold; color:#FF0000;">x</a>]
- ?>
[/hidden]
Viele Grüße
"Jeder, der andere kritisiert, muss eine Alternative haben, die er ihnen anbieten kann." - Mo Ti