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,142 @@
<?php
$selected_cat=0;
require_once("functions.php");
$where="";
$str="";
if(isset($_REQUEST["cat_id"]))
{
$where=" where categories =".$_REQUEST["cat_id"]." or categories like '%".$_REQUEST["cat_id"].",%' or categories like '%,".$_REQUEST["cat_id"]."%'";
}
else
{
$where="";
if((isset($_REQUEST["cat"]))&&($_REQUEST["cat"]!=0)&&($_REQUEST["cat"]!==""))
{
$selected_cat=$_REQUEST["cat"];
$where=" where (categories =".$_REQUEST["cat"]." or categories like '%".$_REQUEST["cat"].",%' or categories like '%,".$_REQUEST["cat"]."%')";
}
if((isset($_REQUEST["s"]))&&($_REQUEST["s"]!=""))
{
$lower= strtolower($_REQUEST["s"]) ;
if($where=="")
$where=" where LOWER(title) like '%".$lower."%' or LOWER(name) like '%".$lower."%'";
else
$where=" and ( LOWER(title) like '%".$lower."%' or LOWER(name) like '%".$lower."%')";
$str=$_REQUEST["s"];
}
}
$total_records = $db->count_table($module,$where);
$total_pages = ceil($total_records / nb_per_page);
if (isset($_REQUEST["ind_page"])) { $page_num = $_REQUEST["ind_page"]; } else { $page_num=1; };
if($page_num>$total_pages)
$page_num=$total_pages;
if($page_num<=0)
$page_num=1;
?>
<div class="wrap">
<h1 class="wp-heading-inline">
<?php echo $pluriel;?> (<?php echo $total_records;?> items)</h1>
<a href="javascript:void(0);" class="page-title-action" onclick="add_item_admin('<?php echo $module;?>',0);">Add New</a>
<hr class="wp-header-end">
<form id="my_form_list" method="post" onsubmit="list_admin('<?php echo $module;?>');return false; ">
<div class="tablenav top">
<div class="alignleft actions bulkactions">
<label for='bulk-action-selector-top' class='screen-reader-text'>Select action to do</label>
<select name='action1' id="bulk-action-selector-top">
<option value='-1' selected='selected'>Actions</option>
<?php
foreach($mass_actions as $tit=>$val)
echo "<option value='".$tit."'>".$val."</option>";
?>
</select>
<input type="button" id="doaction" class="button action" value="Apply" onclick="apply_action('<?php echo $module;?>');" />
</div>
<div class="alignleft actions">
<?php
if(isset($has_catgories)&& $has_catgories)
{
if(!isset($categories_list))
$categories_list=get_cat_tree();
?>
<label class="screen-reader-text" for="cat">Filter by category</label>
<?php
display_cat_select($categories_list,array("name"=>"cat","value"=>$selected_cat));
?>
<input type="button" name="filter_action" id="post-query-submit" class="button" value="Filter" onclick="list_admin('<?php echo $module;?>');" />
<?php
if($module=="rss_feed")
{
?>
&nbsp;&nbsp;&nbsp;
<input type="button" name="import_action" class="button" value="Import CSV" onclick="jQuery('#import_file').click();" />
<input type="file" style="display:none" id="import_file" onchange="raj_import_file('<?php echo $module;?>');" />
<?php
}
}
global $table_prefix;
$teplates=array();
$sql="select term_id from ".$table_prefix."term_taxonomy where LOWER(meta_value) like '%\"template\"%' and meta_key='wprss_ftp_post_terms'";
$sql="select term_id,term_taxonomy_id from ".$table_prefix."term_taxonomy where taxonomy ='wprss_category'";
$resulta = $db->db_query($sql);
while($data = mysqli_fetch_assoc($resulta))
{
$sql="select slug from ".$table_prefix."terms where term_id=".$data["term_id"];
$resulta2 = $db->db_query($sql);
while($data2 = mysqli_fetch_assoc($resulta2))
if($data2["slug"]=="template")
{
$sql="select p.ID as id,p.post_title as title from ".$table_prefix."posts p,".$table_prefix."term_relationships tr where tr.term_taxonomy_id=".$data["term_id"]." and p.ID=tr.object_id";
$resulta3 = $db->db_query($sql);
while($data3 = mysqli_fetch_assoc($resulta3))
$teplates[]=$data3;
break;
}
}
?>
</div>
<div style="float:left">
<select name='template' id="template_raj">
<option value='0' selected='selected'>Aggregator Template</option>
<?php
foreach($teplates as $data)
echo "<option value='".$data["id"]."'>".$data["title"]."</option>";
?>
</select>
</div>
<p class="search-box">
<label class="screen-reader-text" for="user-search-input">Search :</label>
<input type="search" id="user-search-input" name="s" value="<?php echo $str;?>" />
<input type="button" class="button" id="search-submit" value="Search" onclick="list_admin('<?php echo $module;?>');" />
<input type="hidden" id="ind_page" name="ind_page" value="<?php echo $page_num;?>" />
</p>
<div style="clear:both; height:10px;"></div>
</div></form></div>