The php web video script that I’m using displays an Upload button on the home page. When a User is logged in, and that button is selected the User is redirected to the Upload page. And it appears that when a web visitor is not logged-in and selects the Upload button, the next thing that appears is 404 page not found.
How would I change the not logged in . select Upload button to redirect to the log-in page, instead of 404 page? After looking around the script I see this in the header html file:
<?php if ($pt->config->upload_system == 'on') { ?>
<li class="hide-from-mobile">
<a href="{{LINK upload-video}}" class="btn upload-button" data-load="?link1=upload-video">
<!--<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>-->
<!--<span class="hide-in-mobile">{{LANG upload}}</span>-->
</a>
</li>
<?php } ?>
And this in the upload php file:
<?php
if (IS_LOGGED == false || $pt->config->upload_system != 'on') {
header("Location: " . PT_Link('login'));
exit();
}
I’d try to modify one of these or both, with some guidance on what you might suggest
I look forward to any assistance.