1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

initial files

This commit is contained in:
CaMer0n
2009-10-20 07:47:02 +00:00
parent 1c1a0566b2
commit d47c243bde
3 changed files with 184 additions and 0 deletions

View File

@@ -0,0 +1,103 @@
<?php
require_once ("../../class2.php");
if (!getperms("P"))
{
header("location:".e_BASE."index.php");
}
require_once (e_ADMIN."auth.php");
include_lan(e_PLUGIN."metaweblog/languages/".e_LANGUAGE.".php");
/*
$preftitle = XMLRPC_PREFS_001;
$pageid = XMLRPC_ADMIN_002;
// plugin title page
$prefcapt[] = XMLRPC_PREFS_002;
$prefname[] = "eXMLRPC_title";
$preftype[] = "text";
$prefvalu[] = "";
// news render type 0-1-2-3-4
$prefcapt[] = XMLRPC_PREFS_003;
$prefname[] = "eXMLRPC_NEWS_RENDER_TYPE";
$preftype[] = "dropdown";
$prefvalu[] = "0,1,2,3";
// use news title as sub-gallery folder names
$prefcapt[] = XMLRPC_PREFS_004;
$prefname[] = "eXMLRPC_FILES_PATH";
$preftype[] = "text";
$prefvalu[] = "xmlrpc";
// use custom gallery names
$prefcapt[] = XMLRPC_PREFS_005;
$prefname[] = "eXMLRPC_BLOG_ID";
$preftype[] = "text";
$prefvalu[] = "Blog ID (no matter what)";
// thumbinails w
$prefcapt[] = XMLRPC_PREFS_006;
$prefname[] = "eXMLRPC_BLOG_NAME";
$preftype[] = "text";
$prefvalu[] = "Blog Name (no matter what)";
//---------------------------------------------------------------
// END OF CONFIGURATION AREA
//---------------------------------------------------------------
if(IsSet($_POST['updatesettings'])){
$count = count($prefname);
for ($i=0; $i<$count; $i++) {
$namehere = $prefname[$i];
if($preftype[$i]=="date" || $fieldtype[$i] == "datestamp"){
$year = $prefname[$i]."_year";
$month = $prefname[$i]."_month";
$day = $prefname[$i]."_day";
if($fieldtype[$i]=="date"){
$datevalue = $_POST[$year]."-".$_POST[$month]."-".$_POST[$day];
}else {
$datevalue = mktime (0,0,0,$_POST[$month],$_POST[$day],$_POST[$year]);
}
$pref[$namehere] = $datevalue;
}else{
$pref[$namehere] = $_POST[$namehere];
}
// echo $namehere." = ".$_POST[$namehere]."<br>";
// echo $namehere." = ".$datevalue;
};*/
if (isset($_POST['updatesettings']))
{
save_prefs();
$message = LAN_SETSAVED;
}
if ($message)
{
$ns->tablerender("", "<div style='text-align:center'><b>$message</b></div>");
}
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."'>
<table style='width:94%' class='fborder'>";
for ($i = 0; $i < count($prefcapt); $i++)
{
$form_send = $prefname[$i]."|".$preftype[$i]."|".$prefvalu[$i];
$text .= "
<tr>
<td style=\"width:30%; vertical-align:top\" class=\"forumheader3\">".$prefcapt[$i].":</td>
<td style=\"width:70%\" class=\"forumheader3\">";
$name = $prefname[$i];
// $text .= $rs->user_extended_element_edit($form_send, $pref[$name], $name);
$text .= "</td></tr>";
}
;
$text .= "<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>
<input class='button' type='submit' name='updatesettings' value='Salva impostazioni' />
</td>
</tr>
</table>
</form>
</div>";
$ns->tablerender($preftitle, $text);
require_once (e_ADMIN."footer.php");
?>

View File

@@ -0,0 +1,39 @@
<?php
//---------------------------------------------------------------
// BEGIN CONFIGURATION AREA
//---------------------------------------------------------------
if(file_exists(e_PLUGIN."eXMLRPC/languages/".e_LANGUAGE.".php")){
@include_once(e_PLUGIN."eXMLRPC/languages/".e_LANGUAGE.".php");
}
$helptitle = XMLRPC_HELP_001;
//
$helpcapt[] = XMLRPC_HELP_010;
$helptext[] = XMLRPC_HELP_011;
//
$helpcapt[] = XMLRPC_HELP_020;
$helptext[] = XMLRPC_HELP_021;
//
$helpcapt[] = XMLRPC_HELP_030;
$helptext[] = XMLRPC_HELP_031;
//
$helpcapt[] = XMLRPC_HELP_040;
$helptext[] = XMLRPC_HELP_041;
//
$helpcapt[] = XMLRPC_HELP_050;
$helptext[] = XMLRPC_HELP_051;
//
$helpcapt[] = XMLRPC_HELP_060;
$helptext[] = XMLRPC_HELP_061;
//---------------------------------------------------------------
// END OF CONFIGURATION AREA
//---------------------------------------------------------------
$text2 = "";
for ($i=0; $i<count($helpcapt); $i++) {
$text2 .="<b>".$helpcapt[$i]."</b><br />";
$text2 .=$helptext[$i]."<br /><br />";
};
$ns -> tablerender($helptitle, $text2);
?>

View File

@@ -0,0 +1,42 @@
<?php
/*
+ -----------------------------------------------------------------------------+
| e107 website system - Language File.
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/metaweblog/languages/English.php,v $
| $Revision: 1.1 $
| $Date: 2009-10-20 07:47:02 $
| $Author: e107coders $
| Italian Translation: e107 Italian Team http://www.e107it.org
+-----------------------------------------------------------------------------+
*/
define("XMLRPC_ADMIN_001", "Main Menu");
define("XMLRPC_ADMIN_002", "Configuration");
define("XMLRPC_ADMIN_003", "Admin");
define("XMLRPC_ADMIN_004", "Options");
define("XMLRPC_ADMIN_005", "Prefs");
define("XMLRPC_CONFIG_001", "eXMLRPC - Configuration");
define("XMLRPC_PREFS_001", "eXMLRPC - Options");
define("XMLRPC_PREFS_002", "eXMLRPC");
define("XMLRPC_PREFS_003", "News render type (0,1,2,3)");
define("XMLRPC_PREFS_004", "Upload directory (e_FILE/)");
define("XMLRPC_PREFS_005", "Blog ID for client");
define("XMLRPC_PREFS_006", "Blog Name for client");
define("XMLRPC_HELP_001", "Instructions");
define("XMLRPC_HELP_010", "General");
define("XMLRPC_HELP_011", "This plugin itself does nothing! It's only for settings some XMLRPC varibles. Point your XMLRPC client (es: Windos Live Writer) to http://mysite/e107_plugins/eXMLRPC/xmlrpc.php eand fill out requested values. Warning! This plugin is experimental!");
define("XMLRPC_HELP_020", "Plugin title");
define("XMLRPC_HELP_021", "No matter plugin does not output");
define("XMLRPC_HELP_030", "News render type");
define("XMLRPC_HELP_031", "Important! Default news render type");
define("XMLRPC_HELP_040", "Upload folder for files");
define("XMLRPC_HELP_041", "It's always a folder inside e107_files!");
define("XMLRPC_HELP_050", "Blog ID for client");
define("XMLRPC_HELP_051", "Blog Id for XMLRPC client (any string you want)");
define("XMLRPC_HELP_060", "Blog Name for client");
define("XMLRPC_HELP_061", "Blog Name for XMLRPC client (any string you want)");
?>