Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VMS-SUEE_2.0
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Laufer
VMS-SUEE_2.0
Commits
c5512339
Commit
c5512339
authored
6 years ago
by
Eric Laufer
Browse files
Options
Downloads
Patches
Plain Diff
Beitreberdaten Save
parent
fc0f7dfe
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
adminforce/lib/class/betreiber.class.php
+42
-27
42 additions, 27 deletions
adminforce/lib/class/betreiber.class.php
install/mysql.txt
+4
-3
4 additions, 3 deletions
install/mysql.txt
with
46 additions
and
30 deletions
adminforce/lib/class/betreiber.class.php
+
42
−
27
View file @
c5512339
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
class
betreiber
{
class
betreiber
{
private
$db
;
private
$db
;
private
$error
=
0
;
private
$meldung
;
public
function
__construct
(){
public
function
__construct
(){
global
$datenbank
;
global
$datenbank
;
...
@@ -11,32 +13,32 @@ class betreiber{
...
@@ -11,32 +13,32 @@ class betreiber{
function
post
(){
function
post
(){
global
$_POST
;
global
$_POST
;
if
(
$_POST
[
'updaten_betreiberdaten'
]
==
'Updaten'
){
$this
->
updaten
();
}
if
(
$_POST
[
'updaten_betreiberdaten'
]
==
'Updaten'
){
$this
->
updaten
();
}
if
(
$_POST
[
'updaten_betreiberdaten'
]
==
'Hinzuf
ue
gen !'
){
$this
->
hinzufuegen
();}
if
(
$_POST
[
'updaten_betreiberdaten'
]
==
'Hinzuf
ü
gen !'
){
$this
->
hinzufuegen
();}
if
(
$_POST
[
'updaten_betreiberdaten'
]
==
'Loeschen !'
){
$this
->
loeschen
();}
if
(
$_POST
[
'updaten_betreiberdaten'
]
==
'Loeschen !'
){
$this
->
loeschen
();}
}
}
public
function
post_pruef
(){
public
function
post_pruef
(){
global
$_POST
,
$error
,
$meldung
;
global
$_POST
;
if
(
empty
(
$_POST
[
'name'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_NAME_FALSE
;}
if
(
empty
(
$_POST
[
'name'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_NAME_FALSE
;}
if
(
empty
(
$_POST
[
'betreiber_id'
])
OR
!
is_numeric
(
$_POST
[
'betreiber_id'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_BID_FALSE
;}
if
(
empty
(
$_POST
[
'betreiber_id'
])
OR
!
is_numeric
(
$_POST
[
'betreiber_id'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_BID_FALSE
;}
if
(
empty
(
$_POST
[
'betreiber_passwort'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_BPW_FALSE
;}
if
(
empty
(
$_POST
[
'betreiber_passwort'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_BPW_FALSE
;}
if
(
empty
(
$_POST
[
'schnittstelle'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_DATEI
;}
if
(
empty
(
$_POST
[
'schnittstelle'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_DATEI
;}
if
(
empty
(
$_POST
[
'einzahltext'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_EINZAHLTEXT
;}
if
(
empty
(
$_POST
[
'einzahltext'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_EINZAHLTEXT
;}
if
(
empty
(
$_POST
[
'auszahltext'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_AUSZAHLTEXT
;}
if
(
empty
(
$_POST
[
'auszahltext'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_AUSZAHLTEXT
;}
if
(
$_POST
[
'anfragen_tag'
]
!=
0
AND
(
empty
(
$_POST
[
'anfragen_tag'
])
OR
!
is_numeric
(
$_POST
[
'anfragen_tag'
]))
){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_ANFRAGEN_TAG
;}
if
(
$_POST
[
'anfragen_tag'
]
!=
0
AND
(
empty
(
$_POST
[
'anfragen_tag'
])
OR
!
is_numeric
(
$_POST
[
'anfragen_tag'
]))
){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_ANFRAGEN_TAG
;}
if
(
$_POST
[
'anfragen_user'
]
!=
0
AND
(
empty
(
$_POST
[
'anfragen_user'
])
OR
!
is_numeric
(
$_POST
[
'anfragen_user'
]))
){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_ANFRAGEN_USER
;}
if
(
$_POST
[
'anfragen_user'
]
!=
0
AND
(
empty
(
$_POST
[
'anfragen_user'
])
OR
!
is_numeric
(
$_POST
[
'anfragen_user'
]))
){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_ANFRAGEN_USER
;}
if
(
empty
(
$_POST
[
'waehrung_name'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_WNAME
;}
if
(
empty
(
$_POST
[
'waehrung_name'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_WNAME
;}
if
(
empty
(
$_POST
[
'punktewert'
])
OR
!
is_numeric
(
$_POST
[
'punktewert'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_PUNKTEWERT
;}
if
(
empty
(
$_POST
[
'punktewert'
])
OR
!
is_numeric
(
$_POST
[
'punktewert'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_PUNKTEWERT
;}
if
(
empty
(
$_POST
[
'wertepunkt'
])
OR
!
is_numeric
(
$_POST
[
'wertepunkt'
])){
$error
=
1
;
$meldung
.
=
POST_PRUEF_BETREIBERDATEN_WERTPUNKTE
;}
if
(
empty
(
$_POST
[
'wertepunkt'
])
OR
!
is_numeric
(
$_POST
[
'wertepunkt'
])){
$
this
->
error
=
1
;
$
this
->
meldung
.
=
POST_PRUEF_BETREIBERDATEN_WERTPUNKTE
;}
if
(
$_POST
[
'aktiv'
]
==
'on'
){
$_POST
[
'aktiv'
]
=
1
;}
else
{
$_POST
[
'aktiv'
]
=
0
;}
if
(
isset
(
$_POST
[
'aktiv'
])
||
$_POST
[
'aktiv'
]
==
'on'
){
$_POST
[
'aktiv'
]
=
1
;}
else
{
$_POST
[
'aktiv'
]
=
0
;}
if
(
$_POST
[
'aktiv_ein'
]
==
'on'
){
$_POST
[
'aktiv_ein'
]
=
1
;}
else
{
$_POST
[
'aktiv_ein'
]
=
0
;}
if
(
isset
(
$_POST
[
'aktiv_ein'
])
||
$_POST
[
'aktiv_ein'
]
==
'on'
){
$_POST
[
'aktiv_ein'
]
=
1
;}
else
{
$_POST
[
'aktiv_ein'
]
=
0
;}
if
(
$_POST
[
'aktiv_aus'
]
==
'on'
){
$_POST
[
'aktiv_aus'
]
=
1
;}
else
{
$_POST
[
'aktiv_aus'
]
=
0
;}
if
(
isset
(
$_POST
[
'aktiv_aus'
])
||
$_POST
[
'aktiv_aus'
]
==
'on'
){
$_POST
[
'aktiv_aus'
]
=
1
;}
else
{
$_POST
[
'aktiv_aus'
]
=
0
;}
}
}
public
function
post_array
(
$daten
){
public
function
post_array
(
$daten
){
foreach
(
$daten
as
$key
=>
$value
)
{
foreach
(
$daten
as
$key
=>
$value
)
{
if
(
$key
!=
'
updaten_betreiberdaten
'
AND
$key
!=
'u
pdate
n'
){
if
(
$key
!=
''
AND
$key
!=
'
r
un'
){
$array
[
$key
]
=
$this
->
db
->
escape
(
$value
);
$array
[
$key
]
=
$this
->
db
->
escape
(
$value
);
}
}
}
}
...
@@ -44,33 +46,46 @@ class betreiber{
...
@@ -44,33 +46,46 @@ class betreiber{
}
}
public
function
hinzufuegen
(){
public
function
hinzufuegen
(){
global
$_POST
,
$error
,
$meldung
;
global
$_POST
;
$this
->
post_pruef
();
$this
->
post_pruef
();
if
(
$error
==
0
){
if
(
$
this
->
error
==
0
){
$insert
=
$this
->
db
->
insert
(
PREFIX
.
SCHNITT
,
$this
->
post_array
(
$_POST
));
$insert
=
$this
->
db
->
insert
(
PREFIX
.
SCHNITT
,
$this
->
post_array
(
$_POST
));
if
(
$insert
==
true
){
if
(
$insert
==
true
){
$meldung
=
BETREIBERDATEN_SAVE_TRUE
;
$
this
->
meldung
=
BETREIBERDATEN_SAVE_TRUE
;
}
else
{
}
else
{
$error
=
1
;
$
this
->
error
=
1
;
$meldung
=
BETREIBERDATEN_SAVE_FALSE
;
$
this
->
meldung
=
BETREIBERDATEN_SAVE_FALSE
;
}
}
}
}
meldung
(
$this
->
error
,
$this
->
meldung
);
}
}
public
function
updaten
(){
public
function
updaten
(){
global
$_POST
,
$error
,
$meldung
;
global
$_POST
;
$this
->
post_pruef
();
$this
->
post_pruef
();
$update
=
$this
->
db
->
update
(
PREFIX
.
SCHNITT
,
$this
->
post_array
(
$_POST
)
,
array
(
"schnittstelle"
=>
$this
->
db
->
escape
(
$_POST
[
'schnittstelle'
])
)
,
1
);
$update
=
$this
->
db
->
update
(
PREFIX
.
SCHNITT
,
$this
->
post_array
(
$_POST
)
,
array
(
"schnittstelle"
=>
$this
->
db
->
escape
(
$_POST
[
'schnittstelle'
])
)
,
1
);
if
(
$update
==
true
){
if
(
$update
==
true
){
$meldung
=
BETREIBERDATEN_SAVE_TRUE
;
$
this
->
meldung
=
BETREIBERDATEN_SAVE_TRUE
;
}
else
{
}
else
{
$error
=
1
;
$
this
->
error
=
1
;
$meldung
=
BETREIBERDATEN_SAVE_FALSE
;
$
this
->
meldung
=
BETREIBERDATEN_SAVE_FALSE
;
}
}
meldung
(
$this
->
error
,
$this
->
meldung
);
}
}
public
function
loeschen
(){
public
function
loeschen
(){
global
$datenbank
,
$_POST
,
$error
,
$meldung
;
global
$_POST
;
$array
=
$this
->
post_pruef
();
if
(
$this
->
db
->
delete
(
PREFIX
.
SCHNITT
,
array
(
"schnittstelle"
=>
$array
[
'schnittstelle'
]),
1
)
==
true
){
$this
->
meldung
=
'Erfolgreich gelöscht'
;
}
else
{
$this
->
error
=
1
;
$this
->
meldung
=
'Fehler beim löschen'
;
}
meldung
(
$this
->
error
,
$this
->
meldung
);
}
}
function
schnitt_zeigen
(
$id
){
function
schnitt_zeigen
(
$id
){
...
...
This diff is collapsed.
Click to expand it.
install/mysql.txt
+
4
−
3
View file @
c5512339
...
@@ -451,7 +451,7 @@ INSERT INTO `vms_run_inc` (`id`, `name`, `value`, `datei`, `beschreibung`, `bere
...
@@ -451,7 +451,7 @@ INSERT INTO `vms_run_inc` (`id`, `name`, `value`, `datei`, `beschreibung`, `bere
(15, 'link_zuordnen_neu', 'Bearbeiten', 'menu/zuordnung_menu_neu.php', '', 1),
(15, 'link_zuordnen_neu', 'Bearbeiten', 'menu/zuordnung_menu_neu.php', '', 1),
(16, 'link_zuordnen_loschen', 'Löschen', 'menu/zuordnung_menu_neu_losch.php', '', 1),
(16, 'link_zuordnen_loschen', 'Löschen', 'menu/zuordnung_menu_neu_losch.php', '', 1),
(17, 'menue_neu_save_admin', 'Speichern', 'menu/menu_neu.php', '', 1),
(17, 'menue_neu_save_admin', 'Speichern', 'menu/menu_neu.php', '', 1),
(18, 'link_
bearbei
te
n
', '', 'menu/menu_bearbeiten.php', '', 1),
(18, 'link_
menu_admin_upda
te', '
Speichern
', 'menu/menu_bearbeiten.php', '', 1),
(19, 'link_menu_user_delete', 'löschen', 'menu/menu_loschen.php', '', 1),
(19, 'link_menu_user_delete', 'löschen', 'menu/menu_loschen.php', '', 1),
(20, 'admin_link_zuordnen_neu', '', 'menu/admin_zuordnung_menu_neu.php', '', 1),
(20, 'admin_link_zuordnen_neu', '', 'menu/admin_zuordnung_menu_neu.php', '', 1),
(21, 'admin_link_zuordnen_loschen', '', 'menu/admin_zuordnung_menu_neu_losch.php', '', 1),
(21, 'admin_link_zuordnen_loschen', '', 'menu/admin_zuordnung_menu_neu_losch.php', '', 1),
...
@@ -461,7 +461,7 @@ INSERT INTO `vms_run_inc` (`id`, `name`, `value`, `datei`, `beschreibung`, `bere
...
@@ -461,7 +461,7 @@ INSERT INTO `vms_run_inc` (`id`, `name`, `value`, `datei`, `beschreibung`, `bere
(28, 'chat_save', 'Chat Einstellungen Speichern', 'chat/einstellungen.php', '', 1),
(28, 'chat_save', 'Chat Einstellungen Speichern', 'chat/einstellungen.php', '', 1),
(29, 'chat_nachricht_loeschen', 'Löschen', 'chat/nachrichten_loeschen.php', '', 1),
(29, 'chat_nachricht_loeschen', 'Löschen', 'chat/nachrichten_loeschen.php', '', 1),
(30, 'seite_save', 'Speichern', 'cms/neue_seite.php', '', 1),
(30, 'seite_save', 'Speichern', 'cms/neue_seite.php', '', 1),
(31, 'updaten_betreiberdaten', '
Updaten', 'class/betreiber.class.php', '
', 1),
(31, 'updaten_betreiberdaten', '
Hinzufügen !', 'setting/schnitt_save.php', 'Schnittstelle hinzufügen
', 1),
(33, 'einzahlen', 'Einzahlen', 'konto/einzahlen.php', '', 0),
(33, 'einzahlen', 'Einzahlen', 'konto/einzahlen.php', '', 0),
(34, 'aendern', 'Jetzt ändern!', 'konto/user_daten.php', '', 0),
(34, 'aendern', 'Jetzt ändern!', 'konto/user_daten.php', '', 0),
(35, 'pw_neu', 'Speichern', 'konto/pass_neu.php', '', 0),
(35, 'pw_neu', 'Speichern', 'konto/pass_neu.php', '', 0),
...
@@ -500,7 +500,8 @@ INSERT INTO `vms_run_inc` (`id`, `name`, `value`, `datei`, `beschreibung`, `bere
...
@@ -500,7 +500,8 @@ INSERT INTO `vms_run_inc` (`id`, `name`, `value`, `datei`, `beschreibung`, `bere
(70, 'BannerDelete', 'Banner Sperren', 'werbung/BannerDelete.php', 'Deaktivieren von Bannern', 1),
(70, 'BannerDelete', 'Banner Sperren', 'werbung/BannerDelete.php', 'Deaktivieren von Bannern', 1),
(71, 'BannerFree', 'Banner freigeben', 'werbung/BannerFree.php', 'Banner wieder freischalten', 1),
(71, 'BannerFree', 'Banner freigeben', 'werbung/BannerFree.php', 'Banner wieder freischalten', 1),
(72, 'updaten_alternativwerbung', 'Speichern', 'texte/AWerbung.php', 'Speichern der Alternativen Werbung', 1),
(72, 'updaten_alternativwerbung', 'Speichern', 'texte/AWerbung.php', 'Speichern der Alternativen Werbung', 1),
(73, 'InaktiveSuchen', 'Suchen', 'inaktive.php', 'Inaktivensuche Adminbereich', 1);
(73, 'InaktiveSuchen', 'Suchen', 'inaktive.php', 'Inaktivensuche Adminbereich', 1),
(75, 'updaten_betreiberdaten', 'Updaten', 'setting/schnitt_update.php', '', 1);
CREATE TABLE `vms_schnittstelle` (
CREATE TABLE `vms_schnittstelle` (
`name` text NOT NULL,
`name` text NOT NULL,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment