Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • isaack/VMS-SUEE_2.0
  • ztk.me/VMS-z
2 results
Show changes
Commits on Source (1)
...@@ -7,8 +7,8 @@ if ($_GET['testen'] == 'true') { ...@@ -7,8 +7,8 @@ if ($_GET['testen'] == 'true') {
if ($_GET['frame'] == 'true') { if ($_GET['frame'] == 'true') {
echo 'Dies ist der Testframe'; echo 'Dies ist der Testframe';
} else { } else {
@require_once ('../lib/functions.lib.php'); require_once ( '../lib/datenbank.inc.php' );
@db_connect(); require_once ( '../lib/functions.lib.php' );
if (!isset($_GET['art'])) $_GET['art'] = ""; if (!isset($_GET['art'])) $_GET['art'] = "";
if (!isset($forced['tan'])) $forced['tan'] = ""; if (!isset($forced['tan'])) $forced['tan'] = "";
if (!isset($forced['ziel'])) $forced['ziel'] = ""; if (!isset($forced['ziel'])) $forced['ziel'] = "";
...@@ -35,7 +35,6 @@ if ($_GET['testen'] == 'true') { ...@@ -35,7 +35,6 @@ if ($_GET['testen'] == 'true') {
</frameset><noframes></noframes><noframes>Bei dir sind keine Frames aktiviert!</noframes> </frameset><noframes></noframes><noframes>Bei dir sind keine Frames aktiviert!</noframes>
</body> </body>
</html>'; </html>';
db_close();
} }
} else { } else {
echo 'Javascript Test! Bitte warte einen Moment! echo 'Javascript Test! Bitte warte einen Moment!
...@@ -44,4 +43,4 @@ if ($_GET['testen'] == 'true') { ...@@ -44,4 +43,4 @@ if ($_GET['testen'] == 'true') {
document.location = "frametest.php?url=' . $_GET['url'] . '&testen=true&tan=' . $_GET['tan'] . '"; document.location = "frametest.php?url=' . $_GET['url'] . '&testen=true&tan=' . $_GET['tan'] . '";
//--> //-->
</script>'; </script>';
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
require ( 'lib/datenbank.inc.php' ); require ( 'lib/datenbank.inc.php' );
require ( 'lib/functions.lib.php' ); require ( 'lib/functions.lib.php' );
db_connect();
if ($_GET['pw'] != $cron_pw) die('Zugriff verweigert!'); if ($_GET['pw'] != $cron_pw) die('Zugriff verweigert!');
$cron = (int)$_GET['id']; $cron = (int)$_GET['id'];
...@@ -34,4 +34,3 @@ if ( include ($result['datei']) ){ ...@@ -34,4 +34,3 @@ if ( include ($result['datei']) ){
echo 'Cron gelaufen'; echo 'Cron gelaufen';
} else echo 'Cron nicht gelaufen'; } else echo 'Cron nicht gelaufen';
db_close();
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require('../lib/datenbank.inc.php'); require('../lib/datenbank.inc.php');
require('../lib/functions.lib.php'); require('../lib/functions.lib.php');
db_connect();
if($_GET['cron_pw'] == $cron_pw){ if($_GET['cron_pw'] == $cron_pw){
set_time_limit(0); set_time_limit(0);
...@@ -27,5 +27,4 @@ if($_GET['cron_pw'] == $cron_pw){ ...@@ -27,5 +27,4 @@ if($_GET['cron_pw'] == $cron_pw){
mysqli_close($sql_open); mysqli_close($sql_open);
die(); die();
} }
db_close(); ?>
?>
\ No newline at end of file
...@@ -14,7 +14,6 @@ if (!ini_get('display_errors')) { ...@@ -14,7 +14,6 @@ if (!ini_get('display_errors')) {
} }
require ('lib/datenbank.inc.php'); require ('lib/datenbank.inc.php');
db_connect();
require ('lib/functions.lib.php'); require ('lib/functions.lib.php');
require ('lib/session.lib.php'); require ('lib/session.lib.php');
require ('lib/run.inc.php'); require ('lib/run.inc.php');
...@@ -202,6 +201,5 @@ $ts = strtotime($datetime); ...@@ -202,6 +201,5 @@ $ts = strtotime($datetime);
</body> </body>
</html> </html>
<?php <?php
db_close();
if ($gzip_rate > 0) ob_end_flush(); if ($gzip_rate > 0) ob_end_flush();
?> ?>
<?php <?php
require ( 'lib/datenbank.inc.php' );
require_once ('lib/functions.lib.php'); require_once ('lib/functions.lib.php');
//Variablen vordefinieren //Variablen vordefinieren
...@@ -10,9 +11,6 @@ if (!isset($_GET['auszahlen'])) $_GET['auszahlen'] = "false"; ...@@ -10,9 +11,6 @@ if (!isset($_GET['auszahlen'])) $_GET['auszahlen'] = "false";
$_GET['uid'] = (int)$_GET['uid']; $_GET['uid'] = (int)$_GET['uid'];
$_GET['tan'] = addslashes ($_GET['tan']); $_GET['tan'] = addslashes ($_GET['tan']);
//DB Verbindung herstellen
db_connect();
$mail = mysqli_fetch_assoc(db_query("SELECT e.start,e.aufendhalt,e.status,e.uid,v.verdienst FROM ".$db_prefix."_paidmails_empfaenger e $mail = mysqli_fetch_assoc(db_query("SELECT e.start,e.aufendhalt,e.status,e.uid,v.verdienst FROM ".$db_prefix."_paidmails_empfaenger e
LEFT JOIN ".$db_prefix."_paidmails_versendet v ON v.tan = e.tan LEFT JOIN ".$db_prefix."_paidmails_versendet v ON v.tan = e.tan
WHERE e.tan='".$_GET['tan']."' AND e.uid=".$_GET['uid']." AND e.gueltig > ".time()." LIMIT 1")); WHERE e.tan='".$_GET['tan']."' AND e.uid=".$_GET['uid']." AND e.gueltig > ".time()." LIMIT 1"));
...@@ -61,4 +59,3 @@ echo ' ...@@ -61,4 +59,3 @@ echo '
</table> </table>
</body> </body>
</html>'; </html>';
db_close();
\ No newline at end of file
<?php <?php
require ( 'lib/datenbank.inc.php' );
require_once ('lib/functions.lib.php'); require_once ('lib/functions.lib.php');
db_connect();
$_GET['uid'] = (int)$_GET['uid']; $_GET['uid'] = (int)$_GET['uid'];
$_GET['tan'] = addslashes ($_GET['tan']); $_GET['tan'] = addslashes ($_GET['tan']);
...@@ -18,5 +18,3 @@ echo ' ...@@ -18,5 +18,3 @@ echo '
<frame name="werbung" src="'.$mail['ziel'].'" scrolling="auto" frameborder="0"> <frame name="werbung" src="'.$mail['ziel'].'" scrolling="auto" frameborder="0">
</frameset> </frameset>
</html>'; </html>';
db_close();
<? <?php
require_once ( 'lib/datenbank.inc.php' );
@require_once ('lib/functions.lib.php'); @require_once ('lib/functions.lib.php');
@db_connect();
@require_once ('lib/session.lib.php'); @require_once ('lib/session.lib.php');
if (!isset($_GET['art'])) $_GET['art'] = ""; if (!isset($_GET['art'])) $_GET['art'] = "";
if (!isset($text['tan'])) $text['tan'] = ""; if (!isset($text['tan'])) $text['tan'] = "";
...@@ -21,4 +21,3 @@ $text = mysqli_fetch_array(db_query("SELECT * FROM ".$db_prefix."_gebuchte_werbu ...@@ -21,4 +21,3 @@ $text = mysqli_fetch_array(db_query("SELECT * FROM ".$db_prefix."_gebuchte_werbu
</frameset> </frameset>
</body> </body>
</html> </html>
<?db_close();?>