Example #1
0
 /**
  * Get content
  */
 public function getContent()
 {
     headline(t("settings.1"));
     $table = new Form_Table($this->getForm());
     $table->addSubmit(t("saveit"));
     echo $table->getHtml();
 }
Example #2
0
    /**
     * Get content
     */
    public function getContent()
    {
        headline(t("archive.title"));
        ?>
        <table width="100%" cellpadding="5" cellspacing="0">
        <tr>
            <td width="50%" align="right"><?php 
        echo t("archive.1");
        ?>
</td>
            <td><input type="text" name="from" value="<?php 
        echo dt("now - 1 week")->getFullDate();
        ?>
" size="10"/></td>
        </tr>
        <tr>
            <td width="50%" align="right"><?php 
        echo t("archive.2");
        ?>
</td>
            <td><input type="text" name="to" value="<?php 
        echo dt("now")->getFullDate();
        ?>
" size="10"/></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="button" class="btn" value="<?php 
        echo t("archive.3");
        ?>
" onclick="submit()"/></td>
        </tr>
        </table>
        <script type="text/javascript">
        function submit(){
            window.location.href = '<?php 
        echo l("RDR_Feeds", array("param" => "archive"));
        ?>
?from='+$("input[name='from']").val()+"&to="+$("input[name='to']").val();
        }
        </script>
        <?php 
    }
Example #3
0
    /**
     * Get content
     */
    public function getContent()
    {
        if (get("updatedatabase")) {
            RDR_DBUpdate::run();
            redirect(l("RDR_Home"), 302);
        }
        headline(t("dbupdate.1"));
        ?>
        <div class="indent">
            <?php 
        echo s(t("dbupdate.2"), true);
        ?>
<br/><br/>
            <input type="button" class="btn" value="<?php 
        echo t("dbupdate.3");
        ?>
" onclick="window.location.href = '<?php 
        echo url()->getModifiedUri(false);
        ?>
?updatedatabase=1'"/>
        </div>
        <?php 
    }
Example #4
0
function misc_comments_report()
{
    global $apx, $db, $set, $user;
    $_REQUEST['id'] = (int) $_REQUEST['id'];
    if (!$_REQUEST['id']) {
        die('missing ContentID!');
    }
    $apx->lang->drop('report', 'comments');
    $apx->tmpl->loaddesign('blank');
    headline($apx->lang->get('HEADLINE_REPORT'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
    titlebar($apx->lang->get('HEADLINE_REPORT'));
    //Absenden
    if ($_POST['send']) {
        //Kommentar auslesen
        list($commenttext) = $db->first("SELECT text FROM " . PRE . "_comments WHERE id='" . $_REQUEST['id'] . "' LIMIT 1");
        if (!$_POST['text']) {
            message('back');
        } elseif (!$commenttext) {
            message('invalid comment-ID!');
        } else {
            //eMail senden
            if ($set['comments']['reportmail']) {
                $input['URL'] = $_POST['url'];
                $input['REASON'] = $_POST['text'];
                $input['TEXT'] = $commenttext;
                sendmail($set['comments']['reportmail'], 'REPORT', $input);
            }
            message($apx->lang->get('MSG_OK'));
        }
    } else {
        $apx->tmpl->assign('POSTTO', HTTPDIR . 'misc.php?action=comments_report');
        $apx->tmpl->assign('URL', compatible_hsc($_REQUEST['url']));
        $apx->tmpl->assign('ID', $_REQUEST['id']);
        $apx->tmpl->parse('report', 'comments');
    }
}
Example #5
0
    }
}
if ($check_nowplay) {
    if ($api == 'imdb') {
        require "imdb_nowplaying.inc";
    }
}
if ($check_budget) {
    if ($api == 'imdb') {
        require "imdb_budget.inc";
    }
}
#===============================================[ Summary and HTML footer ]===
$passed = $methods - $failures;
$percent = round(100 * $passed / $methods) . "%";
if (CRON) {
    if ($failures > 0 || !empty($failed)) {
        echo "Some methods failed the automated tests:\n" . "========================================\n\n";
        foreach ($failed as $fail) {
            echo "* {$fail}\n";
        }
        echo "\nOverall results:\n\n" . "Success: {$passed}/{$methods} ({$percent})\n";
    }
} else {
    headline("Test Results:");
    raw("<UL><LI>Methods: {$methods}</LI><LI>Passed: {$passed}</LI><LI>Failures: {$failures}</LI><LI>Success: {$percent}</LI></UL>\n");
    if ($percent == "100%") {
        raw("<b>Congratulations!</b> Looks like the complete API is working perfectly.");
    }
    raw("</BODY></HTML>\n");
}
Example #6
0
     echo '<input class="Formbutton" name="deleteallfilter" type="submit" value="' . $lang['L_FM_DELETEALLFILTER'] . $databases['db_actual'] . $lang['L_FM_DELETEALLFILTER2'] . '"	onclick="if (!confirm(\'' . $lang['L_FM_ASKDELETE5'] . $databases['db_actual'] . $lang['L_FM_ASKDELETE5_2'] . '\')) return false;">';
     echo FileList() . '</form>';
     echo '<h6>' . $lang['L_FM_FILEUPLOAD'] . '</h6>';
     echo '<div align="left"><form action="' . $href . '" method="POST" enctype="multipart/form-data">';
     echo '<input type="file" name="upfile" class="Formtext" size="60">';
     echo '<input type="submit" name="upload" value="' . $lang['L_FM_FILEUPLOAD'] . '" class="Formbutton">';
     echo '<br>' . $lang['L_MAX_UPLOAD_SIZE'] . ': <strong>' . $config['upload_max_filesize'] . '</strong>';
     echo '<br>' . $lang['L_MAX_UPLOAD_SIZE_INFO'];
     echo '</form></div>';
     echo '<h6>Tools</h6><div align="left">';
     echo '<input type="Button" onclick="document.location=\'filemanagement.php?action=convert\'" class="Formbutton" value="' . $lang['L_CONVERTER'] . '">';
     echo '</div>';
     break;
 case "convert":
     // Konverter
     echo headline($lang['L_CONVERTER']);
     echo '<br><br><form action="filemanagement.php?action=convert" method="post">';
     echo '<table class="bdr"><tr><th colspan="2">' . $lang['L_CONVERT_TITLE'] . '</th></tr>';
     echo '<tr><td>' . $lang['L_CONVERT_FILE'] . '</td><td>' . FilelisteCombo($config['paths']['backup'], $selectfile) . '</td></tr>';
     echo '<tr><td>' . $lang['L_CONVERT_FILENAME'] . ':</td><td><input type="text" name="destfile" size="50" value="' . $destfile . '"></td></tr>';
     echo '<tr><td><input type="checkbox" name="compressed" value="1" ' . ($compressed == 1 ? "checked" : "") . '>&nbsp;' . $lang['L_COMPRESSED'] . '</td>';
     echo '<td><input type="submit" name="startconvert" value=" ' . $lang['L_CONVERT_START'] . ' " class="Formbutton"></td></tr>';
     echo '</table></form><br>';
     if (isset($_POST['startconvert'])) {
         //$destfile.=($compressed==1) ? ".sql.gz" : ".sql";
         echo $lang['L_CONVERTING'] . " {$selectfile} ==&gt; {$destfile}<br>";
         if ($selectfile != "" && file_exists($config['paths']['backup'] . $selectfile) && strlen($destfile) > 2) {
             Converter($selectfile, $destfile, $compressed);
         } else {
             echo $lang['L_CONVERT_WRONG_PARAMETERS'];
         }
Example #7
0
|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
require_once BASEDIR . getmodulepath('videos') . 'functions.php';
$apx->module('videos');
$apx->lang->drop('global');
headline($apx->lang->get('HEADLINE'), mklink('videos.php', 'videos.html'));
titlebar($apx->lang->get('HEADLINE'));
$_REQUEST['catid'] = (int) $_REQUEST['catid'];
$_REQUEST['id'] = (int) $_REQUEST['id'];
////////////////////////////////////////////////////////////////////////////////// DEFEKTER VIDEO
if ($_REQUEST['id'] && $_REQUEST['broken']) {
    $apx->lang->drop('broken');
    if ($_POST['broken']) {
        $res = $db->first("SELECT title FROM " . PRE . "_videos WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " ) LIMIT 1");
        titlebar($apx->lang->get('HEADLINE') . ': ' . $res['title']);
        $link = mklink('videos.php?id=' . $_REQUEST['id'], 'videos,id' . $_REQUEST['id'] . urlformat($res['title']) . '.html');
        $db->query("UPDATE " . PRE . "_videos SET broken='" . time() . "' WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " ) LIMIT 1");
        //eMail-Benachrichtigung
        if ($set['videos']['mailonbroken']) {
            $input = array('URL' => substr(HTTP, 0, -1) . $link);
            sendmail($set['videos']['mailonbroken'], 'BROKEN', $input);
Example #8
0
    echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
    phpinfo();
    echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
    exit;
}
if (isset($_POST['htaccess']) || $action == 'schutz') {
    include './inc/home/protection_create.php';
}
if ($action == 'edithtaccess') {
    include './inc/home/protection_edit.php';
}
if ($action == 'deletehtaccess') {
    include './inc/home/protection_delete.php';
}
// Output headnavi
$tpl = new MSDTemplate();
$tpl->set_filenames(array('show' => 'tpl/home/headnavi.tpl'));
$tpl->assign_vars(array('HEADER' => MSDHeader(), 'HEADLINE' => headline('Home')));
$tpl->pparse('show');
MSD_mysql_connect();
if ($action == 'status') {
    include './inc/home/home.php';
} elseif ($action == 'db') {
    include './inc/home/databases.php';
} elseif ($action == 'sys') {
    include './inc/home/system.php';
} elseif ($action == 'vars') {
    include './inc/home/mysql_variables.php';
}
echo MSDFooter();
ob_end_flush();
Example #9
0
|           (c) Copyright 2005-2009, Christian Scheb            |
|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->module('newsletter');
$apx->lang->drop('form');
headline($apx->lang->get('HEADLINE'), mklink('newsletter.php', 'newsletter.html'));
titlebar($apx->lang->get('HEADLINE'));
$_REQUEST['activate'] = (int) $_REQUEST['activate'];
////////////////////////////////////////////////////////////////////////////////////////////////////////
//Aktivierungscode anfordern
if ($_REQUEST['getcode']) {
    if (!$set['newsletter']['regcode']) {
        exit;
    }
    $apx->lang->drop('getcode');
    if ($_POST['send']) {
        list($aboId) = $db->first("SELECT id FROM " . PRE . "_newsletter_emails WHERE email LIKE '" . addslashes_like($_POST['email']) . "' LIMIT 1");
        if (!$_POST['email']) {
            message('back');
        } elseif (!$aboId) {
            message($apx->lang->get('MSG_NOEMAIL'), 'back');
Example #10
0
|           (c) Copyright 2005-2009, Christian Scheb            |
|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->module('faq');
$apx->lang->drop('faq');
headline($apx->lang->get('HEADLINE'), mklink('faq.php', 'faq.html'));
titlebar($apx->lang->get('HEADLINE'));
$_REQUEST['id'] = (int) $_REQUEST['id'];
////////////////////////////////////////////////////////////////////////////////////////////////////////
require_once BASEDIR . 'lib/class.recursivetree.php';
$tree = new RecursiveTree(PRE . '_faq', 'id');
if ($_REQUEST['id']) {
    $db->query("UPDATE " . PRE . "_faq SET hits=hits+1 WHERE id='" . $_REQUEST['id'] . "' LIMIT 1");
    $node = $tree->getNode($_REQUEST['id'], array('*'));
    if (!$node || !$user->is_team_member() && $node['starttime'] == 0) {
        filenotfound();
    }
    $node['level'] = 0;
    $subData = $tree->getTree(array('*'), $_REQUEST['id'], "starttime!='0'");
    $data = array_merge(array($node), $subData);
} else {
Example #11
0
if (!$_REQUEST['id']) {
    die('missing ID!');
}
//Benutzernamen auslesen
$profileInfo = $db->first("SELECT userid,username,pub_usegb,pub_profileforfriends FROM " . PRE . "_user WHERE userid='" . $_REQUEST['id'] . "' LIMIT 1");
list($userid, $username, $usegb, $friendonly) = $profileInfo;
$apx->tmpl->assign('USERID', $userid);
$apx->tmpl->assign('USERNAME', replace($username));
//Nur für Freunde
if ($friendonly && !$user->is_buddy_of($userid) && $user->info['userid'] != $userid && $user->info['groupid'] != 1) {
    message($apx->lang->get('MSG_FRIENDSONLY'));
    require 'lib/_end.php';
}
//Links zu den Profil-Funktionen
user_assign_profile_links($apx->tmpl, $profileInfo);
headline($apx->lang->get('HEADLINE_COLLECTION'), $apx->tmpl->parsevars['LINK_COLLECTION']);
titlebar($apx->lang->get('HEADLINE_COLLECTION'));
////////////////////////////////////////////////////////////////////////////////////////// PRODUKT-LISTE
//Verwendete Variablen auslesen
$parse = $apx->tmpl->used_vars('collection');
$where = '';
if (!in_array($_REQUEST['type'], $types)) {
    $_REQUEST['type'] = 0;
}
//Typ-Filter
if ($_REQUEST['type']) {
    $where .= " AND type='" . addslashes($_REQUEST['type']) . "' ";
}
if ($_REQUEST['genre']) {
    $where .= " AND genre='" . addslashes($_REQUEST['genre']) . "' ";
}
}
function WriteMem()
{
	document.getElementById("mlimit").value=<?php
	echo round($config['php_ram'] * 1024 * 1024 * 0.9,0);
	?>;
}
</script>
<?php
if (!isset($config['email_maxsize1'])) $config['email_maxsize1']=0;
if (!isset($config['email_maxsize2'])) $config['email_maxsize2']=1;
if (!isset($databases['multisetting'])) $databases['multisetting']="";
$databases['multi']=explode(";",$databases['multisetting']);

//Ausgabe-Teile
$aus['formstart']=headline($lang['L_CONFIG_HEADLINE'] . ': ' . $config['config_file']);
$aus['formstart'].='<form name="frm_config" method="POST" action="config_overview.php"><input type="hidden" name="sel" id="sel" value="db">' . $nl;
$aus['formstart'].='<div id="configleft">';
$aus['formstart'].='<input type="Button" id="command1" onclick="show_pardivs(\'db\');" value="' . $lang['L_DBS'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command2" onclick="show_pardivs(\'global1\');" value="' . $lang['L_GENERAL'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command3" onclick="show_pardivs(\'global2\');" value="' . $lang['L_CONFIG_INTERFACE'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command4" onclick="show_pardivs(\'global3\');" value="' . $lang['L_CONFIG_AUTODELETE'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command5" onclick="show_pardivs(\'transfer1\');" value="Email" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command6" onclick="show_pardivs(\'transfer2\');" value="FTP" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command7" onclick="show_pardivs(\'cron\');" value="Cronscript" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command0" onclick="show_pardivs(\'configs\');" value="' . $lang['L_CONFIGFILES'] . '" class="ConfigButton"><br>' . $nl;
//$aus['formstart'].='<input type="Button" id="command8" onclick="show_pardivs(\'all\');" value="' . $lang['L_ALLPARS'] . '" class="ConfigButton"><br>' . $nl;


//$aus['formstart'].='<input class="Formbutton" type="reset" name="reset" value="' . $lang['L_RESET'] . '">';
$aus['formstart'].='<br><input class="Formbutton" type="submit" name="save" value="' . $lang['L_SAVE'] . '"><br><br>' . $nl;
    /**
     * Get content
     */
    public function getContent()
    {
        if (get("feed") && is_array(get("feed"))) {
            if (post("save")) {
                $count = 0;
                $feeds = post("feed");
                $message = array();
                if (is_array($feeds)) {
                    foreach ($feeds as $key => $feed) {
                        $href = post("href[{$key}]");
                        $title = post("title[{$key}]");
                        $cat = post("cat[{$key}]");
                        $category = RDR_Category::get($cat);
                        $event = RDR_Import::addFeed($href, $category);
                        if ($event->feed) {
                            RDR_Import::importFeedEntries($event->feed);
                            if ($href != $title) {
                                $event->feed->setCustomName($category, $title);
                                $category->store();
                            }
                        }
                        $message[] = $event->getText();
                    }
                }
                headline(t("browserscript.log"));
                ?>
                <p><?php 
                echo implode("<br/>", $message);
                ?>
</p>
                <p><?php 
                echo t("browserscript.close");
                ?>
</p>
                <?php 
                return;
            }
            headline(sprintf(t("browserscript.addfeeds"), s(get("site"))));
            $feeds = get("feed");
            ?>
            <form name="d" method="post" action="">
            <p>
            <?php 
            $categories = user()->getCategories();
            foreach ($feeds as $id => $feed) {
                $exp = explode(";", $feed, 2);
                ?>
                <input type="hidden" name="href[<?php 
                echo s($id);
                ?>
]" value="<?php 
                echo $exp[0];
                ?>
"/>
                <input type="hidden" name="title[<?php 
                echo s($id);
                ?>
]" value="<?php 
                echo $exp[1];
                ?>
"/>
                <input type="checkbox" name="feed[<?php 
                echo s($id);
                ?>
]" value="<?php 
                echo $feed;
                ?>
"/>
                <select name="cat[<?php 
                echo s($id);
                ?>
]">
                    <option value="<?php 
                echo t("uncategorized");
                ?>
"><?php 
                echo t("uncategorized");
                ?>
</option>
                    <?php 
                foreach ($categories as $category) {
                    if ($category->name == t("uncategorized")) {
                        continue;
                    }
                    ?>
                        <option value="<?php 
                    echo $category->name;
                    ?>
"><?php 
                    echo s($category->name);
                    ?>
</option>
                    <?php 
                }
                ?>
                </select>
                <a href="<?php 
                echo urldecode($exp[0]);
                ?>
" target="_blank"><?php 
                echo urldecode($exp[1]);
                ?>
</a><br/>
                <?php 
            }
            ?>
<br/>
            <input type="submit" name="save" class="btn" value="<?php 
            echo t("browserscript.addfeeds.btn");
            ?>
"/>
            </p>
            </form>
            <?php 
            return;
        }
        $script = file_get_contents(CHOQ_ACTIVE_MODULE_DIRECTORY . "/view/_js/browser-script.js");
        $script = str_replace(array("\t", "\r", "\n"), "", $script);
        $script = preg_replace("~\\s{2,99}~", "", $script);
        $script = str_replace("{url}", url()->getByAlias("root", l($this)), $script);
        $script = str_replace("{nofeed}", t("browserscript.nofeed"), $script);
        $script = str_replace("{forward}", t("browserscript.forward"), $script);
        $script = "javascript:" . $script;
        headline(t("sidebar.25"));
        ?>
        <p><?php 
        echo t("browserscript.info");
        ?>
</p>
        <?php 
        headline(t("browserscript.use"));
        ?>
        <p><?php 
        echo t("browserscript.bookmark");
        ?>
<br/><br/>

        <a href='<?php 
        echo $script;
        ?>
'><?php 
        echo s($script);
        ?>
</a>
        </p>
        <?php 
    }
Example #14
0
    /**
     * Get content
     */
    public function getContent()
    {
        headline(t("sidebar.26"));
        ?>
        <div class="indent">
            <?php 
        echo s(t("update.14"), true);
        ?>

            <div class="spacer"></div>
            <?php 
        if (class_exists("ZipArchive")) {
            ?>
                <div class="update-check"><?php 
            echo t("update.19");
            ?>
</div>
            <?php 
        } else {
            ?>
                <span style="color:red"><?php 
            echo t("update.15");
            ?>
</span>
            <?php 
        }
        ?>
            <div id="result" style="padding:10px;"></div>
        </div>
        <script type="text/javascript">
        (function(){
            var req = function(action, params){
                if(!params) params = {};
                params.action = action;
                params.code = '<?php 
        echo self::getValidHash();
        ?>
';
                var url = "<?php 
        echo url()->getModifiedUri(false);
        ?>
";
                if(action == "update") url = params.updateurl;
                $.getJSON(url, params, function(data){
                    if(data.message) $("#result").append('<div class="type '+data.event+'">'+data.message+'</div>');
                    if(data.next && data.next.length){
                        req(data.next, data.params);
                    }else if(action != "disable"){
                        req("disable");
                        $("#result").append($('<div class="type '+data.event+'">').html(<?php 
        echo json_encode(nl2br(t("update.12"), true));
        ?>
));
                    }
                });
            }
            if($(".update-check").length){
                var params = {};
                params.action = "update-check";
                params.code = '<?php 
        echo self::getValidHash();
        ?>
';
                try{
                    $.getJSON("<?php 
        echo url()->getModifiedUri(false);
        ?>
", params, function(data){
                        if(data.error){
                            $(".update-check").html(data.error);
                        }else if(data.version && data.update){
                            $(".update-check").html((<?php 
        echo json_encode(t("update.18"));
        ?>
+'<br/><br/>').replace(/\%s/, data.version)).append(
                                $('<input type="button" class="btn" value="<?php 
        echo t("update.16");
        ?>
"/>').one("click", function(){
                                    if(confirm('<?php 
        echo t("update.17");
        ?>
')){
                                        this.value = '<?php 
        echo t("update.13");
        ?>
';
                                        req("start");
                                    }
                                })
                            );
                        }else if(data.version && !data.update){
                            $(".update-check").html('<?php 
        echo t("update.6");
        ?>
');
                        }
                    });
                }catch(e){
                    $(".update-check").html(e.message);
                }
            }
        })();
        </script>
        <?php 
    }
Example #15
0
    $config = $_SESSION['config'];
    $databases = $_SESSION['databases'];
    $restore = $_SESSION['restore'];
    $restore['startzeit'] = time();
    // some Server limit the number of vars that can be saved in a session
    // if this is the case and we lost the language-var we simply include the configuration again
    // this way the include is skipped on servers with unlimited vars
    if (!isset($config['language'])) {
        include './' . $config['files']['parameter'];
    }
}
include './language/' . $config['language'] . '/lang.php';
include './language/' . $config['language'] . '/lang_restore.php';
$config['files']['iconpath'] = './css/' . $config['theme'] . '/icons/';
$aus = array();
$pageheader = MSDheader() . headline($lang['L_RESTORE']);
$aus1 = $page_parameter = '';
$RestoreFertig = $eingetragen = $dauer = $filegroesse = 0;
MSD_mysql_connect($restore['dump_encoding'], true, $restore['actual_table']);
@mysql_select_db($databases['db_actual']) or die($lang['L_DB_SELECT_ERROR'] . $databases['db_actual'] . $lang['L_DB_SELECT_ERROR2']);
// open backup file
$restore['filehandle'] = $restore['compressed'] == 1 ? gzopen($config['paths']['backup'] . $restore['filename'], 'r') : fopen($config['paths']['backup'] . $restore['filename'], 'r');
if ($restore['filehandle']) {
    //nur am Anfang Logeintrag
    if ($restore['offset'] == 0 && $restore['anzahl_tabellen'] == 0) {
        // Statuszeile auslesen
        $restore['part'] = 0;
        $statusline = $restore['compressed'] == 1 ? gzgets($restore['filehandle']) : fgets($restore['filehandle']);
        $sline = ReadStatusline($statusline, true);
        $restore['anzahl_tabellen'] = $sline['tables'];
        $restore['anzahl_eintraege'] = $sline['records'];
Example #16
0
MSD_mysql_connect($dump['dump_encoding']);
if ($dump['table_offset'] == -1) {
    ExecuteCommand('b');
}
// only read tableinfos the first time and save it to session to speed up backing up process
if (!isset($_SESSION['dump'])) {
    getDBInfos();
}
$num_tables = count($dump['tables']);
if ($config['optimize_tables_beforedump'] == 1 && $dump['table_offset'] == -1) {
    $out .= sprintf($lang['L_NR_TABLES_OPTIMIZED'], $num_tables) . '<br>';
}
$dump['data'] = '';
$dump['dbindex'] = isset($_POST['dbindex']) ? $_POST['dbindex'] : $flipped[$databases['multi'][0]];
//Ausgaben-Header bauen
$aus_header[] = headline('Backup: ' . ($config['multi_dump'] == 1 ? 'Multidump (' . count($databases['multi']) . ' ' . $lang['L_DBS'] . ')' : $lang['L_DB'] . ': ' . $databases['Name'][$dump['dbindex']] . ($databases['praefix'][$dump['dbindex']] != '' ? ' (' . $lang['L_WITHPRAEFIX'] . ' <span>' . $databases['praefix'][$dump['dbindex']] . '</span>)' : '')));
if (isset($aus_error) && count($aus_error) > 0) {
    $aus_header = array_merge($aus_header, $aus_error);
}
if ($num_tables == 0) {
    //keine Tabellen gefunden
    $aus[] = '<br><br><p class="error">' . $lang['L_ERROR'] . ': ' . sprintf($lang['L_DUMP_NOTABLES'], $databases['Name'][$dump['dbindex']]) . '</p>';
    if (!$config['multi_dump'] == 1) {
        echo $pageheader;
        echo get_page_parameter($dump);
        echo implode("\n", $aus);
        echo '</body></html>';
        exit;
    }
} else {
    if ($dump['table_offset'] == -1) {
Example #17
0
<?php

if (!$set['user']['blog']) {
    die('function disabled!');
}
$apx->lang->drop('myblog');
headline($apx->lang->get('HEADLINE_MYBLOG'), mklink('user.php?action=myblog', 'user,myblog.html'));
titlebar($apx->lang->get('HEADLINE_MYBLOG'));
//ERSTELLEN
if ($_REQUEST['do'] == 'add') {
    if ($_POST['send']) {
        if (!$_POST['title'] || !$_POST['text']) {
            message('back');
        } else {
            $_POST['userid'] = $user->info['userid'];
            $_POST['time'] = time();
            $db->dinsert(PRE . '_user_blog', 'userid,title,text,time,allowcoms');
            message($apx->lang->get('MSG_ADD_OK'), mklink('user.php?action=myblog', 'user,myblog.html'));
        }
    } else {
        //Vorschau
        if ($_POST['preview']) {
            $text = $_POST['text'];
            $text = badwords($text);
            $text = replace($text, 1);
            $text = dbsmilies($text);
            $text = dbcodes($text);
            $apx->tmpl->assign('PREVIEW', $text);
        }
        $apx->tmpl->assign('TITLE', compatible_hsc($_POST['title']));
        $apx->tmpl->assign('TEXT', compatible_hsc($_POST['text']));
Example #18
0
    $lcap = "Perl-Log";
} elseif ($r == 2) {
    $lfile = $config['files']['perllogcomplete'];
    $lcap = "Perl-Complete Log";
} elseif ($r == 3) {
    $lfile = $config['paths']['log'] . "error.log";
    $lcap = "PHP Error-Log";
}
if ($config['logcompression'] == 1) {
    $lfile .= ".gz";
}
if (!file_exists($lfile) && $r == 0) {
    DeleteLog();
}
$loginfo = LogFileInfo($config['logcompression']);
echo headline($lcap);
if (!is_writable($config['paths']['log'])) {
    die('<p class="error">ERROR !<br>Logdir is not writable</p>');
}
//lesen
$errorbutton = '';
$perlbutton = '';
$perlbutton2 = '';
if (file_exists($loginfo['errorlog'])) {
    $errorbutton = '<td><input class="Formbutton" type="button" onclick="location.href=\'log.php?r=3\'" value="Error-Log"></td>';
}
if (file_exists($loginfo['perllog'])) {
    $perlbutton = '<td><input type="button" onclick="location.href=\'log.php?r=1\'" class="Formbutton" value="Perl-Log"></td>';
}
if (file_exists($loginfo['perllogcomplete'])) {
    $perlbutton2 = '<td><input class="Formbutton" type="button" onclick="location.href=\'log.php?r=2\'" value="Perl-Complete Log"></td>';
Example #19
0
                 }
             }
         }
         $a++;
         $dauer = time() - $restore['startzeit'];
     }
     $eingetragen = $a - 1;
 }
 $restore['offset'] = $restore['compressed'] ? gztell($restore['filehandle']) : ftell($restore['filehandle']);
 if ($restore['compressed']) {
     gzclose($restore['filehandle']);
 } else {
     fclose($restore['filehandle']);
 }
 $aus_header[] = PicCache($relativ_path);
 $aus_header[] = headline($lang['restore']);
 $aus_header[] = 'Browser : <img src="images/' . $BrowserIcon . '"> ';
 $restore['aufruf']++;
 if (!$restore['compressed']) {
     $prozent = $filegroesse > 0 ? $restore['offset'] * 100 / $filegroesse : 0;
 } else {
     if ($restore['anzahl_eintraege'] > 0) {
         $prozent = $restore['eintraege_ready'] * 100 / $restore['anzahl_eintraege'];
     } else {
         $prozent = 0;
     }
 }
 if ($prozent > 100) {
     $prozent = 100;
 }
 if ($aus1 != '') {
Example #20
0
headline('updating using $user->save($data)');
$data = array('id' => $fooBarId, 'login' => 'NEW', 'name' => 'Mr. foo');
$res = $user->save($data);
myPrint($res);
// query: UPDATE user (id,login,name,surname) VALUES (<sequences>,"new","foo","bar")
//
//      12
//
headline('updating using $user->update($data)');
$res = $user->update($data);
myPrint($res);
// query: UPDATE user (id,login,name,surname) VALUES (<sequences>,"new","foo","bar")
//
//      13
//
headline("remove the entry \$user->remove({$fooBarId})");
$res = $user->remove($fooBarId);
myPrint($res);
// query: DELETE FROM "uuser" WHERE "id" = $fooBarId
//
//  helper functions
//
function headline($string = '')
{
    global $headlineCnt;
    if ($string) {
        $headlineCnt++;
        print "<h1>{$headlineCnt} - {$string}</h1>";
    }
}
function myPrint($data)
Example #21
0
            if ($tabellen > "") {
                $query = "OPTIMIZE TABLE " . $tabellen;
                $res = mysql_query($query) or die(mysql_error() . "");
            }
            $_GET['dbid'] = $i;
            $dba = '<p class="green">' . $lang['db'] . ' <b>' . $databases['Name'][$i] . '</b> ' . $lang['info_optimized'] . '.</p>';
            break;
        }
        if (isset($_POST['check' . $i])) {
            $checkit = "ALL";
            $_GET['dbid'] = $i;
        }
    }
}
//Hier beginnt die Ausgabe
echo headline('Home');
echo '<div id="topnavi">';
echo '<input type="Button" class="Formbutton" onclick="location.href=\'main.php?action=status\'" value="' . $lang['Statusinformationen'] . '">';
echo '<input type="Button" class="Formbutton" onclick="location.href=\'main.php?action=db\'" value="' . $lang['dbs'] . '">';
echo '<input type="Button" class="Formbutton" onclick="location.href=\'main.php?action=vars\'" value="' . $lang['mysqlvars'] . '">';
echo '<input type="Button" class="Formbutton" onclick="location.href=\'main.php?action=sys\'" value="' . $lang['mysqlsys'] . '">';
echo '</div>';
if ($action == "status") {
    //Infos über Backups
    $Sum_Files = $Sum_Size = 0;
    $Last_BU = array();
    $sm = $config['safe_mode'] == 1 ? "  (Safemode)" : "";
    $dh = opendir($config['paths']['backup']);
    while (false !== ($filename = readdir($dh))) {
        if ($filename != "." && $filename != ".." && !is_dir($config['paths']['backup'] . $filename)) {
            $files[] = $filename;
Example #22
0
    /**
     * Get content
     */
    public function getContent()
    {
        headline(t("organize.3"));
        $categories = user()->getCategories();
        $i = 1;
        foreach ($categories as $category) {
            $feeds = $category->feeds;
            ?>
            <div class="category">
                <div class="inner">
                    <div class="title" data-category="<?php 
            echo $category->getId();
            ?>
" data-feed="0">
                        <span class="delete">X</span> <input class="update" type="text" value="<?php 
            echo s($category->name);
            ?>
" style="width:95%; font-weight: bold;"/>
                    </div>
                    <div class="message"></div>
                    <?php 
            if ($feeds) {
                foreach ($feeds as $feed) {
                    ?>
                            <div class="feed" data-category="<?php 
                    echo $category->getId();
                    ?>
" data-feed="<?php 
                    echo $feed->getId();
                    ?>
">
                                <span class="delete">X</span> <span class="move">M</span> <input class="update" type="text" value="<?php 
                    echo s($feed->getCustomName($category));
                    ?>
" style="width:95%"/>
                            </div>
                            <div class="message"></div>
                            <?php 
                }
            }
            ?>
                </div>
            </div>
            <?php 
            if (is_int($i++ / 2)) {
                echo '<div class="clear"></div>';
                $i = 1;
            }
        }
        ?>

        <div class="category new">
            <div class="inner">
                <div class="title">
                    <form name="newc" method="post" action="">
                    <input type="text" name="val" value="<?php 
        echo t("organize.1");
        ?>
" style="width:95%; font-weight: bold;" onfocus="this.value = ''"/><br/>
                    <input type="submit" name="new" value="<?php 
        echo t("organize.2");
        ?>
" class="btn"/>
                    </form>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="spacer"></div>

        <?php 
        headline(t("organize.16"));
        ?>
        <div class="indent">
            <?php 
        $feeds = user()->getFeeds();
        foreach ($feeds as $feed) {
            ?>
                <div class="feed">
                    <div class="inline-btn delete-feed" data-id="<?php 
            echo $feed->getId();
            ?>
"><?php 
            echo t("organize.15");
            ?>
</div>
                    <a href="<?php 
            echo $feed->getLink();
            ?>
"><?php 
            echo s($feed->name);
            ?>
</a><br/>
                    <div class="small" style="margin-top:3px;"><a href="<?php 
            echo s($feed->url);
            ?>
"><?php 
            echo s($feed->url);
            ?>
</a></div>
                </div>
                <?php 
        }
        ?>
        </div>
        <div class="spacer"></div>

        <?php 
        headline(t("organize.4"));
        ?>
        <div class="indent">
            <?php 
        echo s(t("organize.5"), true);
        ?>
<br/><br/>
            <form name="upl" method="post" enctype="multipart/form-data" onsubmit="Global.message('<?php 
        echo t("organize.6");
        ?>
', true)">
                <input type="file" name="file"/> <input type="submit" value="<?php 
        echo t("upload");
        ?>
" class="btn"/>
            </form>
        </div>
        <div class="spacer"></div>

        <?php 
        headline(t("organize.7"));
        ?>
        <div class="indent">
            <?php 
        echo t("organize.8");
        ?>
.<br/><br/>
            <input type="button" class="btn" onclick="window.location.href = '<?php 
        echo url()->getModifiedUri(false);
        ?>
?opml=1'" value="<?php 
        echo t("organize.9");
        ?>
"/>
            <input type="button" class="btn" onclick="window.location.href = '<?php 
        echo url()->getModifiedUri(false);
        ?>
?file=1'" value="<?php 
        echo t("organize.10");
        ?>
"/>
        </div>
        <div class="spacer"></div>

        <script type="text/javascript">
        function del(feed, category){
            $.post(window.location.href, {"action" : "delete", "feed" : feed, "category" : category}, function(){
                window.location.href = window.location.href;
            });
        }
        function move(feed, categoryOld, categoryNew){
            $.post(window.location.href, {"action" : "move", "feed" : feed, "categoryOld" : categoryOld, "categoryNew"  : categoryNew}, function(){
                window.location.href = window.location.href;
            });
        }
        (function(){
            $("#content div.delete-feed.inline-btn").on("click", function(){
                if(confirm(<?php 
        echo json_encode(t("organize.13"));
        ?>
)){
                    API.req("delete-feed-user", {"fid" : $(this).attr("data-id")});
                    $(this).closest(".feed").remove();
                }
            });
            $("#content span.move").on("click", function(){
                var p = $(this).parent();
                var feed = parseInt(p.attr("data-feed"));
                var category = parseInt(p.attr("data-category"));
                var message = $("<div><?php 
        echo t("organize.11");
        ?>
<br/><br/><select></select></div>");
                var sel = message.find("select");
                $(".category").not(".new").each(function(){
                    sel.append('<option value="'+$(this).find(".title").attr("data-category")+'">'+$(this).find(".title input").val()+'</option>')
                });
                sel.val($(this).closest(".category").find(".title").attr("data-category"));
                p.next().html(message).append('<input type="button" class="btn" onclick="move('+feed+', '+category+', $(this).parent().find(\'select\').val());" value="<?php 
        echo t("organize.12");
        ?>
"/></div>');
                p.next().show();
            });
            $("#content span.delete").on("click", function(){
                var p = $(this).parent();
                var feed = parseInt(p.attr("data-feed"));
                var category = parseInt(p.attr("data-category"));
                var message = "<?php 
        echo t("organize.13");
        ?>
";
                if(!feed) message = "<?php 
        echo t("organize.14");
        ?>
";
                p.next().html($('<div>'+message+'</div><br/><input type="button" class="btn" onclick="del('+feed+', '+category+');" value="<?php 
        echo t("organize.15");
        ?>
"/></div>')).show();
            });
            $("#content .category input.update").on("blur", function(){
                var feed = $(this).parent().attr("data-feed");
                var category = $(this).parent().attr("data-category");
                $.post(window.location.href, {"action" : "edit", "feed" : feed, "category" : category, "val" : this.value});
            });
        })();
        </script>
        <?php 
    }
Example #23
0
<?php

/**
 * phpwcms content management system
 *
 * @author Oliver Georgi <*****@*****.**>
 * @copyright Copyright (c) 2002-2015, Oliver Georgi
 * @license http://opensource.org/licenses/GPL-2.0 GNU GPL-2
 * @link http://www.phpwcms.de
 *
 **/
// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
    die("You Cannot Access This Script Directly, Have a Nice Day.");
}
// ----------------------------------------------------------------
//link & email
$CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
list($link["link"], $link["target"]) = explode(" ", $crow["acontent_redirect"]);
$CNT_TMP .= $template_default["article"]["link_email_before"];
$CNT_TMP .= "<a href=\"" . $link["link"] . "\"" . ($link["target"] ? " target=\"" . $link["target"] . "\"" : "") . ">";
$CNT_TMP .= html_specialchars(trim(str_replace("mailto:", "", $link["link"]))) . "</a>";
$CNT_TMP .= $template_default["article"]["link_email_after"];
     echo br() . '<input class="Formbutton" name="deleteallfilter" type="submit" value="' . $lang['fm_deleteallfilter'] . $databases['db_actual'] . $lang['fm_deleteallfilter2'] . '"	onclick="if (!confirm(\'' . $lang['fm_askdelete5'] . $databases['db_actual'] . $lang['fm_askdelete5_2'] . '\')) return false;">' . br();
     echo FileList() . '</form>' . br();
     echo '<h6>' . $lang['fm_fileupload'] . '</h6>' . br();
     echo '<div align="left"><form action="' . $href . '" method="POST" enctype="multipart/form-data">' . br();
     echo '<input type="file" name="upfile" class="Formbutton" size="60">' . br();
     echo '<input type="submit" name="upload" value="' . $lang['fm_fileupload'] . '" class="Formbutton">' . br();
     echo '<br>' . $lang['max_upload_size'] . ': <strong>' . $config['upload_max_filesize'] . '</strong>';
     echo '<br>' . $lang['max_upload_size_info'];
     echo '</form></div>' . br();
     echo '<h6>Tools</h6><div align="left">';
     echo '<input type="Button" onclick="document.location=\'filemanagement.php?action=convert\'" class="Formbutton" value="' . $lang['converter'] . '">';
     echo '</div>';
     break;
 case "convert":
     // Konverter
     echo headline($lang['converter']);
     echo '<br><br><form action="filemanagement.php?action=convert" method="post">';
     echo '<div align="center"><table class="border"><tr><th colspan="2">' . $lang['convert_title'] . '</th></tr>';
     echo '<tr><td>' . $lang['convert_file'] . '</td><td>' . FilelisteCombo($config['paths']['backup'], $selectfile) . '</td></tr>';
     echo '<tr><td>' . $lang['convert_filename'] . ':</td><td><input type="text" name="destfile" size="50" value="' . $destfile . '"></td></tr>';
     echo '<tr><td><input type="checkbox" name="compressed" value="1" ' . ($compressed == 1 ? "checked" : "") . '>' . $lang['compressed'] . '</td>';
     echo '<td><input type="submit" name="startconvert" value=" ' . $lang['convert_start'] . ' " class="Formbutton"></td></tr>';
     echo '</table></div></form><br>';
     if (isset($_POST['startconvert'])) {
         $destfile .= $compressed == 1 ? ".sql.gz" : ".sql";
         echo $lang['converting'] . " {$selectfile} ==&gt; {$destfile}<br>";
         if ($selectfile != "" && file_exists($config['paths']['backup'] . $selectfile) && strlen($destfile) > 2) {
             Converter($selectfile, $destfile, $compressed);
         } else {
             echo $lang['convert_wrong_parameters'];
         }
Example #25
0
|           (c) Copyright 2005-2009, Christian Scheb            |
|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->module('links');
$apx->lang->drop('send');
headline($apx->lang->get('HEADLINE'), mklink('sendlink.php', 'sendlink.html'));
titlebar($apx->lang->get('HEADLINE'));
////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($_POST['send']) {
    list($spam) = $db->first("SELECT addtime FROM " . PRE . "_links WHERE send_ip='" . get_remoteaddr() . "' ORDER BY addtime DESC");
    //Captcha prüfen
    if ($set['links']['captcha'] && !$user->info['userid']) {
        require BASEDIR . 'lib/class.captcha.php';
        $captcha = new captcha();
        $captchafailed = $captcha->check();
    }
    if ($captchafailed) {
        message($apx->lang->get('MSG_WRONGCODE'), 'javascript:history.back()');
    } elseif (!$_POST['send_username'] && !$user->info['userid'] || !$_POST['catid'] || !$_POST['title'] || !$_POST['url'] || !$_POST['text']) {
        message('back');
    } elseif ($spam + $set['links']['spamprot'] * 60 > time()) {
Example #26
0
            $media["result"] .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
            $media["result"] .= "<div align=\"center\">" . $media["code"] . "</div>";
            break;
        case 2:
            $media["result"] .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
            $media["result"] .= "<div align=\"right\">" . $media["code"] . "</div>";
            break;
        case 3:
            $media["result"] .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"left\">\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= $crow["acontent_title"] ? "<tr><td class=\"tableHead\">" . html_specialchars($crow["acontent_title"]) . "</td><td>" . spacer(5, 1) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= $crow["acontent_subtitle"] ? "<tr><td class=\"tableSubHead\">" . html_specialchars($crow["acontent_subtitle"]) . "</td><td>" . spacer(5, 1) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= "<tr><td>" . $media["code"] . "</td><td>" . spacer(5, 1) . "</td></tr>\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= "</table>\n";
            break;
        case 4:
            $media["result"] .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\">\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= $crow["acontent_title"] ? "<tr><td>" . spacer(5, 1) . "</td><td class=\"tableHead\">" . html_specialchars($crow["acontent_title"]) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= $crow["acontent_subtitle"] ? "<tr><td>" . spacer(5, 1) . "</td><td class=\"tableSubHead\">" . html_specialchars($crow["acontent_subtitle"]) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= "<tr><td>" . spacer(5, 1) . "</td><td>" . $media["code"] . "</td></tr>\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= "</table>\n";
            break;
    }
} else {
    $media["result"] = headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
}
$CNT_TMP .= LF . trim(render_cnt_template($crow["acontent_template"], 'MULTIMEDIA', trim($media["result"]))) . LF;
unset($media);
Example #27
0
<?php

if (file_exists("./../../work/config/parameter.php")) {
    @(include "./../../work/config/parameter.php");
}
@(include "./../../inc/functions_global.php");
@(include "./../../language/" . $config["language"] . "/lang.php");
@(include "./../../language/" . $config["language"] . "/lang_help.php");
echo MSDHeader(2);
echo headline($lang['credits']);
?>
<div id="content">
<h3>Riguarda questo progetto</h3>
L'idea di questo progetto viene da Daniel Schlichtholz.<p>
Nel 2004 ha aperto il seguente forum <a href="http://www.mysqldumper.de/board" target="_blank">MySQLDumper</a>
<br>
in seguito ha incontrato dei programmatori liberi professionisti che elaboravano nuovi script e completavano quelli di Daniel.<br>
In brevissimo tempo nasceva da un piccolo backupscript un considerevolo progetto.<br>

<p>Se hai proposte di miglioramento rivolgiti al MySQLDumper-Forum: <a href="http://www.mysqldumper.de/board" target="_blank">http://www.mysqldumper.de/board</a>
<p>Ti auguriamo buon divertimento con questo progetto.<br><p><h4>Il Team di MySQLDumper</h4>
<table><tr><td><img src="../../images/logo.gif" alt="MySQLDumper"
width="160" height="42" border="1"></td><td valign="top">
Daniel Schlichtholz - Steffen Kamper<br>
Perlscript con supporto da Detlev Richter<br>
</td></tr></table>
<br>

<h3> MySQLDumper Aiuto</h3>

<h4>Scarica</h4>
Example #28
0
    $type = 2;
}
// we are on a Win-System; pre-select encryption type
if (isset($_POST['type'])) {
    $type = intval($_POST['type']);
}
$username = isset($_POST['username']) ? $_POST['username'] : '';
$userpass1 = isset($_POST['userpass1']) ? $_POST['userpass1'] : '';
$userpass2 = isset($_POST['userpass2']) ? $_POST['userpass2'] : '';
header('Pragma: no-cache');
header("Cache-Control: no-cache, must-revalidate");
header("Expires: -1");
header('Content-Type: text/html; charset=UTF-8');
$tpl = new MSDTemplate();
$tpl->set_filenames(array('show' => './tpl/home/protection_create.tpl'));
$tpl->assign_vars(array('THEME' => $config['theme'], 'HEADLINE' => headline($lang['L_HTACC_CREATE'])));
if (isset($_POST['username'])) {
    // Form submitted
    if ($username == '') {
        $error[] = $lang['L_HTACC_NO_USERNAME'];
    }
    if ($userpass1 != $userpass2 || $userpass1 == '') {
        $error[] = $lang['L_PASSWORDS_UNEQUAL'];
    }
    if (sizeof($error) == 0) {
        $realm = 'MySQLDumper';
        $htaccess = "AuthName \"" . $realm . "\"\nAuthType Basic\nAuthUserFile \"" . $config['paths']['root'] . ".htpasswd\"\nrequire valid-user\n";
        switch ($type) {
            // Crypt
            case 0:
                $userpass = crypt($userpass1);
Example #29
0
|           (c) Copyright 2005-2009, Christian Scheb            |
|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->module('user');
$apx->lang->drop('team');
headline($apx->lang->get('HEADLINE'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE'));
//Daten erzeugen
function createTeamData($res, $parse)
{
    global $apx, $db, $set, $user;
    $userdata = array();
    if ($res['birthday']) {
        $bd = explode('-', $res['birthday']);
        $birthday = intval($bd[0]) . '. ' . getcalmonth($bd[1]) . iif($bd[2], ' ' . $bd[2]);
        if ($bd[2]) {
            $age = date('Y') - $bd[2];
            if (intval(sprintf('%02d%02d', $bd[1], $bd[0])) > intval(date('md'))) {
                $age -= 1;
            }
        }
Example #30
0
 //Klicks+1
 $db->query("UPDATE " . PRE . "_content SET hits=hits+1 WHERE id='" . $_REQUEST['id'] . "' LIMIT 1");
 $res = $db->first("SELECT a.*,b.username,b.email,b.pub_hidemail,c.username AS lc_username,c.email AS lc_email,c.pub_hidemail AS lc_pub_hidemail FROM " . PRE . "_content AS a LEFT JOIN " . PRE . "_user AS b USING(userid) LEFT JOIN " . PRE . "_user AS c ON a.lastchange_userid=c.userid WHERE ( a.id='" . $_REQUEST['id'] . "' " . iif(!$user->is_team_member(), " AND a.active='1' " . section_filter() . " ") . " ) LIMIT 1");
 if (!$res['id']) {
     filenotfound();
 }
 //Titel
 $headline = array();
 $tt = explode('->', $res['title']);
 $number = count($tt);
 foreach ($tt as $one) {
     ++$hi;
     if ($number == $hi) {
         headline(trim($one), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
     } else {
         headline(trim($one));
     }
     $last = $one;
     $headline[] = array('TEXT' => trim($one));
 }
 titlebar(strip_tags($last));
 //Alte Platzhalter für Abwärtskompatiblität
 $apx->tmpl->assign('USERID', $res['userid']);
 $apx->tmpl->assign('USERNAME', replace($res['username']));
 $apx->tmpl->assign('EMAIL', replace(iif(!$res['pub_hidemail'], $res['email'])));
 $apx->tmpl->assign('EMAIL_ENCRYPTED', replace(iif(!$res['pub_hidemail'], cryptMail($res['email']))));
 //Autor
 $apx->tmpl->assign('AUTHOR_USERID', $res['userid']);
 $apx->tmpl->assign('AUTHOR_USERNAME', replace($res['username']));
 $apx->tmpl->assign('AUTHOR_EMAIL', replace(iif(!$res['pub_hidemail'], $res['email'])));
 $apx->tmpl->assign('AUTHOR_EMAIL_ENCRYPTED', replace(iif(!$res['pub_hidemail'], cryptMail($res['email']))));