Get_option use inside switch select option

I try to make inside theme custom admin panel a switch select option. but i cannot get the value of switch case. following is my code:

$  bannerchange = $  _POST['bannerchange'];  if( get_option('bannerchange') != get_option($  bannerchange)) {             $  bannerchange = update_option( 'bannerchange', get_option($  bannerchange));  }  <?php if(isset($  _POST['wphw_submit']) && $  chk):?>   <div id="message" class="updated below-h2">     <p>Content updated successfully</p>   </div>     <?php endif;?>       <form method="post" action="">  <select name="wphw_submit" onchange="this.form.submit()">      <option value="page1"<?php if ($  bannerchange == "page1") { echo " selected"; } ?>>Custom Departure</option>      <option value="page2"<?php if ($  bannerchange  == "page2") { echo " selected"; } ?>>Fixed Departure</option> </select> <noscript><input type="submit" value="Submit"></noscript>  </div> <input type="submit" name="wphw_submit" value="Save changes" class="button-primary" /> <?php  switch ($  bannerchange) {     case 'page2': ?>                  <p>two</p>          <?php         break;     case 'page1':         ?>         <p>one</p>         <?php         break;     }     ?> 

$ bannerchange get always undefined.

Could you switch your target between two creatures under the effects of sanctuary until you succeed your safe?

The spell sanctuary states

You ward a creature within range against Attack. Until the spell ends, any creature who Targets the warded creature with an Attack or a harmful spell must first make a Wisdom saving throw. On a failed save, the creature must choose a new target or lose the Attack or spell. This spell doesn’t protect the warded creature from area Effects, such as the explosion of a Fireball.

The effects of which are quite obvious when one single creature is warded. However, I am wondering how this would work when two creatures are warded and both within range. Could a monster switch between targetting either of them until they succeed on their save?

As an example: two clerics – Alice and Jasper – are ambushed by an powerful vampire named James, they are fiercely opposed to killing and so instead of harming James they both cast sanctuary on themselves. James attempts to bite Alice but fails his save, he then switches his target to Jasper but fails his save again, now what happens? The spell seems to state that he is to choose a new target and does not appear to prohibit targetting Alice once again, however, that does seem to defeat the purpose of the spell.

So, what happens RAW? and RAI?

Switch properly from HTML website to WordPress without hurting Google rankings

My question is about specific technicalities of the switch from HTML website to WordPress. I looked through similar questions but my question still remains.

I think my situation is pretty standard.

I’m about to switch my current HTML website to WordPress. My website has been up since 2006.

Main details of the transition:

-My current site is in the /public folder

-Most pages have .php extension

-The WordPress folder is /clickandbuilds/mywebsite (, hosted by 1&1)

-I’ll also need to do 301 redirects for all .php pages to the WP pages

I guess my main question is the following:

Is it safe to just switch my domain from the /public folder to the WordPress folder once everything is ready? I assume it’s a standard procedure – but still wanted to get a second opinion.

Thanks, Leo

Switch statement efficiency in game code

Recently, I was digging into VVVVVVV’s source code that was released on GitHub by Terry Cavanagh. I went into the Game.cpp file, and found that it contains an absolutely gigantic, 3000+ case long switch statement in what is seemingly a function that is called consistently, not just once.

This made me ponder about how efficient switch statements are, and I realized I don’t know much about their difference to normal if-else chains. Are switch statements normally used in this manner to implement state handling, and why doesn’t something like this lag the game like crazy? (I’m assuming a massive amount of comparisons are being made every time)

How do rogues switch weapons?

We have started a game of Heroes & Treasure, a family-friendly tabletop RPG accessible to kids. Looking ahead, I notice that at level 5 rogues gain the ability to switch between weapons:

Level 5: Can switch between any available weapons at will.

This ability is confusing to me, because throughout the rulebook (about 8 pages) there is no mention of equipment or different kinds of weapons. I can’t speak to all of the published levels or adventures, but the 2 levels we are playing tonight also don’t mention any specific equipment. There are also no tokens for different equipment.

So how does the rogue’s ability to switch weapons work? Where do the weapons come from?

Is it possible to switch archetypes?

Is it possible to start the Eldritch Knight progression then switch to another archetype, say Battle Master archetype, later?

I’m thinking that I’d like to get a Hammer of Thunderbolts, but if I do it would be really nice to have the Eldritch Knight archetypes’s weapon bond so that I can recall it easily instead of having to retrieve it every time I throw it far enough to stay out of the blast radius. (Throwing it at least 30′ would make it take more than a round for a typical dwarf to chase after it.) It looks like Eldritch Knight is the only way to get weapon bond, but I am not interested in any of the other Eldritch Knight abilities beyond that.

Automatically Switch between two AdSense accounts based on the author post

We are two managers for one website , each of us have an AdSense account

Can our ad code display in the articles we write, based on the author slug or id?

I tried to use this code in head section , but it did not work :

<?php if (is_author('author 1');) : ?> <script data-ad-client="ca-pub-ءءءءء1ءءءء" async src=""></script>; <?php else : ?> <script data-ad-client="ca-pub-ءءءءء2ءءءء" async src=""></script> <?php endif; ?>

any ideas to switch automatically between the accounts, not as a revenue share.

Can I switch out my Level 1 any-school spell as an Arcane Trickster or Eldritch Knight?

The Arcane Trickster gains access to Wizard spells, primarily limited to the enchantment and illusion schools of magic. Four of the spells he knows can come from any school, however: one of his initial spells learned at 3rd level, and each of the ones learned at 8th, 14th, and 20th. This gives him the opportunity to have a spell in any school for one spell at each level he can cast. Further, like other casters who have known spells, the Trickster can change out one known spell when he levels up, with the following caveat:

Whenever you gain a level in this class, you can replace one of the wizard spells you know with another spell of your choice from the wizard spell list. The new spell must be of a level for which you have spell slots, and it must be an enchantment or illusion spell, unless you’re replacing the spell you learned at 8th, 14th, or 20th level. (PHB pp 98)

This means that you can switch out your “any-school” spell of 2nd, 3rd or 4th level. However, your 1st level spell is not mentioned. Is this a simple oversight, or is there any reason why you might not be able to switch out the spell you learn at 3rd level?

This question applies equally to Eldritch Knight.

What to disable on my second router as switch?

I’m extending my network coverage to the basement and I took the dust off my old router and am now converting it to a network switch. Wireless will probably be turned off so that it only support wired LAN connections.

Following tutorials online, I did not change anything on my main router. I played around with a few settings on the second router: turned DHCP server off and changed the IP to something different than my main router. Now because the information is not very clear when reading different tutorials, I am confused as to what to do with certain settings.

On my second router should:

  • NAT be disabled?
  • firewalls be disabled? Firewall options on the router are IPv6 SPI Firewall Protection, IPv4 SPI Firewall Protection, Filter Anonymous Internet Requests, Filter Multicast, Filter Internet NAT Redirection for IPv4 Internet Only, IPSec Passthrough, PPTP Passthrough, L2TP Passthrough.

Correct me if I’m wrong but it makes sense for me to disable all of those options because the main router handles all the security features already. As a note, my main router is the Asus RT-AC68U and my secondary router is the Linksys E2500. Might not be very important but I should also mention that I’m using my second router as a wireless access point at the moment but that’s only because I am still waiting for ethernet cables to ship. I will probably turn wireless off to improve performance through LAN once I get the cables.