HEX
Server: Apache
System: Linux server.tcoe.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
User: bharatdigicom (1007)
PHP: 8.1.32
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/bharatdigicom/public_html/wp-admin/opp_dump.php
<div id="wpbody-content" style="margin:25px;">
    <div class="wtn-img-container">
<form name="opportunity_form" action="<?php echo esc_html( admin_url( 'admin-post.php' ) ); ?>" method="post"  enctype="multipart/form-data">

           <div class="row" style="padding:10px;">
			 <label>
			 <h1>Import Collaboration Opportunity </h1>
			  </label>		

			</div>
			
			<?php
			// echo $wpdb->last_query;
			if($_GET['status'])
			{ if($_GET['status']=='success')
				{
					$msg="imported successfully";
				}
				elseif($_GET['status']=='faild')
				{
					$msg="Operation failed. Please try again with valid data.";
				}
				elseif($_GET['status']=='CMP')
				{
					$msg="category is not matched with stakeholder.";
				}
				elseif($_GET['status']=='IFF')
				{
					$msg="invelid file format.";
				}
				else
				{
					$msg=$_GET['status'];
				}
				
				
			?>
			<div class="row" style="padding:10px;">
			 <label>
			 <h1 style="color:red"><?php echo $msg;?> </h1>
			  </label>		

			</div>
			<?php
			}
			?>
			
             <div class="row" style="padding:10px;">
			 
			
		
			   <div class="row" style="padding:10px;">
			 <label>
			  <strong> Select CSV file (TAb Delimited):</strong>
			  </label>
			  <input id="fileToUpload" name="fileToUpload" type="file"> 
			  </div>
			   <div class="row" style="padding:10px;">
			
			 <strong>It will remove previous records</strong><input id="what_to_do" name="what_to_do" type="radio" value="add" checked> 
			  </div>
			  
			<div class="row" style="padding:10px;">
			 <label>
			  <strong> File format:</strong>
			  </label>
			 <span style="color:red;">1.Category 2.Stakeholder 3.Unit 4.Website 5.Group(Leave blank if not exit.)</span>

			</div>
        <?php
            wp_nonce_field('xs-settings-save', 'xs-opp-dump' );
            submit_button();
        ?>
		
</form>
	
		</div>
	</div>
	


<script>
function addcate_1(name_val,adurl)
{
	event.preventDefault();
	var s_cat=0;
	var add_name=document.getElementById('add_name1').value;
	
	if(name_val=='')
	{
		alert('Please enter name');
		return false;
	}
 jQuery.ajax({	    
        type: "post",
        url: adurl,
        data: {
            action: 'add_cat_1',
            // add your parameters here
             name: add_name,
			 cat:s_cat
        },
        success: function (output) {
           document.getElementById('altbox1').innerHTML='Added successfully';
        }
        });
}
</script>