Diff -- /var/www/vhosts/3dshawn.com/repricer.3dshawn.com/_attic/edit_model.cgi
Diff

/var/www/vhosts/3dshawn.com/repricer.3dshawn.com/_attic/edit_model.cgi

added on local at 2026-07-01 21:47:33

Added
+21
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 2caaedf81c40
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1#!/usr/bin/perl
2#======================================================================
3# RePricer -- legacy redirect.
4#
5# The standalone edit form has been retired in favour of the full
6# upload_model.cgi flow, which now handles both NEW models (?model_id absent)
7# and EDIT of existing ones (?model_id=N). Any old bookmark / link
8# pointing here is bounced to /upload_model.cgi?model_id=N so the user lands
9# on the same canonical form regardless of entry point.
10#======================================================================
11use strict;
12use warnings;
13use CGI;
14
15my $q = CGI->new;
16my $id = $q->param('id') || '';
17$id =~ s/[^0-9]//g;
18
19my $dest = $id ? "/upload_model.cgi?model_id=$id" : '/models.cgi';
20
21print "Status: 302 Found\nLocation: $dest\nCache-Control: no-store\n\n";
Keyboard: j next diff k previous diff g top G bottom r restore c compile-check ? help