Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,203 @@
<?php
$module="rss_feed";
$un="RSS Feed";
$pluriel="RSS Feed";
$has_catgories=true;
$mass_actions=array("delete"=>"Delete","aggregator"=>"Create RSS Aggregator");
require_once("list_top.php");
?>
<table class="wp-list-table widefat fixed striped table-view-list pages">
<thead>
<tr>
<td id='cb' class='manage-column column-cb check-column'>
<label class="screen-reader-text" for="cb-select-all-1">Select All</label>
<input id="cb-select-all-1" type="checkbox" />
</td>
<th scope="col" id='url' class='manage-column column-title column-primary ' style="width:200px" >
Name
</th>
<th scope="col" id='url' class='manage-column column-title column-primary ' >
Type
</th>
<th scope="col" id='url' class='manage-column column-title column-primary '>
Description
</th>
<th scope="col" id='url' class='manage-column column-title column-primary '>
Categories
</th>
<th scope="col" id='url' class='manage-column column-title column-primary arrow_raj' style="width:25px">
<a href="javascript:void(0)" onclick="jQuery('.arrow_raj').hide();jQuery('.show_raj').show();"> &raquo;</a>
</th>
<th scope="col" id='url' class='manage-column column-title column-primary show_raj'>
Frequency
</th>
<th scope="col" id='url' class='manage-column column-title column-primary show_raj'>
Analysed
</th>
<th scope="col" id='url' class='manage-column column-title column-primary show_raj'>
Items <a href="javascript:void(0)" onclick="jQuery('.show_raj').hide();jQuery('.arrow_raj').show();"> &laquo;</a>
</th>
<th scope="col" id='url' class='manage-column column-title column-primary ' style=" text-align:center">
Title/URL
</th>
<th scope="col" id='url' class='manage-column column-title column-primary ' style="width:150px">
Created
</th>
</tr>
</thead>
<tbody id="the-list">
<?php
$optionsDomains=array(array("id"=>"","title"=>"All Domains"),array("id"=>"facebook","title"=>"Facebook"),array("id"=>"twitter","title"=>"Twitter"));
$optionsTypes=array(array("id"=>"google","title"=>"Google Alert Feed"),array("id"=>"facebook","title"=>"Facebook Page"),array("id"=>"twitter","title"=>"Twitter Page"));
$fields_list[]=array("type"=>"select","name"=>"type","title"=>"Type","options"=>$optionsTypes);
$fields_list[]=array("type"=>"text","name"=>"url","title"=>"URL");
$fields_list[]=array("type"=>"text","name"=>"name","title"=>"Name");
$fields_list[]=array("type"=>"textarea","name"=>"description","title"=>"Description");
$fields_list[]=array("type"=>"categories","name"=>"categories","title"=>"Categories");
$fields_list[]=array("type"=>"text","name"=>"often_check","title"=>"Frecuency(minutes)","value"=>10);
$fields_list[]=array("type"=>"text","name"=>"nb_analyse","title"=>"Items Analysed","value"=>20);
$fields_list[]=array("type"=>"text","name"=>"nb_items","title"=>"New Items","value"=>10);
$fields_list[]=array("type"=>"select","name"=>"domain","title"=>"Domain","options"=>$optionsDomains);
$start_from = ($page_num-1) * nb_per_page;
$limit=$start_from.",".nb_per_page;
$sql="select * from rss_feed ".$where." order by id desc limit ".$limit." ";
$resulta = $db->db_query($sql);
$i=0;
$cat_lists=array();
while($data = mysqli_fetch_assoc($resulta))
{
$i++;
if($data["title"]=="")
$data["title"]=$data["name"];
?>
<tr id='quick_edit_tr-<?php echo $data["id"];?>' class="iedit author-self level-0 type-page status-publish hentry quick_edit_tr" style="display:none">
<td colspan="10" class="inline-edit-row inline-edit-row-post quick-edit-row quick-edit-row-post inline-edit-post">
<?php
include("form_quick.php");
?>
</td>
</tr>
<tr id='post-<?php echo $data["id"];?>' class="iedit author-self level-0 post-<?php echo $data["id"];?> type-page status-publish hentry post_tr">
<th scope="row" class="check-column" >
<input type='checkbox' name='rows[]' id='raj_row_<?php echo $data["id"];?>' class='administrator .check_list' value='<?php echo $data["id"];?>' />
</th>
<td valign="middle" class="title column-title has-row-actions column-primary page-title" data-colname="Title" >
<strong><a href="javascript:void(0);" onclick="add_item_admin('<?php echo $module;?>',<?php echo $data["id"];?>);" class="row-title"> <?php echo mb_convert_encoding($data["name"], 'ISO-8859-1', 'UTF-8');?></a></strong>
<div class="row-actions">
<span class='edit'><a href="javascript:void(0);" onclick="add_item_admin('<?php echo $module;?>',<?php echo $data["id"];?>);">Edit</a> | </span>
<span class='inline hide-if-no-js'> <button type="button" class="button-link editinline" aria-label="Quick edit &#8220;&#8221; inline" onclick="jQuery('.quick_edit_tr').hide();jQuery('.post_tr').show(); jQuery('#post-<?php echo $data["id"];?>').hide();jQuery('#quick_edit_tr-<?php echo $data["id"];?>').show(); ">Quick&nbsp;Edit</button> | </span>
<span class='trash'><a class='submitdelete' href="javascript:void(0);" onclick="raj_do_action('<?php echo $module;?>','delete',<?php echo $data["id"];?>);">Delete</a> | </span>
<span class='inline'><a class='submitdelete' href="javascript:void(0);" onclick="raj_do_action('<?php echo $module;?>','reload',<?php echo $data["id"];?>);">Reload</a> | </span>
<span class='inline'><a class='submitdelete' href="javascript:void(0);" onclick="raj_do_action('<?php echo $module;?>','aggregator',<?php echo $data["id"];?>);">Create RSS Aggregator</a> | </span>
<span class='inline'><a class='submitdelete' href="javascript:void(0);" onclick="raj_do_action('<?php echo $module;?>','duplicate',<?php echo $data["id"];?>);">Duplicate</a> </span>
</div>
</td>
<td><?php echo $data["type"];?></td>
<td >
<?php echo html_entity_decode(sub_string_max($data["description"]));?>
</td>
<td >
<?php
$cats=array();
$cats_id=explode(",",$data["categories"]);
global $table_prefix;
foreach($cats_id as $cat_id)
{
if(!isset($cat_lists[$cat_id]))
{
$cat=$db->db_selectOne($table_prefix."terms","term_id,name","term_id='".$cat_id."'");
if($cat===false)
continue;
$cat_lists[$cat_id]=$cat["name"];
}
$cats[]=array("id"=>$cat_id,"name"=>$cat_lists[$cat_id]);
}
$nb_cat=0;
if(sizeof($cats)==0)
echo "-";
else
foreach($cats as $cat)
{
if($nb_cat!=0)
echo ", ";
$nb_cat++;
echo "<a href='javascript:void(0);' onclick='search_by_cat(\"".$module."\",".$cat["id"].")'>".htmlentities($cat["name"])."</a>";
}
?>
</td>
<td class="arrow_raj"></td>
<td class="show_raj" ><?php echo $data["often_check"];?></td>
<td class="show_raj"><?php echo $data["nb_analyse"];?></td>
<td class="show_raj"><?php echo $data["nb_items"];?></td>
<td>
<a href="<?php echo rssfeed__PLUGIN_URL."feed.php?feed=".$data["generated_url"];?>" title="<?php echo rssfeed__PLUGIN_URL."feed.php?feed=".$data["generated_url"];?>" target="_blank"><?php echo mb_convert_encoding($data["title"], 'ISO-8859-1', 'UTF-8');?></a>
</td>
<td >
<?php echo date("Y/m/d h:i a",$data["created"]);?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<style>
.show_raj{display:none}
</style>
<?php
require_once("list_bottom.php");
?>