php – how to display only specific category posts by user role without plug-in? restrict all other cats

I use basic post for adding messages. There are 5 categories (cat_A, cat_B, cat_C, cat_D, cat_E). and I have 2 custom user_role for registered visitors which is & # 39; viewer_a & # 39; and & # 39; viewer_b & # 39 ;. I need to display only selected category posts only for specific user roles.

means that users under 'viewer_a' can only view cat_A publications and under user_role & # 39; viewer_B & # 39; only cat_B publications. Remains strictly other positions.

how can i do this without plugin. Sorry for my bad English ūüôā

Get PHP data in JavaScript to set the position of each message on the home page

I've created a custom message type called project, which works well. Each project has several custom fields, including a set of x and y values ‚Äč‚Äčthat indicate where the project should appear on the cover page (see Code Style section below: I know it does not work, but I'm showing what I want to do in pseudo-code).

I could display the value x as and as defined by the advanced custom field documentation. However, how can I get the x and y values ‚Äč‚Äčfrom PHP to JavaScript, so that I can use them to define left and top value of the div that indicates where they should be on the first page?

Since there are many projects and I get different sets of xs and ys in a loop, I'm thinking of writing all x and y values ‚Äč‚Äčto an external JSON file, and then loading them again with JavaScript. Is this an option considering the structure of WordPress? Or is there a better option to get these pairs of x and y values ‚Äč‚Äčfrom PHP to JavaScript?

 "project"
    );

    $projects = new WP_Query($args);
    $data = file_get_contents("projects.json");
       $projects = json_decode($data, true);

    while($projects->have_posts()){
        $projects->the_post();
?>

    
        

php – Secure the exec for executing shell commands

I have to run my .c program with gccbut I want to prevent other codes not related to this concept from being executed at the same time.

  1. Is there a way to make this function totally private and accessible to others?
  2. How to clean it?
  3. Is it safe to use pointers for or in this function? let's say $ executable

Pass two concatenated variables in a Json object of a POST Curl in PHP

I'm sending this request on the json POST of Curl with PHP.

Here is post json:

"Payment" => (
    "Type" => "Vendor",
    "Amount" => 100,
    "CreditCard" => (
    "CardNumber" =>  "$card",
    "ExpirationDate" =>   "$dataexp"     


    )

The default value for receipt on the ExpirationDate API is: 20/2021 XX / XXXX.

In "ExperationDate" => "", I want to concatenate the two variables ($ mes and $ year) with the / (slash). $ my + / + $ year or more on a single variable.
When I submit the ExpirationDate content, it must contain 12/2021 XX / XXXX.

They come from other script variables: $ Mes and $ year.

Returns this template by sending ExperationData to the publication API.

I have tried something like:

"ExperationDate" => "'.$mes.'/'.$ano.'"

"ExperationDate" => "$mes/$ano.'"

"ExperationDate" => "$mes./.$ano.'"

None of the 3 possibilities gave it to me. $ Mes and $ year are not concatenated with /. So, the default value, for example 10/2021, was not passed correctly in the POST object in json ExperationDate => ""

I have error in ExperationDate in api, the error is exactly at the point of two more variables / concatenated in ExperationDate.

Could someone help me to do this motive that I have shown?
Would it be possible to pass two variables and concatenated in a json object of the post?

cordially
thank you so much

php – "I want a user ID with approval"

"I need a user approval connection with session"

"I have tried to apply a connection request with where the approval, it works fine, but when it redirects to the index, it displays a blank page"

login file:
 0) {
echo "Your account has been approved.";
}
other{
echo "Your account has not yet been approved by an administrator.";
}
if ($ num == 1) {
$ _SESSION ('user name') = $ user name;
echo & # 39;& # 39 ;;
}
other{
echo & # 39;

Username or password incorrect or

& # 39 ;; } } ?> index:

"It comes with an empty page, it must come"

php – Error with the due date

I have a script that calculates the number of days needed to expire a product. It works well with dates of up to 15 days. However, if the product expires in December 2019 or next year, I do not count the days well.

diff($fechaFinal)->d;   #Días totales entre las fechas dadas
$diffDays = $fechaFinal->diff($fechaHoy)->d;       #Días que faltan para que termine
$pastDays = $fechaInicio->diff($fechaHoy)->d;      #Días ya transcurridos
$msgInfo = $fechaFinal <= $fechaHoy ? "Finished": "$diffDays days left.";

echo $msgInfo;

// resultado:             15 days left
// resultado correcto:    102 days left

?>

Windows App – SQLMaestro ASA PHP Generator Professional 18.3.0.8 | NulledTeam UnderGround

SQLMaestro Oracle PHP Generator Professional Edition 18.3.0.8 Multilingual | 28.27 MB

Oracle PHP Generator is a powerful tool for generating a complete set of PHP for selected Oracle tables, views, and queries, so you can use these objects later on the Web.

Support for SQL queries that can be updated
Master-detail presentations;
Event content management;
Validation of client-side data
Custom pagination (partitioning of the display);
Export of data in PDF, XML, CVS, Excel and Word format;
Support for hard-coded user authentication, based on tables and database servers;
Security at the registration level;
Color schemes;
Multilingual support;
many other useful things.
Pentium PC or higher;
Windows NT4 / 2000 / XP / Vista / Windows 7 / Windows 8 / Windows 10;
512 MB of RAM (1 GB recommended);
25 MB of free space on the hard drive;
SVGA compatible video adapter;
Internet Explorer 9 or higher (to display the preview page correctly);
Microsoft .NET Framework 4.0 or higher (to compile styles);
Oracle client software

Multilingual

DOWNLOAD
nitroflare

php – HTML formatting "single_term_title ()"?

I'm having fun with the pages of my Woocommerce store and I'm now trying to get that category titles appear at the top of the edited pages again.

I've managed so far, using the following code, which Is show the right title in the right place:

   $titlehere = single_term_title();
    echo '

' . $titlehere . '

';

My current problem is that I need the category title to be displayed in big text as a h1 header, but HTML formatting does not apply.

I know that there is nothing else that opposes it, because another text put in its place appears on the site with formatting.

Unfortunately, I am a little in the dark here, I learn things as I go, so that I do not quite understand how everything works.

Is there anything I could set up of "single_term_title ()" that will allow me to display the title of the category and to allow HTML formatting to apply?

Thanks in advance!

How to add a user to a woocommerce subscription with php?

I use the woocommerce membership plugin and want to add users to my subscriptions to a site using php. How can I do that? thank you so much

XSS operating tools written in PHP / python comparable to BeEF

I have already asked a similar question. But for the most part, what I was asking for was not clear. Now, I do my best and clarify as much as possible.

I have tested XSS operating tools: JSShell, BeEF, xssshell-xsstunnell and JShell. But was not satisfied (reasons below).

BeEF and co. are simply "command & control" (C & C) tools (with some extra exploits added as bonuses) that must obviously run on a public server to create a "communication channel" between an attacker and a victim. Now BeEF is written in ruby, but most websites use PHP (79.1% in 2019) and have often also natively python installed. Many web hosts do not give you root access. This makes it a little strange that someone comes to the idea of ‚Äč‚Äčwriting C & C in ruby ‚Äč‚Äčor even ASP.NET since it is expected to be written in PHP or python.

I wanted to bypass such restrictions (if even possible?) And continue to use it (!) On my local machine, while allowing it to be accessible from the outside. Yes! Using VPN and reverse proxy: https://serverfault.com/questions/979393/hosting-files-on-local-machine-behind-a-nat-which-can-be-access-de-public-se
But I'll have to test it and, as long as it's not, it's still a problem for me and I'm just going to try the existing tools.

Question:

Is there C & C tools of comparable quality to BeEF (because it offers many useful features that I miss in other tools I have tested so far) but written in PHP or python? Most of the tools I've seen so far are not comparable in quality to BeEF or written in other scripting languages ‚Äč‚Äčor for other platforms such as Windows Server. I've googled but maybe I'm neglecting something.

Because it currently appears to me that if you want to fully exploit XSS you need to rent a server that supports ruby or ASP.NET. This is absolutely valid, but not far from the ideal.