Exemplo n.º 1
0
<?php

module_head("{$l_other_news}");
echo "<ul>";
for ($y = date('Y'); $y >= 1999; $y--) {
    if ($filename != "main{$y}.html") {
        printf("<li class=\"othershoriz\"><a href=\"index.html?filename=main{$y}.html\">KDevelop - {$l_pt_main_year}</a></li>\n", $y);
    } else {
        printf("<li class=\"othershoriz\">KDevelop - {$l_pt_main_year}</li>\n", $y);
    }
}
echo "</ul>";
module_tail();
Exemplo n.º 2
0
<?php

module_head("{$l_other_versions}");
echo "<ul>";
if ($filename != "HEAD/authors.html") {
    echo "<li><a href=\"index.html?filename=HEAD/authors.html\">KDevelop - {$l_pt_HEAD_authors}</a></li>\n";
} else {
    echo "<li>KDevelop - {$l_pt_HEAD_authors}</li>\n";
}
if ($filename != "4.0/authors.html") {
    printf("<li><a href=\"index.html?filename=4.0/authors.html\">KDevelop - {$l_pt_x_x_authors}</a></li>\n", "4.0");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_authors}</li>\n", "4.0");
}
if ($filename != "3.5/authors.html") {
    printf("<li><a href=\"index.html?filename=3.5/authors.html\">KDevelop - {$l_pt_x_x_authors}</a></li>\n", "3.5");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_authors}</li>\n", "3.5");
}
if ($filename != "3.4/authors.html") {
    printf("<li><a href=\"index.html?filename=3.4/authors.html\">KDevelop - {$l_pt_x_x_authors}</a></li>\n", "3.4");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_authors}</li>\n", "3.4");
}
if ($filename != "3.3/authors.html") {
    printf("<li><a href=\"index.html?filename=3.3/authors.html\">KDevelop - {$l_pt_x_x_authors}</a></li>\n", "3.3");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_authors}</li>\n", "3.3");
}
if ($filename != "3.2/authors.html") {
    printf("<li><a href=\"index.html?filename=3.2/authors.html\">KDevelop - {$l_pt_x_x_authors}</a></li>\n", "3.2");
Exemplo n.º 3
0
<?php

module_head($l_online_un_subscribe);
// This is the php4 way to do things
if (isset($_POST['action']) and ($_POST['action'] == $l_subscribe or $_POST['action'] == $l_unsubscribe)) {
    $action = $_POST['action'];
}
// for security reasons, the e-mail length is truncated
if (isset($_POST['email']) and strlen($_POST['email']) < 256) {
    $email = addslashes(trim($_POST['email']));
}
if (isset($_POST['maillist'])) {
    if ($_POST['maillist'] == '*****@*****.**' or $_POST['maillist'] == '*****@*****.**' or $_POST['maillist'] == '*****@*****.**') {
        $maillist = $_POST['maillist'];
    }
}
if (isset($action) && isset($email) && isset($maillist) && $email != $l_default_email) {
    if ($action == $l_subscribe) {
        mail($maillist, "subscribe {$email}", "subscribe {$email}", "From: {$email}\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit");
    } else {
        mail($maillist, "", "unsubscribe {$email}", "From: {$email}\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit");
    }
    echo "<center>{$action} {$email} {$maillist} - {$l_done}</center>";
} else {
    echo '<form method="POST" action="index.html?filename=mailinglist.html">
  <table>
    <tr>
      <td style="border: 0pt none;"><b>';
    echo "{$l_Mailinglists}</b></td>\n      <td style=\"border: 0pt none;\"><select name=\"maillist\">\n        <option value=\"kdevelop-request@kdevelop.org\" SELECTED>{$l_kdevelop_users}\n        <option value=\"kdevelop-devel-request@kdevelop.org\">{$l_kdevelop_devel}\n        <option value=\"kdevelop-bugs-request@kdevelop.org\">{$l_kdevelop_bugs}\n      </select></td>\n      <td style=\"border: 0pt none;\">Email:&nbsp;&nbsp;<input type=text name=\"email\" size=\"40\" value=\"{$l_default_email}\"></td>\n    </tr>";
    echo "    <tr>\n      <td style=\"border: 0pt none;\"></td>\n      <td style=\"border: 0pt none;\"><input type=\"submit\" name=\"action\" value=\"{$l_subscribe}\"></td>\n      <td style=\"border: 0pt none;\"><input type=\"submit\" name=\"action\" value=\"{$l_unsubscribe}\"></td>\n    </tr>\n  </table>\n</form>\n";
}
Exemplo n.º 4
0
<?php

module_head('Download', 'quickbox cat-download');
global $lsv;
global $K_VERSION;
echo "<p>Latest release:</p>\n";
echo '<a href="http://download.kde.org/download.php?url=stable/kdevelop/', $K_VERSION[$lsv]['latest_version'], '/" class="download">KDevelop ', $K_VERSION[$lsv]['latest_version'], '<br><span class="date">', strftime($l_dateformat, $K_VERSION[$lsv]['release_date']), "</span></a>\n";
echo '<a href="http://download.kde.org/download.php?url=stable/kdevelop/', $K_VERSION['3.5']['latest_version'], '/" class="download download-legacy">KDevelop ', $K_VERSION['3.5']['latest_version'], '<br><span class="date">', strftime($l_dateformat, $K_VERSION['3.5']['release_date']), " (legacy release)</span></a>\n";
echo "<p>More:</p>\n";
echo "<ul>\n";
//echo "<li><a href=\"https://projects.kde.org/projects/extragear/kdevelop/\">Other releases, Plugins</a></li>\n";
echo "<li><a href=\"https://projects.kde.org/projects/extragear/kdevelop/\">Latest sources from Git</a></li>\n";
echo "</ul>\n";
module_tail();
Exemplo n.º 5
0
<div id="latestchangelogs">
<?php 
//if ($navmenu=='developer'){
global $l_more_elipsis;
module_head("HEAD {$l_change_log}" . ' <a href="HEAD/ChangeLog.rss"><img src="graphics/rss.gif" width="16" height="16" alt="RSS feed"></a>');
if ($lang != "en") {
    echo "    <span lang=\"en\" dir=\"ltr\">\n";
}
include "dynamic/changelog_3_2.html";
if ($lang != "en") {
    echo "    </span>\n";
}
echo '<p class="more"><a href="index.html?filename=HEAD/ChangeLog.html">' . $l_more_elipsis . '</a></p>
';
module_tail();
module_head("KDevPlatform {$l_change_log}" . ' <a href="HEAD/ChangeLog_kdevplatform.rss"><img src="graphics/rss.gif" width="16" height="16" alt="RSS feed"></a>');
if ($lang != "en") {
    echo "    <span lang=\"en\" dir=\"ltr\">\n";
}
include "dynamic/changelog_3_2_kdevplatform.html";
if ($lang != "en") {
    echo "    </span>\n";
}
echo '<p class="more"><a href="index.html?filename=HEAD/ChangeLog_kdevplatform.html">' . $l_more_elipsis . '</a></p>
';
module_tail();
/*}
module_head("3.5 $l_change_log".' <a href="3.5/ChangeLog.rss"><img src="graphics/rss.gif" width="16" height="16" alt="RSS feed"></a>');
if ($lang != "en") echo "    <span lang=\"en\" dir=\"ltr\">\n";
include("dynamic/changelog_3_5.html");
if ($lang != "en") echo "    </span>\n";
Exemplo n.º 6
0
<?php

if ($filename == 'in_the_press.html') {
    module_head('KDevelop press releases');
} else {
    module_head($l_other_versions);
}
echo "<ul>";
if ($filename != "3.5/announce-kdevelop-3.5.html") {
    printf("<li><a href=\"index.html?filename=3.5/announce-kdevelop-3.5.html\">KDevelop - {$l_pt_x_x_announce_kdevelop}</a></li>\n", "3.5");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_announce_kdevelop}</li>\n", "3.5");
}
if ($filename != "3.4/announce-kdevelop-3.4.html") {
    printf("<li><a href=\"index.html?filename=3.4/announce-kdevelop-3.4.html\">KDevelop - {$l_pt_x_x_announce_kdevelop}</a></li>\n", "3.4");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_announce_kdevelop}</li>\n", "3.4");
}
if ($filename != "3.3/announce-kdevelop-3.3.html") {
    printf("<li><a href=\"index.html?filename=3.3/announce-kdevelop-3.3.html\">KDevelop - {$l_pt_x_x_announce_kdevelop}</a></li>\n", "3.3");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_announce_kdevelop}</li>\n", "3.3");
}
if ($filename != "3.2/announce-kdevelop-3.2.html") {
    printf("<li><a href=\"index.html?filename=3.2/announce-kdevelop-3.2.html\">KDevelop - {$l_pt_x_x_announce_kdevelop}</a></li>\n", "3.2");
} else {
    printf("<li>KDevelop - {$l_pt_x_x_announce_kdevelop}</li>\n", "3.2");
}
if ($filename != "3.1/announce-kdevelop-3.1.html") {
    printf("<li><a href=\"index.html?filename=3.1/announce-kdevelop-3.1.html\">KDevelop - {$l_pt_x_x_announce_kdevelop}</a></li>\n", "3.1");
} else {
Exemplo n.º 7
0
<?php

module_head('Support', 'quickbox cat-support');
echo "<p>Learn to user KDevelop:</p>\n";
echo "<ul>\n";
echo "<li><a href=\"mediawiki/index.php/KDevelop_4/Documentation\">{$l_user_manual}</a></li>\n";
echo "<li><a href=\"mediawiki/index.php/KDevelop_4/Documentation\">{$l_faq}</a>, <a href=\"index.html?filename=tutorials.html\">{$l_tutorials}</a>, <a href=\"mediawiki/index.php/KDevelop_4/Tips_and_tricks\">Tips &amp; Tricks</a></li>\n";
echo "</ul>\n";
echo "<p>Ask Questions:</p>\n";
echo "<ul>\n";
echo "<li><a href=\"phorum5/\" title=\"KDevelop Forum\">{$l_forum}</a>, <a href=\"chat/\">{$l_on_line_chat}</a>, <a href=\"index.html?filename=mailinglist.html\">{$l_mailinglist}</a></li>\n";
echo "</ul>\n";
echo "<p>Report Bugs:</p>\n";
echo "<ul>\n";
echo "<li><a href=\"index.html?filename={$lsv}/kdevelop.html#Bugs\">{$l_bugs_wishes}</a></li>\n";
echo "</ul>\n";
module_tail();
Exemplo n.º 8
0
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop_debug_stopped.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop_createclass_override.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop_cmake_docs_navigationtooltip.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop_builderrors.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php8.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php7.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php6.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php5.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php4.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php3.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php2.png';
$i = $i + 1;
$pic_file[$i] = '4.0/Kdevelop-php1.png';
$i = $i + 1;
$j = rand(0, $i - 1);
$image_link = 'graphics/screenshots/' . $pic_file[$j];
$image_file = 'graphics/screenshots/' . str_replace('/', '/thumbs/', $pic_file[$j]);
module_head($l_picture_corner);
echo "  <div id=\"picturecorner\">\n  <a href=\"{$image_link}\">\n    <img src=\"{$image_file}\" alt=\"preview\" width=\"205\" height=\"148\">\n  </a>\n  <!-- <p> {$l_picture_corner_description} </p> -->\n  </div>\n";
module_tail();
Exemplo n.º 9
0
<?php

module_head('How to Participate', 'quickbox cat-participate');
echo "<p>Programming</p>\n";
echo "<ul>\n";
echo "<li><a href=\"index.html?filename=join-the-team.html\">{$l_join_us}</a></li>\n";
echo "</ul>\n";
echo "<p>Translating</p>\n";
echo "<ul>\n";
echo "<li><a href=\"http://l10n.kde.org/\">translate KDevelop &amp; plugins</a></li>\n";
echo "<li><a href=\"index.html?filename=website_translation_status.html\">{$l_website_translation}</a></li>\n";
echo "</ul>\n";
/*
echo "<p>More</p>\n";
echo "<ul>\n";
echo "<li><a href=\"#\">improve the documentation</a></li>\n";
echo "<li><a href=\"#\"><em>other tasks / ideas</em></a></li>\n";
echo "</ul>\n";
*/
module_tail();
Exemplo n.º 10
0
<?php

module_head($l_top_lang_visited_pages);
$result = mysql_query("SELECT * FROM `stats_pages` WHERE `lang` = '{$lang}' ORDER BY `avr_daily_visits` DESC LIMIT 0, 30");
echo "<table width=\"80%\" cellspacing=\"2\" cellpadding=\"2\" border=\"1\">\n  <tr><th>{$l_page}</th><th>{$l_last_update}</th><th>{$l_last_visited}</th><th>{$l_average_daily_visits}</th></tr>\n";
while ($row = mysql_fetch_object($result)) {
    $av_visits = sprintf("%.02f", $row->avr_daily_visits);
    echo "  <tr><td><a href=\"index.html?filename={$row->filename}\">{$row->filename}</a></td><td>{$row->last_updated}</td><td>{$row->last_visited}</td><td>{$av_visits}</td></tr>\n";
}
echo "</table>\n";
module_tail();
module_head($l_global_website_statistics);
// Total served pages per day
$result = mysql_query("SELECT SUM(`avr_daily_visits`) AS daily_served_pages FROM `stats_pages`");
$row = mysql_fetch_object($result);
echo "<p>" . sprintf($l_served_pages, $row->daily_served_pages) . "</p>\n";
mysql_free_result($result);
// Total served pages per day excluding "main.html" files
$result = mysql_query("SELECT SUM(`avr_daily_visits`) AS daily_served_pages FROM `stats_pages` WHERE filename != 'main.html'");
$row = mysql_fetch_object($result);
$daily_served_pages_ex_main = $row->daily_served_pages;
$result = mysql_query("SELECT lang , SUM(`avr_daily_visits`) AS daily_served_pages FROM `stats_pages` WHERE filename != 'main.html' GROUP BY `lang` ORDER BY daily_served_pages DESC");
echo "<table width=\"80%\" cellspacing=\"2\" cellpadding=\"2\" border=\"1\">\n  <tr><th>{$l_language}</th><th>{$l_average_daily_visits}</th><th>{$l_percentage}</th></tr>\n";
global $languages;
while ($row = mysql_fetch_object($result)) {
    $av_visits = sprintf("%.02f", $row->daily_served_pages);
    $percentage_visits = sprintf("%02.02f", 100 * $row->daily_served_pages / $daily_served_pages_ex_main);
    echo "  <tr><td><a href=\"index.html?filename=website_translation_status.html&amp;set_lang={$row->lang}\"> {$languages[$row->lang]} ({$row->lang})</a></td><td>{$av_visits}</td><td>{$percentage_visits} %</td></tr>\n";
}
mysql_free_result($result);
echo "</table>\n";
Exemplo n.º 11
0
<?php

module_head("{$l_downloads_per_hour}");
echo "<img src=\"dynamic/new_dl_per_hour-week.png\" alt=\"{$l_downloads_per_hour}\" height=\"135\" width=\"228\">";
module_tail();
Exemplo n.º 12
0
<?php

module_head($l_user_progs);
// Number of entries to display
$nr_entries = 5;
/*
// a special MySQL query that calculates the number of rows, but only returns a small subset of them
$result = mysql_query("SELECT SQL_CALC_FOUND_ROWS link,name,author FROM user_progs ORDER BY id DESC LIMIT $nr_entries");
$row = mysql_fetch_row(mysql_query('SELECT FOUND_ROWS()'));
$number = $row[0];

$text = sprintf($l_newest_entries, $nr_entries);
echo "<p id=\"userprograms\"><a href=\"index.html?filename=users.html\">$l_total</a> <b>$number</b>, $text</p>";

while($row = mysql_fetch_object($result)){
  echo "<a href=\"$row->link\">$row->name</a> $l_by $row->author<br>";
}
mysql_free_result($result);
*/
module_tail();
Exemplo n.º 13
0
<?php

module_head($l_quick_downloads);
//  echo "  <div id=\"quickdownloads\"><b><a href=\"http://download.kde.org/download.php?url=stable/3.5.10/src/kdevelop-3.5.3.tar.bz2\">$l_current_stable_version (3.5.3)</a></b><br>\n";
echo "  <div id=\"quickdownloads\"><b><a href=\"http://download.kde.org/download.php?url=stable/apps/KDE3.x/ide/kdevelop-3.5.5.tar.bz2\">{$l_current_stable_version} (3.5.5)</a></b><br>\n";
echo "  <a href=\"http://download.kde.org/download.php?url=unstable/snapshots/kdevelop.tar.bz2\">{$l_current_development_version} (HEAD)</a></div>\n";
module_tail();