simpel-rsssyteem

Gesponsorde koppelingen

PHP script bestanden

  1. simpel-rsssyteem

« 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php

$edit
="PD9waHANCg0KcmVxdWlyZSgiY29uZmlnLnBocCIpOw0KDQpteXNxbF9jb25uZWN0KCRob3N0LCR1c2VybmFtZSwkcGFzc3dvcmQpOw0KbXlzcWxfc2VsZWN0X2RiKCRkYik7DQoNCmlmKCFlbXB0eSgkX1BPU1QpKQ0Kew0KCW15c3FsX3F1ZXJ5KCJVUERBVEUgaXRlbXMgU0VUIHRpdGxlPSciLiRfUE9TVFsndGl0bGUnXS4iJyxkZXNjcmlwdGlvbj0nIi4kX1BPU1RbJ2Rlc2NyaXB0aW9uJ10uIicsZnVsbHN0b3J5PSciLiRfUE9TVFsnZnVsbHN0b3J5J10uIicscHViRGF0ZT1OT1coKSBXSEVSRSBpdGVtX2lkPSIuJF9QT1NUWydpZCddLiI7Iikgb3IgZGllKG15c3FsX2Vycm9yKCkpOw0KCWhlYWRlcigiTG9jYXRpb246IG1hbmFnZS5waHAiKTsNCn0NCg0KZWxzZQ0Kew0KCSRxdWVyeT1teXNxbF9xdWVyeSgiU0VMRUNUICogRlJPTSBpdGVtcyBXSEVSRSBpdGVtX2lkPSIuJF9HRVRbJ2lkJ10uIjsiKTsNCglpZihteXNxbF9udW1fcm93cygkcXVlcnkpPT0wKQ0KCWRpZSgiSXRlbSBuaWV0IGdldm9uZGVuIik7DQoJJHJvdz1teXNxbF9mZXRjaF9hc3NvYygkcXVlcnkpOw0KfQ0KDQpteXNxbF9jbG9zZ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pZCddLiI8L2xpbms+XG4iKTsNCgkJZWNobygiICAgIDxkZXNjcmlwdGlvbj4iLiRyb3dbJ2Rlc2NyaXB0aW9uJ10uIjwvZGVzY3JpcHRpb24+XG4iKTsNCgkJZWNobygiICAgIDxwdWJEYXRlPiIuJHJvd1sncHViRGF0ZSddLiI8L3B1YkRhdGU+XG4iKTsNCgkJZWNobygiICA8L2l0ZW0+XG4iKTsNCgl9DQoJZWNobygiPC9jaGFubmVsPlxuXG48L3Jzcz4iKTsNCn0NCg0KPz4=";

$fp=fopen('edit_item.php','w+');
fputs($fp,base64_decode($edit));
fclose($fp);
$fp=fopen('delete_item.php','w+');
fputs($fp,base64_decode($delete));
fclose($fp);
$fp=fopen('manage.php','w+');
fputs($fp,base64_decode($manage));
fclose($fp);
$fp=fopen('rss.php','w+');
fputs($fp,base64_decode($rss));
fclose($fp);
$fp=fopen('add_item.php','w+');
fputs($fp,base64_decode($add));
fclose($fp);

if(!empty($_POST))
{

    mysql_connect($_POST['host'],$_POST['username'],$_POST['password']) or die(mysql_error());
    if(!mysql_select_db($_POST['database']))
    {

        mysql_query("CREATE DATABASE ".$_POST['database'].";") or die(mysql_error());
        mysql_select_db($_POST['database']) or die(mysql_error());
    }

    $config="<?php\n\n";
    $config.="\$host='".$_POST['host']."';\n";
    $config.="\$username='".$_POST['username']."';\n";
    $config.="\$password='".$_POST['password']."';\n";
    $config.="\$db='".$_POST['database']."';\n";
    $config.="\$channeltitle='".$_POST['title']."';\n";
    $config.="\$description='".$_POST['description']."';\n";
    $config.="\$builddate='".date("d-m-Y h:i:s")."';\n\n?>";
    $fp=fopen('config.php','w+');
    fputs($fp,$config);
    fclose($fp);
    require("config.php");
    mysql_connect($host,$username,$password) or die(mysql_error());
    mysql_select_db($db) or die(mysql_error());
    mysql_query("
    CREATE TABLE ITEMS (
    item_id int auto_increment primary key,
    title varchar(30),
    description text,
    fullstory mediumtext,
    pubDate datetime
    );
    "
) or die(mysql_error());
    mysql_close();    
}


?>

<form method="post" action="<?php echo($_SERVER['PHP_SELF']); ?>">
<table>
  <tr>
    <th colspan="2">MySQL</th>
  </tr>
  <tr>
    <td>Host</td>
    <td><input name="host" type="text" id="host" /></td>
  </tr>
  <tr>
    <td>Gebruikersnaam</td>
    <td><input name="username" type="text" id="username" /></td>
  </tr>
  <tr>
    <td>Wachtwoord</td>
    <td><input name="password" type="password" id="password" /></td>
  </tr>
  <tr>
    <td>Database</td>
    <td><input name="database" type="text" id="database" /></td>
  </tr>
  <tr>
    <th colspan="2">Channel</th>
  </tr>
  <tr>
    <td>Channel title </td>
    <td><input name="title" type="text" id="title" /></td>
  </tr>
  <tr>
    <td>Omschrijving</td>
    <td><input name="description" type="text" id="description" /></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><input type="submit" name="Submit" value="Bevestigen" /></td>
  </tr>
</table>
</form>

 
 

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.