irc-script-creator-v10

Gesponsorde koppelingen

PHP script bestanden

  1. irc-script-creator-v10

« Lees de omschrijving en reacties

Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<title>Scriptscreator</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<?php
if (isset($_POST['submit'])) {
$trigger = $_POST['trigger'];
$inc = $_POST['inc'];
$action = $_POST['action'];
if ((empty($trigger)) or (empty($action))) {
$error = 1;
echo "Het command en de actie zijn verplicht om in te vullen! <a href=\"\">Probeer opnieuw</a>";
}
else {
$trigger = $_POST['trigger'];
$inc = $_POST['inc'];
$action = $_POST['action'];
if (empty($inc)) {
$code = <<< EOCODE
$trigger {
$action
}
EOCODE;
}
else {
$code = <<< EOCODE
$trigger {
inc $inc
$action

}
EOCODE;
}
}

if ($error != 1) {
?>

<center><b>De code die in je alias-file moet is:</b></center><br>
<br>
<center><p class="code"><textarea style="width: 700px; height: 250px;" class="black"><?php print("$code"); ?></textarea></p><br>
<hr width="500"><br><br>
(Zet dit in je alias-file (Alt + R, dan linksboven naar tabje Alias))
<?php
}
?>

<br>Script creater  Wesdesignz</center>
<?php
} else {
?>

<form method="post" target="_top">
<table border="0">
<!-- Lijn 1 -->
<tr><td>Vul hier het command is, zoals /geefkoekje of /hallo</td></tr><tr><td><input type="text" name="trigger" style="width: 800px; height: 25px;"></td></tr>

<!-- Lijn 2 -->
<tr><td>Vul hier de variable in die eentje hoger moet worden, zoals %koekje of %aantalbegroettemensen</td></tr><tr><td><input type="text" name="inc" style="width: 800px; height: 25px;"></td></tr>

<!-- Lijn 3 -->
<tr><td>Nu komt het leuke deel: Vul hier de actie in. Dit kan 'say Dit om iets te zeggen!' of 'me maakt een actie'.</td></tr><tr><td><input type="text" name="action" style="width: 800px; height: 25px;"></td>

<!-- Einde -->
<td><input type="submit" name="submit" value="Creeer script!"></td></tr>
</table>
<br><br><br><br>
<DL><font size="20">Enkele optie's:</font>
<DT><STRONG>$1</STRONG>
<DD>$1 is de eerste variable wat je ingevuld hebt na de actie. Bijvoorbeeld /aai naam . Als de code /me aait $1 is, staat er /me aait naam. ($$1 is hetzelfde, alleen met 2 keer een $ MOET je die ingevuld hebben. Dus dan werkt /aai niet.
<DT><STRONG>$chan</STRONG>
<DD>$chan is de channel waarin het gebruikt word.
<DT><STRONG>$$2</STRONG>
<DD>Zoals $$1 kan je ook met $$2 doorgaan
<DT><STRONG>$+</STRONG>
<DD>Dit vreet de spatie's op. Bijvoorbeeld (%variable) werkt niet. ( $+ %variable $+ ) wel.
</DL> (meer volgt)
<?php
}
?>


mod edit: code tags toegevoegd.

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.